Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: The number of object makes code slower?
Post: The number of object makes code slower?

I'm profilling my script to find its speed bottlenecks, but there is an anomaly that is messing with my understanding of how python interpreter works. I have a class definition in my code that looks ...
fig0 General Coding Help 1 2,518 Jan-25-2018, 09:00 PM
    Thread: Mask superclass __init__
Post: RE: Mask superclass __init__

Can't I simple use the class __new__ magic method instead of creating a metaclass?
fig0 General Coding Help 5 3,847 Jan-11-2018, 05:45 PM
    Thread: Mask superclass __init__
Post: RE: Mask superclass __init__

Quote:Why do you want to hide it? It is very difficult to hide anything in python code. I think it becomes more simple and clean to the framework user to not directly call superclass init . Quote:Wo...
fig0 General Coding Help 5 3,847 Jan-10-2018, 09:36 PM
    Thread: Mask superclass __init__
Post: Mask superclass __init__

Is there anyway to hide the superclass initialization from the user? For example: class BaseClass: def __init__(self): self.param = 10 class OtherClass(BaseClass): # I don't want the...
fig0 General Coding Help 5 3,847 Jan-10-2018, 04:30 PM

User Panel Messages

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