[issue18891] Master patch for content manager addtion to email package.

2013-09-03 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: I'm thinking this may be overengineering, but I may as well post it and find out for sure. :-) Is it worth encapsulating MIME types? They're really pairs as far as mail handling applications are concerned, but they have a string representation. So

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Jeroen Van Goey
New submission from Jeroen Van Goey: The sample code in the itertools.count documentation should be indented by 4 spaces. For 2.7.4: lines 3429 till 3432 in http://hg.python.org/releasing/2.7.4/file/026ee0057e2d/Modules/itertoolsmodule.c#l3429 For 3.4.0a1: lines 3981 till 3984 in

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Jeroen Van Goey
Changes by Jeroen Van Goey jeroen.vang...@gmail.com: -- hgrepos: -207 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18912 ___ ___

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Jeroen Van Goey
Jeroen Van Goey added the comment: Patch for Python 2.7.4 attached -- keywords: +patch Added file: http://bugs.python.org/file31571/2.7itertoolsmodule.c.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18912

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2013-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: We don't have to align EVERY data structure. But I do have immediate beneficial use cases for set tables and for data blocks in deque objects. Can you explain what the use cases are, and post some benchmarking code? Also, what would be the strategy? Would

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Jeroen Van Goey
Jeroen Van Goey added the comment: Patch for Python 3.4.0a1 attached -- Added file: http://bugs.python.org/file31572/3.4itertoolsmodule.c.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18912

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-03 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Removed file: http://bugs.python.org/file31518/fix_for_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849 ___

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-03 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31573/temp_dir_exists_retry_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849 ___

[issue18902] Make ET event handling more modular to allow custom targets for the non-blocking parser

2013-09-03 Thread Stefan Behnel
Stefan Behnel added the comment: This would make it possible to layer XMLPullParser on top of the stock XMLParser coupled with a special target that collects events from the callback calls. Given that we have an XMLPullParser now, I think we should not clutter the API with more classes

[issue18851] subprocess's Popen closes stdout/stderr filedescriptors used in another thread when Popen errors

2013-09-03 Thread Jan-Wijbrand Kolman
Jan-Wijbrand Kolman added the comment: Thanks you for the swift followup! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18851 ___ ___

[issue18902] Make ElementTree event handling more modular to allow custom targets for the non-blocking parser

2013-09-03 Thread Stefan Behnel
Stefan Behnel added the comment: (fixing subject to properly hit bug filters) -- title: Make ET event handling more modular to allow custom targets for the non-blocking parser - Make ElementTree event handling more modular to allow custom targets for the non-blocking parser

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-03 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31574/temp_dir_exists_retry_33_34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849 ___

[issue18906] Create a way to always run tests in subprocesses within regrtest

2013-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The most natural approach is to have a special attribute set in the module's global dict (for example: __REGRTEST_SUBPROCESS__ = True); however, there's a slight problem with this approach - regrtest has to import the module to see this attribute, and

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2013-09-03 Thread STINNER Victor
STINNER Victor added the comment: Linux provides the following functions: int posix_memalign(void **memptr, size_t alignment, size_t size); void *valloc(size_t size); # obsolete void *memalign(size_t boundary, size_t size); # obsolete Windows provides the following functions: void*

[issue17862] itertools.chunks(iterable, size, fill=None)

2013-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We should distinguish between at least two different functions. One generates slices of input sequence (it is especially useful for strings and bytes objects), and other groups items from arbitrary iterator into tuples. They have different applications.

[issue18911] minidom does not encode correctly when calling Document.writexml

2013-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On Python 3 you should not only open file in text mode with specified encoding, but also specify the xmlcharrefreplace error handler. doc.writexml(open(filename, w, encoding=utf-8, errors=xmlcharrefreplace), , , utf-8) I can suggest only one solution

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18912 ___ ___

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Matěj Stuchlík
New submission from Matěj Stuchlík: Doing 'valgrind --suppressions=Misc/valgrind-python.supp ./python Lib/tests/test_ssl.py' I'm getting: ==322== LEAK SUMMARY: ==322==definitely lost: 32 bytes in 1 blocks ==322==indirectly lost: 392 bytes in 16 blocks ==322== possibly lost:

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-03 Thread Eli Bendersky
Eli Bendersky added the comment: The fix looks good to me, in general. Could you create a test that goes along? My only (minor) doubt is whether this should be generalized, in two dimensions: 1. PermissionError is mapped from both EACCES and EPERM. So to make the 2.7 patch equivalent with

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: To ensure it's a real memory leak: do the figures increase when the code is called in a loop? I would not consider a single-time malloc (stored in some static variable) to be a leak. -- nosy: +amaury.forgeotdarc

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Eli Bendersky
Eli Bendersky added the comment: LGTM, thanks -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18912 ___ ___ Python-bugs-list

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8e174ee0575a by Eli Bendersky in branch '3.3': Issue #18912: Fix indentation in docstring http://hg.python.org/cpython/rev/8e174ee0575a New changeset 31ef590a0d2f by Eli Bendersky in branch 'default': Issue #18912: Fix indentation in docstring

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Matěj Stuchlík
Matěj Stuchlík added the comment: That's a good idea: NULLBYTECERT = os.path.join(os.path.dirname(__file__) or os.curdir, nullbytecert.pem) for i in xrange(100): p = ssl._ssl._test_decode_cert(NULLBYTECERT) gives ==1647== LEAK SUMMARY: ==1647==definitely lost: 3,200 bytes in 100

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a559cda6a498 by Eli Bendersky in branch '2.7': Close #18912: Fix indentation in docstring http://hg.python.org/cpython/rev/a559cda6a498 -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue18906] Create a way to always run tests in subprocesses within regrtest

2013-09-03 Thread Eli Bendersky
Eli Bendersky added the comment: On Tue, Sep 3, 2013 at 2:32 AM, Serhiy Storchaka rep...@bugs.python.orgwrote: Serhiy Storchaka added the comment: The most natural approach is to have a special attribute set in the module's global dict (for example: __REGRTEST_SUBPROCESS__ = True);

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Could you possibly check this in Python 2.7, 3.2 and 3.3?. Python 2.6 is open ONLY for security fixes, if any. -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18913

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Matěj Stuchlík
Matěj Stuchlík added the comment: Ah, that is unfortunate. I did check it for 2.7 and 3.4, neither of those leak, I can check it for the rest tomorrow, but I imagine it'll be the same story. -- ___ Python tracker rep...@bugs.python.org

[issue18891] Master patch for content manager addtion to email package.

2013-09-03 Thread R. David Murray
R. David Murray added the comment: It's an interesting thought. It bothered me to be handling them as pure strings when writing the code. It just felt wrong somehow :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18891

[issue5202] wave.py cannot write wave files into a shell pipeline

2013-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is corrected patch (it uses relative seek()) with a lot of tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5202 ___

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: http://hg.python.org/cpython/rev/c4bbda2d4c49 looks relevant. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18913 ___

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Ah, http://hg.python.org/cpython/rev/80d491aaeed2/ as well then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18913 ___

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Matěj Stuchlík
Matěj Stuchlík added the comment: Potentially interesting part of the valgrind output: ==21685== 42,400 (3,200 direct, 39,200 indirect) bytes in 100 blocks are definitely lost in loss record 909 of 914 ==21685==at 0x4A0887C: malloc (vg_replace_malloc.c:270) ==21685==by 0x331B06315F:

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Matěj Stuchlík
Matěj Stuchlík added the comment: That seems to be it, no more leaking! Good job! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18913 ___ ___

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-09-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- title: SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238) - SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

[issue18906] Create a way to always run tests in subprocesses within regrtest

2013-09-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18906 ___

[issue16662] load_tests not invoked in package/__init__.py

2013-09-03 Thread Zachary Ware
Zachary Ware added the comment: I took a stab at the doc changes, attached here and including Barry's patch. -- components: +Library (Lib) type: - enhancement versions: +Python 3.4 Added file: http://bugs.python.org/file31575/16662_with_doc.diff ___

[issue18914] Python docs link to terrible outsi

2013-09-03 Thread Brian Mingus
New submission from Brian Mingus: The python documentation links to an outside website for info and examples on http basic auth. This documentation is terrible and confusing. The link should be removed, and user's should be advised to use the Requests library. # this example is from

[issue18914] Confusing documentation in the urllib2 HOWTO

2013-09-03 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +michael.foord title: Python docs link to terrible outsi - Confusing documentation in the urllib2 HOWTO ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18914

[issue16938] pydoc confused by __dir__

2013-09-03 Thread Ethan Furman
Ethan Furman added the comment: I wonder if it would be better to have inspect.classify_class_attrs be improved instead? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16938 ___

[issue18914] Confusing documentation in the urllib2 HOWTO

2013-09-03 Thread Brian Mingus
Brian Mingus added the comment: The documentation is confusing. Consider this comment: # All calls to urllib2.urlopen will now use our handler # Make sure not to include the protocol in with the URL, or # HTTPPasswordMgrWithDefaultRealm will be very confused. # You must (of course) use it when

[issue18891] Master patch for content manager addtion to email package.

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 03, 2013, at 07:37 AM, Stephen J. Turnbull wrote: I'm thinking this may be overengineering, but I may as well post it and find out for sure. :-) Is it worth encapsulating MIME types? They're really pairs as far as mail handling applications are

[issue18914] Confusing documentation in the urllib2 HOWTO

2013-09-03 Thread R. David Murray
R. David Murray added the comment: Suggesting using a 3rd party library in order to explain how to use the python standard library to do something isn't going to work. Would you like to propose an alternate article or an improvement to the howto, using only stdlib facilities? (Note that the

[issue16039] imaplib: unlimited readline() from connection

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: blocker for 2.6.9 -- nosy: +barry priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16039 ___

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: blocker for 2.6.9 -- nosy: +larry priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18747 ___

[issue16201] socket.gethostbyname incorrectly parses ip

2013-09-03 Thread Charles-François Natali
Charles-François Natali added the comment: Here's an updated patch with new tests. It passes the regression test, and yields noticable performance improvements for IPv6: before: $ ./python -m timeit -s import socket; s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM); DATA = b'hello'

[issue16040] nntplib: unlimited readline() from connection

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: blocker for 2.6.9 -- nosy: +barry priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16040 ___

[issue16038] ftplib: unlimited readline() from connection

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: blocker for 2.6.9 -- nosy: +barry priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: blocker for 2.6.9 -- priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16043 ___

[issue16037] httplib: header parsing is not delimited

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: blocker for 2.6.9 -- priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16037 ___

[issue16042] smtplib: unlimited readline() from connection

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: blocker for 2.6.9 -- priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16042 ___

[issue18914] Confusing documentation in the urllib2 HOWTO

2013-09-03 Thread Brian Mingus
Brian Mingus added the comment: Yes - this link was a waste of my time. It would have been better if it had not been there. I propose to replace it with nothing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18914

[issue18914] Confusing documentation in the urllib2 HOWTO

2013-09-03 Thread R. David Murray
R. David Murray added the comment: The article is *explaining* basic auth, thus the pedegogy of the presentation, and why it is a see also and not part of the docs proper. I'll admit I don't understand the first part of that comment, since the second part says you do have to put the protocol

[issue17487] wave.Wave_read.getparams should be more user friendly

2013-09-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka stage: committed/rejected - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17487

[issue18914] Confusing documentation in the urllib2 HOWTO

2013-09-03 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18914 ___ ___ Python-bugs-list

[issue11126] Wave.py does not always write proper length in header

2013-09-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - invalid stage: - committed/rejected status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11126 ___

[issue18878] Add support of the 'with' statement to sunau.open.

2013-09-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18878 ___ ___

[issue18878] Add support of the 'with' statement to sunau.open.

2013-09-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18878 ___ ___

[issue18901] sunau.getparams should return a namedtuple

2013-09-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18901 ___

[issue8311] wave module sets data subchunk size incorrectly when writing wav file

2013-09-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8311 ___ ___

[issue8934] aifc should use str instead of bytes (wave, sunau compatibility)

2013-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I afraid we can't just change comptype to string. We can allow setcomptype() accept strings and convert them to bytes, but we can't change the type of getcomptype()'s result. -- ___ Python tracker

[issue18901] sunau.getparams should return a namedtuple

2013-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Claudiu for your contribution. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18901

[issue17487] wave.Wave_read.getparams should be more user friendly

2013-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Claudiu. I have changed _Wave_params to _wave_params for consistency with issue17818 and issue18901. -- stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue18878] Add support of the 'with' statement to sunau.open.

2013-09-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file31577/sunau_context_manager.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18878 ___

[issue18878] Add support of the 'with' statement to sunau.open.

2013-09-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file31512/sunau_context_manager.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18878 ___

[issue18878] Add support of the 'with' statement to sunau.open.

2013-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I will commit it tomorrow if there are no objections. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18878 ___

[issue18901] sunau.getparams should return a namedtuple

2013-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 99d26f32aed3 by Serhiy Storchaka in branch 'default': Issue #18901: The sunau getparams method now returns a namedtuple rather than http://hg.python.org/cpython/rev/99d26f32aed3 -- nosy: +python-dev ___

[issue17487] wave.Wave_read.getparams should be more user friendly

2013-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a14ec46de0a4 by Serhiy Storchaka in branch 'default': Issue #17487: The result of the wave getparams method now is pickleable again. http://hg.python.org/cpython/rev/a14ec46de0a4 -- ___ Python tracker

[issue16826] Don't check for PYTHONCASEOK if interpreter started with -E

2013-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 934e650abc4d by Meador Inge in branch '3.3': Issue #16826: Don't check for PYTHONCASEOK when using -E. http://hg.python.org/cpython/rev/934e650abc4d New changeset ba850a78cbbc by Meador Inge in branch 'default': Issue #16826: Don't check for

[issue16826] Don't check for PYTHONCASEOK if interpreter started with -E

2013-09-03 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16826 ___

[issue18909] Segfaults on win-amd64 due to corrupt pointer to Tkapp_Interp

2013-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is PyLong_FromVoidPtr() for such cases. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18909 ___

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

2013-09-03 Thread STINNER Victor
STINNER Victor added the comment: Oh, another TODO: drop the (optional) dependency to psutil. Implement get_process_memory() in C (in the _tracemalloc module). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874

[issue18915] ssl.wrap_socket, pass in certfile and keyfile as PEM strings

2013-09-03 Thread mpb
New submission from mpb: It would be nice to be able to pass ssl.wrap_socket the key and certificate as PEM encoded strings, rather than as paths to files. Similarly for SSLContext.load_cert_chain. -- components: Library (Lib) messages: 196878 nosy: mpb priority: normal severity:

[issue18914] Confusing documentation in the urllib2 HOWTO

2013-09-03 Thread Michael Foord
Michael Foord added the comment: As David explained, the linked article *explains* basic auth as well as showing how to use the standard library support. I think the article is still of some value, it has certainly been useful to many people. -- resolution: - wont fix stage: -

[issue16826] Don't check for PYTHONCASEOK if interpreter started with -E

2013-09-03 Thread Meador Inge
Meador Inge added the comment: My last commit caused some buildbot failures (http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.3/builds/1069). I am investigating. -- ___ Python tracker rep...@bugs.python.org

[issue18916] Various out-of-date Lock text in 3.2+

2013-09-03 Thread Tim Peters
New submission from Tim Peters: Here under 3.3.2: from threading import Lock help(Lock) Help on built-in function allocate_lock in module _thread: allocate_lock(...) allocate_lock() - lock object (allocate() is an obsolete synonym) Create a new lock object. See

[issue18898] Apply the setobject optimizations to dictionaries

2013-09-03 Thread Alan Cristhian
Changes by Alan Cristhian alan.cri...@gmail.com: -- nosy: +Alan.Cristhian ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18898 ___ ___

[issue16826] Don't check for PYTHONCASEOK if interpreter started with -E

2013-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7801ef4a4ce3 by Meador Inge in branch '3.3': Issue #16826: Revert fix while Windows issues are being worked out. http://hg.python.org/cpython/rev/7801ef4a4ce3 New changeset a1282b67b4cf by Meador Inge in branch 'default': Issue #16826: Revert fix

[issue18916] Various out-of-date Lock text in 3.2+

2013-09-03 Thread R. David Murray
R. David Murray added the comment: Thanks. I suspect someone will indeed latch on to this soon enough. We use the 'versions' to track what version we are going to fix the bug in. So I've removed 3.2, since that only gets security fixes, and 3.5, since that doesn't exist yet. (If we don't

[issue15875] tarfile may not make @LongLink for non-ascii character

2013-09-03 Thread Manuke
Changes by Manuke manuke.skyl...@gmail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15875 ___ ___ Python-bugs-list

[issue12704] Language Reference: Clarify behaviour of yield when generator is not resumed

2013-09-03 Thread Nikolaus Rath
Nikolaus Rath added the comment: *ping* -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12704 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18917] python won't display greek characters in apache under windows

2013-09-03 Thread Nick
New submission from Nick: I've set up apache on Windows 7 and I'm running python with cgi. I have a script that contains this: #!C:\Python34\python.exe print (Content-Type: text/html; charset=utf-8\n) print (Δοκιμή) Pretty simple, right? When I'm opening the page to my browser in stead of

[issue18917] python won't display greek characters in apache under windows

2013-09-03 Thread Nick
Changes by Nick low...@yahoo.com: -- components: +Unicode, Windows nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18917 ___ ___

[issue18882] Add threading.main_thread() function

2013-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 96e55a1a0de7 by Andrew Svetlov in branch 'default': Issue #18882: Add threading.main_thread() function. http://hg.python.org/cpython/rev/96e55a1a0de7 -- nosy: +python-dev ___ Python tracker

[issue18882] Add threading.main_thread() function

2013-09-03 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18882

[issue18918] help('FILES') finds no documentation

2013-09-03 Thread bussau
New submission from bussau: Calling for help() about the topic 'FILES' returns no documentation found for 'FILES' -- Python 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC] on linux2 Type help, copyright, credits or license for more information. help('topics') Here

[issue14903] dictobject infinite loop while importing socket

2013-09-03 Thread Daniel Farina
Daniel Farina added the comment: I've confirmed this in a non-gevent program (actually a very trivial one, I can include the source if anyone asks), in 'initposix'. This is on a quiet system, so OOM is not a very likely explanation. Perhaps signal handling? #0 0x0054662d in ?? ()

[issue18918] help('FILES') finds no documentation

2013-09-03 Thread Ramchandra Apte
Ramchandra Apte added the comment: I am able to reproduce on Python 3.3 as well. -- components: -Interpreter Core nosy: +Ramchandra Apte versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18918

[issue14903] dictobject infinite loop while importing socket

2013-09-03 Thread Alex Gaynor
Alex Gaynor added the comment: If you could supply the source that'd be great. -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14903 ___