[issue6783] Add a builtin method to 'int' for base/radix conversion

2013-04-12 Thread R. David Murray
R. David Murray added the comment: Given an inconclusive python-ideas thread, Mark's -0, and the age of the issue, I'm going to close this. If someone wants to bring it up on python-ideas again, they can open an new issue if consensus is reached. -- nosy: +r.david.murray stage: -> co

[issue6783] Add a builtin method to 'int' for base/radix conversion

2010-08-09 Thread Mark Dickinson
Mark Dickinson added the comment: In fact, PEP 3003 says explicitly, under "Case-by-Case Exemptions": """ New methods on built-ins The case for adding a method to a built-in object can be made. """ So I'm changing the version back to 3.2. Having said that, I'm still -0 on this change.

[issue6783] Add a builtin method to 'int' for base/radix conversion

2010-08-09 Thread Mark Dickinson
Mark Dickinson added the comment: > I believe this is covered by the PEP3003 3.2 change moratorium. No, I don't think so. My understanding is that PEP 3003 doesn't cover new methods on builtin types. int.from_bytes and int.to_bytes are examples of new methods that were added for 3.2. -

[issue6783] Add a builtin method to 'int' for base/radix conversion

2010-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this is covered by the PEP3003 3.2 change moratorium. -- nosy: +terry.reedy versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker _

[issue6783] Add a builtin method to 'int' for base/radix conversion

2009-08-27 Thread Mark Dickinson
Mark Dickinson added the comment: > I'm hoping 182 weeks of clarity could help iron this issue out. :-) I really think should bring this up on the python-ideas mailing list[1]; it's much more likely to get resolved one way or the other if you do. [1] http://mail.python.org/mailman/listinfo/

[issue6783] Add a builtin method to 'int' for base/radix conversion

2009-08-27 Thread Yuv Gre
Yuv Gre added the comment: Use case - 'hashing' a counter for example like video ID's in youtube. One could use a regular int internally and publish a shorter 62-base id for links. Guido said on http://mail.python.org/pipermail/python-dev/2006- January/059923.html "I think we ought to let thi

[issue6783] Add a builtin method to 'int' for base/radix conversion

2009-08-25 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6783] Add a builtin method to 'int' for base/radix conversion

2009-08-25 Thread Mark Dickinson
Mark Dickinson added the comment: See http://mail.python.org/pipermail/python-dev/2006-January/059789.html for a previous related discussion. -- ___ Python tracker ___ _

[issue6783] Add a builtin method to 'int' for base/radix conversion

2009-08-25 Thread Mark Dickinson
Mark Dickinson added the comment: This seems like the sort of idea that should be floated on the python- ideas mailing list or comp.lang.python first, both to find out what support there is and to pin down precise semantics. We already have int to string conversions in bases 2, 8, 10 and 16;

[issue6783] Add a builtin method to 'int' for base/radix conversion

2009-08-25 Thread Yuv Gre
New submission from Yuv Gre : In javascript and java each number has a toString method which allows for easy string representation in different bases. If the function int(x[, base]) exists as a builtin, the inverse should at least be somewhere in the standard library. Personally I believe a "t