Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Return a value when I equal an object from a class
Post: RE: Return a value when I equal an object from a c...

Hello, I don't want to do a comparison, I just want to assign a value within the object without using the .method and read the attribute in the same way. Something like: class Reg(): register = 0 ...
ihouses General Coding Help 4 2,904 Jul-09-2019, 08:47 PM
    Thread: Return a value when I equal an object from a class
Post: Return a value when I equal an object from a class

Hello, I would like to do something like: class Hi(): def read(self): return 23 hi = Hi() val1 = Hi.read() val2 = HiI would like to associate the function read() or whatever returns when I do...
ihouses General Coding Help 4 2,904 Jul-09-2019, 07:32 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020