[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock
Changes by Davin Potts pyt...@discontinuity.net: -- nosy: +davin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23242] asyncio: Process must close the transport when the process exit
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 the most efficient way to close the transport. It may be better to close the transport in the connection_lost() method of the protocol. The patch also checks in Process.communicate() that the process is alive, and is clears the reference to the transport. -- components: asyncio files: subprocess_close.patch keywords: patch messages: 234042 nosy: gvanrossum, haypo, yselivanov priority: normal severity: normal status: open title: asyncio: Process must close the transport when the process exit versions: Python 3.4, Python 3.5 Added file: http://bugs.python.org/file37707/subprocess_close.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23242 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23243] asyncio: emit ResourceWarning warnings if transports/event loops are not explicitly closed
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, because older Python versions don't implement the PEP 442 (Safe object finalization) and so objects part of reference cycle would never be deleted. The patch adds a new _closed attribute to BaseSubprocessTransport and _SSLProtocolTransport classes, to track if the transport was closed or not. The patch should help to find bugs like this one: https://code.google.com/p/tulip/issues/detail?id=218 -- components: asyncio files: resource_warnings.patch keywords: patch messages: 234043 nosy: gvanrossum, haypo, yselivanov priority: normal severity: normal status: open title: asyncio: emit ResourceWarning warnings if transports/event loops are not explicitly closed versions: Python 3.4, Python 3.5 Added file: http://bugs.python.org/file37708/resource_warnings.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23243 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5804] Add an 'offset' argument to zlib.decompress
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 buffer() option would look like this, assuming the memory view is in byte format: zlib.decompress(memoryview(source)[unused_offset:]) Another option would be to copy some paint from the struct.unpack_from() bikeshed: [data, offset] = zlib.decompress_from(buffer, offset) -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5804 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock
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 advertised on same: OS X v10.9.5, both 2.7.9 and default branch. The patches' addition of a try around that for block looks like a sensible choice. At the moment, I do not yet fully understand what the patches' exception block is doing with the 'cache[job]._set' call the way it is, but I would like to spend more time to digest it better -- I hope to do so later this week. -- versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22560] New SSL implementation based on ssl.MemoryBIO
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_backlog(), whereas this function doesn't support reentrant call. A fix is to modify the handshake callback to schedule a call to _process_write_backlog(), instead of calling it immediatly. Note: The shutdown callback doesn't have this issue, it only calls transport.close(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22560 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17239] XML vulnerabilities in Python
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17239 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8450] httplib: false BadStatusLine() raised
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8450 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18986] Add a case-insensitive case-preserving dict
Ethan Furman added the comment: 3.5 is almost here; Raymond, care to make a ruling? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18986 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22986] Improved handling of __class__ assignment
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 rep...@bugs.python.org http://bugs.python.org/issue22986 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22970] Cancelling wait() after notification leaves Condition in an inconsistent state
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.com/forum/#!topic/python-tulip/eSm7rZAe9LM ). Should probably open a ticket for that issue too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22970 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13881] Stream encoder for zlib_codec doesn't use the incremental encoder
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 rep...@bugs.python.org http://bugs.python.org/issue13881 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20680] Pickle socket enums by names
Changes by Ethan Furman et...@stoneleaf.us: -- assignee: - ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20680 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20773] Improve docs for DynamicClassAttribute
Changes by Ethan Furman et...@stoneleaf.us: -- assignee: - ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20773 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22986] Improved handling of __class__ assignment
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 rep...@bugs.python.org http://bugs.python.org/issue22986 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22970] Cancelling wait() after notification leaves Condition in an inconsistent state
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:`) will be incorrect. With the threading module, it's typically not possible to interrupt or cancel lock acquisition (no Thread.interrupt for example). Even on Python 3.2 where lock acquisition can be interrupted by POSIX signals, Condition.wait's implementation uses the non-interruptable lock._acquire_restore (calls rlock_acquire_restore → PyThread_acquire_lock → PyThread_acquire_lock → PyThread_acquire_lock_timed with intr=0 [Python/thread_pthread.h] which does the uninterruptable retry loop). So, not a problem for threading.Condition.wait(). As for re-raising the CancelledError after the lock is reacquired, I'm not sure it serves any useful purpose to the caller since by this point we're either in the process of waking up after a notify() or already raising an exception (such as a CancelledError if someone called task.cancel() _before_ the condition was notified). Making the caller also handle re-acquisition failure would be quite messy. For example, one idea would be to have the caller check cond.locked() after a CancelledError and have the caller reacquire, but it turns in asyncio you can't tell whom owns the lock (could have been grabbed by another task). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22970 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23238] http.server failed to decode '+' to ' ' when calling cgi script/executable in window
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 class file cannot be directly executed, so I create a little batch file to run it. (runjava.bat) 4. and tested it in console (c3.txt) 5. start up the http.server --cgi (c2.txt) 6. then I fire up my firefox 35.0 and go to URL http://127.0.0.1:8000/cgi-bin/runjava.bat?hellojava 7. and got the expected result (r1.txt) 8. and the console of the http.server show expected result (cr1.txt) 9. then I try to pass parameter into the java cgi itself, so I go to URL http://127.0.0.1:8000/cgi-bin/runjava.bat?hellojava+test 10. results in an blank page, actual response is also blank. 11. console shows error message (cr2.txt) 12. so I run the generated command in actual console and get the same error (cr3.txt, I am using Chinese locale so I put the actual error and English on line 3) 13. and if I replace the '+' with ' ' in the command it will work as expected. (cr4.txt) -- Added file: http://bugs.python.org/file37709/codes.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23238 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[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.
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 with code or code-block directives (closes #23063) https://hg.python.org/cpython/rev/38826e21f0db New changeset 731a36c13629 by Benjamin Peterson in branch 'default': merge 3.4 (#23063) https://hg.python.org/cpython/rev/731a36c13629 -- nosy: +python-dev resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23063 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)
Changes by Ethan Furman et...@stoneleaf.us: -- assignee: - ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17576 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17422] language reference should specify restrictions on class namespace
Changes by Ethan Furman et...@stoneleaf.us: -- keywords: +patch stage: needs patch - patch review versions: +Python 3.5 Added file: http://bugs.python.org/file37712/issue17422.stoneleaf.01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17422 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23245] urllib2: urlopen() gets exception(kwargs bug?)
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 python 2.7.9 -- components: Extension Modules files: callstack_urllib2 messages: 234055 nosy: Douman priority: normal severity: normal status: open title: urllib2: urlopen() gets exception(kwargs bug?) type: compile error versions: Python 2.7 Added file: http://bugs.python.org/file37713/callstack_urllib2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23245 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20467] Confusing wording about __init__
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 rep...@bugs.python.org http://bugs.python.org/issue20467 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23244] doc typo in 'Glossary': 'generator'
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 **a series a values** usable in a for-loop or that can be retrieved one at a time with the next() function. :) -- assignee: docs@python components: Documentation messages: 234047 nosy: docs@python, n0vicelive priority: normal severity: normal status: open title: doc typo in 'Glossary': 'generator' versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23244 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20467] Confusing wording about __init__
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 rep...@bugs.python.org http://bugs.python.org/issue20467 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20467] Confusing wording about __init__
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/cpython/rev/46c9b34f31b8 New changeset d0421de8ee11 by Ethan Furman in branch 'default': Issue20467: clarify __init__'s role https://hg.python.org/cpython/rev/d0421de8ee11 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20467 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22038] Implement atomic operations on non-x86 platforms
STINNER Victor added the comment: At least, the latest change repaired FreeBSD 10 compilation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23240] pip 6.0.6- pip install command is broken
Changes by Brett Cannon br...@python.org: -- resolution: - third party status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23240 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22038] Implement atomic operations on non-x86 platforms
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 rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21590] Systemtap and DTrace support
Changes by Augie Fackler li...@durin42.com: -- nosy: +durin42 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21590 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22038] Implement atomic operations on non-x86 platforms
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 wrong, and we should use the atomic_uintptr_t type instead and cast to the expected type? Attached atomic_pointer.patch implements this idea. It works on FreeBSD 10 with Clang and on Fedora 21 with GCC 4.9, both have stdatomic.h. -- Added file: http://bugs.python.org/file37706/atomic_pointer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Changes by Augie Fackler li...@durin42.com: -- nosy: +durin42 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22997] Minor improvements to Functional API section of Enum documentation
Changes by Ethan Furman et...@stoneleaf.us: -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22997 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22997] Minor improvements to Functional API section of Enum documentation
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 to Simoen Visser https://hg.python.org/cpython/rev/31ae2dcaaed8 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22997 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22988] No error when yielding from `finally`
Changes by Berker Peksag berker.pek...@gmail.com: -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22988 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22997] Minor improvements to Functional API section of Enum documentation
Ethan Furman added the comment: Thank you, Simeon! -- stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22997 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22988] No error when yielding from `finally`
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 blocks https://hg.python.org/cpython/rev/55ba19d084fb -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22988 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22988] No error when yielding from `finally`
Changes by Ethan Furman et...@stoneleaf.us: -- stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22988 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23244] doc typo in 'Glossary': 'generator'
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 Mayank Tripathi for the patch. https://hg.python.org/cpython/rev/3e4d4c4968bb -- nosy: +python-dev resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23244 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23244] doc typo in 'Glossary': 'generator'
Changes by Mayank Tripathi oqua...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file37714/generator_typo.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23244 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18986] Add a case-insensitive case-preserving dict
Raymond Hettinger added the comment: Yes. I intend to button this one up before long. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18986 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17546] Document the circumstances where the locals() dict get updated
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 rep...@bugs.python.org http://bugs.python.org/issue17546 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23226] Add float linspace recipe to docs
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23226 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23197] asyncio: check if a future is cancelled before calling set_result/set_exception
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/detail?id=218 I close this issue. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23197 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22038] Implement atomic operations on non-x86 platforms
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://llvm.org/viewvc/llvm-project?view=revisionrevision=218957 [2] http://www.openwall.com/lists/musl/2014/11/09/2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23234] refactor subprocess: use new OSError exceptions, factorize stdin.write() code
STINNER Victor added the comment: I commited my change to Python 3.5. Thanks for the review Serhiy vadmium. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23234 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23234] refactor subprocess: use new OSError exceptions, factorize stdin.write() code
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 tracker rep...@bugs.python.org http://bugs.python.org/issue23234 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23197] asyncio: check if a future is cancelled before calling set_result/set_exception
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 tracker rep...@bugs.python.org http://bugs.python.org/issue23197 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23197] asyncio: check if a future is cancelled before calling set_result/set_exception
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 rep...@bugs.python.org http://bugs.python.org/issue23197 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23234] refactor subprocess: use new OSError exceptions, factorize stdin.write() code
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23234 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18835] Add aligned memory variants to the suite of PyMem functions/macros
Changes by William Scullin wscul...@gmail.com: -- nosy: +wscullin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18835 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23239] SSL match_hostname does not accept IP Address
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 rep...@bugs.python.org http://bugs.python.org/issue23239 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23239] SSL match_hostname does not accept IP Address
Changes by Antoine Pitrou pit...@free.fr: -- stage: - needs patch type: security - enhancement versions: -Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23239 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14014] codecs.StreamWriter.reset contract not fulfilled
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 the _codec’s_ buffers, not any buffers of the underlying stream, and it should not be the codec’s business to worry about lower level buffers. Correct. That's the reason why the method is called .reset() and not .flush(). -- nosy: +lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14014 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: [issue14014] codecs.StreamWriter.reset contract not fulfilled
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 ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23238] http.server failed to decode '+' to ' ' when calling cgi script/executable in window
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 versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23238 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23238] http.server failed to decode '+' to ' ' when calling cgi script/executable in window
Changes by memkmemk ntken...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23238 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23239] SSL match_hostname does not accept IP Address
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +alex, pitrou versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23239 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23239] SSL match_hostname does not accept IP Address
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 'hostname_in_cacert' The IP Address is in the ca certificate, so it should be accepted. -- components: Extension Modules messages: 234017 nosy: Ádám.Zsigmond priority: normal severity: normal status: open title: SSL match_hostname does not accept IP Address type: security versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23239 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23240] pip 6.0.6- pip install command is broken
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 rep...@bugs.python.org http://bugs.python.org/issue23240 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602] windows console doesn't print or input Unicode
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 the case when Unicode streams for Windows are hadled by Python 3.5 itself. Is there any way to run custom Python code (like sitecustomize) before PTVS wraps the stdio streams? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602] windows console doesn't print or input Unicode
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' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23239] SSL match_hostname does not accept IP Address
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23239 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23241] shutil should accept pathlib types
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 would need to be discussed in the context of the larger issue in some forum other than the bug tracker (probably python-dev). -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23241 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23018] Add version info to python
Tim Golden added the comment: +1 from me, then. -- title: Add version info to python[w].exe - Add version info to python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23018 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22038] Implement atomic operations on non-x86 platforms
Changes by Gustavo Temple gustavo.pedr...@eldorado.org.br: Added file: http://bugs.python.org/file37704/atomicv5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23238] http.server failed to decode '+' to ' ' when calling cgi script/executable in window
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 rep...@bugs.python.org http://bugs.python.org/issue23238 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23240] pip 6.0.6- pip install command is broken
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/commands/install.py, line 339, in run requirement_set.prepare_files(finder) File /usr/lib/python3.4/site-packages/pip/req/req_set.py, line 229, in prepare_files req_to_install.check_if_exists() File /usr/lib/python3.4/site-packages/pip/req/req_install.py, line 928, in check_if_exists self.satisfied_by = pkg_resources.get_distribution(self.req) File /usr/lib/python3.4/site-packages/pip/_vendor/pkg_resources/__init__.py, line 461, in get_distribution dist = get_provider(dist) File /usr/lib/python3.4/site-packages/pip/_vendor/pkg_resources/__init__.py, line 341, in get_provider return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0] File /usr/lib/python3.4/site-packages/pip/_vendor/pkg_resources/__init__.py, line 870, in require needed = self.resolve(parse_requirements(requirements)) File /usr/lib/python3.4/site-packages/pip/_vendor/pkg_resources/__init__.py, line 740, in resolve env = Environment(self.entries) File /usr/lib/python3.4/site-packages/pip/_vendor/pkg_resources/__init__.py, line 927, in __init__ self.scan(search_path) File /usr/lib/python3.4/site-packages/pip/_vendor/pkg_resources/__init__.py, line 957, in scan self.add(dist) File /usr/lib/python3.4/site-packages/pip/_vendor/pkg_resources/__init__.py, line 977, in add dists.sort(key=operator.attrgetter('hashcmp'), reverse=True) TypeError: unorderable types: NoneType() str() - gabx@hortensia ➤➤ ~ % pip list aiohttp (0.9.1) apparmor (2.9.1) appdirs (1.3.0) . -- gabx@hortensia ➤➤ ~ % pip show six --- Name: six Version: 1.9.0 Location: /usr/lib/python3.4/site-packages Requires: -- gabx@hortensia ➤➤ ~ % pip install ranger Requirement already satisfied (use --upgrade to upgrade): ranger in /usr/lib/python3.4/site-packages -- pip install seems broken when installing a new package. -- components: Distutils messages: 234021 nosy: dstufft, eric.araujo, gabx priority: normal severity: normal status: open title: pip 6.0.6- pip install command is broken type: crash versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23240 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23181] Unicode code point should be two words in documentation
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/entities.py:6:# maps the HTML entity name to the Unicode codepoint Lib/html/entities.py:2498:# maps the Unicode codepoint to the HTML entity name Lib/codecs.py:127: 'surrogateescape' - replace with private codepoints U+DCnn. Lib/test/test_multibytecodec.py:83:# jisx0213 encoder is stateful for a few codepoints. eg) Lib/test/test_html.py:51:# check invalid codepoints Lib/test/test_html.py:54:# check more invalid codepoints Lib/test/multibytecodec_support.py:24:unmappedunicode = '\udeee' # a unicode codepoint that is not mapped. Lib/test/test_unicode.py:1473:# start bytes of a 2-byte sequence equivalent to codepoints 0x7F Lib/test/test_unicode.py:1475:# start bytes of a 4-byte sequence equivalent to codepoints 0x10 Lib/test/test_stringprep.py:2:# Since we don't have them, this test checks only a few codepoints. Tools/unicode/gencodec.py:37:# Placeholder for a missing codepoint Modules/cjkcodecs/_codecs_hk.c:174:NEXT_IN(2); /* all decoded codepoints are pairs, above. */ Modules/cjkcodecs/cjkcodecs.h:15:/* a unicode undefined codepoint */ Modules/cjkcodecs/cjkcodecs.h:18:/* internal-use DBCS codepoints which aren't used by any charsets */ Modules/cjkcodecs/_codecs_cn.c:18:/* GBK and GB2312 map differently in few codepoints that are listed below: Modules/cjkcodecs/_codecs_kr.c:72:/* All codepoints in CP949 extension are in unicode Modules/unicodedata.c:979:/* macros used to determine if the given codepoint is in the PUA range that Modules/unicodedata.c:989:/* Find the name associated with the given codepoint. Modules/unicodedata.c:1000:/* XXX should we just skip all the codepoints in the PUAs here? */ Modules/unicodedata.c:1128:/* if the codepoint is in the PUA range that we use for aliases, Modules/unicodedata.c:1129: * convert it to obtain the right codepoint */ Modules/unicodedata.c:1141:/* Return the codepoint associated with the given name. Modules/unicodedata.c:1143: * 3.2.0)). If with_named_seq is 1, returns the PUA codepoint that we are Objects/unicodeobject.c:5016:errmsg = codepoint in surrogate code point range(0xd800, 0xe000); Objects/unicodeobject.c:5035:errmsg = codepoint not in range(0x11); Python/sysmodule.c:1382:maxunicode -- the value of the largest Unicode codepoint\n\ -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23181 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22038] Implement atomic operations on non-x86 platforms
Gustavo Temple added the comment: @haypo, @Arfrever, done: atomicv5.patch -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23181] Unicode code point should be two words in documentation
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 rep...@bugs.python.org http://bugs.python.org/issue23181 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23241] shutil should accept pathlib types
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 copy_shares_2_work.py, line 9, in module shutil.copyfile(source_path / file_name, destination_path / file_name) File C:\Python34\lib\shutil.py, line 90, in copyfile if _samefile(src, dst): File C:\Python34\lib\shutil.py, line 75, in _samefile return os.path.samefile(src, dst) File C:\Python34\lib\genericpath.py, line 90, in samefile s1 = os.stat(f1) TypeError: argument should be string, bytes or integer, not WindowsPath Converting to str() works but is unexpected. -- messages: 234025 nosy: mkesper priority: normal severity: normal status: open title: shutil should accept pathlib types type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23241 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com