[issue14014] codecs.StreamWriter.reset contract not fulfilled

2015-01-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 14.01.2015 02:21, Martin Panter wrote: > > Martin Panter added the comment: > > I don’t think this is appropriate. If you want to flush the underlying > stream, then call its flush() method after calling reset(). The docstring > only says it flushes th

Re: [issue14014] codecs.StreamWriter.reset contract not fulfilled

2015-01-14 Thread M.-A. Lemburg
Adding a note to the documentation is fine. The .reset() method doesn't have anything to do with the underlying stream. It's only meant to work at the codec level and needed for codecs that keep internal state. -- Marc-Andre Lemburg eGenix.com ___ Pyt

[issue23238] http.server failed to decode '+' to ' ' when calling cgi script/executable in window

2015-01-14 Thread memkmemk
New submission from memkmemk: The actual commandline generated from http request does not decode '+' back to ' ' -- messages: 234016 nosy: memkmemk priority: normal severity: normal status: open title: http.server failed to decode '+' to ' ' when calling cgi script/executable in window

[issue23238] http.server failed to decode '+' to ' ' when calling cgi script/executable in window

2015-01-14 Thread memkmemk
Changes by memkmemk : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue23239] SSL match_hostname does not accept IP Address

2015-01-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +alex, pitrou versions: +Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list maili

[issue23239] SSL match_hostname does not accept IP Address

2015-01-14 Thread Ádám Zsigmond
New submission from Ádám Zsigmond: ssl.match_hostname does not accept the ca certificate if the hostname matches the ip address. I am trying to connect to a servert with a cacert by IP address but I get an error message like: '42.42.42.42' hostname does not match '' The IP Address is in the

[issue23018] Add version info to python

2015-01-14 Thread Tim Golden
Tim Golden added the comment: +1 from me, then. -- title: Add version info to python[w].exe -> Add version info to python ___ Python tracker ___ _

[issue1602] windows console doesn't print or input Unicode

2015-01-14 Thread Drekin
Drekin added the comment: Note that win-unicode-console replaces the stdio streams rather than wraps them. So the desired state would be Unicode stream objects wrapped by PTVS. There would be no problem if win-unicode-console stream replacement occured before PTVS wraps them, which should be t

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-14 Thread Gustavo Temple
Changes by Gustavo Temple : Added file: http://bugs.python.org/file37704/atomicv5.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue1602] windows console doesn't print or input Unicode

2015-01-14 Thread Dainis Jonitis
Dainis Jonitis added the comment: Presumably Unicode streams would also fix file redirects. Currently, if you want to redirect stdout output to file it throws. For example PowerShell: C:\Python34\python.exe .\test.py | out-file -Encoding utf8 -FilePath 'test.txt' -- __

[issue23240] pip 6.0.6- pip install command is broken

2015-01-14 Thread arnaud gaboury
New submission from arnaud gaboury: gabx@hortensia ➤➤ ~ % pip3.4 install websocket-client Exception: Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/pip/basecommand.py", line 232, in main status = self.run(options, args) File "/usr/lib/python3.4/site-packages/pip

[issue23181] Unicode "code point" should be two words in documentation

2015-01-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "codepoint" is still used in error messages, docstrings and comments. Doc/library/json.rst:517::class:`str`) codepoints for such sequences. Lib/email/message.py:276:# containing only ASCII codepoints in the unicode input). Lib/html/entitie

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-14 Thread Gustavo Temple
Gustavo Temple added the comment: @haypo, @Arfrever, done: atomicv5.patch -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23181] Unicode "code point" should be two words in documentation

2015-01-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which fixes remnants. -- Added file: http://bugs.python.org/file37705/code_point_2.patch ___ Python tracker ___ __

[issue23241] shutil should accept pathlib types

2015-01-14 Thread Michael Kesper
New submission from Michael Kesper: source_path = Path('../data') destination_path = Path('//file_server/work/whatever') for file_name in source_path.glob('xyz-*'): shutil.copyfile(source_path / file_name, destination_path / file_name) leads to: Traceback (most recent call last): File "co

[issue23238] http.server failed to decode '+' to ' ' when calling cgi script/executable in window

2015-01-14 Thread R. David Murray
R. David Murray added the comment: There is insufficient information here to reproduce your issue. Can you provide an example? -- nosy: +r.david.murray ___ Python tracker ___ _

[issue23239] SSL match_hostname does not accept IP Address

2015-01-14 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue23241] shutil should accept pathlib types

2015-01-14 Thread R. David Murray
R. David Murray added the comment: This is a specific example of a global discussion about handling of paths in the stdlib. So far we have elected not to provide special handling. The correct thing to do is call str. I'm not sure if shutil is special enough to be a special case, but it woul

[issue23240] pip 6.0.6- pip install command is broken

2015-01-14 Thread Donald Stufft
Donald Stufft added the comment: This is a pip problem and should be filed against the pip issue tracker at https://github.com/pypa/pip/issues. -- ___ Python tracker ___ ___

[issue23240] pip 6.0.6- pip install command is broken

2015-01-14 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> third party status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue21590] Systemtap and DTrace support

2015-01-14 Thread Augie Fackler
Changes by Augie Fackler : -- nosy: +durin42 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset dacc944641b1 by Victor Stinner in branch 'default': Issue #22038, configure: HAVE_STD_ATOMIC now also check that "atomic_int" and https://hg.python.org/cpython/rev/dacc944641b1 -- ___ Python tracker

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-14 Thread STINNER Victor
STINNER Victor added the comment: I commited atomicv5.patch because it's simple, but I'm not sure that we are using stdatomic.h "correctly". The current code looks to be written for GCC, Clang fails to compile it (FreeBSD 10 now uses Clang instead of GCC). Maybe the "_Atomic void*" type is wro

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-14 Thread STINNER Victor
STINNER Victor added the comment: At least, the latest change repaired FreeBSD 10 compilation. -- ___ Python tracker ___ ___ Python-bu

[issue13405] Add DTrace probes

2015-01-14 Thread Augie Fackler
Changes by Augie Fackler : -- nosy: +durin42 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23234] refactor subprocess: use new OSError exceptions, factorize stdin.write() code

2015-01-14 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23234] refactor subprocess: use new OSError exceptions, factorize stdin.write() code

2015-01-14 Thread STINNER Victor
STINNER Victor added the comment: I commited my change to Python 3.5. Thanks for the review Serhiy & vadmium. -- ___ Python tracker ___ __

[issue23226] Add float linspace recipe to docs

2015-01-14 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23197] asyncio: check if a future is cancelled before calling set_result/set_exception

2015-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset c9ad45b15919 by Victor Stinner in branch '3.4': Issue #23197, asyncio: On SSL handshake failure, check if the waiter is https://hg.python.org/cpython/rev/c9ad45b15919 -- ___ Python tracker

[issue23234] refactor subprocess: use new OSError exceptions, factorize stdin.write() code

2015-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c5ae257966f by Victor Stinner in branch 'default': Closes #23234: Refactor subprocess https://hg.python.org/cpython/rev/0c5ae257966f -- nosy: +python-dev stage: patch review -> resolved ___ Python tracke

[issue23197] asyncio: check if a future is cancelled before calling set_result/set_exception

2015-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 42f4dfc6c6a9 by Victor Stinner in branch '3.4': Issue #23197: On SSL handshake failure on matching hostname, check if the https://hg.python.org/cpython/rev/42f4dfc6c6a9 -- nosy: +python-dev ___ Python tra

[issue23197] asyncio: check if a future is cancelled before calling set_result/set_exception

2015-01-14 Thread STINNER Victor
STINNER Victor added the comment: Ok, I commited my changes to Python 3.4, Python 3.5 and Tulip. All calls to set_result/set_exception should now be protected by a check on the future state. There is now a new class of bugs, but it's a different issue: https://code.google.com/p/tulip/issues/det

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-14 Thread Gustavo Temple
Gustavo Temple added the comment: @haypo, I checked and your idea and implementation are very good, thank you very much. Yes, there is a Clang-specific implementation of the stdatomic.h header [1]. The Musl libc for example created a stdatomic.h header with full compatibility [2]. [1] http:/

[issue23239] SSL match_hostname does not accept IP Address

2015-01-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> needs patch type: security -> enhancement versions: -Python 2.7, Python 3.4 ___ Python tracker ___

[issue23239] SSL match_hostname does not accept IP Address

2015-01-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is a feature request. Not supporting IP addresses is a documented limitation of the current implementation. -- nosy: +christian.heimes, dstufft ___ Python tracker ___

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

2015-01-14 Thread William Scullin
Changes by William Scullin : -- nosy: +wscullin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2015-01-14 Thread Davin Potts
Changes by Davin Potts : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2015-01-14 Thread Davin Potts
Davin Potts added the comment: Successfully reproduced the behavior playing through variations with the supplied examples (very helpful) on OS X v10.9.5 both in 2.7.9 and the default branch -- adding version 3.5 to issue. Also successfully verified that the supplied patches do just as advertis

[issue5804] Add an 'offset' argument to zlib.decompress

2015-01-14 Thread Martin Panter
Martin Panter added the comment: A different test case for “unused_data” attribute was added in 2012 for Issue 16350, so that part is no longer needed. If this feature goes ahead, it might be nice to also update the bzip and LZMA modules for consistency. In Python 3, the equivalent of the buf

[issue22560] New SSL implementation based on ssl.MemoryBIO

2015-01-14 Thread STINNER Victor
STINNER Victor added the comment: While I tried to write an unit test to reproduce a bug (cancelled waiter), I noticed that the handshake callback of the protocol can be called indirectly from _process_write_backlog(). So _process_write_backlog() may be called indirectly from _process_write_ba

[issue23242] asyncio: Process must close the transport when the process exit

2015-01-14 Thread STINNER Victor
New submission from STINNER Victor: The asyncio.subprocess.Process class never closes the subprocess transport, whereas this transport is private. I propose to close the transport as soon as possible: when transport.get_returncode() is called and its result is not None. I'm not sure that it's

[issue23243] asyncio: emit ResourceWarning warnings if transports/event loops are not explicitly closed

2015-01-14 Thread STINNER Victor
New submission from STINNER Victor: I propose to add destructors to transports and event loops which emit a ResourceWarning if they are not closed. The change should help to detect resource leaks and bugs. Attached patch implements this issue. It only adds destructors on Python 3.4 and later,

[issue8450] httplib: false BadStatusLine() raised

2015-01-14 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue17239] XML vulnerabilities in Python

2015-01-14 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue22970] Cancelling wait() after notification leaves Condition in an inconsistent state

2015-01-14 Thread David Coles
David Coles added the comment: Hi Victor, (Sorry for the delay, I think GMail ate the notification) The main issue is that Condition.wait MUST reacquire the associated lock released on entry to wait() before returning or else the caller's assumption that it holds a lock (such as `with lock:`)

[issue23238] http.server failed to decode '+' to ' ' when calling cgi script/executable in window

2015-01-14 Thread memkmemk
memkmemk added the comment: OK. Here is the exact things I did. All the txt is in the attached codes.zip I was playing around with python -m http.server --cgi and decided to make a java cgi. So 1. I created one and compile it. (hellojava.java) 2. Test run it in console. (c1.txt) 3. as java clas

[issue22970] Cancelling wait() after notification leaves Condition in an inconsistent state

2015-01-14 Thread David Coles
David Coles added the comment: Just for context, the reason for using a custom wait function (cond_wait_timeout) rather than the more idiomatic asyncio.wait_for(cond.wait(), timeout) is that the combination introduces another subtle, but nasty locking inconsistency (see https://groups.google.

[issue23244] doc typo in 'Glossary': 'generator'

2015-01-14 Thread N0v1ce Llve
New submission from N0v1ce Llve: 'a series a values' in the description of 'generator' in 'Glossary' should be 'a series of values'. Take the online documentation for example, the whole sentence is - > It looks like a normal function except that it contains yield statements for > producing

[issue13881] Stream encoder for zlib_codec doesn't use the incremental encoder

2015-01-14 Thread Martin Panter
Martin Panter added the comment: New patch that also fixes StreamWriter.writelines() in general for the byte codecs -- Added file: http://bugs.python.org/file37710/zlib-bz2-writer.v2.patch ___ Python tracker _

[issue17546] Document the circumstances where the locals() dict get updated

2015-01-14 Thread Ethan Furman
Ethan Furman added the comment: Combined the second and last lines, discarded duplication. -- nosy: +ethan.furman versions: +Python 3.5 Added file: http://bugs.python.org/file37711/issue17546.stoneleaf.01.patch ___ Python tracker

[issue18986] Add a case-insensitive case-preserving dict

2015-01-14 Thread Ethan Furman
Ethan Furman added the comment: 3.5 is almost here; Raymond, care to make a ruling? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2015-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset db09d760b965 by Benjamin Peterson in branch '3.4': fix parsing reST with code or code-block directives (closes #23063) https://hg.python.org/cpython/rev/db09d760b965 New changeset 38826e21f0db by Benjamin Peterson in branch '2.7': fix parsing reST w

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2015-01-14 Thread Ethan Furman
Changes by Ethan Furman : -- assignee: -> ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue20680] Pickle socket enums by names

2015-01-14 Thread Ethan Furman
Changes by Ethan Furman : -- assignee: -> ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue20773] Improve docs for DynamicClassAttribute

2015-01-14 Thread Ethan Furman
Changes by Ethan Furman : -- assignee: -> ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue17422] language reference should specify restrictions on class namespace

2015-01-14 Thread Ethan Furman
Changes by Ethan Furman : -- keywords: +patch stage: needs patch -> patch review versions: +Python 3.5 Added file: http://bugs.python.org/file37712/issue17422.stoneleaf.01.patch ___ Python tracker _

[issue22986] Improved handling of __class__ assignment

2015-01-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Why do you have all these special cases of ref-counting based on Py_TPFLAGS_HEAPTYPE? "static" types are generally ref-counted, too. (They just hopefully don't reach 0 often. :)) -- ___ Python tracker

[issue22986] Improved handling of __class__ assignment

2015-01-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Oh, I forgot references to non-heaptypes in the header don't count... objects now being able to transmute between heap and heap-type really makes for a nice can of worms. -- ___ Python tracker

[issue20467] Confusing wording about __init__

2015-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94696e457461 by Ethan Furman in branch '3.3': Issue20467: clarify __init__'s role https://hg.python.org/cpython/rev/94696e457461 New changeset 46c9b34f31b8 by Ethan Furman in branch '3.4': Issue20467: clarify __init__'s role https://hg.python.org/cp

[issue23245] urllib2: urlopen() gets exception(kwargs bug?)

2015-01-14 Thread Douman
New submission from Douman: I get strange callstack from urllib2 It seems that python thinks that HTTPSConnection doesn't have context argument. Which is entirely incorrect. I have suspicions that this is related to the way how context argument is passed(kwargs) This happens starting from pyth

[issue20467] Confusing wording about __init__

2015-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7972b18b6e42 by Ethan Furman in branch '2.7': Issue20467: clarify __init__'s role https://hg.python.org/cpython/rev/7972b18b6e42 -- ___ Python tracker

[issue20467] Confusing wording about __init__

2015-01-14 Thread Ethan Furman
Ethan Furman added the comment: Changed 'no value may be returned' to 'no non-None value may be returned'. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue22988] No error when yielding from `finally`

2015-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0e48b0908651 by Ethan Furman in branch '3.4': Issue22988: clarify yield and exception blocks https://hg.python.org/cpython/rev/0e48b0908651 New changeset 55ba19d084fb by Ethan Furman in branch 'default': Issue22988: clarify yield and exception block

[issue22988] No error when yielding from `finally`

2015-01-14 Thread Ethan Furman
Changes by Ethan Furman : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue22997] Minor improvements to "Functional API" section of Enum documentation

2015-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 522d13d8e76e by Ethan Furman in branch '3.4': Issue22997: minor doc update; thanks to Simoen Visser https://hg.python.org/cpython/rev/522d13d8e76e New changeset 31ae2dcaaed8 by Ethan Furman in branch 'default': Issue22997: minor doc update; thanks t

[issue22988] No error when yielding from `finally`

2015-01-14 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue22997] Minor improvements to "Functional API" section of Enum documentation

2015-01-14 Thread Ethan Furman
Ethan Furman added the comment: Thank you, Simeon! -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue22997] Minor improvements to "Functional API" section of Enum documentation

2015-01-14 Thread Ethan Furman
Changes by Ethan Furman : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23244] doc typo in 'Glossary': 'generator'

2015-01-14 Thread Mayank Tripathi
Changes by Mayank Tripathi : -- keywords: +patch Added file: http://bugs.python.org/file37714/generator_typo.patch ___ Python tracker ___

[issue23244] doc typo in 'Glossary': 'generator'

2015-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 25a1ce2a6f9b by Georg Brandl in branch '2.7': Closes #23244: fix typo. Thanks Mayank Tripathi for the patch. https://hg.python.org/cpython/rev/25a1ce2a6f9b New changeset 3e4d4c4968bb by Georg Brandl in branch '3.4': Closes #23244: fix typo. Thanks M

[issue18986] Add a case-insensitive case-preserving dict

2015-01-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Yes. I intend to button this one up before long. -- ___ Python tracker ___ ___ Python-bugs-list