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
types.BoolType #36968
Comments
I know that types is getting deprecated, but for Index: types.py RCS file: /cvsroot/python/python/dist/src/Lib/types.py,v
retrieving revision 1.29
diff -u -r1.29 types.py
--- types.py 14 Jun 2002 20:41:13 -0000 1.29
+++ types.py 2 Aug 2002 13:22:22 -0000
@@ -16,7 +16,7 @@
IntType = int
LongType = long
FloatType = float
-BooleanType = bool
+BoolType = BooleanType = bool
try:
ComplexType = complex
except NameError: |
Logged In: YES What bug does this fix? |
Logged In: YES I think the OP doesn't have a bugfix in mind, DictType = DictionaryType = dict DictionaryType had already been in out in Py2.1. Since we are not already locked into BooleanType, -BooleanType = bool Guido, do you care if I make this change or is there a |
Logged In: YES The requirement that getattr(types, X).__name__.title()+"Type" == X for all X in is reasonable; the following types currently break that: BooleanType (bool) If it is desirable tha the predicate above holds, then I'd
It certainly needs to be taken into account that some names If that property is not desirable, I again ask what the If BoolType is added (for whatever reason), I agree with |
Logged In: YES I see no bug here. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: