[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

[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

[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

[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

[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:

[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

[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
Changes by Larry Hastings : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[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

[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 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 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: 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/). --

[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

[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. -

[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 _

[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

[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 _

[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

[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) ?

[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

[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

[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_

[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
Changes by STINNER Victor : -- nosy: +David.Edelsohn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[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

[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

[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

[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: See also issue #19459. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[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 ___ _

[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

[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

[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

[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 ___ _

[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

[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

[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
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.

[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 ___ _

[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. -- _

[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

[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 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

[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

[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 _

[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

[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

[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 ___

[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

[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

[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. --

[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

[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

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

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: pack.patch: Patch to pack frame_t structure. I tested tracemalloc with packed structure on Linux/AMD64, FreeBSD/AMD64, OpenBSD/AMD64, OpenIndiana/AMD64, Windows/x86 (Windows 7 64-bit with Python compiled in 32-bit). I don't have access to SPARC. -- Ad

[issue19672] Listing of all exceptions for every function

2013-11-20 Thread Sworddragon
New submission from Sworddragon: Currently the documentation does sometimes say about specific exceptions but most times not. As I'm often catching exceptions to ensure a high stability this gets a little difficult. For example print() can trigger a BrokenPipeError and the most file functions

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

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: Charles-François doesn't like packed structure (frame_t) because he fears crash on architectures not supporting non-aligned memory access or bad performances. Antoine and me want them to reduce the memory footprint of the tracemalloc module (tracemalloc.get_tr

[issue13633] Automatically convert character references in HTMLParser

2013-11-20 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19671] Option to select the optimization level on compileall

2013-11-20 Thread Sworddragon
New submission from Sworddragon: Currently on calling one of the compileall functions it is not possible to pass the optimization level as argument. The bytecode will be created depending of the optimization level of the current script instance. But if a script wants to compile .pyc files for

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

2013-11-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +ncoghlan -nick ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

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

2013-11-20 Thread Éric Araujo
Éric Araujo added the comment: On second thought, as this patch allows one form that Guido doesn’t want (bar().foo()), maybe there should be a discussion on python-ideas. -- nosy: +nick ___ Python tracker

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

2013-11-20 Thread Éric Araujo
Éric Araujo added the comment: Thanks for this! Tests should exercise the now-valid syntaxes, which also need documentation. -- nosy: +eric.araujo ___ Python tracker ___ __

[issue1065986] Fix pydoc crashing on unicode strings

2013-11-20 Thread Éric Araujo
Éric Araujo added the comment: LGTM. One thing: did you mean assertEqual in Lib/test/test_pydoc.py:466: self.assertTrue(open('pipe').read(), pydoc._encode(doc)) ? -- ___ Python tracker _

[issue19669] remove mention of the old LaTeX docs

2013-11-20 Thread Ezio Melotti
Ezio Melotti added the comment: SGTM. -- keywords: +easy stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Pytho

[issue19670] SimpleCookie Generates Non-RFC6265-Compliant Cookies

2013-11-20 Thread Patrick Bogen
New submission from Patrick Bogen: SimpleCookie uses _quote to quote cookie values, which converts special characters to \OCTAL notation. This is not RFC6265 compliance, which requires- in part- that cookie values do not contain backslashes: cookie-value = *cookie-octet / ( DQUOTE *cooki

[issue19669] remove mention of the old LaTeX docs

2013-11-20 Thread Antoine Pitrou
New submission from Antoine Pitrou: The devguide mentions the old LaTeX doc format: http://docs.python.org/devguide/documenting.html#differences-to-the-latex-markup This doesn't really sound useful anymore, so many years later. -- assignee: docs@python components: Devguide, Documentatio

[issue19572] Report more silently skipped tests as skipped

2013-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: skiptest_not_return_or_pass.v4-3.3.diff LGTM. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue19664] UserDict test assumes ordered dict repr

2013-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't know for sure--I haven't stepped through it--but here's an > informed guess. It relies on key collision. Ok, I see. The frequency of the errors then depends on the frequency of collisions for two fixed keys and a varying hash seed... --

[issue19668] Add support of the cp1125 encoding

2013-11-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch adds support of the CP1125 encoding. The CP1125 encoding (also known as IBM866, CP866U (in Microsoft), 866nav (in TeX), RUSCII) is standard DOS encoding for Ukrainian language. It is only one DOS encoding (or at least most popular) suita

[issue19664] UserDict test assumes ordered dict repr

2013-11-20 Thread Larry Hastings
Larry Hastings added the comment: I don't know for sure--I haven't stepped through it--but here's an informed guess. It relies on key collision. The first dict is created the normal way. It contains two values, "one" (set to 1) and "two" (set to 2), inserted in that order. The second dict i

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

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

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

2013-11-20 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file32730/support_8bit_charset_cte.patch ___ Python tracker ___ ___ Python-b

[issue18138] ssl.SSLContext.add_cert()

2013-11-20 Thread Christian Heimes
Christian Heimes added the comment: I think the patch in #16487 does too many things at once. The new patch is a draft for a new patch that adds SSLContext.load_verify_locations(cadata) to the SSL module. cadata can be a bunch of PEM encoded certs (ASCII) or DER encoded certs (bytes-like). The

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

2013-11-20 Thread R. David Murray
R. David Murray added the comment: Vajrasky: thanks for taking a crack at this, but, well, there are a lot of subtleties involved here, due to the way the organic growth of the email package over many years has led to some really bad design issues. It took me a lot of time to boot back up my u

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

2013-11-20 Thread Peyton Sherwood
Changes by Peyton Sherwood : -- nosy: +peyton ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue13633] Automatically convert character references in HTMLParser

2013-11-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- title: Handling of hex character references in HTMLParser.handle_charref -> Automatically convert character references in HTMLParser ___ Python tracker

[issue13633] Handling of hex character references in HTMLParser.handle_charref

2013-11-20 Thread Ezio Melotti
Ezio Melotti added the comment: Here is a patch. It might be also be a good idea to add warning when the option is not explicitly set to False, and change the default to True in 3.5/3.6. -- keywords: +patch nosy: +serhiy.storchaka stage: test needed -> patch review Added file: http://bu

[issue19572] Report more silently skipped tests as skipped

2013-11-20 Thread Zachary Ware
Changes by Zachary Ware : Added file: http://bugs.python.org/file32728/skiptest_not_return_or_pass.v4-3.3.diff ___ Python tracker ___ ___ Pyt

[issue19664] UserDict test assumes ordered dict repr

2013-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I realize this code is ancient--but it seems to rely on repr of a dict > producing consistent output, which is silly Well, it sounds a bit weird to me... If you're building the dict always in the same way, intuitively it should always produce the same repr()

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

2013-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: It seems this would add a dependency to the unicode implementation (other unicode representations may not allow you to take a Py_buffer to the ASCII data). -- nosy: +pitrou ___ Python tracker

[issue19667] Add the "htmlcharrefreplace" error handler

2013-11-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch adds the htmlcharrefreplace_errors() function which implements the "htmlcharrefreplace" error handler in the html module. This error handler is almost same as the "xmlcharrefreplace" error handler, but first try to replace an unencodable

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

2013-11-20 Thread Christian Heimes
New submission from Christian Heimes: I could use a format string for either ASCII unicode or bytes buffer in a few places, e.g. a* (bytes, bytearray, bytes-like object or ASCII unicode) [Py_buffer] Like y* it should handle PyBUF_SIMPLE with 'C' contiguous but it should only accept one dimen

[issue19665] test_logging fails with SMTPHandler timeout

2013-11-20 Thread Mark Wolf
New submission from Mark Wolf: Similar to http://bugs.python.org/issue14644 but with Arch Linux instead of OS X. I built python according the dev guide then ran the test suite with `./python -m test -vj3 test_logging` and failed in the SMTPHandlerTest. `self.handled.is_set()` returns false aft

[issue19664] UserDict test assumes ordered dict repr

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: In test_set, I fixed the issue by parsing repr() output, sorting items and then compare sorted items :-) -- nosy: +haypo ___ Python tracker ___

[issue19474] Argument Clinic causing compiler warnings about uninitialized variables

2013-11-20 Thread Larry Hastings
Larry Hastings added the comment: Sigh. If dataflow analysis could inline the static _impl function, it would notice that there are no code paths where the variable is uninitialized and gets used. But I'm not surprised compilers aren't that sophisticated. So I beat the problem to death with

[issue19462] Add remove_argument() method to argparse.ArgumentParser

2013-11-20 Thread paul j3
paul j3 added the comment: f.nargs = '?' f.default = argparse.SUPPRESS f.help = argparse.SUPPRESS may be best set of tweaks to a positional Action `f`. In quick tests it removes `f` from the help, suppresses any complaints about a missing string, and does not put anything in the names

[issue19474] Argument Clinic causing compiler warnings about uninitialized variables

2013-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f0f496e482e by Larry Hastings in branch 'default': Issue #19474: Argument Clinic now always specifies a default value for http://hg.python.org/cpython/rev/4f0f496e482e -- nosy: +python-dev ___ Python tra

[issue13477] tarfile module should have a command line

2013-11-20 Thread Berker Peksag
Berker Peksag added the comment: Attached an updated patch that addresses Serhiy's comments. Thanks! -- Added file: http://bugs.python.org/file32725/issue13477_v6.diff ___ Python tracker ___

[issue19664] UserDict test assumes ordered dict repr

2013-11-20 Thread Larry Hastings
New submission from Larry Hastings: If you run Lib/test/test_userdict.py enough times, sooner or later it'll produce a spurious error. I wrote a shell script that ran "./python -m test test_userdict" a zillion times; here's a snippet of output from running that script: [...] 1 test OK. [1/1]

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

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: Patch updated for Charles François's comments. -- Added file: http://bugs.python.org/file32724/4430e893d89f.patch ___ Python tracker ___ ___

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

2013-11-20 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file32547/69fd2d766005.patch ___ Python tracker ___ ___ Python-bugs-list mail

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

2013-11-20 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file32549/3bf73dcd0b42.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue14621] Hash function is not randomized properly

2013-11-20 Thread Christian Heimes
Christian Heimes added the comment: The issue has been solved for Python 3.4 with the integration of PEP 456. -- stage: -> committed/rejected status: open -> pending ___ Python tracker

[issue1208730] expat binding for XML_ParserReset

2013-11-20 Thread Christian Heimes
Changes by Christian Heimes : -- assignee: christian.heimes -> versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-

[issue18293] ssl.wrap_socket (cert_reqs=...), getpeercert, and unvalidated certificates

2013-11-20 Thread Christian Heimes
Changes by Christian Heimes : -- assignee: -> christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18233] SSLSocket.getpeercertchain()

2013-11-20 Thread Christian Heimes
Changes by Christian Heimes : -- assignee: -> christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2013-11-20 Thread Christian Heimes
Changes by Christian Heimes : -- assignee: -> christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-11-20 Thread Christian Heimes
Christian Heimes added the comment: The problems have been resolved. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue16595] Add resource.prlimit

2013-11-20 Thread Christian Heimes
Christian Heimes added the comment: Tests are passing on all buildbots for quite some time now. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue17791] PC/pyconfig.h defines PREFIX macro

2013-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset fbd856e817a1 by Christian Heimes in branch 'default': Issue #17791: Drop PREFIX and EXEC_PREFIX definitions from PC/pyconfig.h http://hg.python.org/cpython/rev/fbd856e817a1 -- nosy: +python-dev ___ Python

  1   2   >