[issue16596] Skip stack unwinding when "next", "until" and "return" pdb commands executed in generator context

2013-11-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: Hopefully issue16596_nostate_4.diff should fix this. The patch issues a StopIteration debug event in ceval.c (similar to the change made in the previous patch for the for loop), when the subgenerator is exhausted. This debug event is printed as 'Internal StopIt

[issue19656] Add Py3k warning for non-ascii bytes literals

2013-11-20 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: Nice! As a syntax change (albeit a minor one), I believe this will require a PEP for Python 3.5. I know Guido indicated he was OK with relaxing the current restrictions, but I don't remember exactly where he said it, or how far he was willing to relax them. --

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-20 Thread Guido van Rossum
Guido van Rossum added the comment: I don't feel very strongly, but I do think that most of the things the new syntax allows are not improvements -- they make the decorator harder to read. It was intentional to force you to compute a variable before you can use it as a decorator, e.g. spamify

[issue19673] PEP 428 implementation

2013-11-20 Thread Antoine Pitrou
New submission from Antoine Pitrou: Here is a patch integrating pathlib and its docs. Note that this was already briefly reviewed by Guido. -- components: Library (Lib) files: pathlib.patch keywords: patch messages: 203540 nosy: larry, pitrou priority: release blocker severity: normal st

[issue18138] ctx.load_verify_locations(cadata)

2013-11-20 Thread Christian Heimes
Christian Heimes added the comment: Final patch -- title: ssl.SSLContext.add_cert() -> ctx.load_verify_locations(cadata) Added file: http://bugs.python.org/file32737/ssl_cadata2.patch ___ Python tracker ___

[issue15204] Deprecate the 'U' open mode

2013-11-20 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19667] Add the "htmlcharrefreplace" error handler

2013-11-20 Thread Ezio Melotti
Ezio Melotti added the comment: As I wrote in the thread, I don't like this too much. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue16596] Skip stack unwinding when "next", "until" and "return" pdb commands executed in generator context

2013-11-20 Thread Guido van Rossum
Guido van Rossum added the comment: This version works beautifully in that scenario! Does anyone else reading this bug report object to this being committed? -- ___ Python tracker _

[issue19672] Listing of all exceptions for every function

2013-11-20 Thread R. David Murray
R. David Murray added the comment: This is not something we are going to do. We don't know what every exception is that every function can raise. Adding mentions of unusual special cases that aren't currently documented would be OK, though. You should open specific issues for things you thin

[issue19672] Listing of all exceptions for every function

2013-11-20 Thread Sworddragon
Sworddragon added the comment: I'm fine with this decision as it will be really much work. But this also means programming with Python isn't considered for high stability applications - due to the lack of important informations in the documentation. An alternate way would be to rely on error c

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-11-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +larry priority: high -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19672] Listing of all exceptions for every function

2013-11-20 Thread R. David Murray
R. David Murray added the comment: If switching to error codes would solve your problem, then catching Exception at appropriate places should also solve your problem. -- ___ Python tracker

[issue19672] Listing of all exceptions for every function

2013-11-20 Thread Sworddragon
Sworddragon added the comment: Correct, but the second part of my last message was just my opinion that I would prefer error codes over exceptions because it implies already a completed documentation for this part due to return codes/error arguments/other potential ways. -- _

[issue1065986] Fix pydoc crashing on unicode strings

2013-11-20 Thread Akira Kitada
Akira Kitada added the comment: Good catch. Fixed. -- Added file: http://bugs.python.org/file32738/issue1065986-5.patch ___ Python tracker ___ _

[issue19674] Add introspection information for builtins

2013-11-20 Thread Larry Hastings
New submission from Larry Hastings: Let's see if we can get introspection information for builtins using the Clinic for 3.4. Georg suggested part of the approach while we were hanging out in Tokyo. I'd considered it previously before but dispensed with the idea because it seemed too loopy.

[issue19674] Add introspection information for builtins

2013-11-20 Thread Larry Hastings
Larry Hastings added the comment: If you review, you can ignore the changes to the .c files, those only got touched because of the new autogenerated "def (" lines in the docstrings. No other changes there. -- ___ Python tracker

[issue19674] Add introspection information for builtins

2013-11-20 Thread Larry Hastings
Larry Hastings added the comment: (Well, except for Object/methodobject.c.) -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue17951] TypeError during gdb backtracing

2013-11-20 Thread Julian Gindi
Julian Gindi added the comment: Could you provide some more details on how to reproduce this issue? If I am able to reproduce the issue, I'll write a few unit tests and get this patch rolling again. -- nosy: +Julian.Gindi ___ Python tracker

[issue19673] PEP 428 implementation

2013-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch with a whatsnew entry. -- Added file: http://bugs.python.org/file32740/pathlib2.patch ___ Python tracker ___ _

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-20 Thread Eric Snow
Eric Snow added the comment: > they make the decorator harder to read. I agree. -- nosy: +eric.snow ___ Python tracker ___ ___ Python

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-20 Thread James Powell
James Powell added the comment: I see this as removing a restriction and a special-case from the decorator syntax (noting, of course, that these were introduced deliberately.) In terms of whether the new forms are improvements, my preference is to leave this up to the judgement of the programmer

[issue19675] Pool dies with excessive workers, but does not cleanup

2013-11-20 Thread Dustin Oprea
New submission from Dustin Oprea: If you provide a number of processes to a Pool that the OS can't fulfill, Pool will raise an OSError and die, but does not cleanup any of the processes that it has forked. This is a session in Python where I can allocate a large, but fulfillable, number of pr

[issue6490] os.popen documentation is probably wrong

2013-11-20 Thread Martin Panter
Martin Panter added the comment: Also it would be good to document that it returns a text stream, not a binary stream. -- ___ Python tracker ___ _

[issue19668] Add support of the cp1125 encoding

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: See also issue #19459. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue19675] Pool dies with excessive workers, but does not cleanup

2013-11-20 Thread Ned Deily
Changes by Ned Deily : -- keywords: +patch nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue19668] Add support of the cp1125 encoding

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: > The proposed patch adds support of the CP1125 encoding. Nowadays, a good motivation for supporting a new codec is to be able to start Python 3. For example, I added cp65001 because some using try Python 3 with this Windows code page. It looks like at least

[issue19666] Format string for ASCII unicode or bytes-like object as readonly buffer

2013-11-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo, skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue19599] Failure of test_async_timeout() of test_multiprocessing_spawn: TimeoutError not raised

2013-11-20 Thread koobs
koobs added the comment: 2.7 builds are failing on koobs-freebsd9 buildbot since ba7d53b5f3de test_multiprocessing [74777 refs] test test_multiprocessing failed -- Traceback (most recent call last): File "/usr/home/buildbot/python/2.7.koobs-freebsd9/build/Lib/test/tes

[issue19661] Python: RuntimeError: invalid slot offset when importing a module

2013-11-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +David.Edelsohn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19661] AIX: Python: RuntimeError "invalid slot offset when importing a module" in _ssl module

2013-11-20 Thread STINNER Victor
Changes by STINNER Victor : -- title: Python: RuntimeError: invalid slot offset when importing a module -> AIX: Python: RuntimeError "invalid slot offset when importing a module" in _ssl module ___ Python tracker

[issue19661] Python: RuntimeError: invalid slot offset when importing a module

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: This warning is interesting: "/aix/Modules/_ssl.c", line 262.17: 1506-196 (W) Initialization between types "void*" and "struct _object*(*)(struct {...}*)" is not allowed. It looks like the following line: static PyType_Slot sslerror_type_slots[] = { {Py_

[issue8813] SSLContext doesn't support loading a CRL

2013-11-20 Thread Christian Heimes
Christian Heimes added the comment: The patch implements SSLContext.verify_flags in order to enable CRL checks. It comes with documentation, a unit test and a new CRL file. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file32744/verify_flags_c

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-20 Thread James Powell
Changes by James Powell : Added file: http://bugs.python.org/file32745/decorator-syntax.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue19599] Failure of test_async_timeout() of test_multiprocessing_spawn: TimeoutError not raised

2013-11-20 Thread koobs
koobs added the comment: koobs-freebsd10 (2.7) is also seeing identical test failures since the change (slightly more intermittent than freebsd9) Is the increased sleep period now bumping against a test timing threshold (0.2) ?

[issue18138] ctx.load_verify_locations(cadata)

2013-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 234e3c8dc52f by Christian Heimes in branch 'default': Issue #18138: Implement cadata argument of SSLContext.load_verify_location() http://hg.python.org/cpython/rev/234e3c8dc52f -- nosy: +python-dev ___ Py

[issue18138] ctx.load_verify_locations(cadata)

2013-11-20 Thread Christian Heimes
Christian Heimes added the comment: Memo to me: update whatsnew -- assignee: -> christian.heimes resolution: -> fixed stage: patch review -> committed/rejected status: open -> pending ___ Python tracker _

[issue18379] SSLSocket.getpeercert(): OCSP and CRL DP URIs

2013-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 468d18bffdea by Christian Heimes in branch 'default': Issue #18379: SSLSocket.getpeercert() returns CA issuer AIA fields, OCSP http://hg.python.org/cpython/rev/468d18bffdea -- nosy: +python-dev ___ Python

[issue18379] SSLSocket.getpeercert(): OCSP and CRL DP URIs

2013-11-20 Thread Christian Heimes
Christian Heimes added the comment: memo to me: update whatsnew -- assignee: -> christian.heimes resolution: -> fixed stage: patch review -> committed/rejected status: open -> pending ___ Python tracker _

[issue19661] AIX: Python: RuntimeError "invalid slot offset when importing a module" in _ssl module

2013-11-20 Thread David Edelsohn
David Edelsohn added the comment: Can you try compiling the module using xlc_r without -O ? One possible guess is XLC optimizations can speculate through NULL pointers because AIX maps address 0 as valid in processes. I don't know why Python is finding an invalid value in the structure. -

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: Yes, a PEP for 3.5 on this will be valuable, whether it's accepted or not (although I personally favour moving these restrictions out of the compiler and into the PEP 8 style guide). If I recall the past python-ideas threads correctly, the main objections to the c

[issue19588] Silently skipped test in test_random

2013-11-20 Thread Zachary Ware
Zachary Ware added the comment: The patch looks good to me, Julian. Have you signed a contributor agreement? If you haven't done so yet and are planning on contributing anything more than the most trivial of changes, you'll need to do so (see http://www.python.org/psf/contrib/). --

[issue19588] Silently skipped test in test_random

2013-11-20 Thread Julian Gindi
Julian Gindi added the comment: Awesome! I signed the contributor agreement today via "E-sign". I look forward to making more significant contributions soon :) -- ___ Python tracker ___

[issue19588] Silently skipped test in test_random

2013-11-20 Thread Zachary Ware
Zachary Ware added the comment: Hmm, actually, I take it back...this is half of the needed patch :). There's another test method of the same name in MersenneTwister_TestBasicOps, with the same issue. But this half looks good! I'll leave a comment on Rietveld (which will send you a 'review'

[issue19588] Silently skipped test in test_random

2013-11-20 Thread Tim Peters
Tim Peters added the comment: Yup, the patch is semantically correct. But I'd also swap the order of the `start =` and `stop =` lines - *everyone* expects `start` to be set first ;-) -- ___ Python tracker ___

[issue19588] Silently skipped test in test_random

2013-11-20 Thread Julian Gindi
Julian Gindi added the comment: That makes perfect sense :) Here is an updated patch. I also made the change to the other test of the same name in MersenneTwister_TestBasicOps -- Added file: http://bugs.python.org/file32747/issue19588_v2.patch ___ Py

[issue19674] Add introspection information for builtins

2013-11-20 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue19674] Add introspection information for builtins

2013-11-20 Thread Guido van Rossum
Guido van Rossum added the comment: I think there's a similar but slightly different convention in Sphinx autodoc -- the first line of the docstring can be "name(...)" . Isn't that better than def? -- ___ Python tracker

[issue19674] Add introspection information for builtins

2013-11-20 Thread Larry Hastings
Larry Hastings added the comment: I was deliberately trying to avoid something that a person might do by accident. Also, "def (" is consistently only five bytes, whereas "pterodactyl (" or whatever will often be much longer, in case static data size is a concern. But I could switch it to that

[issue19671] Option to select the optimization level on compileall

2013-11-20 Thread Claudiu.Popa
Claudiu.Popa added the comment: Hi. Since Python 3.2, compileall functions supports the optimization level through the `optimize` parameter. I guess you are using Python2.7 or so? Also, there's a note in compileall's documentation regarding the command line switch for the optimization level:

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-20 Thread Eric Snow
Eric Snow added the comment: I've updated the TODO a little as well as cleaning up the XXX markers. The relevant ones are mostly just open questions on implementation tweaks, so nothing major. Otherwise my goal is to finish as much as possible of the non-critical items before the beta. Bret

[issue19676] Add the "namereplace" error handler

2013-11-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch adds the "namereplace" error handler. This error handler is almost same as the "backslashreplace" error handler, but use \N{...} escape sequences if there is a character name in Unicode database. Result is a little more human-readable (b

[issue19676] Add the "namereplace" error handler

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: See also issue #18234. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue19667] Add the "htmlcharrefreplace" error handler

2013-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What should be done to make it more like you? Paul Moore, Marc-Andre Lemburg, Ethan Furman and Terry Jan Reedy voted for it. Steven D'Aprano proposed same idea on comp.python.general: http://comments.gmane.org/gmane.comp.python.general/742886 . And there are

<    1   2