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

2013-11-20 Thread dellair jie
New submission from dellair jie: Dear all, I am getting above error when trying to import ssl module. In fact, the error showed up during the build and _ssl module was added to the failed module list. However, the compilation and link went well. There was no error on compilation and link pha

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset adb471b9cba1 by Christian Heimes in branch 'default': ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'. http://hg.python.org/cpython/rev/adb471b9cba1 -- ___ Python tracker

[issue19662] smtpd.py should not decode utf-8

2013-11-20 Thread Leslie P. Polzer
New submission from Leslie P. Polzer: http://hg.python.org/cpython/file/3.3/Lib/smtpd.py#l289 as of now decodes incoming bytes as UTF-8. An SMTP server must not attempt to interpret characters beyond ASCII, however. Originally mail servers were not 8-bit clean, meaning they would only guarante

[issue19662] smtpd.py should not decode utf-8

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

[issue12816] smtpd uses library outside of the standard libraries

2013-11-20 Thread Leslie P. Polzer
Changes by Leslie P. Polzer : -- nosy: +lpolzer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue16462] smtpd should return greeting

2013-11-20 Thread Leslie P. Polzer
Changes by Leslie P. Polzer : -- nosy: +lpolzer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue8503] smtpd SMTPServer does not allow domain filtering

2013-11-20 Thread Leslie P. Polzer
Changes by Leslie P. Polzer : -- nosy: +lpolzer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue3802] smtpd.py __getaddr insufficient handling

2013-11-20 Thread Leslie P. Polzer
Changes by Leslie P. Polzer : -- nosy: +lpolzer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 422ed27b62ce by Christian Heimes in branch 'default': Issue #19183: test_gdb's test_dict was failing on some machines as the order or dict keys has changed again. http://hg.python.org/cpython/rev/422ed27b62ce -- ___

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-11-20 Thread Christian Heimes
Changes by Christian Heimes : -- assignee: ncoghlan -> christian.heimes resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 11cb1c8faf11 by Victor Stinner in branch 'default': Issue #19183: Fix repr() tests of test_gdb, hash() is now platform dependent http://hg.python.org/cpython/rev/11cb1c8faf11 -- ___ Python tracker

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2013-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I there are no objections I'll commit this patch soon. -- assignee: -> serhiy.storchaka Added file: http://bugs.python.org/file32718/json_decode_lone_surrogates_3-3.4.patch ___ Python tracker

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 961d832d8734 by Christian Heimes in branch 'default': Issue #19183: too many tests depend on the sort order of repr(). http://hg.python.org/cpython/rev/961d832d8734 -- ___ Python tracker

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: Not only test_gdb relies on repr() exact value, there is also test_functools: http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/6875/steps/test/logs/stdio == FAIL: test_r

[issue18290] json encoder does not support JSONP/JavaScript safe escaping

2013-11-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> committed/rejected status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list m

[issue19662] smtpd.py should not decode utf-8

2013-11-20 Thread Leslie P. Polzer
Leslie P. Polzer added the comment: Patch attached. This also adds some more charset clarification to the docs and corrects a minor spelling issue. It is also conceivable that we add a charset attribute to the class. This should have the safe default of latin1, and some notes in the docs that

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: > PyRun_FileObject() looks misleading, because it works with FILE*, not with a > file object. I simply replaced the current suffix with Object(). Only filename is converted from char* to PyObject*. Do you have a better suggestion for the new name? --

[issue19506] subprocess.communicate() should use a memoryview

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: > What is a performance for small chunks? I have no idea. Does it matter? -- ___ Python tracker ___ ___

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No I have not a better suggestion. But I afraid that one day you will wanted to extend PyRun_File*() function to work with a general Python file object (perhaps there is such issue already) and then you will encountered a problem. -- ___

[issue1065986] Fix pydoc crashing on unicode strings

2013-11-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue19662] smtpd.py should not decode utf-8

2013-11-20 Thread R. David Murray
R. David Murray added the comment: This bug was apparently introduced as part of the work from issue 4184 in python 3.2. My guess, looking at the code, is that the module simply didn't work before that patch, since it would have been attempting to join binary data using a string join (''.join

[issue19506] subprocess.communicate() should use a memoryview

2013-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't know. But a function call have a cost. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue19506] subprocess.communicate() should use a memoryview

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: New patch without the unwanted change in listobject.c. -- Added file: http://bugs.python.org/file32720/subprocess_memoryview-2.patch ___ Python tracker

[issue19506] subprocess.communicate() should use a memoryview

2013-11-20 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file32714/subprocess_memoryview.patch ___ Python tracker ___ ___ Python-bugs-

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: Perhaps we could we use the suffix "Unicode" rather than "Object"? These don't work with arbitrary objects, they expect a unicode string. PyRun_InteractiveOneObject would be updated to use the new suffix as well. That would both be clearer for the user, and addr

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: FYI I already added a bunch of new functions with Object suffix when I replaced char* with PyObject*. Example: http://hg.python.org/cpython/rev/df2fdd42b375 http://bugs.python.org/issue11619 -- ___ Python tracker

[issue1065986] Fix pydoc crashing on unicode strings

2013-11-20 Thread R. David Murray
R. David Murray added the comment: Benjamin: the patch looks pretty good to me, for fixing the problem of docstrings that are explicitly unicode. But before I go to the trouble of a full review and test, is this a level of change you think is acceptable in 2.7 at this point it its lifecycle?

[issue6490] os.popen documentation is probably wrong

2013-11-20 Thread Martin Panter
Martin Panter added the comment: Please apply Neil Muller’s documentation patch. It is certainly better than the current state. If you want to improve it further, maybe get rid of the trailing comma, and mention that the close() method returns the exit status encoded like the wait() function.

[issue19506] subprocess.communicate() should use a memoryview

2013-11-20 Thread Charles-François Natali
Charles-François Natali added the comment: > Serhiy Storchaka added the comment: > > I don't know. But a function call have a cost. I'm with Serhiy here. Writing a performance optimization without benchmark is generally a bad idea (I won't quote Knuth :-). -- __

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

2013-11-20 Thread Charles-François Natali
Charles-François Natali added the comment: I made a review at http://bugs.python.org/review/18874/#ps9860 (not sure you got notified). -- ___ Python tracker ___

[issue1065986] Fix pydoc crashing on unicode strings

2013-11-20 Thread Akira Kitada
Akira Kitada added the comment: Added to html pydoc generates. -- Added file: http://bugs.python.org/file32721/issue1065986-4.patch ___ Python tracker ___

[issue1065986] Fix pydoc crashing on unicode strings

2013-11-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: Okay with me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue19662] smtpd.py should not decode utf-8

2013-11-20 Thread Leslie P. Polzer
Leslie P. Polzer added the comment: Since this is my first contribution I'm not entirely sure about the fine details of backwards compatibility in Python, so please forgive me if I'm totally missing the mark here. There are facilities in smtpd's parent class asynchat that perform the necessar

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, reading more of those and I think Serhiy is definitely right - Object is the wrong suffix. Unicode isn't right either, since the main problem is that ambiguity around *which* parameter is a Python Unicode object. The API names that end in *StringObject or *Fil

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > FYI I already added a bunch of new functions with Object suffix when I > replaced char* with PyObject*. Most of them were added in 3.4. Unfortunately several functions were added earlier (e.g. PyImport_ExecCodeModuleObject, PyErr_SetFromErrnoWithFilenameO

[issue19653] Generalize usage of _PyUnicodeWriter for repr(obj): add _PyObject_ReprWriter()

2013-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why would you want to speed up repr()? I'm -1 unless there's an use case. -- nosy: +pitrou ___ Python tracker ___ __

[issue19653] Generalize usage of _PyUnicodeWriter for repr(obj): add _PyObject_ReprWriter()

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: After writing the patch, I realized that it adds a lot of new functions and add more code. Then I asked myself if repr() is really an important function or not :-) 3 other developers ask the same question, so it's probably better to reject this huge patch :-)

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

2013-11-20 Thread STINNER Victor
STINNER Victor added the comment: The failures are sporadic, I don't understand how the tests can pass sometimes... -- ___ Python tracker ___ ___

[issue18391] socket.fromfd()'s API is difficult or impossible to use correctly in general

2013-11-20 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue9246] os.getcwd() hardcodes max path len

2013-11-20 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19572] Report more silently skipped tests as skipped

2013-11-20 Thread Zachary Ware
Zachary Ware added the comment: pickletester issue opened at #19648. The test_posix issue already has an open issue at #9246. -- ___ Python tracker ___

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

2013-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 74b76a726285 by Serhiy Storchaka in branch '3.3': Print Tk patchlevel in test_tcl in verbose mode (issue19654). http://hg.python.org/cpython/rev/74b76a726285 New changeset 1b58f14f5d60 by Serhiy Storchaka in branch 'default': Print Tk patchlevel in

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

2013-11-20 Thread Andy Dirnberger
Changes by Andy Dirnberger : -- nosy: +dirn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19662] smtpd.py should not decode utf-8

2013-11-20 Thread R. David Murray
R. David Murray added the comment: I think the only backward compatible solution is to add a switch of *some* sort (exact API TBD), whose default is to continue to decode using utf-8, and document it as wrong. Conversion of an email to unicode should be handled by the email package, not by sm

[issue19662] smtpd.py should not decode utf-8

2013-11-20 Thread R. David Murray
R. David Murray added the comment: Oh, and to clarify: the backward compatibility is that if code works with X.Y.Z, it should work with X.Y.Z+1. So even though correctly handling binary mail would indeed require someone to reexamine their code, if things happen to be working OK for them (eg:

[issue17276] HMAC: deprecate default hash

2013-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 86107e7e6ee5 by Christian Heimes in branch 'default': Issue #17276: MD5 as default digestmod for HMAC is deprecated. The HMAC http://hg.python.org/cpython/rev/86107e7e6ee5 -- nosy: +python-dev ___ Python

[issue17276] HMAC: deprecate default hash

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

[issue19663] Not so correct error message when initializing defaultdict

2013-11-20 Thread Vajrasky Kok
New submission from Vajrasky Kok: >>> from collections import defaultdict >>> defaultdict('') Traceback (most recent call last): File "", line 1, in TypeError: first argument must be callable >>> defaultdict(None) defaultdict(None, {}) >>> None() Traceback (most recent call last): File "", l

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

2013-11-20 Thread Artem Ustinov
Artem Ustinov added the comment: It does the trick with optionals but not the positionals. How the positional arguments can be removed/hidden? -- ___ Python tracker ___ _

[issue18775] name attribute for HMAC

2013-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71f4a805d262 by Christian Heimes in branch 'default': Issue #18775: Add name and block_size attribute to HMAC object. They now http://hg.python.org/cpython/rev/71f4a805d262 -- nosy: +python-dev ___ Python

[issue18775] name attribute for HMAC

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

[issue17791] PC/pyconfig.h defines PREFIX macro

2013-11-20 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue16632] Enable DEP and ASLR

2013-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset cb1691d42101 by Christian Heimes in branch 'default': Issue #16632: Enable DEP and ASLR on Windows. http://hg.python.org/cpython/rev/cb1691d42101 -- nosy: +python-dev ___ Python tracker

[issue16632] Enable DEP and ASLR

2013-11-20 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[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

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

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

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

[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

[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
STINNER Victor added the comment: Patch updated for Charles François's comments. -- Added file: http://bugs.python.org/file32724/4430e893d89f.patch ___ 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]

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

[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

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

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

[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

[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

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

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

[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

[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

[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

[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

[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

[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
Changes by R. David Murray : Removed file: http://bugs.python.org/file32730/support_8bit_charset_cte.patch ___ Python tracker ___ ___ Python-b

[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

[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

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

[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

[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

[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 Ezio Melotti
Ezio Melotti added the comment: SGTM. -- keywords: +easy stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Pytho

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

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

[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
Changes by Éric Araujo : -- nosy: +ncoghlan -nick ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[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

[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

[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

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

  1   2   >