[issue19680] Help missing for exec and print

2013-11-25 Thread Bohuslav "Slavek" Kabrda
Bohuslav "Slavek" Kabrda added the comment: Seems that Ezio was faster :) Yep, the attached patch does seem to solve the issue. -- ___ Python tracker ___

[issue19763] Make it easier to backport statistics to 2.7

2013-11-25 Thread Christian Heimes
Christian Heimes added the comment: Python's stdlib contains other modules that contain code for older versions of Python. The platform module even contains lines like "os.devnull was added in Python 2.4, so emulate it for earlier". asyncio has backward compatibility code, too. The only old sy

[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed

2013-11-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: adding {0,1,2} to fds_to_keep (populated from pass_fds) is indeed an alternate approach. A variant of an alternate patch doing that attached. This actually simplifies code. Is there anything this would hurt that i'm not seeing? I suppose it adds minor ove

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-25 Thread STINNER Victor
STINNER Victor added the comment: > Here is the patch to tidy up the Lib/test_tracemalloc.py. > It fixed the typo, and removed unused import and unused variables. Thanks, I applied your patch. changeset: 87547:841dec769a04 tag: tip user:Victor Stinner date:Mon Nov 25

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-25 Thread STINNER Victor
STINNER Victor added the comment: >> Here is the patch to tidy up the Lib/test_tracemalloc.py. >> It fixed the typo, and removed unused import and unused variables. > >Thanks, I applied your patch. Oh, except: -data = [allocate_bytes(123) for count in range(1000)] +[allocate_byt

[issue19762] Incorrect function documentation of _get_object_traceback and _get_traces in _tracemalloc module

2013-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e2ec595dc58 by Victor Stinner in branch 'default': Close #19762: Fix name of _get_traces() and _get_object_traceback() function http://hg.python.org/cpython/rev/2e2ec595dc58 -- nosy: +python-dev resolution: -> fixed stage: -> committed/re

[issue19744] ensurepip should refuse to install pip if SSL/TLS is not available

2013-11-25 Thread Nick Coghlan
Nick Coghlan added the comment: Is that likely to be in 1.5 or 1.5.1? Not needing to special case this in ensurepip would be nice :) -- ___ Python tracker ___ ___

[issue19734] venv and ensurepip are affected by pip environment variable settings

2013-11-25 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, this may also indicate a bug in pip's "require virtualenv" handling. Why isn't it detecting that sys.prefix and sys.base_prefix are different, and hence it *is* running in a venv created virtual environment? -- ___

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2013-11-25 Thread STINNER Victor
New submission from STINNER Victor: subprocess.Popen has a race condition on Windows with file descriptors: if two threads spawn subprocesses at the same time, unwanted file descriptors may be inherited, which lead to annoying issues like "cannot delete a file because it is open by another pro

[issue19765] test_asyncio: test_create_server() failed on "x86 Windows Server 2008 [SB] 3.x"

2013-11-25 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20Windows%20Server%202008%20%5BSB%5D%203.x/builds/1794/steps/test/logs/stdio == FAIL: test_create_server (test.test_asyncio.test_events.ProactorEven

[issue19766] test_venv: test_with_pip() failed on "AMD64 Fedora without threads 3.x" buildbot

2013-11-25 Thread STINNER Victor
New submission from STINNER Victor: The line "from . import exceptions" of urllib3 failed: https://github.com/shazow/urllib3/blob/master/urllib3/__init__.py#L22 It is strange because urllib3/exceptions.py is part of the urllib3 module. http://buildbot.python.org/all/builders/AMD64%20Fedora%20wi

[issue19753] test_gdb failure on SystemZ buildbot

2013-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6ec6facb69ca by Victor Stinner in branch 'default': Issue #19753: New try to fix test_gdb on System Z buildbot http://hg.python.org/cpython/rev/6ec6facb69ca -- ___ Python tracker

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

2013-11-25 Thread Christian Heimes
Christian Heimes added the comment: The patch implements check_hostname in order to match SSL certs with the peer's hostname in ftp, imap, nntp, pop and smtp library. So far the patch needs more tests and doc updates. I consider the new feature a security fix. Right now everybody with any vali

[issue19654] test_tkinter sporadic failures on "x86 Tiger 3.x" buildbot

2013-11-25 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/7408/steps/test/logs/stdio patchlevel = 8.4.19 Does it help to know the full version? -- ___ Python tracker _

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-11-25 Thread Martin Dengler
Changes by Martin Dengler : -- nosy: +mdengler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue19767] pathlib: iterfiles() and iterdirs()

2013-11-25 Thread Jonas H.
New submission from Jonas H.: >From my personal experience, listing all real files and all subdirectories in >a directory is a very common use case. Here's a patch that adds the `iterfiles()` and `iterdirs()` methods as a shortcut for `[f for f in p.iterdir() if f.is_dir/file()]` . --

[issue19768] Not so correct error message when giving incorrect type to maxlen in deque

2013-11-25 Thread Vajrasky Kok
New submission from Vajrasky Kok: >>> from collections import deque >>> deque('abc', maxlen='a') Traceback (most recent call last): File "", line 1, in TypeError: an integer is required But it's a lie. You can give None to maxlen >>> deque('abc', maxlen=None) deque(['a', 'b', 'c']) maxlen wi

[issue19767] pathlib: iterfiles() and iterdirs()

2013-11-25 Thread STINNER Victor
STINNER Victor added the comment: See also issue #11406 which is more generic. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-

[issue5639] Support TLS SNI extension in ssl module

2013-11-25 Thread Dima Tisnek
Dima Tisnek added the comment: Is this really not going into Python2 series? It's not a Python feature or a language feature, it's a matter of exporting OpenSSL feature. Furthermore it's a matter of security, same as support for session tickets is a matter of performance. SNI was first intro

[issue5639] Support TLS SNI extension in ssl module

2013-11-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It's not a Python feature or a language feature, it's a matter of > exporting OpenSSL feature. It's a feature regardless (from our POV), and Python 2.x has been in bug fix mode for a long time now. Please understand that this is how our release process works

[issue19769] test_venv: test_with_pip() failure on "AMD64 Windows Server 2008 [SB] 3.x" buildbot

2013-11-25 Thread STINNER Victor
New submission from STINNER Victor: This issue looks like issue #19734, but I'm not sure, so I prefer to open a new issue. Don't hesitate to close it as a duplicate of it's the same. http://buildbot.python.org/all/builders/AMD64%20Windows%20Server%202008%20%5BSB%5D%203.x/builds/1752/steps/test/

[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-25 Thread Stefan Krah
Stefan Krah added the comment: Matthias Klose wrote: > 2.4~rc1: > - configure.ac should call AC_CANONICAL_HOST, config,guess and >config.sub should be included. Hmm. configure.ac doesn't use any of the variables set by that macro, and this appears to work: ./configure --host=arm CC=arm-li

[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-25 Thread Matthias Klose
Matthias Klose added the comment: Am 25.11.2013 12:42, schrieb Stefan Krah: > > Stefan Krah added the comment: > > Matthias Klose wrote: >> 2.4~rc1: >> - configure.ac should call AC_CANONICAL_HOST, config,guess and >>config.sub should be included. > > Hmm. configure.ac doesn't use any of

[issue19744] ensurepip should refuse to install pip if SSL/TLS is not available

2013-11-25 Thread Bill Winslow
Bill Winslow added the comment: I've stumbled upon what appears to be a related issue, but I'm not sure it deserves its own bug report. I compiled 3.4 on my LMDE (so essentially Debian testing) system, and aside from not building tkinter, various compression modules, etc., all went well. I ra

[issue17204] argparser's subparsers.add_parser() should accept an ArgumentParser

2013-11-25 Thread Mickaël Falck
Changes by Mickaël Falck : -- nosy: +Mickaël.Falck ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue19585] Frame annotation

2013-11-25 Thread Walter Dörwald
Walter Dörwald added the comment: Here is a new version of the patch. The annotation is done on the code object instead of on the frame object. This avoids two problems: There is no runtime overhead, as the decorator returns the original function and no additional frames show up in the traceba

[issue19744] ensurepip should refuse to install pip if SSL/TLS is not available

2013-11-25 Thread Donald Stufft
Donald Stufft added the comment: It probably can. I just need to figure out how to test it to make sure the PR that supposedly fixes it fixes it, and then figure out how to ensure it still works into the future. -- ___ Python tracker

[issue19770] NNTP.post broken

2013-11-25 Thread Szymon Sobik
New submission from Szymon Sobik: post method fails because string methods have bytesrting arguments ie. line = line.rstrip(b"\r\n") + _CRLF -- components: Library (Lib) messages: 204331 nosy: sobczyk priority: normal severity: normal status: open title: NNTP.post broken type: behavior

[issue19763] Make it easier to backport statistics to 2.7

2013-11-25 Thread R. David Murray
R. David Murray added the comment: This is a tricky one. I can see the arguments either way, but it just feels wrong to have future imports in stdlib code. I personally don't see anything wrong with the import and doctest changes, though. Sure, someone may come along later and unknowingly br

[issue19770] NNTP.post broken

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

[issue19767] pathlib: iterfiles() and iterdirs()

2013-11-25 Thread R. David Murray
R. David Murray added the comment: Beta is out, so this issue must be targeted for 3.5. -- nosy: +r.david.murray versions: +Python 3.5 -Python 3.4 ___ Python tracker ___

[issue19769] test_venv: test_with_pip() failure on "AMD64 Windows Server 2008 [SB] 3.x" buildbot

2013-11-25 Thread Nick Coghlan
Nick Coghlan added the comment: So, the last part of the error message is just runpy getting confused because attempting to import pip.__main__ threw ImportError (it should check the ImportError name (see issue 19771). I'm not sure about the first part though - I'm not sure why the pip wheel w

[issue19771] runpy should check ImportError.name before wrapping it

2013-11-25 Thread Nick Coghlan
New submission from Nick Coghlan: Issue 19769 shows that if __main__ in a package throws ImportError, runpy will incorrectly report the package as not being directly executable (when it actually claims to be executable, it's just broken) This can be fixed in 3.3+ by checking for an appropriate

[issue19770] NNTP.post broken

2013-11-25 Thread R. David Murray
R. David Murray added the comment: Can you show an example of the failure, including the traceback? I would think that nttplib would be mostly operating on byte objects, and I'm sure Antoine tested posting. -- nosy: +pitrou, r.david.murray ___ Pyth

[issue19585] Frame annotation

2013-11-25 Thread Nick Coghlan
Nick Coghlan added the comment: Code objects are shared amongst multiple function objects, so you can't store mutable state on them. -- ___ Python tracker ___ ___

[issue19744] ensurepip should refuse to install pip if SSL/TLS is not available

2013-11-25 Thread Nick Coghlan
Nick Coghlan added the comment: That I can help with. Steal the "import_fresh_module helper function from test.support (or the gist of it anyway - you can likely leave out the stuff about deprecated imports): http://hg.python.org/cpython/file/default/Lib/test/support/__init__.py#l192 Then do

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2013-11-25 Thread Matej Cepl
Matej Cepl added the comment: I am trying to work on fixing issue 19494 (HTTPBasicAuthHandler doesn't work with Github and other websites which require prior Authorization header in the first request). I have created this testing script calling GitHub v3 API using new “authentication handlers

[issue19763] Make it easier to backport statistics to 2.7

2013-11-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: If you started at 2.7 you would need less changes. -- nosy: +pitrou, stevenjd ___ Python tracker ___ ___

[issue19744] ensurepip should refuse to install pip if SSL/TLS is not available

2013-11-25 Thread Nick Coghlan
Nick Coghlan added the comment: If the ssl import is actually in a submodule, you may need to list additional subpackages in the "fresh" parameter. If you're wondering why this isn't in the importlib API - it's because it can go wrong in an impressively large number of ways, and we don't have

[issue19770] NNTP.post broken

2013-11-25 Thread Szymon Sobik
Szymon Sobik added the comment: Traceback (most recent call last): File "./nntp_test.py", line 23, in s.post(msg) File "/usr/lib/python3.3/nntplib.py", line 909, in post return self._post('POST', data) File "/usr/lib/python3.3/nntplib.py", line 895, in _post if not line.endswit

[issue19763] Make it easier to backport statistics to 2.7

2013-11-25 Thread STINNER Victor
STINNER Victor added the comment: "Python's stdlib contains other modules that contain code for older versions of Python. The platform module even contains lines like "os.devnull was added in Python 2.4, so emulate it for earlier"." I never understood why the platform module should be backport

[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-25 Thread Stefan Krah
Stefan Krah added the comment: Matthias Klose wrote: > > ./configure --host=arm CC=arm-linux-gnueabi-gcc-4.7 > > sure, but this should work without explicitly setting CC. I can't get it to work without passing CC even with config.guess and config.sub. If you want it to work, could you submit

[issue19763] Make it easier to backport statistics to 2.7

2013-11-25 Thread STINNER Victor
STINNER Victor added the comment: > I'd like to add most modifications to 3.4 to simplify backporting. I would prefer to not touch Python 3.4 backport just to simplify backporting. For example, I don't expect "from __future__ import division" in new Python 3.4 modules, but only on old modules.

[issue19770] NNTP.post broken

2013-11-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: This won't work. The post() method needs a bytes object, or something which when iterating yields bytes data. Perhaps you can try to call as_bytes() on your MIMEText object: http://docs.python.org/dev/library/email.message.html#email.message.Message.as_bytes -

[issue19770] NNTP.post broken

2013-11-25 Thread R. David Murray
R. David Murray added the comment: as_bytes was added in 3.4. For earlier python versions, you'll have to create a BytesGenerator object and flatten the message using it to get a bytes object you can past to post. -- ___ Python tracker

[issue19770] NNTP.post broken

2013-11-25 Thread R. David Murray
R. David Murray added the comment: It might be worth adding a post_message method, analogous to the send_message method I added to smtplib. -- ___ Python tracker ___ ___

[issue19770] NNTP.post broken

2013-11-25 Thread Szymon Sobik
Szymon Sobik added the comment: Ok I found this out too on my own. It might be better to add examples using the MIME* classes to nntplib documentation. -- ___ Python tracker __

[issue19763] Make it easier to backport statistics to 2.7

2013-11-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: FWIW, I sympathize with Christian's goal here, since I'm gonna have to backport pathlib too :-) However, I think the following changes do make the docstrings less readable: ->>> mean([1, 2, 3, 4, 4]) -2.8 +>>> mean([1, 2, 3, 4, 4]) == 2.8 +True

[issue19763] Make it easier to backport statistics to 2.7

2013-11-25 Thread STINNER Victor
STINNER Victor added the comment: > However, I think the following changes do make the docstrings less readable: Doctests are not reliable. IMO it's better to use unittest with testcases. unittest is easier to maintain, work with Python 2 and 3, and usually provide more useful reports on error

[issue19765] test_asyncio: test_create_server() failed on "x86 Windows Server 2008 [SB] 3.x"

2013-11-25 Thread Guido van Rossum
Guido van Rossum added the comment: Can you try this fix? diff -r 8d0206f97439 Lib/test/test_asyncio/test_events.py --- a/Lib/test/test_asyncio/test_events.py Sun Nov 24 22:41:35 2013 -0800 +++ b/Lib/test/test_asyncio/test_events.py Mon Nov 25 07:48:29 2013 -0800 @@ -559,7 +559,7 @@

[issue19743] test_gdb failures

2013-11-25 Thread Dave Malcolm
Dave Malcolm added the comment: FWIW, I feel that it's worth just expecting failures with an *optimized* build: with an optimizing compiler, there's likely to always be some program counter location where the debugger is going to get confused for some variables. Given umpteen different compil

[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-25 Thread Stefan Krah
Stefan Krah added the comment: Apparently the build failed because only arm-linux-gnueabi-gcc-4.7 was installed but not arm-linux-gnueabi-gcc. But the cross build succeeds with the original 2.4-rc1, except that arm-linux-gnueabi-ar isn't picked up: $ ./configure --host=arm-linux-gnueabi checki

[issue19063] Python 3.3.3 encodes emails containing non-ascii data as 7bit

2013-11-25 Thread R. David Murray
R. David Murray added the comment: Updated patch for 3.3, and a new patch for 3.4. In 3.4, set_payload raises an error if non-ascii-surrogateescape text is passed in as the argument (ie: there are non-ascii unicode characters in the string) and no charset is specified with which to encode the

[issue19063] Python 3.3.3 encodes emails containing non-ascii data as 7bit

2013-11-25 Thread R. David Murray
Changes by R. David Murray : Added file: http://bugs.python.org/file32838/support_8bit_charset_cte.patch ___ Python tracker ___ ___ Python-bug

[issue19772] str serialization of Message object may mutate the payload and CTE.

2013-11-25 Thread R. David Murray
New submission from R. David Murray: Currently the string generator will downcast 8bit body parts to 7bit by encoding them using a 7bit CTE. This is good. However, the way it does it is to modify the Message object accordingly. This is not good. Except for filling in required missing bits

[issue19765] test_asyncio: test_create_server() failed on "x86 Windows Server 2008 [SB] 3.x"

2013-11-25 Thread STINNER Victor
STINNER Victor added the comment: > Can you try this fix? If you are asking to me: again, I don't own a Windows 2008 copy. Just commit and then watch buildbots :-) -- ___ Python tracker __

[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-25 Thread Stefan Krah
Stefan Krah added the comment: > (gdb) p sizeof(PyASCIIObject) > $1 = 22 If the only issue is that the size should be 24 instead of 22, could we perhaps add an unused uint16_t to the struct just for this architecture? -- nosy: +skrah ___ Python track

[issue19773] Failed to build python 2.6.9 Solaris 10

2013-11-25 Thread lambrecht
New submission from lambrecht: u1662805@methpr:/home/u1662805>echo $PATH /usr/sbin:/usr/bin:/usr/local/bin:/etc:/EXP_SYS/etc/ga/scripts:/EXP_SYS/etc:/EXP_SYS/UTI:/METHPR/EXP_SYS/etc:/METHPR/EXP_SYS/uti:/opt/VRTSvxfs/sbin:/EXP_SYS/etc/ga/scripts:/usr/openwin/bin:/usr/ccs/bin u1662805@methpr:/home/

[issue19773] Failed to build python 2.6.9 Solaris 10

2013-11-25 Thread lambrecht
Changes by lambrecht : -- type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue19773] Failed to build python 2.6.9 Solaris 10

2013-11-25 Thread Christian Heimes
Christian Heimes added the comment: Python 2.6 is out of commission and will not receive update anymore. You have to fix the issues yourself or update to Python 2.7. I'm sorry for any inconvenience. The _hashlib and _ssl errors look like a broken installation of openssl. -- nosy: +chr

[issue19773] Failed to build python 2.6.9 Solaris 10

2013-11-25 Thread Christian Heimes
Changes by Christian Heimes : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue19679] smtpd.py (SMTPChannel): get rid of "conn" attribute

2013-11-25 Thread R. David Murray
R. David Murray added the comment: Are you referring to implementing rfc 3463 and rfc 5248 insofar as they are applicable? That seems useful. I don't see anything in the RFC about the 'xab x.y.z text' form of the message, though. Where is that documented? IMO these messages should only be

[issue19773] Failed to build python 2.6.9 Solaris 10

2013-11-25 Thread STINNER Victor
STINNER Victor added the comment: /METHPR/tmp/Python-2.6.9/Modules/_cursesmodule.c:708: warning: implicit declaration of function `mvwchgat' /METHPR/tmp/Python-2.6.9/Modules/_cursesmodule.c:712: warning: implicit declaration of function `wchgat' There errors are already reported as #13552. --

[issue19748] test_time failures on AIX

2013-11-25 Thread David Edelsohn
David Edelsohn added the comment: The valid range is 00:00:00 UTC, January 1, 1970 to 03:14:07 UTC, January 19, 2038. -- ___ Python tracker ___ _

[issue19765] test_asyncio: test_create_server() failed on "x86 Windows Server 2008 [SB] 3.x"

2013-11-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue19585] Frame annotation

2013-11-25 Thread Walter Dörwald
Walter Dörwald added the comment: Do you have an example where code objects are shared? We could attach the annotation formatter to the function object, but unfortunately the function object is now accessible in the traceback. Note the co_annotation is not the annotation string, rather it is a

[issue19691] Weird wording in RuntimeError doc

2013-11-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: The mention was already there in 1994 (2ec96140a36b), under the following form: +\begin{excdesc}{RuntimeError} + Raised when an error is detected that doesn't fall in any of the + other categories. The associated value is a string indicating what + precisely

[issue19678] smtpd.py: channel should be passed to process_message

2013-11-25 Thread R. David Murray
R. David Murray added the comment: I think this is reasonable. A patch would be welcome. You could use inspect. When I had to do something similar I just did the call inside a try/except, caught TypeError and retried without the extra argument. See the __init__ of email.feedparser.FeedParse

[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is sizeof(PyUnicodeObject)? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue19655] Replace the ASDL parser carried with CPython

2013-11-25 Thread Eric Snow
Eric Snow added the comment: The concern, as far as I understand it, is that any change might introduce regressions or even new bugs in the next beta. Something like swapping out the parser generator implementation isn't a bug fix, but it isn't a new language (incl. stdlib) feature either. I

[issue19739] Legit compiler warnings in new pickle code on 32-bit Windows

2013-11-25 Thread Zachary Ware
Zachary Ware added the comment: This appears to be back with slightly different line numbers: ..\Modules\_pickle.c(718): warning C4293: '>>' : shift count negative or too big, undefined behavior ..\Modules\_pickle.c(719): warning C4293: '>>' : shift count negative or too big, undefined behavio

[issue8881] socket.getaddrinfo() should return named tuples

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

[issue19729] [regression] str.format sublevel format parsing broken in Python 3.3.3

2013-11-25 Thread Yury Selivanov
Yury Selivanov added the comment: This broke a lot of our code, I think that priority needs to be raised to urgent. -- nosy: +yselivanov ___ Python tracker ___ _

[issue19679] smtpd.py (SMTPChannel): implement enhanced status codes

2013-11-25 Thread Leslie P. Polzer
Leslie P. Polzer added the comment: Sorry for the confusion, the second comment (#msg203622) should actually have been a separate ticket. Since you'd like to preserve "conn" I will just change the title of this ticket. -- title: smtpd.py (SMTPChannel): get rid of "conn" attribute -> sm

[issue17204] argparser's subparsers.add_parser() should accept an ArgumentParser

2013-11-25 Thread paul j3
paul j3 added the comment: http://stackoverflow.com/a/20167038/901925 is an example of using `_parser_class` to produce different behavior in the subparsers. parser = ArgumentParser() parser.add_argument('foo') sp = parser.add_subparsers(dest='cmd') sp._parser_class = SubParser

[issue19729] [regression] str.format sublevel format parsing broken in Python 3.3.3

2013-11-25 Thread HCT
HCT added the comment: my projects are total broken by this, so my temporary solution is to down grade to 3.3.2 somehow we don't have any test to check this before releasing 3.3.3 -- ___ Python tracker __

[issue19750] test_asyncio.test_unix_events constructor failures on AIX

2013-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 871d496fa06c by Guido van Rossum in branch 'default': asyncio: Change mock pipe to mock socket. Hope to fix issue 19750. http://hg.python.org/cpython/rev/871d496fa06c -- nosy: +python-dev ___ Python track

[issue19739] Legit compiler warnings in new pickle code on 32-bit Windows

2013-11-25 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue19765] test_asyncio: test_create_server() failed on "x86 Windows Server 2008 [SB] 3.x"

2013-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 368b74823c76 by Guido van Rossum in branch 'default': asyncio: Hopeful fix for issue 19765. http://hg.python.org/cpython/rev/368b74823c76 -- nosy: +python-dev ___ Python tracker

[issue19691] Weird wording in RuntimeError doc

2013-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 313d9bb253bf by Antoine Pitrou in branch '2.7': Issue #19691: remove outdated mention about RuntimeError http://hg.python.org/cpython/rev/313d9bb253bf -- nosy: +python-dev ___ Python tracker

[issue19655] Replace the ASDL parser carried with CPython

2013-11-25 Thread Brett Cannon
Brett Cannon added the comment: Let's just go with Eli's latest idea and just save it for 3.5 since it won't make any visible improvement in 3.4. -- ___ Python tracker ___ _

[issue19691] Weird wording in RuntimeError doc

2013-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6aeaaa614a19 by Antoine Pitrou in branch '3.3': Issue #19691: remove outdated mention about RuntimeError http://hg.python.org/cpython/rev/6aeaaa614a19 New changeset f4de1c5e381d by Antoine Pitrou in branch 'default': Issue #19691: remove outdated me

[issue19691] Weird wording in RuntimeError doc

2013-11-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue19739] Legit compiler warnings in new pickle code on 32-bit Windows

2013-11-25 Thread Zachary Ware
Zachary Ware added the comment: The attached patch fixes the warnings and doesn't appear to break anything obvious. The first 4 are fixed by reverting Alexandre's change from '#if SIZEOF_SIZE_T' to 'if (sizeof(size_t)'. The last one is different from the original 5th warning, and is fixed usi

[issue19742] pathlib group unittests can fail

2013-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset b58b58948c27 by Antoine Pitrou in branch 'default': Issue #19742: fix a test_pathlib failure when a file owner or group isn't in the system database http://hg.python.org/cpython/rev/b58b58948c27 -- nosy: +python-dev ___

[issue19742] pathlib group unittests can fail

2013-11-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: It should be fixed now (i.e. the test is skipped). -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue19742] pathlib group unittests can fail

2013-11-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ P

[issue19774] strptime incorrect for weekday '0' when using week number format

2013-11-25 Thread Steve J Borba
New submission from Steve J Borba: OS: Windows 7 Professional (64-bit) Hardware: Intel datetime.strptime returns an incorrect value when calculating a date using a week number format, such as "%Y-%W-%w" (Year-Week-Weekday). The value returned for weekday '0' of a given week is consistently 7 d

[issue19739] Legit compiler warnings in new pickle code on 32-bit Windows

2013-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset f8ac01a762c1 by Alexandre Vassalotti in branch 'default': Issue #19739: Try to fix compiler warnings on 32-bit Windows. http://hg.python.org/cpython/rev/f8ac01a762c1 -- nosy: +python-dev ___ Python tracke

[issue19679] smtpd.py (SMTPChannel): implement enhanced status codes

2013-11-25 Thread Leslie P. Polzer
Leslie P. Polzer added the comment: I am indeed referring to the enhanced status codes proposed in RFC 3463. This would just entail adding information to the status codes, converting them from the format " " to " ". In this it doesn't seem necessary to differentiate by HELO/EHLO; neither is i

[issue19763] Make it easier to backport statistics to 2.7

2013-11-25 Thread Georg Brandl
Georg Brandl added the comment: As Victor says, I'm not keen on those examples in the stdlib that do this, I'd rather get rid of all of them. And yes, doctests are only useful if they are written in the simplest possible way. Otherwise unittest style tests should be preferred. -- __

[issue19775] Provide samefile() on Path objects

2013-11-25 Thread Antoine Pitrou
New submission from Antoine Pitrou: It would probably be useful to provide samefile() on Path objects - basically doing the same thing as os.path.samefile(). -- components: Library (Lib) messages: 204386 nosy: pitrou priority: normal severity: normal status: open title: Provide samefile

[issue19776] Provide expanduser() on Path objects

2013-11-25 Thread Antoine Pitrou
New submission from Antoine Pitrou: Something like expanduser() may be useful on Path objects. -- components: Library (Lib) messages: 204387 nosy: pitrou priority: low severity: normal status: open title: Provide expanduser() on Path objects type: enhancement versions: Python 3.5 __

[issue19777] Provide a home() classmethod on Path objects

2013-11-25 Thread Antoine Pitrou
New submission from Antoine Pitrou: Similar to Path.cwd(), perhaps a Path.home() to create a new Path object pointing to the current user's home directory may be useful. -- components: Library (Lib) messages: 204388 nosy: pitrou priority: low severity: normal status: open title: Provide

[issue19766] test_venv: test_with_pip() failed on "AMD64 Fedora without threads 3.x" buildbot

2013-11-25 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which restores optimization for frame headers. Unfortunately it breaks test_optional_frames. -- ___ Python tracker ___ __

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-11-25 Thread Larry Hastings
Larry Hastings added the comment: Isn't it a little late to be changing the pickle protocol, now that we've hit feature-freeze? If you want to check something like this in you're going to have to make a good case for it. -- ___ Python tracker

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-11-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file32840/pickle_frame_headers.patch ___ Python tracker ___ ___ Python-bugs-l

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This doesn't change the pickle protocol. This is just an implementation detail. -- ___ Python tracker ___

[issue19626] test_email and Lib/email/_policybase.py failures with -OO

2013-11-25 Thread R. David Murray
R. David Murray added the comment: Lacking feedback in the negative, I'm closing this. -- status: open -> closed ___ Python tracker ___ __

  1   2   >