[issue22780] NotImplemented doc section needs update

2014-11-03 Thread Ethan Furman
Ethan Furman added the comment: How about: Special value which should be returned by the binary special methods (e.g. :meth:`__eq__`, :meth:`__lt__`, :meth:`__add__`, :meth:`__rsub__`, etc.) to indicate that the operation is not implemented with respect to the other type; may

[issue22780] NotImplemented doc section needs update

2014-11-04 Thread Ethan Furman
Ethan Furman added the comment: R. David Murray said: try the reflected operation is not our standard terminology. Parenthetical under discussion: --- (The interpreter will then try the reflected operation, or some other fallback, depending

[issue22790] some class attributes missing from dir(Class)

2014-11-04 Thread Ethan Furman
Ethan Furman added the comment: Why are __flags__, __basicsize__, __itemsize__, __dictoffset__, and __weakrefoffset__ interesting? I agree with Georg about the others. -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http

[issue22780] NotImplemented doc section needs update

2014-11-04 Thread Ethan Furman
Ethan Furman added the comment: Whew! If a different wording is better, I'm happy to change both places. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22780

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-11-05 Thread Ethan Furman
Ethan Furman added the comment: Raymond declared: Let's be clear. These are duck-typed methods. A type check is inappropriate. Anything with o.items() is allowed regardless of type. Wikipedia explains (http://en.wikipedia.org/wiki/Duck_typing

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-11-05 Thread Ethan Furman
Ethan Furman added the comment: I've posted to python-list and python-dev. I'll report back here the findings, if any. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22766

[issue22801] collections.Counter, when empty, doesn't raise an error with = when other is an incompatible type

2014-11-05 Thread Ethan Furman
New submission from Ethan Furman: test script: --- from collections import Counter empty_counter = Counter() counter = Counter('abbc') empty_counter = 5 counter = 5 --- results

[issue22801] collections.Counter, when empty, doesn't raise an error with = when other is an incompatible type

2014-11-05 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: Removed file: http://bugs.python.org/file37136/issue22778.stoneleaf.01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22801

[issue22801] collections.Counter, when empty, doesn't raise an error with = when other is an incompatible type

2014-11-05 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: Added file: http://bugs.python.org/file37137/issue22778.stoneleaf.01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22801

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-11-07 Thread Ethan Furman
Ethan Furman added the comment: No real-world use-cases have surfaced. Many thanks to everyone's explanations and examples. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22766

[issue9951] introduce bytes.hex method (also for bytearray and memoryview)

2014-11-07 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9951 ___ ___ Python-bugs-list

[issue17900] Recursive OrderedDict pickling

2014-11-07 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17900 ___ ___ Python-bugs-list

[issue22806] regrtest: add switch -c to run only modified tests

2014-11-07 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22806 ___ ___ Python-bugs-list

[issue22840] strpdate('20141110', '%Y%m%d%H%S') returns wrong date

2014-11-10 Thread Ethan Furman
Ethan Furman added the comment: What result did you expect? -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22840

[issue22840] strpdate('20141110', '%Y%m%d%H%S') returns wrong date

2014-11-10 Thread Ethan Furman
Ethan Furman added the comment: The documentation certainly appears to say that %m, for example, will consume two digits, but it could just as easily be only for output (i.e. strftime). I suspect this is simply a documentation issue as opposed to a bug, but let's see what the others think

[issue22867] document behavior of calling atexit.register() while atexit._run_exitfuncs is running

2014-11-13 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22867 ___ ___ Python-bugs-list

[issue22871] datetime documentation incomplete

2014-11-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +belopolsky, ethan.furman, lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22871

[issue22872] multiprocessing.Queue raises AssertionError

2014-11-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman, jnoller, sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22872

[issue22873] Re: SSLsocket.getpeercert - return ALL the fields of the certificate.

2014-11-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22873 ___ ___ Python-bugs-list

[issue22894] unittest.TestCase.subTest causes all subsequent tests to be skipped in failfast mode

2014-11-18 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22894 ___ ___ Python-bugs-list

[issue22867] document behavior of calling atexit.register() while atexit._run_exitfuncs is running

2014-11-18 Thread Ethan Furman
Ethan Furman added the comment: From a post by Ian Kelly (https://mail.python.org/pipermail/python-list/2014-November/681073.html) -- In fact it seems the behavior does differ between Python 2.7 and Python 3.4: $ cat testatexit.py

[issue22903] unittest creates non-picklable errors

2014-11-19 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22903 ___ ___ Python-bugs-list

[issue22920] Crash with itertools.chain.from_iterable

2014-11-22 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman resolution: - duplicate status: open - closed superseder: - deeply nested filter segfaults ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22920

[issue14010] deeply nested filter segfaults

2014-11-22 Thread Ethan Furman
Ethan Furman added the comment: From Terry Reedy in issue22920: -- Ian Kelly (python-list, version unspecified) got Segmentation fault (core dumped). With 2.7, 3.4.2, 3.5, I get same in interactive interpreter, the Windows python has stopped working box from

[issue22780] NotImplemented doc section needs update

2014-11-23 Thread Ethan Furman
Ethan Furman added the comment: Here's the latest patch. Thoughts? -- keywords: +patch stage: resolved - patch review Added file: http://bugs.python.org/file37254/issue22780.stoneleaf.01.patch ___ Python tracker rep...@bugs.python.org http

[issue20467] Confusing wording about __init__

2014-11-23 Thread Ethan Furman
Ethan Furman added the comment: Thoughts? -- keywords: +patch stage: - patch review versions: +Python 3.5 Added file: http://bugs.python.org/file37255/issue20467.stoneleaf.01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue22951] unexpected return from float.__repr__() for inf, -inf, nan

2014-11-26 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22951 ___ ___ Python-bugs-list

[issue22780] NotImplemented doc section needs update

2014-11-26 Thread Ethan Furman
Ethan Furman added the comment: Thank you, Berker. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22780

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-12-01 Thread Ethan Furman
Ethan Furman added the comment: Fix `self` now, add a warning and single minor cycle deprecation period for 'dict'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22609

[issue22986] Improved handling of __class__ assignment

2014-12-02 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22986 ___ ___ Python-bugs-list

[issue22988] No error when yielding from `finally`

2014-12-03 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman, giampaolo.rodola, gvanrossum, haypo, pitrou, yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22988

[issue22988] No error when yielding from `finally`

2014-12-03 Thread Ethan Furman
Ethan Furman added the comment: Here's the excerpt from the docs: Yield expressions are allowed in the try clause of a try ... finally construct. If the generator is not resumed before it is finalized (by reaching a zero reference count or by being garbage

[issue22997] Minor improvements to Functional API section of Enum documentation

2014-12-04 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22997 ___ ___ Python-bugs-list

[issue22997] Minor improvements to Functional API section of Enum documentation

2014-12-04 Thread Ethan Furman
Ethan Furman added the comment: Simeon, the patch looks decent; I'll review it more carefully later. If you are going to contribute non-trivial patches, you'll need to sign the CLA: https://www.python.org/psf/contrib/contrib-form/ . Thanks for helping

[issue23001] Accept mutable bytes-like objects

2014-12-06 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23001 ___ ___ Python-bugs-list

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2014-12-07 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9536 ___ ___ Python-bugs-list

[issue23006] Improve the doc and indexing of adict.__missing__.

2014-12-07 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23006 ___ ___ Python-bugs-list

[issue20895] Add bytes.empty_buffer and deprecate bytes(17) for the same purpose

2014-12-07 Thread Ethan Furman
Ethan Furman added the comment: Superseded by PEP467. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20895 ___ ___ Python

[issue23030] lru_cache manual get/put

2014-12-11 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23030 ___ ___ Python-bugs-list

[issue23030] lru_cache manual get/put

2014-12-11 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ncoghlan, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23030 ___ ___ Python-bugs

[issue15443] datetime module has no support for nanoseconds

2014-12-11 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15443 ___ ___ Python-bugs-list

[issue23030] lru_cache manual get/put

2014-12-11 Thread Ethan Furman
Ethan Furman added the comment: When reading this thread, keep in mind that most of it was taken up with rejecting exposing the underlying data structure, which is not what this patch does. https://mail.python.org/pipermail/python-ideas/2014-December/030230.html

[issue23073] Broken turtle example in Cmd documentation

2014-12-17 Thread Ethan Furman
Ethan Furman added the comment: Please do! Working examples are better than non-working ones. :) -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23073

[issue23073] Broken turtle example in Cmd documentation

2014-12-17 Thread Ethan Furman
Ethan Furman added the comment: While you're at it, could you also sign the contributors' license agreement? https://www.python.org/psf/contrib/contrib-form/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23073

[issue23073] Broken turtle example in Cmd documentation

2014-12-17 Thread Ethan Furman
Ethan Furman added the comment: No worries, thanks for following up. -- resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23073

[issue23084] nanosecond support

2014-12-18 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +belopolsky, ethan.furman, lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23084

[issue23084] nanosecond support

2014-12-18 Thread Ethan Furman
Ethan Furman added the comment: I haven't reviewed the patch yet, but I believe the intent is not for better sleep support, but simply to be able to create and record time data which contains nano-seconds. python-dev discussion here: https://mail.python.org/pipermail/python-dev/2014

[issue23084] nanosecond support

2014-12-18 Thread Ethan Furman
Ethan Furman added the comment: Just keep the word nanasecond in there somewhere, as that is the motivating purpose behind the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23084

[issue23084] Expose C struct timespec (nanosecond resolution) in time module

2014-12-18 Thread Ethan Furman
Ethan Furman added the comment: If I am reading data from an external device that has nanosecond resolution, how would I create such a time stamp in Python right now? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23084

[issue23123] Only READ support for Decimal in json

2014-12-28 Thread Ethan Furman
Ethan Furman added the comment: Enums (and other numeric subclasses), do not round-trip back to themselves. An IntEnum with the value of 4 is written as 4 and converted back from json as the integer 4 (not Settings.TabSpaces, or whatever). Given that json is multi-language format

[issue23123] Only READ support for Decimal in json

2014-12-29 Thread Ethan Furman
Ethan Furman added the comment: Raymond Hettinger added the comment: --- This bug report isn't a JSON spec issue; rather, it is about how the JSON module API can support (or inhibit) valid use cases. AFAICT, the patch to make the API better support enums

[issue23153] Clarify Boolean Clause Results

2015-01-02 Thread Ethan Furman
Ethan Furman added the comment: `or` does not return the last item evaluated -- it returns the first truthy item, or, if no truthy items, the last false item: -- 0 or {} {} -- 0 or 1 or {} 1 -- nosy: +ethan.furman ___ Python tracker rep

[issue23153] Clarify Boolean Clause Results

2015-01-03 Thread Ethan Furman
Ethan Furman added the comment: Apologies, my wording was poor -- the last item evaluated is the one returned, but all items may not be evaluated. As soon as the answer is known Python stops evaluating any remaining items. So in the example: -- string1, string2, string3 = '', 'Trondheim

[issue20284] patch to implement PEP 461 (%-interpolation for bytes)

2015-01-26 Thread Ethan Furman
Ethan Furman added the comment: it does seem a bit odd -- on the other hand, %s is an alias for %b, is deprecated for new 3-only code, and this might help serve as a reminder of that. Or we could fix it. ;) -- ___ Python tracker rep

[issue21076] Turn signal.SIG* constants into enums

2015-01-26 Thread Ethan Furman
Ethan Furman added the comment: I know nothing about this part of CPython, but wouldn't the correct solution be to not compare by identity? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21076

[issue2292] Missing *-unpacking generalizations

2015-02-02 Thread Ethan Furman
Ethan Furman added the comment: Thanks, Terry! I'll do that next time -- after I make sure and re-compile. :/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292

[issue2292] Missing *-unpacking generalizations

2015-02-02 Thread Ethan Furman
Ethan Furman added the comment: Argh -- I applied the patch, but didn't recompile. Doing that now... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292

[issue2292] Missing *-unpacking generalizations

2015-02-02 Thread Ethan Furman
Ethan Furman added the comment: Tried running tests, tests that failed with patch: test_ast test_collections test_extcall test_grammar test_importlib test_parser test_syntax test_unpack_ex test_zipfile Running Ubuntu 13.04 (GNU/Linux 3.8.0-22-generic x86_64

[issue20680] Pickle socket enums by names

2015-02-08 Thread Ethan Furman
Ethan Furman added the comment: An IntEnum is just a fancy int. You can add them, subtract them, multiply them, all that kind of thing. If you attempt to unpickle a 3.4 _PickleByNameIntEnum on a 3.3 system, what's going to happen? -- ___ Python

[issue21793] httplib client/server status refactor

2015-02-08 Thread Ethan Furman
Ethan Furman added the comment: Without having looked at the code I would guess the fix is as simple as changing a %s to a %d. Having said that, it would be nice if the name was also in the log -- something like: 127.0.0.1 - - [08/Feb/2015 05:05:28] GET / HTTP/1.1 200 (OK

[issue20680] Pickle socket enums by names

2015-02-07 Thread Ethan Furman
Ethan Furman added the comment: To make sure I understand correctly: On platform ABC the value 1 could mean SOCK_STREAM but on platform XYZ SOCK_STREAM is value 32? Assuming the need to pickle socket types is not new, then people have been doing it, possibly with painful workarounds

[issue2292] Missing *-unpacking generalizations

2015-02-03 Thread Ethan Furman
Ethan Furman added the comment: All test pass on my system. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___ ___ Python-bugs-list

[issue20284] patch to implement PEP 461 (%-interpolation for bytes)

2015-01-17 Thread Ethan Furman
Ethan Furman added the comment: Better patch, along the lines of my original thought: - byarrayformat converts bytearray to bytes - calls bytesformat (now _PyBytes_Format) to do the heavy lifting - uses PyByteArray_FromObject to tranform back to bytearray Now working on in-place format

[issue18986] Add a case-insensitive case-preserving dict

2015-01-14 Thread Ethan Furman
Ethan Furman added the comment: 3.5 is almost here; Raymond, care to make a ruling? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18986

[issue20680] Pickle socket enums by names

2015-01-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- assignee: - ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20680 ___ ___ Python-bugs

[issue20773] Improve docs for DynamicClassAttribute

2015-01-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- assignee: - ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20773 ___ ___ Python-bugs

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2015-01-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- assignee: - ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17576 ___ ___ Python-bugs

[issue17422] language reference should specify restrictions on class namespace

2015-01-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- keywords: +patch stage: needs patch - patch review versions: +Python 3.5 Added file: http://bugs.python.org/file37712/issue17422.stoneleaf.01.patch ___ Python tracker rep...@bugs.python.org http

[issue20467] Confusing wording about __init__

2015-01-14 Thread Ethan Furman
Ethan Furman added the comment: Changed 'no value may be returned' to 'no non-None value may be returned'. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue22997] Minor improvements to Functional API section of Enum documentation

2015-01-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22997 ___ ___ Python-bugs-list

[issue22997] Minor improvements to Functional API section of Enum documentation

2015-01-14 Thread Ethan Furman
Ethan Furman added the comment: Thank you, Simeon! -- stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22997

[issue22988] No error when yielding from `finally`

2015-01-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22988

[issue17546] Document the circumstances where the locals() dict get updated

2015-01-14 Thread Ethan Furman
Ethan Furman added the comment: Combined the second and last lines, discarded duplication. -- nosy: +ethan.furman versions: +Python 3.5 Added file: http://bugs.python.org/file37711/issue17546.stoneleaf.01.patch ___ Python tracker rep

[issue20284] patch to implement PEP 461 (%-interpolation for bytes)

2015-01-18 Thread Ethan Furman
Ethan Furman added the comment: Here's the patch -- the code for % and %= is in place for bytes and bytearray; I still need to get the doc patch done. I'll commit Wednesday-ish barring problems. Big question Background -- There is a Python C ABI function called

[issue20284] patch to implement PEP 461 (%-interpolation for bytes)

2015-01-18 Thread Ethan Furman
Ethan Furman added the comment: Thanks, Victor, for the feedback. I was able to figure out some more of the C side thanks to Georg, and I think the code is looking pretty good. There may be room for optimization by having the bytes code call the unicode implementation for more

[issue23455] file iterator deemed broken; can resume after StopIteration

2015-02-12 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23455 ___ ___ Python-bugs-list

[issue23486] Enum comparisons are 20x slower than comparing equivalent ints

2015-02-19 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23486 ___ ___ Python-bugs-list

[issue23486] Enum comparisons are 20x slower than comparing equivalent ints

2015-02-19 Thread Ethan Furman
Ethan Furman added the comment: Craig Holmquist wrote: - The consumer of that iteration processes each object with a switch-case-like comparison of the category, checking it sequentially against each instance of the Enum. So for every object you compare against every Enum

[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-02-20 Thread Ethan Furman
Ethan Furman added the comment: Oh, and the slowdown dropped from 20 to 3 (for non-DynamicClassAttributes -- which is probably more than 99% of them). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23486

[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-02-20 Thread Ethan Furman
Ethan Furman added the comment: Out of curiousity I tried: took two new lines, one modified line, and one comment. :) -- keywords: +patch Added file: http://bugs.python.org/file38182/issue23486.stoneleaf.01.patch ___ Python tracker rep

[issue23334] http.client refactor

2015-01-27 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23334 ___ ___ Python-bugs-list

[issue23342] run() - unified high-level interface for subprocess

2015-01-28 Thread Ethan Furman
Ethan Furman added the comment: I haven't checked the code, but does check_output and friends combine stdout and stderr when ouput=PIPE? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23342

[issue23342] run() - unified high-level interface for subprocess

2015-01-28 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23342 ___ ___ Python-bugs-list

[issue23354] Loading 2 GiLOC file which raises exception causes wrong traceback

2015-01-30 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23354 ___ ___ Python-bugs-list

[issue23292] Enum doc suggestion

2015-01-25 Thread Ethan Furman
Ethan Furman added the comment: Amusingly enough, I posted a question/answer to StackOverflow (http://stackoverflow.com/q/28130683/208880) and so far the only other respondent posted an answer with similar functionality to my own, and also recommended that such a method be added to the base

[issue23292] Enum doc suggestion

2015-01-23 Thread Ethan Furman
Ethan Furman added the comment: Currently the way to add an Enum's members to a module's namespace is: globals().update(MyEnumeration.__members__) but that seems quite ugly. Is there anywhere else that the user is required to use __xxx__ methods for common functionality? I think a new

[issue11145] '%o' % user-defined instance

2015-01-28 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11145 ___ ___ Python-bugs-list

[issue23185] add inf and nan to math module

2015-01-10 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +eric.smith, lemburg, rhettinger, stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23185

[issue20284] patch to implement PEP 461 (%-interpolation for bytes)

2015-01-12 Thread Ethan Furman
Ethan Furman added the comment: I've been digging into this over the last week and come to the realization that I won't be able to finish this patch. My apologies. Victor, can you take over? I would appreciate it. The tests I have written are only for the Python side. The patch I

[issue23210] clarify virtual sequence and range docs

2015-01-09 Thread Ethan Furman
New submission from Ethan Furman: The help() function explains range as being a virtual sequence, but that phrase cannot be found anywhere in the docs. Suggestion is to insert a phrase below: The advantage of the range type over a regular list or tuple is that a range object is a virtual

[issue23210] clarify virtual sequence and range docs

2015-01-09 Thread Ethan Furman
Ethan Furman added the comment: On 01/09/2015 09:39 AM, Guido van Rossum wrote: Please don't add this to the glossary and don't start using virtual (it is my favorite example of terminology gone wrong in C++ as well as in colloquial language). The terminology virtual sequence is only used

[issue23210] remove the word virtual from help(range)

2015-01-09 Thread Ethan Furman
Ethan Furman added the comment: Others have chimed in for removal of the word virtual, with the Best In Class comment going to Guido for: To me it is a poisonous buzzword that we're better without. It has virtually no semantics left. :-) -- assignee: docs@python - components

[issue23210] clarify virtual sequence and range docs

2015-01-09 Thread Ethan Furman
Ethan Furman added the comment: Update: per Guido, we need to drop the word virtual from the help() for range. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23210

[issue20284] patch to implement PEP 461 (%-interpolation for bytes)

2015-01-13 Thread Ethan Furman
Ethan Furman added the comment: Removed the new ABI functions, all new functions are static. Duplicated bytes code in bytearray. in-place interpolation returns new bytearray at this point. I'll work on getting in-place working, but otherwise I'll commit this in a week so we have something

[issue23383] Clean up bytes formatting

2015-02-10 Thread Ethan Furman
Ethan Furman added the comment: As long as it works I have no objections. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23383

[issue23467] Improve byte formatting compatibility between Py2 and Py3

2015-02-15 Thread Ethan Furman
Ethan Furman added the comment: Sometimes practicality wins; it's why we allow %s, and we should also allow %r. Both %s and %r need to be clearly documented as an aid to Py2/3 code bases, and not recommended for new code. Serhiy, do you have time to take

[issue23467] Improve byte formatting compatibility between Py2 and Py3

2015-02-15 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- assignee: - ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23467 ___ ___ Python-bugs

[issue23398] calendar.monthrange for February 2015

2015-02-05 Thread Ethan Furman
Ethan Furman added the comment: https://docs.python.org/3/library/calendar.html#calendar.monthrange -- nosy: +ethan.furman resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http

[issue23185] add inf and nan to math module

2015-01-07 Thread Ethan Furman
New submission from Ethan Furman: Proposal: math.nan = float('nan') math.inf = float('inf') Guido's approval: https://mail.python.org/pipermail/python-ideas/2015-January/030775.html Followup question: Do we add a math.neginf, or somesuch, for float('-inf')? Or just use -math.inf

[issue20284] patch to implement PEP 461 (%-interpolation for bytes)

2015-01-06 Thread Ethan Furman
Ethan Furman added the comment: Here is what I have so far: - complete tests for bytes and bytearry (bytearray currently commented out at line 71) - pep461 implemented for bytes This is basically an adaptation of the 2.7 code for str, adjusted appropriately. I was planning on having

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