[issue23397] PEP 431 implementation

2015-02-05 Thread Berker Peksag
New submission from Berker Peksag: I have an outdated and WIP patch to implement PEP 431 on GitHub: https://github.com/berkerpeksag/cpython Hopefully, I will complete my work before beta 1. -- assignee: berker.peksag components: Library (Lib) messages: 235423 nosy: berker.peksag

[issue23260] Update Windows installer

2015-02-05 Thread Steve Dower
Steve Dower added the comment: Got about as many reviews as I expected, but the builds have been going fine and I want this checked in before alpha, so in it goes :) -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker

[issue23260] Update Windows installer

2015-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset e7dbef447157 by Steve Dower in branch 'default': Issue #23260: Update Windows installer https://hg.python.org/cpython/rev/e7dbef447157 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue19884] Importing readline produces erroneous output

2015-02-05 Thread Vinson Lee
Changes by Vinson Lee v...@freedesktop.org: -- nosy: +vlee ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19884 ___ ___ Python-bugs-list mailing

[issue23392] Add tests for marshal FILE* API

2015-02-05 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/issue23392 ___

[issue20416] Marshal: performance regression with versions 3 and 4

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What are your thoughts Victor? -- title: Marshal: special case int and float, don't use references - Marshal: performance regression with versions 3 and 4 ___ Python tracker rep...@bugs.python.org

[issue22735] Fix various crashes exposed through mro() customization

2015-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6384c0cd3b2d by Benjamin Peterson in branch '3.4': fix many custom mro() edge cases and improve code quality (#22735) https://hg.python.org/cpython/rev/6384c0cd3b2d New changeset 75fd0bd89eef by Benjamin Peterson in branch 'default': merge 3.4

[issue2786] Names in traceback should have class names, if they're methods

2015-02-05 Thread Daniil Bondarev
Daniil Bondarev added the comment: As long as you think It fits into your issue, I'm ok with adding this patch to it (: it's different files, so no conflicts. Should I just add this patch to your ticket? -- ___ Python tracker rep...@bugs.python.org

[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually this is #23381, not #23881. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22765 ___ ___

[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 30e6c8caa5b9 by Serhiy Storchaka in branch '3.4': Issue #23881: Only use entry-values with gdb 7.4 in tests. https://hg.python.org/cpython/rev/30e6c8caa5b9 New changeset 981e108039f1 by Serhiy Storchaka in branch 'default': Issue #23881: Only use

[issue23392] Add tests for marshal FILE* API

2015-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset e55f955659bc by Serhiy Storchaka in branch '2.7': Issue #23392: Added tests for marshal C API that works with FILE*. https://hg.python.org/cpython/rev/e55f955659bc New changeset 05153851d1d6 by Serhiy Storchaka in branch '3.4': Issue #23392: Added

[issue23381] Python 2.7.9+ test_gdb regression on Ubuntu 10.04

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I provided similar patch in issue22765, but your patch looks more clear. Committed in 30e6c8caa5b9, 981e108039f1, and cee39701b280. Thanks for your patch Vinson. -- resolution: - fixed stage: - resolved status: open - closed versions: +Python 3.4,

[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22765 ___

[issue20289] Make cgi.FieldStorage a context manager

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20289 ___ ___

[issue18982] Add tests for CLI of the calendar module

2015-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 28a9da0842aa by Serhiy Storchaka in branch '3.4': Issue #18982: Add tests for CLI of the calendar module. https://hg.python.org/cpython/rev/28a9da0842aa New changeset e057da873673 by Serhiy Storchaka in branch 'default': Issue #18982: Add tests for

[issue22941] IPv4Interface arithmetic changes subnet mask

2015-02-05 Thread Søren Løvborg
Søren Løvborg added the comment: I take it the silence means that the patch is neither obviously good nor obviously bad. :-) It all comes down to a judgment call: is this a bug, or expected (but undocumented) behavior? In PEP 387 lingo: Is this a reasonable bug fix? Or is it a design

[issue23285] PEP 475 - EINTR handling

2015-02-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Would it be possible to push the latest patch right now It's ok for me. Please watch the buildbots :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23285

[issue18982] Add tests for CLI of the calendar module

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks for your review Berker. -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18982 ___

[issue18982] Add tests for CLI of the calendar module

2015-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset f2991b52157e by Serhiy Storchaka in branch '2.7': Issue #18982: Fixed newlines in calendar CLI tests on Windows. https://hg.python.org/cpython/rev/f2991b52157e -- ___ Python tracker

[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread STINNER Victor
STINNER Victor added the comment: 2015-02-05 18:46 GMT+01:00 Giampaolo Rodola' rep...@bugs.python.org: +def modify(self, fileobj, events, data=None): +... +if events != key.events: You should update the SelectorKey in the case, no? --

[issue17189] Add zip64 support to shutil

2015-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17189 ___

[issue17189] Add zip64 support to shutil

2015-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: -Use allowZip64=True by default resolution: - out of date superseder: - Use allowZip64=True by default ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17189

[issue23285] PEP 475 - EINTR handling

2015-02-05 Thread Charles-François Natali
Charles-François Natali added the comment: Antoine Pitrou added the comment: Would it be possible to push the latest patch right now It's ok for me. Please watch the buildbots :) Cool, I'll push on Friday evening or Saturday. -- ___ Python

[issue21717] Exclusive mode for ZipFile and TarFile

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21717 ___ ___ Python-bugs-list mailing list

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

2015-02-05 Thread eryksun
eryksun added the comment: The changeset from 03 Dec is in the Windows 2.7.9 release. Python 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import zipfile zipfile._SharedFile

[issue23285] PEP 475 - EINTR handling

2015-02-05 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to push the latest patch right now, and fix remaining issues (if there are known issues?), before Python 3.4 alpha 1? According to the PEP 478, the alpha 1 is scheduled for this sunday (February 8, 2015). --

[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread STINNER Victor
STINNER Victor added the comment: - drop SelectSelector._modify(): calling unregister() + register() is just fine I checked with strace: PollSelector.modify() doesn't require any syscall, so I propose to also drop it (to just call unregister + register). What do you think? I would like to

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: I just posted some review comments. I also realized that it posted some older comments that I hadn't submitted before... some of them may be obsolete, sorry :-/ -- ___ Python tracker rep...@bugs.python.org

[issue17753] test_zipfile: requires write access to test and email.test

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which skips tests if there are no write access to the installed location. -- keywords: +patch stage: needs patch - patch review versions: +Python 2.7 Added file: http://bugs.python.org/file38021/issue17753.patch

[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread STINNER Victor
STINNER Victor added the comment: Updated patch with a less surprising _modify() method: - the default implementation simply calls unregister() + register(), as before - drop SelectSelector._modify(): calling unregister() + register() is just fine -- Added file:

[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

2015-02-05 Thread Anthony Sottile
Changes by Anthony Sottile asott...@yelp.com: -- nosy: +asottile ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16806 ___ ___ Python-bugs-list

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Nick Coghlan
Nick Coghlan added the comment: I think in this case, the fact that it's easier to decompose an exception into the corresponding triple rather than vice-versa, together with the fact that other exception state manipulation APIs like exc_info() and __exit__() methods work with triples, means it

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: The solution of having two constructor classmethods actually seems nice and symmetric to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17911 ___

[issue23399] venv should create relative symlinks where possible

2015-02-05 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: There is a subtle behavior difference between virtualenv and pyvenv. When you create a venv with virtualenv, the symbolic links files venv/bin are relative, while they are absolute with pyvenv. This means that virtual environments created with virtualenv

[issue18982] Add tests for CLI of the calendar module

2015-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18982 ___

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-05 Thread Ben Hoyt
Ben Hoyt added the comment: Victor, I'd love to push forward with this (I doubt it's going to make alpha 1 on February 8, but hopefully alpha 2 on March 8). It seems pretty settled that we need to use the all-C version I've created, especially for Linux. Can you please review

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

2015-02-05 Thread STINNER Victor
STINNER Victor added the comment: Updated patch: - drop PollSelector._at_fork(): PollSelector is not shared with the parent process - _at_fork() of BaseEventLoop and SelectorEventLoop now do nothing by default: only _UnixSelectorEventLoop._at_fork() handle the fork, nothing is needed on

[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread STINNER Victor
STINNER Victor added the comment: A workaround is to check (once) that the command set print entry-values no and set print address off are supported. Gdb provides its version in the Python API as a string: gdb.VERSION (ex: 'Fedora 7.8.2-38.fc21'). --

[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which adds command 'set print entry-values no' only for gdb version = 7.4. -- Added file: http://bugs.python.org/file38020/test_gdb_entry_values.patch ___ Python tracker rep...@bugs.python.org

[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5b5a581d91c8 by Serhiy Storchaka in branch '3.4': Issue #22765: Fixed test_gdb failures. Supressed unexpected gdb output. https://hg.python.org/cpython/rev/5b5a581d91c8 Since this change, test_gdb fails on AMD64 OpenIndiana 3.x:

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Nick Coghlan
Nick Coghlan added the comment: +1 for having the base __init__ API be the exception triple and then a TracebackException.from_exception() class method as an alternate constructor. However, the redundancy between TracebackException.__init__() and TracebackException.from_exc_tuple() feels very

[issue23361] integer overflow in winapi_createprocess

2015-02-05 Thread paul
paul added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23361 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2015-02-05 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/issue22079

[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Yes, it appears so. I would suggest to come up with a patch which overrides modify() for all those selectors which can benefit from it (poll, epoll, kqueue) and refactor register() / unregister() (for select) in a separate issue / patch. Also, I suppose a

[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- stage: - needs patch type: - performance ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18932 ___

[issue23212] Update Windows and OS X installer copies of OpenSSL to 1.0.1l

2015-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b74c65758ca by Ned Deily in branch '2.7': Issue #23212: Update OS X installer build OpenSSL to 1.0.1l. https://hg.python.org/cpython/rev/7b74c65758ca New changeset 1ddf68f118c7 by Ned Deily in branch '3.4': Issue #23212: Update OS X installer

[issue23212] Update Windows and OS X installer copies of OpenSSL to 1.0.1l

2015-02-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23212 ___

[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I mean something like this (for epoll), as in avoiding to call unregister() / register() at all: diff -r 017e7391ab58 Lib/selectors.py --- a/Lib/selectors.py Wed Feb 04 08:37:02 2015 -0800 +++ b/Lib/selectors.py Thu Feb 05 18:42:26 2015 +0100 @@ -412,6

[issue23398] calendar.monthrange for February 2015

2015-02-05 Thread Sergiy
New submission from Sergiy: print(calendar.monthrange(2015,2)) (6, 28) February has only 5 weeks. -- components: Extension Modules messages: 235440 nosy: skarpovsky priority: normal severity: normal status: open title: calendar.monthrange for February 2015 type: behavior versions:

[issue23397] PEP 431 implementation

2015-02-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: That would be great! -- nosy: +barry, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23397 ___ ___

[issue23398] calendar.monthrange for February 2015

2015-02-05 Thread Geoffrey Spear
Geoffrey Spear added the comment: Returns weekday of first day of the month and number of days in month, for the specified year and month.. The 6 means February began on a Sunday, not that there are 6 weeks in the month. -- nosy: +geoffreyspear ___

[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

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Robert Collins
Robert Collins added the comment: I can certainly do that; I was aiming to make it fair I guess, given Antoines strong feelings on this matter. As long as I'm not piggy-in-the-middle, I don't have a care in this regard :) -- ___ Python tracker

[issue22735] Fix various crashes exposed through mro() customization

2015-02-05 Thread Eldar Abusalimov
Eldar Abusalimov added the comment: I feel a bit uneasy, but... any news on this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22735 ___ ___

[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

2015-02-05 Thread Anthony Sottile
Anthony Sottile added the comment: Any updates on this? I'm running into this as well (still a problem in 3.4) ```$ python3.4 Python 3.4.2 (default, Oct 11 2014, 17:59:27) [GCC 4.4.3] on linux Type help, copyright, credits or license for more information. import ast

[issue10631] ZipFile and current directory change

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in issue14099 for 3.5. Do you think that this solution should be backported Martin? An alternative solution of this issue would be to convert relative path to absolute path in ZipFile constructor. -- versions: -Python 3.2

[issue23306] Within zipfile, use of zlib.crc32 raises OverflowError at argument-parsing time on large strings

2015-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23306 ___ ___

[issue11152] pb in zipfile module

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks as this bug was fixed in issue1710703. -- nosy: +serhiy.storchaka resolution: - out of date stage: test needed - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue23381] Python 2.7.9+ test_gdb regression on Ubuntu 10.04

2015-02-05 Thread Vinson Lee
Changes by Vinson Lee v...@freedesktop.org: -- keywords: +patch Added file: http://bugs.python.org/file38022/0001-Issue-23881-Only-use-entry-values-with-gdb-7.4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23381