[issue19776] Provide expanduser() on Path objects

2013-12-05 Thread Claudiu.Popa
Claudiu.Popa added the comment: Thanks, Vajrasky! Here's the new version of the patch. -- Added file: http://bugs.python.org/file32980/pathlib1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19776

[issue17088] ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used

2013-12-05 Thread Wim
Wim added the comment: I have run into this a few times although it is only recently that I've convinced myself I understood the XML namespace spec well enough to know what the right behavior was. (I came to the same interpretation as silverbacknet.) I have attached a patch which I believe

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2013-12-05 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19891 ___

[issue19881] Fix bigmem pickle tests

2013-12-05 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti alexan...@peadrop.com: Added file: http://bugs.python.org/file32982/fix_bigmem_pickle_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19881 ___

[issue19343] Expose FreeBSD-specific APIs in resource module

2013-12-05 Thread Claudiu.Popa
Claudiu.Popa added the comment: Should this be tagged for Python 3.5? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19343 ___ ___

[issue19893] Python cApi memory problem. Py_Initialize memory leak

2013-12-05 Thread Roman
New submission from Roman: I wrote small test program using Python cApi, and found some memory issues while working on it. I checked it with valgrind. (test code and valgrind output appended) Maybe I'm doing something wrong, but most of the problem occurs durring Py_Initialize. I've checked

[issue19894] zipfile ignores deflate level settings in zipinfo object

2013-12-05 Thread Richard Milne
New submission from Richard Milne: Reading the pkzip APPNOTE and the documentation for the zipfile module, I was under the impression that I could set the DEFLATE compression level, on a per-file basis, for each file added to an archive, by setting the appropriate bits in zipinfo.flag_bits.

[issue7105] weak dict iterators are fragile because of unpredictable GC runs

2013-12-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 03fcc12282fc by Kristján Valur Jónsson in branch '2.7': Issue #7105: weak dict iterators are fragile because of unpredictable GC runs http://hg.python.org/cpython/rev/03fcc12282fc -- nosy: +python-dev

[issue19895] Cryptic error when subclassing multiprocessing classes

2013-12-05 Thread Antony Lee
New submission from Antony Lee: Classes defined in the multiprocessing module are in fact functions that call the internally defined class constructor with the ctx argument properly set; because of that, trying to subclass them yields a (very?) cryptic error message: import multiprocessing

[issue19896] Exposing q and Q to multiprocessing.sharedctypes

2013-12-05 Thread Antony Lee
New submission from Antony Lee: multiprocessing.sharedctypes was not updated after the q (c_longlong) and Q (c_ulonglong) typecodes were added to the array module (the docs claim that the typecode can be one character typecode of the kind used by the array module). The attached patch (just

[issue19896] Exposing q and Q to multiprocessing.sharedctypes

2013-12-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +sbt stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19896 ___ ___

[issue19895] Cryptic error when subclassing multiprocessing classes

2013-12-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19895 ___ ___ Python-bugs-list mailing list

[issue19893] Python cApi memory problem. Py_Initialize memory leak

2013-12-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo, skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19893 ___ ___ Python-bugs-list

[issue19893] Python cApi memory problem. Py_Initialize memory leak

2013-12-05 Thread Stefan Krah
Stefan Krah added the comment: Did you use --suppressions=Misc/valgrind-python.supp? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19893 ___

[issue19893] Python cApi memory problem. Py_Initialize memory leak

2013-12-05 Thread Stefan Krah
Stefan Krah added the comment: Also, you have zero definitely lost. possibly lost is not particularly informative in the context of running Python: These are almost certainly false positives. -- ___ Python tracker rep...@bugs.python.org

[issue19893] Python cApi memory problem. Py_Initialize memory leak

2013-12-05 Thread Roman
Roman added the comment: I didn't use --suppressions=Misc/valgrind-python.supp before . (But I've done it now). Nothing important has changed. I understand that possibly lost is not particularly informative. I'm rather worried about Invalid read of size 4 etc. Isn't it potentially dangerous?

[issue19893] Python cApi memory problem. Py_Initialize memory leak

2013-12-05 Thread Stefan Krah
Stefan Krah added the comment: Did you compile Python --with-valgrind? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19893 ___ ___

[issue19893] Python cApi memory problem. Py_Initialize memory leak

2013-12-05 Thread Roman
Roman added the comment: I've just done it. Python 3.3.3 --with-valgrind. I can't see the difference. Output appended. -- Added file: http://bugs.python.org/file32986/vgrind3.3.3vc.out ___ Python tracker rep...@bugs.python.org

[issue19884] Importing readline produces erroneous output

2013-12-05 Thread Bohuslav Slavek Kabrda
Bohuslav Slavek Kabrda added the comment: I can also reproduce it on Arch Linux. It seems that the bad characters are only output if env variable TERM starts with xterm. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19884

[issue19887] Path.resolve() ENAMETOOLONG on pathologic symlinks

2013-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Path.resolve() also fails when last link is absolute. mkdir testdir ln -s 0/0 testdir/1 ln -s 1/1 testdir/2 ln -s $(readlink -f testdir) testdir/0 Path('testdir/2').resolve() fails: Traceback (most recent call last): File stdin, line 1, in module File

[issue19894] zipfile ignores deflate level settings in zipinfo object

2013-12-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +alanmcintyre, serhiy.storchaka stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19894 ___

[issue19897] Use python as executable instead of python3 in Python 2 docs

2013-12-05 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- assignee: docs@python components: Documentation files: fix-example-site.diff keywords: patch nosy: berker.peksag, docs@python priority: normal severity: normal stage: patch review status: open title: Use python as executable instead

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2013-12-05 Thread R. David Murray
R. David Murray added the comment: This is presumably due to the new default enabling of readline, where it is trying to save the history file when it exits. -- nosy: +pitrou, r.david.murray ___ Python tracker rep...@bugs.python.org

[issue19687] Fixes for elementtree integer overflow

2013-12-05 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks. I left some comments in the code review tool -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19687 ___

[issue18235] _sysconfigdata.py wrong on AIX installations

2013-12-05 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Kindly ping. Do you prefer another report for the aix-absbuilddir patch as this one is already closed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18235

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2013-12-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, why did you close as invalid? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19891 ___ ___

[issue19893] Python cApi memory problem. Py_Initialize memory leak

2013-12-05 Thread STINNER Victor
STINNER Victor added the comment: You shoud configure --with-valgrind *and* use the suppression list, or disable pymalloc using configure. Victor -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19893

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2013-12-05 Thread R. David Murray
R. David Murray added the comment: Not sure who you meant by 'you', but just in case you meant me, Vajrasky was the one who closed it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19891

[issue19893] Python cApi memory problem. Py_Initialize memory leak

2013-12-05 Thread Roman
Roman added the comment: I compiled python --with-valgrind --without-pymalloc, and used valgrind with suppressions. valgrind --suppressions=../Misc/valgrind-python.supp --leak-check=full --show-reachable=no --show-possibly-lost=no --track-origins=yes --log-file=vgrindNext.out ./test

[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data

2013-12-05 Thread Brett Cannon
Brett Cannon added the comment: First, sorry about the noise in the patch. Second, the patch should contain just three pragma lines: #pragma clang diagnostic push #pragma clang diagnostic ignored -Wtautological-compare ... #pragma clang diagnostic pop Now I don't think that's

[issue19887] Path.resolve() ENAMETOOLONG on pathologic symlinks

2013-12-05 Thread Vajrasky Kok
Vajrasky Kok added the comment: Whoa, Serhiy, your patch won't fly on Windows Vista. For starter, the patch does not use target_is_directory=True option in os.symlink. It needs that option when creating symlink to the directory on Windows Vista. The maximum depth that pathlib can do on

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2013-12-05 Thread Vajrasky Kok
Vajrasky Kok added the comment: I closed it because I could not reproduce it anymore. I think, it worked again after $ ./python -S I will open it again if I can consistently reproduce this bug. -- ___ Python tracker rep...@bugs.python.org

[issue19898] No tests for dequereviter_new

2013-12-05 Thread Christian Heimes
New submission from Christian Heimes: According to LCOV the dequereviter_new is never called by any test. http://tiran.bitbucket.org/python-lcov/Modules/_collectionsmodule.c.gcov.html#1408 -- components: Library (Lib), Tests messages: 205305 nosy: christian.heimes, rhettinger priority:

[issue19899] No test for thread.interrupt_main()

2013-12-05 Thread Christian Heimes
New submission from Christian Heimes: Accoring to LCOV thread_PyThread_interrupt_main() is never called by any test. It's only referenced by some idle code. http://tiran.bitbucket.org/python-lcov/Modules/_threadmodule.c.gcov.html#1110 -- messages: 205306 nosy: christian.heimes

[issue19887] Path.resolve() ENAMETOOLONG on pathologic symlinks

2013-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Vajrasky. Here is a patch with fixed tests. -- Added file: http://bugs.python.org/file32990/pathlib_resolve_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19887

[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data

2013-12-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: On jeu., 2013-12-05 at 14:40 +, Brett Cannon wrote: I just don't want to perpetually be ignoring a single warning in the code. That leads to me ignoring any warnings that come during compilation, which is unfortunate as some warnings are actually useful

[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data

2013-12-05 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12837 ___ ___

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-12-05 Thread Christian Heimes
Christian Heimes added the comment: The new patch splits the test into three separate test cases. Guido, Python 3.3 doesn't have the necessary CA and server cert files. The files were added to 3.4 for some other tests. The patch tries to load the files from 3.4's test directory and falls back

[issue18235] _sysconfigdata.py wrong on AIX installations

2013-12-05 Thread David Edelsohn
David Edelsohn added the comment: Do you want me to open a new issue or do you want to open a new issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18235 ___

[issue19343] Expose FreeBSD-specific APIs in resource module

2013-12-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19343 ___ ___ Python-bugs-list mailing

[issue19887] Path.resolve() ENAMETOOLONG on pathologic symlinks

2013-12-05 Thread Vajrasky Kok
Vajrasky Kok added the comment: It works. Just a coding nitpick, instead of hardcoding os.symlink(src, dst, target_is_directory=True) in the test, you can use helper function in the test itself, self.dirlink. -- ___ Python tracker

[issue19296] Compiler warning when compiling dbm module

2013-12-05 Thread Christian Heimes
Christian Heimes added the comment: Here is a patch that strncpy() the filename to a char[]. -- nosy: +christian.heimes stage: - needs patch type: - compile error Added file: http://bugs.python.org/file32993/dbm_const_filename.patch ___ Python

[issue18840] Tutorial recommends pickle module without any warning of insecurity

2013-12-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a modified patch. The changes are: - pickle is deemphasized a lot more (it's moved into a seealso) - I replaced the terms encoding and decoding with serializing and deserializing (the former may be confusing for people who are already struggling to

[issue18235] _sysconfigdata.py wrong on AIX installations

2013-12-05 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Erm, question target was the python committers. And I'd create the new issue if they prefer. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18235

[issue19900] improve pickle intro

2013-12-05 Thread Antoine Pitrou
New submission from Antoine Pitrou: This patch improved the generalities at the top of the pickle module docs. -- assignee: docs@python components: Documentation files: pickintro.patch keywords: patch messages: 205316 nosy: alexandre.vassalotti, docs@python, ncoghlan, pitrou, tim.peters

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-12-05 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks Christian, this is almost right. I'm uploading a patch that covers all bases: - Works on Python 3.3 (TEST_HOME_DIR isn't defined there) - Works on older Python 3.4 versions (check_hostname may not exist) - Works on latest Python 3.4 version

[issue19901] tests fail due to unsupported SO_REUSEPORT when building Python 3.3.2-r2

2013-12-05 Thread Reuben Garrett
New submission from Reuben Garrett: When building Python 3.3.2-r2 from Gentoo's Portage tree [1], I encountered two failed tests which probably should not have been attempted on my OS (Gentoo 3.7.10): test_bind_port and test_find_unused_port both use the SO_REUSEPORT socket option which, to

[issue19901] tests fail due to unsupported SO_REUSEPORT when building Python 3.3.2-r2

2013-12-05 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19901 ___ ___ Python-bugs-list

[issue19296] Compiler warning when compiling dbm module

2013-12-05 Thread Christian Heimes
Christian Heimes added the comment: Yes, a cast to char* silences the error. But it could potentially brea contract because dbm_open() could alter the content of the string. I'm just paranoid (again). *g* -- ___ Python tracker

[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

2013-12-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 546cad3627e2 by Charles-François Natali in branch 'default': Issue #19850: asyncio: Set SA_RESTART when registering a signal handler to http://hg.python.org/cpython/rev/546cad3627e2 -- nosy: +python-dev

[issue16669] Docstrings for namedtuple

2013-12-05 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16669 ___ ___ Python-bugs-list

[issue18840] Tutorial recommends pickle module without any warning of insecurity

2013-12-05 Thread Nick Coghlan
Nick Coghlan added the comment: Antoine's latest draft looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18840 ___ ___

[issue19419] Use abc.ABC in the collections ABC

2013-12-05 Thread Éric Araujo
Éric Araujo added the comment: Agreed. -- nosy: +eric.araujo versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19419 ___

[issue19842] selectors: refactor BaseSelector implementation

2013-12-05 Thread Éric Araujo
Éric Araujo added the comment: Do I understand right that BaseSelector.register means something else entirely than ABC.register? Is it a concern? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19842

[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2013-12-05 Thread Zachary Ware
Zachary Ware added the comment: Here's a new patch based on Jeremy's that addresses all of my review comments and includes the update to Tcl/Tk 8.6.1. Also, I'll be attaching a patch to tix-8.4.3.x which allows it to be built in debug configuration and removes many warnings about unrecognized

[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2013-12-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- stage: - patch review type: - enhancement Added file: http://bugs.python.org/file32998/issue15968_tix.svndiff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15968

[issue19842] selectors: refactor BaseSelector implementation

2013-12-05 Thread Guido van Rossum
Guido van Rossum added the comment: Well, registration is a very common pattern and you can't really require everyone to use an inferior word just because ABCMeta uses it. There's a simple work-around: abc.ABCMeta.register(selectors.BaseSelector, C) --

[issue18840] Tutorial recommends pickle module without any warning of insecurity

2013-12-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: I like Antoine's tutjson.patch. commit it. Thanks for noticing this Donald! -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18840

[issue18840] Tutorial recommends pickle module without any warning of insecurity

2013-12-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18840 ___ ___

[issue18840] Tutorial recommends pickle module without any warning of insecurity

2013-12-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 90cf299dcf9b by Antoine Pitrou in branch '3.3': Issue #18840: Introduce the json module in the tutorial, and deemphasize the pickle module. http://hg.python.org/cpython/rev/90cf299dcf9b New changeset 1009b77f59fd by Antoine Pitrou in branch

[issue19296] Compiler warning when compiling dbm module

2013-12-05 Thread Larry Hastings
Larry Hastings added the comment: I suspect dbm_open predates the common availability of const. I assert we can safely assume it won't overwrite the contents of the buffer. (Barring spectacular memory corruption bugs that const would be powerless to prevent.) --

[issue18840] Tutorial recommends pickle module without any warning of insecurity

2013-12-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 481b30bfe496 by Antoine Pitrou in branch '2.7': Issue #18840: Introduce the json module in the tutorial, and deemphasize the pickle module. http://hg.python.org/cpython/rev/481b30bfe496 -- ___ Python

[issue18840] Tutorial recommends pickle module without any warning of insecurity

2013-12-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I've committed it. Thanks! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18840

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-05 Thread Guido van Rossum
Guido van Rossum added the comment: Here's a tentative change to selectors.py that ignores the OSError in various unregister() methods (but not in register()). -- keywords: +patch Added file: http://bugs.python.org/file32999/unregister.diff ___

[issue19902] logging docs don't document integer constants

2013-12-05 Thread follower
New submission from follower: The logging module documentation http://docs.python.org/3.4/library/logging.html makes reference to the levels DEBUG, INFO etc (e.g. in http://docs.python.org/3.4/library/logging.html#logging.Logger.setLevel) but AFAICT these constants are not documented in the

[issue19296] Compiler warning when compiling dbm module

2013-12-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3068ff3d9d1e by Christian Heimes in branch 'default': Issue #19296: Silence compiler warning in dbm_open. http://hg.python.org/cpython/rev/3068ff3d9d1e -- nosy: +python-dev ___ Python tracker

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-12-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1605eda93392 by Christian Heimes in branch 'default': Issue #19509: Finish implementation of check_hostname http://hg.python.org/cpython/rev/1605eda93392 -- ___ Python tracker rep...@bugs.python.org

[issue19296] Compiler warning when compiling dbm module

2013-12-05 Thread Christian Heimes
Christian Heimes added the comment: You are probably right. Let's not get too fancy with compiler warnings. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-12-05 Thread Guido van Rossum
Guido van Rossum added the comment: With the latest (revision 1605eda93392) I get four failures on OS X. Three are like this (in all three selector types -- kqueue, select, poll): == ERROR: test_create_ssl_connection

[issue18144] FD leak in urllib2

2013-12-05 Thread Alexander Boyd
Changes by Alexander Boyd a...@opengroove.org: -- nosy: +javawizard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18144 ___ ___ Python-bugs-list

[issue12955] urllib.request example should use with ... as:

2013-12-05 Thread Alexander Boyd
Changes by Alexander Boyd a...@opengroove.org: -- nosy: +javawizard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12955 ___ ___ Python-bugs-list

[issue19903] Idle: Use inspect.signature for calltips

2013-12-05 Thread Terry J. Reedy
New submission from Terry J. Reedy: Change idlelib.CallTips.get_argspec to use inspect.signature, new in 3.3, instead of inspect.getfullargspec and inspect.formatargspec. One thing it handles better is a namedtuple class, which has a C-coded __init__ inherited from object a Python-coded

[issue16669] Docstrings for namedtuple

2013-12-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think we can now agree that docstrings other than the class docstring (used as a fallback) are not relevant to signature detection. And Raymond gave namedtuple classes the docstring needed as a fallback. We are off-issue here, but

[issue16669] Docstrings for namedtuple

2013-12-05 Thread Guido van Rossum
Guido van Rossum added the comment: It was never about signature detection for me -- what gave you that idea? I simply want to have the option to put individual docstrings on the properties generated by namedtuple. -- ___ Python tracker

[issue19888] Three argument type() super call sets __name__ but not __qualname__

2013-12-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: Added file: http://bugs.python.org/file33000/qualname-19888.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19888 ___

[issue19888] Three argument type() super call sets __name__ but not __qualname__

2013-12-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I don't see the value in opening a new bug. Now that we understand what's going on, let's just repurpose and retitle this one. Run qualname-19888.py with Python 3.3 and you'll get: Obj.__name__ foo Obj.__qualname__ Obj repr(Obj) class '__main__.Obj' And

[issue19901] tests fail due to unsupported SO_REUSEPORT when building Python 3.3.2-r2

2013-12-05 Thread Dave Malcolm
Dave Malcolm added the comment: [FWIW, this looks similar to an issue I ran into on Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=913732 which was due to a mismatch between the kernel headers on the system vs the actually running kernel. I patched around it there with a downstream-only

[issue19904] Add 128-bit integer support to struct

2013-12-05 Thread Fil Mackay
New submission from Fil Mackay: I've been looking at adding 128-bit support to the struct module. Currently only named integer types are supported, which vary in implementation. These include: short int long long long Depending on the platform, none may translate to 128-bit integer (the case

[issue19905] Add 128-bit integer support to ctypes

2013-12-05 Thread Fil Mackay
New submission from Fil Mackay: This depends on struct issue #19904, and involves adding the following types: c_int128 c_uint128 c_int256 (maybe?) c_uint256 c_int512 (too much?) c_uint512 After resolution of the struct issue, this implementation will become clearer. -- components:

[issue19881] Fix bigmem pickle tests

2013-12-05 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti alexan...@peadrop.com: Added file: http://bugs.python.org/file33001/fix_bigmem_pickle_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19881 ___

[issue19881] Fix bigmem pickle tests

2013-12-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2612ea573ff7 by Alexandre Vassalotti in branch 'default': Issue #19881: Fix bad pickling of large bytes in cpickle. http://hg.python.org/cpython/rev/2612ea573ff7 -- nosy: +python-dev ___ Python tracker

[issue19881] Fix bigmem pickle tests

2013-12-05 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti alexan...@peadrop.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19881

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Could you provide a single patch with the implementation and the tests together? I will try to find some time this week to review this. -- assignee: docs@python - alexandre.vassalotti priority: normal - high stage: - patch review versions:

[issue19858] Make pickletools.optimize aware of the MEMOIZE opcode.

2013-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Ah, I almost forgot! I did implement the verification in pickletools.dis() for MEMOIZE: http://hg.python.org/cpython/file/2612ea573ff7/Lib/pickletools.py#l2420 -- ___ Python tracker rep...@bugs.python.org

[issue19900] improve pickle intro

2013-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Looks good to me! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19900 ___ ___ Python-bugs-list mailing

[issue19900] improve pickle intro

2013-12-05 Thread Nick Coghlan
Nick Coghlan added the comment: Looks good to me, although I'm not sure the specific note about the C accelerator is needed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19900 ___

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-12-05 Thread Guido van Rossum
Guido van Rossum added the comment: That's fixed by revision ec1e7fc9b5a4. Christian, can this bug be closed now, or is there more? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19509

[issue18015] python 2.7.5 fails to unpickle namedtuple pickled by 2.7.3 or 2.7.4

2013-12-05 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti alexan...@peadrop.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18015 ___

[issue10701] Error pickling objects with mutating __getstate__

2013-12-05 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti alexan...@peadrop.com: -- title: Error pickling a dict - Error pickling objects with mutating __getstate__ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10701

[issue18400] Minor increase to Pickle test coverage

2013-12-05 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti alexan...@peadrop.com: -- nosy: +alexandre.vassalotti stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18400 ___

[issue19703] Upate pydoc to PEP 451

2013-12-05 Thread Eric Snow
New submission from Eric Snow: Here are the functions that should (?) be updated: synopsis() importfile() safeimport()? HTMLDoc.docmodule() HTMLDoc.index() TextDoc.docmodule() ModuleScanner.run()? -- ___ Python tracker rep...@bugs.python.org

[issue19701] Update multiprocessing for PEP 451

2013-12-05 Thread Eric Snow
Eric Snow added the comment: In Lib/multiprocessing/spawn.py the following need changing: get_preparation_data() import_main_path() -- dependencies: +refactor pythonrun.c to make use of specs (__main__.__spec__) ___ Python tracker

[issue19703] Update pydoc to PEP 451

2013-12-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- title: Upate pydoc to PEP 451 - Update pydoc to PEP 451 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19703 ___

[issue19697] refactor pythonrun.c to make use of specs (__main__.__spec__)

2013-12-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- dependencies: +Update runpy for PEP 451 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19697 ___

[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

2013-12-05 Thread Charles-François Natali
Charles-François Natali added the comment: Thanks! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19850

[issue19698] Implement _imp.exec_builtin and exec_dynamic

2013-12-05 Thread Eric Snow
Eric Snow added the comment: Is the problem here that builtins (and extension modules) don't necessarily obey the rules to the letter? load_module() is supposed to use whatever is in sys.modules. [1] (BuiltinImporter.load_module() is essentially a synonym for _imp.init_builtin(), right?)

[issue19700] Update runpy for PEP 451

2013-12-05 Thread Eric Snow
Eric Snow added the comment: _run_module_as_main() is particularly related to #19697. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19700 ___