[issue19828] test_site fails with -S flag

2013-12-02 Thread Vajrasky Kok
Vajrasky Kok added the comment: Yeah, but... $ ./python -S Lib/test == CPython 3.4.0b1 (default:373797990f57, Dec 2 2013, 16:46:35) [GCC 4.7.2] == Linux-3.5.0-37-generic-x86_64-with-debian-wheezy-sid little-endian == hash algorithm: siphash24 64bit == /home/ethan/Documents/code/python/cpyt

[issue19828] test_site fails with -S flag

2013-12-02 Thread Vajrasky Kok
Vajrasky Kok added the comment: Sorry to forget to add the relevant detail: $ ./python -S Lib/test [284/387] test_shutil [285/387] test_signal [286/387] test_site test test_site failed -- multiple errors occurred; run in verbose mode for details [287/387/1] test_slice [288/387/1] test_smtp

[issue19859] functools.lru_cache keeps objects alive forever

2013-12-02 Thread Radomir Dopieralski
New submission from Radomir Dopieralski: As most naïve "memoized" decorator implementations, lru_cache keeps references to all the values of arguments of the decorated function in the cache. That means, that if we call such a decorated function with an object as a parameter, that object will b

[issue19834] Unpickling exceptions pickled by Python 2

2013-12-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7d3297f127ae by Walter Doerwald in branch '3.3': Fix issue #19834: Support unpickling of exceptions pickled by Python 2. http://hg.python.org/cpython/rev/7d3297f127ae New changeset 9685c9d1d67f by Walter Doerwald in branch 'default': Fix #19834: mer

[issue19834] Unpickling exceptions pickled by Python 2

2013-12-02 Thread Walter Dörwald
Changes by Walter Dörwald : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

2013-12-02 Thread STINNER Victor
STINNER Victor added the comment: asyncio_sa_restart.diff looks good to me, it cannot make the situation worse. signal.siginterrupt() looks to be available on all non-Windows buildbots and working correctly: test_signal tests it and the test pass. -- nosy: +haypo _

[issue16404] Uses of PyLong_FromLong that don't check for errors

2013-12-02 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19847] Setting the default filesystem-encoding

2013-12-02 Thread STINNER Victor
STINNER Victor added the comment: "sys.getfilesystemencoding() says for Unix: On Unix, the encoding is the user’s preference according to the result of nl_langinfo(CODESET), or 'utf-8' if nl_langinfo(CODESET) failed." Oh, this documentation is wrong since at least Python 3.2: if nl_langinfo(C

[issue19728] PEP 453: enable pip by default in the Windows binary installers

2013-12-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset b231e0c3fd26 by Victor Stinner in branch '3.3': Issue #19728: Fix sys.getfilesystemencoding() documentation http://hg.python.org/cpython/rev/b231e0c3fd26 New changeset e3c48bddf621 by Victor Stinner in branch 'default': (Merge 3.3) Issue #19728: Fix

[issue19847] Setting the default filesystem-encoding

2013-12-02 Thread STINNER Victor
STINNER Victor added the comment: I fixed the documentation, thanks for your report! -- assignee: -> docs@python components: +Documentation -IO nosy: +docs@python resolution: -> fixed status: open -> closed versions: +Python 3.4 ___ Python tracker

[issue19847] Setting the default filesystem-encoding

2013-12-02 Thread STINNER Victor
STINNER Victor added the comment: Code in Python 3.4. initfsencoding(): http://hg.python.org/cpython/file/e3c48bddf621/Python/pythonrun.c#l965 get_locale_encoding(): http://hg.python.org/cpython/file/e3c48bddf621/Python/pythonrun.c#l250 -- ___ Pytho

[issue19847] Setting the default filesystem-encoding

2013-12-02 Thread Sworddragon
Sworddragon added the comment: It is nice that you could fixed the documentation due to this report but this was just a sideeffect - so closing this report and moving it to "Documentation" was maybe wrong. -- ___ Python tracker

[issue19833] asyncio: patches to document EventLoop and add more examples

2013-12-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b4d046dbf56 by Victor Stinner in branch 'default': Issue #19833: asyncio doc: add class name to methods http://hg.python.org/cpython/rev/7b4d046dbf56 New changeset b25458022965 by Victor Stinner in branch 'default': Issue #19833: add 2 examples to

[issue19860] asyncio: Add context manager to BaseEventLoop?

2013-12-02 Thread STINNER Victor
New submission from STINNER Victor: The BaseSelectorEventLoop class (inherited by UnixSelectorEventLoop) creates a socketpair in its constructor. So if you don't call close(), the socketpair may stay alive. It would be convinient to support the context manager to be able to write: with asynci

[issue19861] Update What's New for Python 3.4

2013-12-02 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Many features and changes were not mentioned in What's New (especially added early). Here is main features which possible worth to mention: abc: The ABC class, the get_cache_token function. aifc: Any bytes-like objects are now accepted. audioop: Any by

[issue19728] PEP 453: enable pip by default in the Windows binary installers

2013-12-02 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg204999 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue19847] Setting the default filesystem-encoding

2013-12-02 Thread STINNER Victor
STINNER Victor added the comment: (Oops, I specified the wrong issue number in my commits.) New changeset b231e0c3fd26 by Victor Stinner in branch '3.3': Issue #19728: Fix sys.getfilesystemencoding() documentation http://hg.python.org/cpython/rev/b231e0c3fd26 New changeset e3c48bddf621 by Victo

[issue18073] pickle.Unpickler may read too many bytes, causing hangs with blocking input stream

2013-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If issue17897 fixes this bug (I'm not absolutely sure), perhaps it should be backported to 3.3. -- ___ Python tracker ___ ___

[issue19847] Setting the default filesystem-encoding

2013-12-02 Thread STINNER Victor
STINNER Victor added the comment: "It is nice that you could fixed the documentation due to this report but this was just a sideeffect - so closing this report and moving it to "Documentation" was maybe wrong." Oh sorry, I read the issue too quickly, I stopped at the first sentence. I reopen

[issue17305] IDNA2008 encoding missing

2013-12-02 Thread era
era added the comment: At least the following existing domain names are rejected by the current implementation, apparently because they are not IDNA2003-compatible. XNNNC9BXA1KSA.COM XN--14-CUD4D3A.COM XN--YGB4AR5HPA.COM XN---14-00E9E9A.COM XN--MGB2DAM4BK.COM XN--6-ZHCPPA1B7A.COM XN--3-YMCC

[issue19814] Document prefix matching behavior of argparse, particularly for parse_known_args

2013-12-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset c457bd1935f9 by Eli Bendersky in branch '3.3': Issue #19814: Clarify argparse's docs w.r.t prefix matching http://hg.python.org/cpython/rev/c457bd1935f9 New changeset 46976bd44bfc by Eli Bendersky in branch 'default': Issue #19814: Clarify argparse'

[issue19814] Document prefix matching behavior of argparse, particularly for parse_known_args

2013-12-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 181ced5bf0be by Eli Bendersky in branch '2.7': Issue #19814: Clarify argparse's docs w.r.t prefix matching http://hg.python.org/cpython/rev/181ced5bf0be -- ___ Python tracker

[issue19814] Document prefix matching behavior of argparse, particularly for parse_known_args

2013-12-02 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Py

[issue14455] plistlib unable to read json and binary plist files

2013-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: These changes are worth to mention in What's News. "versionchanged" below writePlistToBytes() is wrong. Perhaps below dump() too. "versionadded" is needed for new functions: dump(), dumps(), load(), loads(). -- __

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

2013-12-02 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Yes, the old memory argument. But is it valid? Is there a conceivable application where a dict of weak references would be storing a large chunk of the application memory? Remember, all of the data must be referred to from elsewhere, or else, the weak r

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

2013-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Anyway, it's not for me to decide. We have currently three options: > a) my first patch, which is a duplication of the 3.x work but is > non-trivial and could bring stability issues > b) my second patch, which will increase memory use, but to no more > than pr

[issue19781] No SSL match_hostname() in ftplib

2013-12-02 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue19862] Unclear xpath caching for custom namespaces

2013-12-02 Thread Валерий
New submission from Валерий: Consider repeated executions of a code like this: >tree = xml.etree.ElementTree.parse( full_name ) # many different files >report_type = tree.getroot().attrib['Name'] # something changing >tree.getroot().find( ".//t:Detail", {'t' : report_type} ) There is a _cache va

[issue19707] Check if unittest.mock needs updating for PEP 451

2013-12-02 Thread Brett Cannon
Brett Cannon added the comment: Based on what Michael said there is nothing to update. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ __

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2013-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps the versionchanged tag for format() is more suitable than versionadded. -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue14455] plistlib unable to read json and binary plist files

2013-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Currently negative integers are not supported in binary format. Here is a patch which adds support for negative integers and large integers up to 128 bit. -- Added file: http://bugs.python.org/file32937/plistlib_int.patch

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

2013-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: I'm with Antoine. Have we heard of any problems with the 3.x version of the patch? How different is it? -- ___ Python tracker ___ __

[issue14787] pkgutil.walk_packages returns extra modules

2013-12-02 Thread Martijn Faassen
Martijn Faassen added the comment: I just ran into this bug myself with namespace packages (in Python 2.7). When you have multiple packages (ns.a, ns.b) under a namespace package (ns), and constrain the paths in walk_packages so it should only pick up ns.a, it will pick up ns.b as well. Any h

[issue19860] asyncio: Add context manager to BaseEventLoop?

2013-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: Isn't this mostly political correctness? The hello world programs really don't need to worry about closing the socket pair. Most real-world programs don't either -- the recommended pattern is just to loop until the end of the world, and then exit the program

[issue19860] asyncio: Add context manager to BaseEventLoop?

2013-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: There's another problem: get_event_loop() returns a persistent object, not a new instance every time. So you can't write: with get_event_loop() as loop: # ... twice in a row if the loop is closed at the end of the "with" block. -- ___

[issue11410] Use GCC visibility attrs in PyAPI_*

2013-12-02 Thread Tom Tromey
Changes by Tom Tromey : -- nosy: +tromey ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue19834] Unpickling exceptions pickled by Python 2

2013-12-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset a270370ec487 by Walter Doerwald in branch '3.3': Add NEWS entry for issue #19834. http://hg.python.org/cpython/rev/a270370ec487 New changeset ef6ad7172d50 by Walter Doerwald in branch 'default': Add NEWS entry for issue #19834: merge with 3.3. http:

[issue19837] Wire protocol encoding for the JSON module

2013-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Changing return type based on argument *values* is still a bad idea in > general. However load() and loads() do this. ;) > It also makes it hard to plug the API in to generic code that is designed > to work with any dump/load based serialisation protocol.

[issue19860] asyncio: Add context manager to BaseEventLoop?

2013-12-02 Thread STINNER Victor
STINNER Victor added the comment: "There's another problem: get_event_loop() returns a persistent object, not a new instance every time." Oh, I didn't know that, but it makes sense. It should be documented. It is possible to create a second event loop, only used to execute a short one-shot ta

[issue14455] plistlib unable to read json and binary plist files

2013-12-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: oops... thanks for the patch. I'll review later this week, in particular the 128 bit integer support because I don't know if Apple's libraries support those. -- ___ Python tracker

[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

2013-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: I have a question. Is there actually any need for this with asyncio? The selector already handles EINTR, and all the I/O done by asyncio's transports already handles it too (there are "except (BlockingIOError, InterruptedError)" clauses all over the place).

[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

2013-12-02 Thread STINNER Victor
STINNER Victor added the comment: > I have a question. Is there actually any need for this with asyncio? I believe that the libc and the kernel knows better than Python how to restart a syscalls, than Python. I expect more reliable timeout, or the kernel may avoid context switches (don't wake up

[issue19833] asyncio: patches to document EventLoop and add more examples

2013-12-02 Thread STINNER Victor
STINNER Victor added the comment: I documented many new classes. I read the source code and copied classes to extract docstrings. Instead of BaseXXX classes, it's maybe better to document AbstractXXX classes. -- ___ Python tracker

[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

2013-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: That's just rhetoric -- I am beginning to believe that nobody has any data. Here's some opposite rhetoric. If it ain't broke, don't fix it. Plus, if it's so much better, why isn't it the default? If you say "for backward compatibility" I will say "exactl

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

2013-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I afraid this is not a feature, but a bug. pickletools.optimize() can produce invalid pickled data when *PUT and MEMOIZE opcodes are used. >>> import pickle, pickletools >>> p = b'\x80\x04]\x94(\x8c\x04spamq\x01\x8c\x03ham\x94h\x02e.' >>> pickle.loads(p) ['sp

[issue14455] plistlib unable to read json and binary plist files

2013-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: According to [1] Apple's libraries write any signed 128-bit integers, but read only integers from -2**63 to 2**64-1 (e.g. signed and unsigned 64-bit integers). [1] http://opensource.apple.com/source/CF/CF-550/CFBinaryPList.c -- _

[issue19860] asyncio: Add context manager to BaseEventLoop?

2013-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: To create a new event loop, use set_event_loop(new_event_loop()). You have to do that if you want an event loop in a thread; it's also handy in unit tests. (However asyncio's own unit tests only call new_event_loop() and pass it around explicitly with loop

[issue14455] plistlib unable to read json and binary plist files

2013-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yet one nitpick. Perhaps _write_object() should raise TypeError instead of InvalidFileException. -- ___ Python tracker ___ __

[issue17305] IDNA2008 encoding missing

2013-12-02 Thread Marten Lehmann
Marten Lehmann added the comment: There's nice library called idna on PyPI doing idna2008: https://pypi.python.org/pypi/idna/0.1 I'd however prefer this standard encoding to be part of standard python. -- ___ Python tracker

[issue19803] memoryview complain ctypes byte array are not native single character

2013-12-02 Thread HCT
HCT added the comment: I wonder why "_pack_ = 1" has significant impact on the behaviour of memoryview if memoryview is not a sub class of ctypes structure. unless memoryview was specifically coded to understand ctypes structure, I don't see why "_pack_ = 1" should make any difference. --

[issue19803] memoryview complain ctypes byte array are not native single character

2013-12-02 Thread Stefan Krah
Stefan Krah added the comment: Memoryview sends a *request* to ctypes to fill in a Py_buffer struct according to the buffer *protocol*. IOW, memoryview knows nothing about ctypes. For some reason ctypes fills in 'B' as the format if _pack_ is set. I do not know if that is intended, it could be

[issue19862] Unclear xpath caching for custom namespaces

2013-12-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +eli.bendersky, scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue19863] Missing function attributes in 2.7 docs.

2013-12-02 Thread Mark Dickinson
New submission from Mark Dickinson: The attached patch fills in some missing function attributes from the Python 2.7 datamodel docs. -- assignee: docs@python components: Documentation files: missing_function_attributes.patch keywords: patch messages: 205038 nosy: docs@python, mark.dicki

[issue19859] functools.lru_cache keeps objects alive forever

2013-12-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue19864] multiprocessing Proxy docs need locking semantics explained

2013-12-02 Thread Max Polk
New submission from Max Polk: In the docs (both Python 2 and 3) for the multiprocessing module, the Proxy section needs to be explicit about the fact that is does NOT create locks around access to shared objects. Why? Because on the same page, we read about multiprocessing.managers.SyncManag

[issue19863] Missing function attributes in 2.7 docs.

2013-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps aliases should be added in same cell as original names? +---+---+---+ | :attr:`func_code`,| The code object representing | Writable | | :attr:`__code__` | the compi

[issue19782] No SSL match_hostname() in imaplib

2013-12-02 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue19782] No SSL match_hostname() in imaplib

2013-12-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 23001d915b39 by Christian Heimes in branch 'default': Issue #19782: imaplib now supports SSLContext.check_hostname and server name http://hg.python.org/cpython/rev/23001d915b39 -- nosy: +python-dev ___ Py

[issue19784] No SSL match_hostname() in poplib

2013-12-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1ce752754280 by Christian Heimes in branch 'default': Issue #19784: poplib now supports SSLContext.check_hostname and server name http://hg.python.org/cpython/rev/1ce752754280 -- nosy: +python-dev ___ Pyt

[issue19784] No SSL match_hostname() in poplib

2013-12-02 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue19783] No SSL match_hostname() in nntplib

2013-12-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 42a6919ee7e5 by Christian Heimes in branch 'default': Issue #19783: nntplib now supports SSLContext.check_hostname and server name http://hg.python.org/cpython/rev/42a6919ee7e5 -- nosy: +python-dev ___ Py

[issue19783] No SSL match_hostname() in nntplib

2013-12-02 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue19863] Missing function attributes in 2.7 docs.

2013-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: > Perhaps aliases should be added in same cell as original names? That sounds good to me. Perhaps with a single explanatory line below the table to explain that the double-underscore variants were introduced for compatibility with Python 3. -- _

[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2013-12-02 Thread Gergely Erdélyi
New submission from Gergely Erdélyi: create_unicode_buffer() fails on Windows if the initializer string contains unicode code points outside of the Basic Multilingual Plane and an explicit length is not specified. The problem appears to be rooted in the fact that, since PEP 393, len() returns

[issue19863] Missing function attributes in 2.7 docs.

2013-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: Updated patch. -- Added file: http://bugs.python.org/file32939/missing_function_attributes_v2.patch ___ Python tracker ___

[issue19785] No SSL match_hostname() in smtplib

2013-12-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0079358e791 by Christian Heimes in branch 'default': Issue #19785: smtplib now supports SSLContext.check_hostname and server name http://hg.python.org/cpython/rev/c0079358e791 -- nosy: +python-dev ___ Py

[issue19785] No SSL match_hostname() in smtplib

2013-12-02 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue19860] asyncio: Add context manager to BaseEventLoop?

2013-12-02 Thread Larry Hastings
Larry Hastings added the comment: Since this is a new library in 3.4, I can be more flexible. And since you're talking about adding a new feature (rather than changing or removing an existing feature), this has a vanishingly small chance of screwing anything up. Therefore I'm okay with addin

[issue19863] Missing function attributes in 2.7 docs.

2013-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Then write the double-underscore variants at first place. -- ___ Python tracker ___ ___ Python-bug

[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2013-12-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue19860] asyncio: Add context manager to BaseEventLoop?

2013-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: But there is Antoine's point. This makes with get_event_loop() as loop: an attractive nuisance if it's used in the wrong place. -- ___ Python tracker

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

2013-12-02 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Well, that can only happen if MEMOIZE and PUT are both used together, which won't happen with the Pickler classes we support. The easiest thing to do here is to disable pickletools.optimize on protocol 4. -- _

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

2013-12-02 Thread Christian Heimes
Christian Heimes added the comment: I have addressed the five libraries in five sub-issues. http.client and asyncio.selector_events need small adjustments to use the new feature. Please review the patch. -- nosy: +gvanrossum Added file: http://bugs.python.org/file32940/check_hostname_a

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

2013-12-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19852] Misplaced private API method in pathlib.py

2013-12-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd8230437f40 by Antoine Pitrou in branch 'default': Issue #19852: move Path._raw_open() around, as it is now a private method. http://hg.python.org/cpython/rev/cd8230437f40 -- nosy: +python-dev ___ Python

[issue19852] Misplaced private API method in pathlib.py

2013-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks! Patch now applied. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

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

2013-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, I was curious if there were many users of pickletools.optimize(), so I did a search and most matches seem to be copies of the stdlib source tree: http://code.ohloh.net/search?s=pickletools%20optimize&p=0&pp=0&fl=Python&mp=1&ml=1&me=1&md=1&ff=1&filte

[issue19860] asyncio: Add context manager to BaseEventLoop?

2013-12-02 Thread Larry Hastings
Larry Hastings added the comment: Okay, yeah. I assumed calling .close() was best practice. If it's not, then... Guido, since this is your library, I delegate the decision to you. You guys can add this any time before I tag beta 2 if Guido's on board. -- ___

[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

2013-12-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: > > I believe that the libc and the kernel knows better than Python how to > restart a syscalls, than Python. I expect more reliable timeout, or > the kernel may avoid context switches (don't wake up the process). > See the man page i linked to, calls like sel

[issue19847] Setting the default filesystem-encoding

2013-12-02 Thread Sworddragon
Sworddragon added the comment: > This idea was already proposed in issue #8622, but it was a big fail. Not completely: If your locale is utf-8 and you want to operate on an utf-8 filesystem all is fine. But what if you want then to operate on a ntfs (non-utf-8) partition? As I know there is no

[issue19864] multiprocessing Proxy docs need locking semantics explained

2013-12-02 Thread Ned Deily
Changes by Ned Deily : -- nosy: +sbt versions: +Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19866] tests aifc, sunau and wave failures on a fresh Win64 installation

2013-12-02 Thread Francisco Martín Brugué
New submission from Francisco Martín Brugué: I've just installed Cpython 2.7.6 32bit on Windows64, run the tests [1] and some of them failed. Some of them seems related to audiodata not beeing installed. .\python.exe Lib\test\regrtest.py -v == CPython 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC

[issue19866] tests aifc, sunau and wave failures on a fresh Win64 installation

2013-12-02 Thread Francisco Martín Brugué
Changes by Francisco Martín Brugué : Added file: http://bugs.python.org/file32942/failed_test_sunau.txt ___ Python tracker ___ ___ Python-bugs

[issue19866] tests aifc, sunau and wave failures on a fresh Win64 installation

2013-12-02 Thread Francisco Martín Brugué
Changes by Francisco Martín Brugué : Added file: http://bugs.python.org/file32943/failed_test_wave.txt ___ Python tracker ___ ___ Python-bugs-

[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

2013-12-02 Thread Charles-François Natali
Charles-François Natali added the comment: > Guido van Rossum added the comment: > > That's just rhetoric -- I am beginning to believe that nobody has any data. > Here's some opposite rhetoric. If it ain't broke, don't fix it. Plus, if > it's so much better, why isn't it the default? If you

[issue19866] tests aifc, sunau and wave failures on a fresh Win64 installation

2013-12-02 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2013-12-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +amaury.forgeotdarc, belopolsky, haypo, meador.inge ___ Python tracker ___ ___ Python-bugs-list m

[issue19867] pickletools.OpcodeInfo.code is a string

2013-12-02 Thread Antoine Pitrou
New submission from Antoine Pitrou: It should probably be a bytes object instead: >>> op >>> op.code '\x95' >>> op.name 'FRAME' >>> pickle.FRAME b'\x95' -- components: Library (Lib) messages: 205061 nosy: alexandre.vassalotti, pitrou priority: normal severity: normal status: open title

[issue19860] asyncio: Add context manager to BaseEventLoop?

2013-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: Well, calling close() is best practice *if you own the loop*. But the thing is that you may not own what get_event_loop() returns, and in fact in most cases where it is called you don't own it. This is very different from files: with open(...) as f:

[issue19800] Write more detailed framing tests

2013-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file32944/frame_tests.patch ___ Python tracker ___ _

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

2013-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: The asyncio patch looks fine, but I'd like to see a unittest that actually fails (or mocks failing) the hostname check where it is now performed (in wrap_socket() IIUC?), to make sure that the exception is propagated out properly. -- __

[issue19717] resolve() fails when the path doesn't exist

2013-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: (note that POSIX realpath() fails with ENOENT if the file doesn't exist: http://pubs.opengroup.org/onlinepubs/9699919799/functions/realpath.html ) -- ___ Python tracker __

[issue19717] resolve() fails when the path doesn't exist

2013-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, so we can choose to be more like POSIX realpath() or more like os.path.realpath(). I guess your original intuition was right. Close with no action is fine. If I need a partial real path I can always crawl up parents() until I find a path that does exi

[issue19717] resolve() fails when the path doesn't exist

2013-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think there's value in allowing the "less strict" behaviour with an optional arg, though. i.e.: >>> Path('toto').resolve() Traceback (most recent call last): File "", line 1, in File "/home/antoine/cpython/default/Lib/pathlib.py", line 1024, in resolve

[issue19717] resolve() fails when the path doesn't exist

2013-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: Sure. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19866] tests aifc, sunau and wave failures on a fresh Win64 installation

2013-12-02 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +loewis, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue9998] ctypes find_library should search LD_LIBRARY_PATH on linux

2013-12-02 Thread Daniel Blanchard
Daniel Blanchard added the comment: Any chance of this making it into 3.4? This is a rather annoying deficiency of find_library(). -- nosy: +Daniel.Blanchard ___ Python tracker _

[issue19801] Concatenating bytes is much slower than concatenating strings

2013-12-02 Thread Sworddragon
Sworddragon added the comment: I have extended the benchmark a little and here are my new results: concatenate_string() : 0.037489 concatenate_bytes(): 2.920202 concatenate_bytearray(): 0.157311 concatenate_string_io(): 0.035397 concatenate_bytes_io()

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

2013-12-02 Thread Tim Peters
Tim Peters added the comment: Is it _documented_ that MEMOIZE and PUT can't be used together? If not, it should be documented; and pickletools dis() and optimize() should verify that this restriction is honored in their inputs. -- ___ Python tracke

[issue19801] Concatenating bytes is much slower than concatenating strings

2013-12-02 Thread R. David Murray
R. David Murray added the comment: Please take these observations and questions to python-list. They aren't really appropriate for the bug tracker. We aren't going to add the optimization shortcut for bytes unless someone does a bunch of convincing on python-ideas, which seems unlikely (but

  1   2   >