[issue12134] json.dump much slower than dumps

2011-06-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: As Antoine and Eric stated, the module is working as intended and we don't document implementation details and generally stay away from talking about performance in the docs. -- resolution: -> rejected status: open -

[issue12428] functools test coverage

2011-06-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Raymond, do we care whether or not the > pure Python version of functools.partial > supports inheritance and instance testing? We don't care. The docs make very few guarantees beyond the core functionality. Everything else is an impleme

[issue7117] Backport py3k float repr to trunk

2011-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the link :-) -- ___ Python tracker <http://bugs.python.org/issue7117> ___ ___ Python-bugs-list mailing list Unsub

[issue12444] accept sets or collections for str.strip/lstrip/rstrip

2011-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: -1 on complicating the API. The purported problem isn't pervasive enough to warrant a change (I frequently teach python classes and do code reviews and rarely encounter this issue). Also, the proposed change isn't going to help the peop

[issue12450] Use the Grisu algorithms to convert floats to strings

2011-06-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I don't think this is worth further disruption. We already have an excellent set of float repr routines. There is no problem to be solved here. -- assignee: -> rhettinger priority: normal -> low versions:

[issue12444] accept sets or collections for str.strip/lstrip/rstrip

2011-06-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: The docs are clear on this topic. No doc change can help someone who skips reading the docs and assumes the method does something different. -- resolution: -> rejected status: open -> closed ___ Python t

[issue12459] time.sleep(-1.0) behaviour

2011-07-01 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger priority: normal -> low ___ Python tracker <http://bugs.python.org/i

[issue12450] Use the Grisu algorithms to convert floats to strings

2011-07-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Mark. This is a very challenging area and no change would be warranted without keeping the current accuracy guarantees, definitive speed improvement, extensive tests, and consideration of the impact on users of having float reprs change yet

[issue12014] str.format parses replacement field incorrectly

2011-07-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please stick with "integer" instead of "decimalinteger". In an effort to make the docs more precise, there is an unintended effect of making them harder to understand. -- nosy: +rhettinger __

[issue12508] Codecs Anomaly

2011-07-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker <http://bugs.python.org/issue12508> ___ ___ Python-bugs-list mailing list Un

[issue12514] timeit disables garbage collection if timed code raises an exception

2011-07-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue12514> ___ ___ Python-bugs-list mai

[issue12514] timeit disables garbage collection if timed code raises an exception

2011-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you. The patch looks correct. I will apply it as soon as I get a chance. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12491] Update glossary documentation for the term 'attribute'

2011-07-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: The current glossary entry is fine and encompasses was is ordinarily meant by attribute as distinct from a method. We sometimes use the term loosely to mean any value whether callable or not. And sometimes it is used loosely to mean anything that can be

[issue12491] Update glossary documentation for the term 'attribute'

2011-07-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected status: open -> closed ___ Python tracker <http://bugs.python.org/issue12491> ___ ___ Python-bugs-

[issue5996] abstract class instantiable when subclassing dict

2011-07-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: IIRC, classes weren't supposed to be able inherit from two classes that had different metaclasses (since differing metaclasses don't necessarily play well with one another). -- nosy: +rhettinger

[issue5996] abstract class instantiable when subclassing dict

2011-07-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low ___ Python tracker <http://bugs.python.org/issue5996> ___ ___ Python-bugs-

[issue12542] Remove duplicates of cmp_to_key used in tests

2011-07-12 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> accepted ___ Python tracker <http://bugs.python.org/issue12542> ___ ___ Python-bugs-list mailing list Un

[issue12543] `issubclass(collections.deque, collections.Sequence) == False`

2011-07-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: index() isn't supported. -- assignee: -> rhettinger resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.pyth

[issue12559] gzip.open() needs an optional encoding argument

2011-07-14 Thread Raymond Hettinger
New submission from Raymond Hettinger : gzip.open() should parallel file.open() so that that zipped files can be read in the same way as regular files: for line in gzip.open('notes.txt', 'r', encoding='latin-1'): print(line.rstrip()) -- components:

[issue12559] gzip.open() needs an optional encoding argument

2011-07-14 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- versions: -Python 3.2 ___ Python tracker <http://bugs.python.org/issue12559> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: georg.brandl -> rhettinger nosy: +rhettinger versions: +Python 3.3 -Python 3.1 ___ Python tracker <http://bugs.python.org/issu

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: The example is correct and runs as expected: >>> Decimal(3.14) Decimal('3.140124344978758017532527446746826171875') Per the Whatsnew3.2 document: ''' The decimal.Decimal constructor now accepts float objects

[issue12543] `issubclass(collections.deque, collections.Sequence) == False`

2011-07-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Éric, this is not a doc bug. The sequence ABCs do not require slicing support. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12615] add array.zeroes

2011-07-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: -1 Array's API much more closely matches that of list than it does numpy's arrays which are profoundly different. So we should stick the one-way-to-do-it idiom: array.array('c', '\0') * 100 or array.array('d', [

[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2011-07-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: To my eye, this looks like a bytearray API bug in the bytearray implementation. ISTM, the rhs of a slice assignment needs to be restricted to iterable inputs. I'm marking this as low priority because the documented behaviors (i.e. normal slice assig

[issue12613] itertools fixer fails

2011-07-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker <http://bugs.python.org/issue12613> ___ ___ Python-bugs-list mailing list Un

[issue12448] smtplib's __main__ doesn't flush when prompting

2011-07-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Looks good. Thx. -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issu

[issue12634] Random Remarks in class documentation

2011-07-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: The proposed rewrite doesn't make any sense to me. Also "set through" is an reads awkwardly. -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker <http://bugs.

[issue12615] add array.zeroes

2011-07-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Array has been around for a very long time and this functionality has never been requested. That and the fact that we already have a way to do it (the same way as for lists) is a strong indication that this isn't needed at all. -- resol

[issue12647] Add __bool__ to None

2011-07-27 Thread Raymond Hettinger
New submission from Raymond Hettinger : Currently bool(None) returns False only because it has a special case in PyObject_IsTrue(). All other types can become False only if they implement __bool__() or __len__(). I propose removing the special case branch and instead adding __bool__ to None

[issue12647] Add __bool__ to None

2011-07-27 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +patch Added file: http://bugs.python.org/file22781/none_bool.diff ___ Python tracker <http://bugs.python.org/issue12

[issue12647] Add __bool__ to None

2011-07-28 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue12647> ___ ___ Python-bugs-

[issue12514] timeit disables garbage collection if timed code raises an exception

2011-07-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the bug report and patch. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue12668] 3.2 What's New: it's integer->string, not the opposite

2011-07-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue12668> ___ ___ Python-

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-08-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: See also #12631 regarding the remove() method for bytearray. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12666] map semantic change not documented in What's New

2011-08-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue12666> ___ ___ Python-

[issue12717] ConfigParser._Chainmap error in 2.7.2

2011-08-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks, I'll fix that shortly. -- priority: normal -> high ___ Python tracker <http://bugs.python.org/issue12717> ___

[issue12717] ConfigParser._Chainmap error in 2.7.2

2011-08-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed. Thanks for the report. Éric, the test suite didn't catch this because the error wasn't user visible -- the chainmap is only used internally and only __getitem__ was needed. -- resolution: -> fixed status: o

[issue11866] race condition in threading._newname()

2011-08-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think the patch is correct. FWIW, my style is to prebind the next method, making the counter completely self-contained (like a closure): +_counter = itertools.count().next def _newname(template="Thread-%d"): global _counter -

[issue12740] Add struct.Struct.nmemb

2011-08-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: How about __len__()? -- nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue12740> ___ ___ Python-bugs-list m

[issue12740] Add struct.Struct.nmemb

2011-08-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low ___ Python tracker <http://bugs.python.org/issue12740> ___ ___ Pyth

[issue12744] inefficient pickling of long integers on 64-bit builds

2011-08-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Nice. -- nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue12744> ___ ___ Python-bugs-list mailing list Unsub

[issue12740] Add struct.Struct.nmemb

2011-08-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: In general, I think we can prevent confusion about the meaning of __len__ by sticking to the general rule: len(object)==len(list(obj)) for anything that produces an iterable result. In the case of struct, that would be the length of the tuple returned

[issue12204] str.upper converts to title

2011-08-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Are you sure this should have been backported? Are there any apps that may be working now but won't be after the next point release? -- nosy: +rhettinger ___ Python tracker <http://bugs.python.org/is

[issue12204] str.upper converts to title

2011-08-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Right. I was looking at the other patches that went in in the last 24 hours. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12754] Add alternative random number generators

2011-08-15 Thread Raymond Hettinger
New submission from Raymond Hettinger : While keeping the MT generator as the default, add new alternative random number generators as drop-in replacements. Since MT was first introduced, PRNG technology has continued to advance. I'm opening this feature request to be a centralized pla

[issue12754] Add alternative random number generators

2011-08-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please focus your thoughts. -- ___ Python tracker <http://bugs.python.org/issue12754> ___ ___ Python-bugs-list mailin

[issue12793] allow filters in os.walk

2011-08-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue12793> ___ ___ Python-bugs-list mai

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Nick, I still want to work on this one. -- ___ Python tracker <http://bugs.python.org/issue11816> ___ ___ Python-bugs-list m

[issue12844] Support more than 255 arguments

2011-08-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: On python-dev a few month ago, Guido agreed with you that this is an arbitrary limitation that should be removed at some point. In particular, he worried that programmatically generated code would tend to run into this limitation. -- nosy

[issue12831] 2to3 and integer division

2011-08-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Running python with the -3 command line option will warn about Python 3.x incompatibilities that 2to3 cannot trivially fix. -- nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue12

[issue12195] Little documentation of annotations

2011-08-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: > some simple examples showing the syntax would go a long way. Sorry, there as just too many ways to go and we are intentionally not stating which way is preferred. I've seen many variants a:[Integral] for a list of integers, a:(int,str) for a

[issue12735] request full Unicode collation support in std python library

2011-08-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would like to be involved in the design of the API for a UCA module and its routines for loading Unicode Collation Element Tables (not making the mistake of using global state like the locale module does). -- nosy: +rhettinger

[issue12754] Add alternative random number generators

2011-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Douglas. Can you say what the cryptographic guarantees are for Chacha and Salsa (seeing a stream of randoms doesn't allow you to do deduce internal state, previous randoms, or future randoms)? Is it suitably strong for gaming (dealing

[issue12793] allow filters in os.walk

2011-08-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue12793> ___ ___ Python-bugs-list mailing list Unsubscri

[issue12909] Inconsistent exception usage in PyLong_As* C functions

2011-09-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 -- assignee: nadeem.vawda -> rhettinger ___ Python tracker <http://bugs.python.org/issue12909> ___ ___ Python-bugs-lis

[issue12941] add random.pop()

2011-09-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker <http://bugs.python.org/issue12941> ___ ___ Python-bugs-list mailing list Un

[issue12914] Add cram function to textwrap

2011-09-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue12914> ___ ___ Python-bugs-list mai

[issue12914] Add cram function to textwrap

2011-09-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: A few thoughts: * no one has ever made a request for this * different people may want to do it in different ways (the formulas are hard-wired). * the '...' connector is hardwired (perhaps ' ... ' would look less odd). * we should h

[issue12914] Add cram function to textwrap

2011-09-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected status: open -> closed ___ Python tracker <http://bugs.python.org/issue12914> ___ ___ Python-bugs-

[issue12917] Make visiblename and allmethods functions public

2011-09-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue12917> ___ ___ Python-bugs-list mai

[issue12916] Add inspect.splitdoc

2011-09-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue12916> ___ ___ Python-bugs-list mai

[issue7798] Make generally useful pydoc functions public

2011-09-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Resist the urge to fatten APIs until you're sure that: * they are needed * they are well developed (many internal utils fail this test) * they are worth the extra time it takes to learn what is in a module (adding rarely needed tools has the side-effe

[issue6081] str.format_from_mapping()

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: This can be done for Py3.2. It completes needed functionality for string formatting which is something we all want to take hold and is necessary for the 3.x series to succeed. -- versions: +Python 3.2 -Python 3.3

[issue1498363] Improve super() objects support for implicit method calls

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Am rejecting this feature request because of the concerns mentioned in the post on 4/3. The current requirement for explicit forwarding may be slightly inconvenient to type but it does add provide clarity that the method should be applied to the next-in

[issue1479611] speed up function calls

2010-08-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low ___ Python tracker <http://bugs.python.org/issue1479611> ___ ___ Pyth

[issue1173475] __slots__ for subclasses of variable length types

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM the space saving of value of __slots__ isn't typically needed in the context of variable length built-in types. Guido has long regarded __slots__ as a confusing hack. That should warn us away for extending its functionality. Unless there are

[issue6632] Include more fullwidth chars in the decimal codec

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: The moratorium only includes builtins and certainly does not apply to pure python modules (other implementations see those benefits immediately and it does not interfere with their getting caught-up). FWIW, I'm +1 on the basic idea. -- key

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixing-up str formatting idiosyncracies does not fall under the moratorium and is helpful in getting 3.x to be usable. That being said, I'm not convinced that this is actually a helpful feature. Not all objects supporting __getitem__ offer suppor

[issue1634034] Show "expected" token on syntax error

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 on the basic idea to make error messages more informative where possible, but am not sure how it would work in any but the more simple cases. How would work in cases where there are multiple possible "expected" tokens? >

[issue7094] Add alternate float formatting styles to new-style formatting.

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: I do not believe that this is covered by the moratorium. It's important for 3.x success to get new string formatting to its highest state of usability. Matching published standards and practices(i.e. C99) and improving ability to convert from old-

[issue3489] add rotate{left,right} methods to bytearray

2010-08-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> low stage: unit test needed -> ___ Python tracker <http://bugs.python.org/issue3489> ___ ___ Pyth

[issue1491804] Simple slice support for list.sort() and .reverse()

2010-08-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger priority: normal -> low versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/iss

[issue1654367] [PATCH] Debuggers need a way to change the locals of a frame

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think this falls under the language moratorium in that it requires core changes that make it more difficult for other implementations to catch-up. -- nosy: +rhettinger versions: +Python 3.3 -Python 3.2

[issue1158231] string.Template does not allow step-by-step replacements

2010-08-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> low ___ Python tracker <http://bugs.python.org/issue1158231> ___ ___ Python-bugs-list mailing list Un

[issue1730480] dict init/update accesses internal items of dict derivative

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Terry. This is just a fact of life when subclassing builtins. The objects are "open-for-extension, closed-for-modification". If you want more direct control use UserDict. -- nosy: +

[issue5416] str.replace does strange things when given a negative count

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, we should be cautious about documenting all behaviors. It is arguable that this was an implementation detail and not a guaranteed behavior. As soon as you document it, people will rely on the API and all other implementations will need to change

[issue1173475] __slots__ for subclasses of variable length types

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Declaring YAGNI and closing. Thanks Michael. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue1

[issue1158231] string.Template does not allow step-by-step replacements

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, the $name $$ $(name) convention is used many other contexts and I don't think there is usually support provided to not substitute $$. Even if there were, there is a usability issue where the final substitution needs to be applied differently t

[issue3482] re.split, re.sub and re.subn should support flags

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: This request seems reasonable. -- keywords: +easy nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue3

[issue8228] pprint, single/multiple items per line parameter

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Am rejecting this request because it complicates pprint and makes it harder to extend. Most use cases of pprint either don't need this or have output requirements more complicated than proposed (i.e. adding fixed width columns for tabular output

[issue9424] deprecate unittest.TestCase.assertEquals

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: These synonyms have been around a very long time and many test suites have one or the other or both. Nothing good can come from breaking those existing test suites. We don't need to harm our users just to accommodate a stylistic prefe

[issue9424] Disable unittest.TestCase.assertEquals and assert_ during a regrtest run

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: What a tremendous waste of time and inane exercise. AFAICT, this is a zero value add. Also, we try to avoid these sort of search-and-replace exercises because 1) they are not part of holistic refactoring (Guido's term for making changes while y

[issue5416] str.replace does strange things when given a negative count

2010-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you. Please do the reversion and the docstring fixup. -- ___ Python tracker <http://bugs.python.org/issue5

[issue9424] Disable unittest.TestCase.assertEquals and assert_ during a regrtest run

2010-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please don't pursue this further. It does not matter at all whether developers use assertEqual or assertEquals. That is no more than a stylistic preference. I do not want a commit hook, or for developer patches to be edited, or for there to

[issue1491804] Simple slice support for list.sort() and .reverse()

2010-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm rejecting this feature request on the grounds that the use cases are sufficiently uncommon to warrant adding API complexity. Currently, the notions of reverse() and sort() are comparatively simple. They correspond well to what I see in

[issue7734] discuss mark-as-invalid trick in heapq docs

2010-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: You're welcome :-) -- ___ Python tracker <http://bugs.python.org/issue7734> ___ ___ Python-bugs-list mailing list

[issue9612] setobject.c warnings under 64-bit Windows

2010-08-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Antoine, thanks for posting these. -- ___ Python tracker <http://bugs.python.org/issue9612> ___ ___ Python-bugs-list mailin

[issue9626] OderedDict.viewitems() does not preserve item order

2010-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: The effort to backport dictviews was incomplete. Fixed in r84148. Thanks for the report. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue9634] Add timeout parameter to Queue.join()

2010-08-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can you provide links to the other requests? This seems to be at odds with the whole premise of what Queue.join() is trying to do (wait until all worker threads have marked their tasks as done). -- assignee: -> rhettinger nosy: +rhettin

[issue9634] Add timeout parameter to Queue.join()

2010-08-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, if you want to do other tasks in a main thread and need to check on the status task completion in worker threads, you can already loop on: while q.unfinished_tasks: do_other_fun_stuff() q.join() # this shouldn't

[issue9634] Add timeout parameter to Queue.join()

2010-08-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: One of the provided links is duplicate (repost from StackOverflow). None of the links offer use cases which can be used to inform the design (i.e. is this the correct approach, should a timeout raise a RuntimeError like Condition.wait() does, should a

[issue9634] Add timeout parameter to Queue.join()

2010-08-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: I will leave this open for a while. It may be that it is a good idea and that some good use cases will emerge to inform a correct design. In the meantime, it would be great if you could post your subclass to the ASPN Cookbook to collect feedback

[issue9157] Allow inspection of used decorators on a function

2010-08-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Nick. If you want to develop your __DECORATORS__ idea further, it should be done off-list. ISTM, this is more of a shot in the dark than a concrete plan to solve known, real problems. -- resolution: -> rejected status: o

[issue8750] Many of MutableSet's methods assume that the other parameter is not self

2010-08-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: stutzbach -> rhettinger ___ Python tracker <http://bugs.python.org/issue8750> ___ ___ Python-bugs-list mai

[issue1733184] slice type is unhashable

2010-08-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: This needs to stay rejected. I'm unwilling to introduce special cases in the language just to support a peephole optimization. -- assignee: gvanrossum -> rhettinger ___ Python tracker <http://bugs

[issue2268] Fold slice constants

2010-08-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: The was a nice attempt at a peephole optimization. I'm rejecting it because: * too many other things need to be changed to support it * the measured win is somewhat small * we have a negative bias towards expanding the peephole optimizer * the AST may

[issue9213] range purports to implement the Sequence ABC, but is missing index and count methods

2010-08-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I support adding index() and count() to range objects. -- ___ Python tracker <http://bugs.python.org/issue9213> ___ ___ Pytho

[issue8750] Many of MutableSet's methods assume that the other parameter is not self

2010-08-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: The patch looks good. Feel free to apply. -- assignee: rhettinger -> stutzbach ___ Python tracker <http://bugs.python.org/iss

[issue9214] Most Set methods of KeysView and ItemsView do not work right

2010-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed in r84252, r84252, and r84254. -- priority: high -> normal resolution: accepted -> fixed status: open -> closed ___ Python tracker <http://bugs.python.o

<    1   2   3   4   5   6   7   8   9   10   >