[issue24528] Misleading exeption for await in comprehensions.

2015-07-01 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Yury, thank you for the patch, the error message is much clearer now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24528 ___

[issue24129] Incorrect (misleading) statement in the execution model documentation

2015-07-01 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: What holds the patch now? Should I do something or just wait? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24129 ___

[issue24545] Issue with ssl package

2015-07-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: We should probably change the default value for the *ssl_version* parameter. In the meantime, you can workaround this simply with: cert = ssl.get_server_certificate((, 443), ssl.PROTOCOL_SSLv23) -- ___ Python

[issue24547] What’s New In Python 3.4: stray (

2015-07-01 Thread Jakub Wilk
New submission from Jakub Wilk: https://docs.python.org/3/whatsnew/3.4.html#multiprocessing reads: On Unix two new start methods, (spawn and forkserver, have been added for starting processes using multiprocessing. This stray ( should be removed. -- assignee: docs@python components:

[issue24127] Fatal error in launcher: Job information querying failed

2015-07-01 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- stage: - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24127 ___ ___ Python-bugs-list

[issue24544] Race condition and crash when embedding multi-thread script

2015-07-01 Thread Oleksiy Markovets
Oleksiy Markovets added the comment: attached file -- Added file: http://bugs.python.org/file39841/main.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24544 ___

[issue24545] Issue with ssl package

2015-07-01 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24545 ___

[issue24545] Issue with ssl package

2015-07-01 Thread Kayne
New submission from Kayne: I tried to use cert = ssl.get_server_certificate((, 443)) and it crashed with following error: Traceback (most recent call last): File PeerCertChainQuery.py, line 107, in module cert = ssl.get_server_certificate((options.host, 443)) File

[issue24544] Race condition and crash when embedding multi-thread script

2015-07-01 Thread Oleksiy Markovets
New submission from Oleksiy Markovets: INTRODUCTION While embedding python script in c++ application I faced random crashes with error: Fatal Python error: Py_EndInterpreter: not the last thread

[issue24543] Configure script wrongly detects mc68881 with -flto option passed

2015-07-01 Thread marxin
New submission from marxin: I've just tried to build Python with {C,CXX,LD}FLAGS set to '-flto'. Unfortunately following conftest source file is fragile: cat /tmp/mc.c int main () { unsigned int fpcr; __asm__ __volatile__ (fmove.l %%fpcr,%0 : =g (fpcr)); __asm__ __volatile__ (fmove.l

[issue24533] Increased Test Coverage for Lib/random.py

2015-07-01 Thread Charles Nodell
Charles Nodell added the comment: Sounds fine! I look forward to seeing how to do this properly! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24533 ___

[issue24543] Configure script wrongly detects mc68881 with -flto option passed

2015-07-01 Thread Stefan Krah
Changes by Stefan Krah ste...@bytereef.org: -- nosy: +schwab ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24543 ___ ___ Python-bugs-list mailing

[issue24127] Fatal error in launcher: Job information querying failed

2015-07-01 Thread Henrik Heimbuerger
Henrik Heimbuerger added the comment: Happy to report that in build 10159 of Windows 10 64-bit, this just started to work again. No reinstallation of pip needed! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24127

[issue24545] Issue with ssl package

2015-07-01 Thread Stefan Krah
Changes by Stefan Krah ste...@bytereef.org: -- type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24545 ___ ___ Python-bugs-list

[issue24546] sequence index bug in random.choice

2015-07-01 Thread Serge Anuchin
New submission from Serge Anuchin: It seems there is minor bug in random.choice. I've got traceback from my server with IndexError from random.choice, but sequence wasn't empty (seq value was: u'\u0411\u0413\u0414\u0416\u0418\u041b\u0426\u042b\u042d\

[issue24548] Broken link in the unittest documentation

2015-07-01 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: The Simple Smalltalk Testing: With Patterns link from https://docs.python.org/3.5/library/unittest.html is dead. I found 2 mirrors but I don't think any of them should replace the broken link. 1.

[issue24543] Configure script wrongly detects x64/x87/mc68881 with -flto option passed

2015-07-01 Thread Andreas Schwab
Changes by Andreas Schwab sch...@linux-m68k.org: -- title: Configure script wrongly detects mc68881 with -flto option passed - Configure script wrongly detects x64/x87/mc68881 with -flto option passed ___ Python tracker rep...@bugs.python.org

[issue23992] multiprocessing: MapResult shouldn't fail fast upon exception

2015-07-01 Thread Charles-François Natali
Charles-François Natali added the comment: Barring any objections, I'll commit within the next few days. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23992 ___

[issue24543] Configure script wrongly detects mc68881 with -flto option passed

2015-07-01 Thread Andreas Schwab
Andreas Schwab added the comment: That means these tests are broken as well: AC_MSG_CHECKING(for x64 gcc inline assembler) AC_MSG_CHECKING(whether we can use gcc inline assembler to get and set x87 control word) -- ___ Python tracker

[issue24549] string.format() should have a safe_substitute equivalent, to be run consecutively

2015-07-01 Thread R. David Murray
R. David Murray added the comment: Why not use string.Template? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24549 ___

[issue24549] string.format() should have a safe_substitute equivalent, to be run consecutively

2015-07-01 Thread azrdev
New submission from azrdev: {1} {0}.format('one').format('two') should return two one, but throws IndexError: tuple index out of range This would allow partial replacements, similar to string.Template.safe_substitute() I suggest an analog construction (e.g. a method string.safe_format()

[issue24546] sequence index bug in random.choice

2015-07-01 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24546 ___ ___

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset a9d38701536d by Yury Selivanov in branch '3.5': Issue #24400: Add one more unittest for CoroutineType.__await__ https://hg.python.org/cpython/rev/a9d38701536d -- ___ Python tracker rep...@bugs.python.org

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset b2a3baa1c2b0 by Yury Selivanov in branch '3.5': Issue #24400: Mention that __instancecheck__ is used in abc.Awaitable and Coroutine https://hg.python.org/cpython/rev/b2a3baa1c2b0 New changeset 4bf1d332fe73 by Yury Selivanov in branch 'default':

[issue24508] Backport 3.5's Windows build project files to 2.7

2015-07-01 Thread Zachary Ware
Zachary Ware added the comment: Thanks for testing this, Steve! It sounds like PCbuild/readme.txt will need a significant update in the setup portion to cover the different ways to get what is needed (and to mention PC/VS9.0 as a simpler setup). I use third-party extension modules rarely

[issue24536] os.pipe() should return a structsequence (or namedtuple.)

2015-07-01 Thread Ethan Furman
Ethan Furman added the comment: Nowhere else in the stdlib is 'readfd' defined, and 'writefd' is only used once in a test. I think tacking on the 'fd' is both too low level as well as misleading since these are not file descriptors. If there is no agreement on read/write (understandable

[issue24536] os.pipe() should return a structsequence (or namedtuple.)

2015-07-01 Thread Ethan Furman
Ethan Furman added the comment: Okay, scratch the not file descriptors part of my comment, but the rest still stands. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24536 ___

[issue24536] os.pipe() should return a structsequence (or namedtuple.)

2015-07-01 Thread Ethan Furman
Ethan Furman added the comment: As for Niki's example: - -- src = os.pipe() -- src (3, 4) -- if not hasattr(src, 'read'): src = open(src) ... Traceback (most recent call last): File stdin, line 1, in module TypeError: invalid file: (3, 4)

[issue24195] Add `Executor.filter` to concurrent.futures

2015-07-01 Thread Ethan Furman
Ethan Furman added the comment: Brian, given my comments in msg245016 are you willing to add the Executor.filter() function? -- versions: +Python 3.6 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24195

[issue24550] maxint on 64 bit platforms breaks os.read

2015-07-01 Thread Brian Mingus
New submission from Brian Mingus: The lower range for this bug may be anything greater than 32 bit maxint. Other modules such as multiprocessing are limited passing objects of size 32 bit maxint, even on 64 bit systems, likely due to this issue. I have demonstrated this by modifying

[issue24546] sequence index bug in random.choice

2015-07-01 Thread Tim Peters
Tim Peters added the comment: random() may return 1.0 exactly That shouldn't be possible. Although the code does assume C doubles have at least 53 bits of mantissa precision (in which case it does arithmetic that's exact in at least 53 bits - cannot round up to 1.0; but _could_ round up if

[issue24546] sequence index bug in random.choice

2015-07-01 Thread Tim Peters
Tim Peters added the comment: FYI, where x = 1.0 - 2.**-53, I believe it's easy to show this under IEEE double precision arithmetic: For every finite, normal, double y 0.0, IEEE_multiply(x, y) y under the default (nearest/even) rounding mode. That implies int(x*i) i for every

[issue24547] What’s New In Python 3.4: stray (

2015-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 74e75a9aa562 by Benjamin Peterson in branch '3.4': remove stray '(' (closes #24547) https://hg.python.org/cpython/rev/74e75a9aa562 -- nosy: +python-dev resolution: - fixed stage: - resolved status: open - closed

[issue24515] docstring of isinstance

2015-07-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: Closing. If anyone thinks the docs aren't clear enough, and has an alternate version they would like to suggest, you can re-open it. -- resolution: - rejected status: open - closed ___ Python tracker

[issue24537] Py_Initialize unable to load the file system codec

2015-07-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- components: +Windows -Extension Modules nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24537 ___

[issue24546] sequence index bug in random.choice

2015-07-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: Your example of int(0.5) returning 1 is misleading, because 0.999...95 is already 1.0. (1.0 - 1/2**53) = 0. is the nearest float distinguishable from 1.0. It seems to me that either random() may return 1.0 exactly (although

[issue24548] Broken link in the unittest documentation

2015-07-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +ezio.melotti, michael.foord, rbcollins stage: - needs patch type: enhancement - versions: +Python 2.7, Python 3.4, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24548

[issue24540] Documentation about skipkeys parameter for json.dumps is incorrect

2015-07-01 Thread Ned Deily
Ned Deily added the comment: Can you say where you are seeing this? The current 2.7 documentation for json reads: If skipkeys is True (default: False), then dict keys that are not of a basic type (str, unicode, int, long, float, bool, None) will be skipped instead of raising a TypeError.

[issue18597] On Windows sys.stdin.readline() doesn't handle Ctrl-C properly

2015-07-01 Thread eryksun
eryksun added the comment: In Windows 10 ReadFile doesn't set ERROR_OPERATION_ABORTED (995) for Ctrl+C when reading console input, but ReadConsole does. from ctypes import * kernel32 = WinDLL('kernel32', use_last_error=True) buf = (c_char * 1)() n = c_uint()

[issue24549] string.format() should have a safe_substitute equivalent, to be run consecutively

2015-07-01 Thread Eric V. Smith
Eric V. Smith added the comment: So let's say your function would be named safe_format. Then: {1} {0}.safe_format('one') would give: {1} one. Then: {1} one.safe_format('two') would be an error, because there's no index 1 in the args tuple. I can't imagine how you'd implement this function

[issue24549] string.format() should have a safe_substitute equivalent, to be run consecutively

2015-07-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: I don't think that this behaviour is desirable, certainly not by default. If I write {1} {0}.format('one') that's clearly a programming error and I should get an exception. Chaining a second .format method call afterwards does not make the first one any less

[issue23517] datetime.utcfromtimestamp parses timestamps incorrectly

2015-07-01 Thread Timothy Cardenas
Timothy Cardenas added the comment: We are seeing this behavior influencing other libraries in python 3.4. This should never fail if timestamp and fromtimestamp are implemented correctly: from datetime import datetime t = datetime.utcnow().timestamp() t2 = datetime.utcfromtimestamp(t) assert t

[issue23630] support multiple hosts in create_server/start_server

2015-07-01 Thread STINNER Victor
STINNER Victor added the comment: I reviewed multibind.patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23630 ___ ___ Python-bugs-list

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-07-01 Thread Martin Panter
Martin Panter added the comment: The last change to /Doc/conf.py seems to have screwed up my docs build. Was that an accident? $ make -C Doc/ htmlsphinx-build -b html -d build/doctrees -D latex_paper_size= . build/html Running Sphinx v1.2.3 loading pickled environment... done Theme error:

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68996acdec6f by Yury Selivanov in branch '3.5': docs/conf: Undo changes in b2a3baa1c2b0; issue #24400 https://hg.python.org/cpython/rev/68996acdec6f -- ___ Python tracker rep...@bugs.python.org

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-07-01 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks, Martin, it was indeed something that shouldn't been committed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24400 ___