[issue22943] bsddb: test_queue fails on Windows

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset df17d2b0878f by Serhiy Storchaka in branch '2.7': Issue #22943: bsddb tests are locale independend now. https://hg.python.org/cpython/rev/df17d2b0878f -- ___ Python tracker rep...@bugs.python.org

[issue22924] Use of deprecated cgi.escape

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset f5eb62bdcb1a by Serhiy Storchaka in branch '3.4': Issue #22924: Scripts gprof2html.py and highlight.py now use html.escape() https://hg.python.org/cpython/rev/f5eb62bdcb1a New changeset 8c1d1e861081 by Serhiy Storchaka in branch 'default': Issue

[issue22943] bsddb: test_queue fails on Windows

2014-12-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22943

[issue22924] Use of deprecated cgi.escape

2014-12-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22924 ___

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

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: So what to do wish UserDict? Should we break backward compatibility and add support for self and dict keywords as in other dict-like types? -- ___ Python tracker rep...@bugs.python.org

[issue22838] Convert re tests to unittest

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 21a7a92f4d0c by Serhiy Storchaka in branch '3.4': Issue #22838: All test_re tests now work with unittest test discovery. https://hg.python.org/cpython/rev/21a7a92f4d0c New changeset 258ee94b5bac by Serhiy Storchaka in branch 'default': Issue

[issue22838] Convert re tests to unittest

2014-12-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22838 ___

[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the status of your contributor agreement Martin? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21032 ___

[issue14099] ZipFile.open() should not reopen the underlying file

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What your thoughts Benjamin? Should this patch be applied to 2.7.10 (this is not critical for 2.7.9)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14099

[issue21998] asyncio: a new self-pipe should be created in the child process after fork

2014-12-01 Thread Martin Richard
Martin Richard added the comment: Guido, Currently in my program, I manually remove and then re-adds the reader to the loop in the parent process right after the fork(). I also considered a dirty monkey-patching of remove_reader() and remove_writer() which would act as the original versions

[issue22578] Add additional attributes to re.error

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9711c60e3049 by Serhiy Storchaka in branch 'default': Removed unused function linecol() (added in issue #22578 by mistake). https://hg.python.org/cpython/rev/9711c60e3049 -- ___ Python tracker

[issue21998] asyncio: a new self-pipe should be created in the child process after fork

2014-12-01 Thread Martin Richard
Martin Richard added the comment: I said something wrong in my previous comment: removing and re-adding the reader callback right after the fork() is obviously subject to a race condition. I'll go for the monkey patching. -- ___ Python tracker

[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Martin Panter
Martin Panter added the comment: Hi Serhiy, I submitted the form online on 22 Nov; just patiently waiting for it to come through now. In the last few minutes I noticed an asterisk has appeared against my name on the bug tracker, so hopefully it is all good now. --

[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 561d1d0de518 by Serhiy Storchaka in branch 'default': Issue #21032: Deprecated the use of re.LOCALE flag with str patterns or https://hg.python.org/cpython/rev/561d1d0de518 -- nosy: +python-dev ___

[issue22407] re.LOCALE is nonsensical for Unicode

2014-12-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22407

[issue22407] re.LOCALE is nonsensical for Unicode

2014-12-01 Thread Martin Panter
Martin Panter added the comment: Looks like revision 561d1d0de518 was to fix this issue, but the NEWS entry has the wrong reference number -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22407

[issue22971] test_pickle: Fatal Python error: Cannot recover from stack overflow. on FreeBSD buildbot

2014-12-01 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.x/builds/2434/steps/test/logs/stdio ... [127/390] test_trace [128/390] test_imghdr [129/390] test_queue [130/390] test_thread Fatal Python error: Cannot recover from stack overflow. Current

[issue22971] test_pickle: Fatal Python error: Cannot recover from stack overflow. on FreeBSD buildbot

2014-12-01 Thread STINNER Victor
STINNER Victor added the comment: Can it be related to the issue #22676? -- nosy: +pitrou, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22971 ___

[issue22407] re.LOCALE is nonsensical for Unicode

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed. Thank you Martin. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22407 ___ ___ Python-bugs-list

[issue22972] Timeout making ajax calls to SimpleHTTPServer from internet explorer

2014-12-01 Thread Andrew Burrows
New submission from Andrew Burrows: I have flask webservice running on windows, run up with `app.run()` which works fine from Chrome but when accessed with IE it sometimes fails with a timeout error. I've managed to reproduce the problem without flask which suggests there is (maybe?) some

[issue22676] _pickle's whichmodule() is slow

2014-12-01 Thread STINNER Victor
STINNER Victor added the comment: This issue may have introduce a regression, please see: Issue #22971: test_pickle: Fatal Python error: Cannot recover from stack overflow. on FreeBSD buildbot -- ___ Python tracker rep...@bugs.python.org

[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset f88c00391dd8 by Serhiy Storchaka in branch '2.7': Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails. https://hg.python.org/cpython/rev/f88c00391dd8 New changeset ba72da4883eb by Serhiy Storchaka in branch '3.4': Issue #21032.

[issue22407] re.LOCALE is nonsensical for Unicode

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset abc7fe393016 by Serhiy Storchaka in branch 'default': Fixed issue number in Misc/NEWS for issue #22407. https://hg.python.org/cpython/rev/abc7fe393016 -- nosy: +python-dev ___ Python tracker

[issue22973] hash() function gives the same result for -1 and for -2 argument (==-2)

2014-12-01 Thread ardabro
New submission from ardabro: built-in hash() function cannot be effectively used for integers due to weird behavior for -1 argument: hash(0) 0 hash(-1) -2# ! hash(-2) -2 hash(-3) -3 -- components: Library (Lib) messages: 231932 nosy: ardabro priority: normal

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-12-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: When tstate-overflowed is already set to 1 before entering PyErr_NormalizeException() to normalize an exception, the following cases may occur: 1) Normalizing a built-in exception = instantiation ok. 2) Normalizing a python exception that fails with a

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-12-01 Thread Xavier de Gaye
Changes by Xavier de Gaye xdeg...@gmail.com: Added file: http://bugs.python.org/file37333/mymodule.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22898 ___

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-12-01 Thread Xavier de Gaye
Changes by Xavier de Gaye xdeg...@gmail.com: Added file: http://bugs.python.org/file37334/setup.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22898 ___

[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Few notes about patches. Check patches for trailing spaces. And it would be more suitable if you provide single patch instead of a couple of patches. I have slightly changed the test, so it checks that the file is actually closed, not lost, The fix LGTM.

[issue22973] hash() function gives the same result for -1 and for -2 argument (==-2)

2014-12-01 Thread Eric V. Smith
Eric V. Smith added the comment: hash() is not defined to be unique, so you're always going to have collisions. The behavior of hash() for int that you're seeing is not a bug. There's some background here: http://stackoverflow.com/questions/10130454/why-do-1-and-2-both-hash-to-2-in-python

[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 ___

[issue7665] test_urllib2 and test_ntpath fail if path contains \

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7665 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22972] Timeout making ajax calls to SimpleHTTPServer from internet explorer

2014-12-01 Thread R. David Murray
R. David Murray added the comment: Why do you think this is a Python problem? Can you reproduce it without using javascript? Given that it works with other browsers (ie: python has no problem responding to the queries themselves) and javascript is doing the query, I think it would be much

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Synchronized with the tip again. -- Added file: http://bugs.python.org/file37335/sre_clinic_4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20148

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Matthias Klose
Matthias Klose added the comment: seen as well with 3.3 -- keywords: +3.3regression, 3.4regression nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22966 ___

[issue21998] asyncio: a new self-pipe should be created in the child process after fork

2014-12-01 Thread Guido van Rossum
Guido van Rossum added the comment: How about not doing anything in the parent but in the child, closing the selector and then the event loop? On Mon, Dec 1, 2014 at 1:29 AM, Martin Richard rep...@bugs.python.org wrote: Martin Richard added the comment: I said something wrong in my

[issue22935] Disabling SSLv3 support

2014-12-01 Thread Kurt Roeckx
Kurt Roeckx added the comment: I've just signed the contributor agreement -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22935 ___ ___

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: This is a complete implementation of negative limits for functions from traceback module (see this proposal - https://mail.python.org/pipermail/python-ideas/2014-August/029105.html). I also added some tests. -- components: Library (Lib) files:

[issue22619] Possible implementation of negative limit for traceback functions

2014-12-01 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619 ___ ___ Python-bugs-list

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Matthias Klose
Matthias Klose added the comment: proposed patch: diff -r 8dacb1a21793 Lib/importlib/_bootstrap.py --- a/Lib/importlib/_bootstrap.py Fri Nov 28 13:15:41 2014 +0100 +++ b/Lib/importlib/_bootstrap.py Mon Dec 01 17:05:00 2014 +0100 @@ -453,7 +453,7 @@ else: suffixes =

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread R. David Murray
R. David Murray added the comment: This looks like a duplicate of issue 22619. Were you under the impression you needed to open a new issue just in order to update your patch? You would be better off posting the patch to issue 22619 and closing this one, unless I'm missing something.

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'll take this one. I think it should be easy to add a test case, which I'll do. -- assignee: - barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22966

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22966 ___ ___ Python-bugs-list

[issue22975] Crosses initialization?

2014-12-01 Thread Elazar Gershuni
Elazar Gershuni added the comment: https://hg.python.org/cpython/file/62a058c76869/Objects/unicodeobject.c#l9884 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22975 ___

[issue22975] Crosses initialization?

2014-12-01 Thread Elazar Gershuni
Changes by Elazar Gershuni elaz...@gmail.com: -- hgrepos: -282 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22975 ___ ___ Python-bugs-list

[issue22975] Crosses initialization?

2014-12-01 Thread Elazar Gershuni
New submission from Elazar Gershuni: In Objects/unicodeobject.c, What happens in these lines? case PyUnicode_4BYTE_KIND: { \ Py_UCS4 * to_ = (Py_UCS4 *)((data)) + (start); \ for (; i_ (length); ++i_, ++to_) *to_ = (value); \ break; \ default:

[issue22975] Crosses initialization?

2014-12-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22975 ___

[issue22975] Crosses initialization?

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 15a1070a2c66 by Serhiy Storchaka in branch '3.4': Issue #22975: Close block at right place. https://hg.python.org/cpython/rev/15a1070a2c66 New changeset e1afae23dfcd by Serhiy Storchaka in branch 'default': Issue #22975: Close block at right place.

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Indeed, this is an exact duplicate, but I feel like that issue is an embarrassment: too many unnecessary actions, bad patches, and most of messages are totally useless. I wanted to start over for once, so I closed that issue. Pardon my initial ignorance.

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

2014-12-01 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: serhiy.storchaka - rhettinger priority: high - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22609 ___

[issue22975] Crosses initialization?

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is correct syntax in C. But I agree that for clarity it should be changed. However note that building Python with g++ is not supported. There are many other things about which C compiler is lenient but which cause syntax error in C++ compiler. And

[issue20335] bytes constructor accepts more than one argument even if the first one is not a string

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch with tests. -- stage: test needed - patch review Added file: http://bugs.python.org/file37337/issue20335.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20335

[issue21557] os.popen os.system lack shell-related security warnings

2014-12-01 Thread Chris Rebert
Chris Rebert added the comment: Here is a patch that adds the necessary warnings from issue 7950. Please review it when you get a chance. -- keywords: +patch Added file: http://bugs.python.org/file37338/fix-21557.patch ___ Python tracker

[issue22356] mention explicitly that stdlib assumes gmtime(0) epoch is 1970

2014-12-01 Thread Chris Rebert
Chris Rebert added the comment: Ping. This small patch has been waiting nearly 3 months for a review. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22356 ___

[issue22356] mention explicitly that stdlib assumes gmtime(0) epoch is 1970

2014-12-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22356 ___ ___ Python-bugs-list mailing list

[issue22356] mention explicitly that stdlib assumes gmtime(0) epoch is 1970

2014-12-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't like the proposed note. 1. It is not the job of the time module documentation to warn about many functions in the stdlib. What are these functions, BTW? 2. What is calendar time in POSIX encoding? This sounds like what time.asctime() returns.

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Not counting importlib.h, here's the diff I'm going to apply to 3.4. It passes all the existing tests and includes a new test for this behavior. -- Added file: http://bugs.python.org/file37339/22966.txt ___ Python

[issue22356] mention explicitly that stdlib assumes gmtime(0) epoch is 1970

2014-12-01 Thread Akira Li
Akira Li added the comment: Alexander Belopolsky added the comment: 1. It is not the job of the time module documentation to warn about many functions in the stdlib. What are these functions, BTW? The e-mail linked in the first message of this issue msg226539 enumerates some of the

[issue21557] os.popen os.system lack shell-related security warnings

2014-12-01 Thread Demian Brecht
Demian Brecht added the comment: Left a comment in Rietveld. -- nosy: +demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21557 ___ ___

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-12-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would like fixing NEWS to be the top infrastructure improvement project, as it is my biggest time waster, and certainly the most obnoxious. It definite makes working on Idle less pleasant. Since an empty 3.4.2a1 section was added to 3.4 NEWS, after 3.4.1

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-12-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 02/12/2014 00:11, Terry J. Reedy a écrit : Terry J. Reedy added the comment: I would like fixing NEWS to be the top infrastructure improvement project, as it is my biggest time waster, and certainly the most obnoxious. It definite makes working on

[issue18053] Add checks for Misc/NEWS in make patchcheck

2014-12-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: To me, the line about a NEWS entry is useless noise. I would prefer that it be removed entirely. If it is kept, then leave it alone and close this. -- ___ Python tracker rep...@bugs.python.org

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Demian Brecht
Demian Brecht added the comment: It's generally better to keep everything in one issue in order to preserve history and avoid confusion as you've now found :). I'd suggest closing this one and adding the patch to the initial report. Keeping history intact is important for reviewers.

[issue22356] mention explicitly that stdlib assumes gmtime(0) epoch is 1970

2014-12-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: In the context of Python library documentation, the word encoding strongly suggests that you are dealing with string/bytes. The situation may be different in C. If you want to refer to something that is defined by the POSIX standard you should use the

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 269bf37a57a1 by Barry Warsaw in branch '3.4': - Issue #22966: Fix __pycache__ pyc file name clobber when pyc_compile is https://hg.python.org/cpython/rev/269bf37a57a1 New changeset 3b3ba38d503a by Barry Warsaw in branch '3.4': - Issue #22966: Fix

[issue12987] Demo/scripts/newslist.py has non-free licensing terms

2014-12-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: The windows installer does not install the demo directory. *nix distributions do what they want. I think it too late to change the 2.7 repository. -- nosy: +terry.reedy resolution: - wont fix stage: - resolved status: open - closed

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22966 ___

[issue22676] _pickle's whichmodule() is slow

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3e3bec66409c by Antoine Pitrou in branch 'default': Fix uninitialized variable after #22676. https://hg.python.org/cpython/rev/3e3bec66409c -- ___ Python tracker rep...@bugs.python.org

[issue22969] Compile fails with --without-signal-module

2014-12-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22969 ___ ___ Python-bugs-list mailing

[issue22676] _pickle's whichmodule() is slow

2014-12-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22676 ___

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-12-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Good idea. I will send him a note. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18967 ___ ___

[issue12987] Demo/scripts/newslist.py has non-free licensing terms

2014-12-01 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +barry, doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12987 ___ ___ Python-bugs-list

[issue22356] mention explicitly that stdlib assumes gmtime(0) epoch is 1970

2014-12-01 Thread Akira Li
Akira Li added the comment: Alexander Belopolsky added the comment: In the context of Python library documentation, the word encoding strongly suggests that you are dealing with string/bytes. The situation may be different in C. If you want to refer to something that is defined by the

[issue22356] mention explicitly that stdlib assumes gmtime(0) epoch is 1970

2014-12-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It is possible to inspect all stdlib functions that use time module and determine for some of them whether they will break if gmtime(0) is not 1970 or right zoneinfo is used or any non-POSIX time encoding is used. But it is hard to maintain such a list

[issue22931] cookies with square brackets in value

2014-12-01 Thread Demian Brecht
Demian Brecht added the comment: Err, sorry, I entirely misunderstood the problem. The invalid characters are correct ([ = 5B, which indeed is illegal, I wasn't paying close enough attention to the hex values in the ABNF). It's the fact that the valid key/value pairs after the invalid one are

[issue22356] mention explicitly that stdlib assumes gmtime(0) epoch is 1970

2014-12-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I've provide the direct quote from *C* standard ... I understand that C standard uses the word encoding, but it does so for a reason that is completely unrelated to the choice of epoch. Encoding is how the bytes in memory should be interpreted as

[issue22931] cookies with square brackets in value

2014-12-01 Thread Demian Brecht
Demian Brecht added the comment: Now I've confused myself and my first impression was correct. For some reason, my brain was thinking %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E was the exclusion list for some reason (which is obviously horribly wrong). So my first observation was correct in

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: patch review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22966 ___ ___

[issue22931] cookies with square brackets in value

2014-12-01 Thread Demian Brecht
Demian Brecht added the comment: Attached patch to fix the issue as reported. Something interesting that came out of this though is that due to the regex expression, if there's an invalid character in one of the cookie-octets, the rest of the cookie is ignored. I would assume that it should

[issue21963] 2.7.8 backport of Issue1856 (avoid daemon thread problems at shutdown) breaks ceph

2014-12-01 Thread Dan Mick
Dan Mick added the comment: So, finally got to a Fedora21 beta to try this out today; the immediate problem, as identified by Joe Julian, is the shutdown() call in the __del__ method of Rados. Presumably something about object destructors is clashing with starting new threads; the hang

[issue1178] IDLE - add paste code functionality

2014-12-01 Thread irdb
Changes by irdb dalba.w...@gmail.com: -- nosy: +irdb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1178 ___ ___ Python-bugs-list mailing list

[issue3559] Pasted \n not same as typed \n

2014-12-01 Thread irdb
Changes by irdb dalba.w...@gmail.com: -- nosy: +irdb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3559 ___ ___ Python-bugs-list mailing list

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22974 ___ ___ Python-bugs-list

[issue22619] Possible implementation of negative limit for traceback functions

2014-12-01 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Moved the latest patch with implementation and tests from issue 22974 (http://bugs.python.org/issue22974). -- status: closed - open Added file: http://bugs.python.org/file37341/traceback_patch_2.diff ___ Python

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Removed file: http://bugs.python.org/file37336/traceback_patch_2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22974 ___

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- resolution: - duplicate stage: - resolved superseder: - Possible implementation of negative limit for traceback functions ___ Python tracker rep...@bugs.python.org

[issue1178] IDLE - add paste code functionality

2014-12-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: -ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1178 ___ ___ Python-bugs-list mailing list

[issue20335] bytes constructor accepts more than one argument even if the first one is not a string

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8badbd65840e by Serhiy Storchaka in branch '3.4': Issue #20335: bytes constructor now raises TypeError when encoding or errors https://hg.python.org/cpython/rev/8badbd65840e New changeset 8d6b27837c69 by Serhiy Storchaka in branch 'default': Issue

[issue20335] bytes constructor accepts more than one argument even if the first one is not a string

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your patch Renaud. -- resolution: - fixed stage: patch review - resolved status: open - closed versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20335

[issue22971] test_pickle: Fatal Python error: Cannot recover from stack overflow. on FreeBSD buildbot

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This failure is sporadic. After failing build 2434 there was four successful builds. May be other tests affect this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22971