-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Superclass.__init__(self) with super().__init__() #239
Comments
I don't think of this as being a Python 2 vs Python 3 thing at all. You can use either in both versions, right? And the semantics of each doesn't differ between Python 2 and 3. |
Yeah, I guess it's more a Python 2.1 v. Python 2.2 thing (when
Mostly. You can only use
Modulo the above, correct. For context: I was looking at modernising some old code which I believe had been using old-style classes in Python 2 as at some point performance of old-style classes had been better (or at least significantly enough so for library-internal objects created in a hot loop), hence why that code wasn't using |
@gsnedders you should try out pyupgrade asottile/pyupgrade#305 |
I think this is out of scope for modernize as |
Almost certainly needs to be opt-in, though, given both remain valid and have different semantics
The text was updated successfully, but these errors were encountered: