[issue25137] Behavioral change / regression? with nested functools.partial

2015-09-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: The specific attributes of a partial are not documented, so it is you are relying on them. Using partial as a container is also a bit unexpected... -- ___ Python tracker _

[issue25137] Behavioral change / regression? with nested functools.partial

2015-09-16 Thread STINNER Victor
STINNER Victor added the comment: > In my opinion this is a regression since there's no way to turn off the new > behavior. Well, it depends on your point of view :-) On the performance point of view, it's much faster to flatten heavily nested partials like: >>> import functools >>> f = funct

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-16 Thread Eric V. Smith
Eric V. Smith added the comment: I rewrote the format_spec parser to recursively call the f-string parser, so any oddness in what's allowed in a format_spec is gone. It took way longer than I thought, but the code is better for it. -- Added file: http://bugs.python.org/file40480/pep-49

[issue25122] test_eintr randomly fails on FreeBSD

2015-09-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 30bc256f2346 by Victor Stinner in branch 'default': Issue #25122: add debug traces to test_eintr.test_open() https://hg.python.org/cpython/rev/30bc256f2346 -- ___ Python tracker

[issue25129] suboptimal floating-point floor division

2015-09-16 Thread Mark Dickinson
Mark Dickinson added the comment: I agree with Tim that this is the correct behaviour. Antoine: okay to close? Or should we leave it open for the doc fix that Tim noticed? -- ___ Python tracker _

[issue25130] Make tests more PyPy compatible

2015-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Just for reference here is a full difference between 2.7 tests in PyPy and CPython. It makes tests fail in CPython and skips some tests or makes them too lenient. -- Added file: http://bugs.python.org/file40481/pypy_tests-2.7_full.patch

[issue25129] suboptimal floating-point floor division

2015-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >>> from fractions import Fraction >>> Fraction(78*6e-8) / Fraction(6e-8) Fraction(353610802237278976, 4533471823554859) >>> Fraction(78*6e-8) // Fraction(6e-8) 77 >>> float(Fraction(78*6e-8) / Fraction(6e-8)) 78.0 >>> Fraction(78*6e-8) / Fraction(6e-8) - 78 Fr

[issue25129] suboptimal floating-point floor division

2015-09-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: I have no problem with closing. Admittedly, I opened this issue mostly to get a witty and enlightening response :-) -- ___ Python tracker ___ _

[issue25129] suboptimal floating-point floor division

2015-09-16 Thread STINNER Victor
STINNER Victor added the comment: """ The root of the issue is that >>> Fraction(78*6e-8) != Fraction(78*6, 10**8) True >>> Fraction(6e-8) != Fraction(6, 10**8) True """ It's not an issue, it's just a fact: floating point rounding is annoying and very few people understand it :-) --

[issue25122] test_eintr randomly fails on FreeBSD

2015-09-16 Thread STINNER Victor
STINNER Victor added the comment: More debug traces: test_open (__main__.SocketEINTRTest) ... try to open '@test_57236_tmp' fifo for writing, pid 57236 try to open '@test_57236_tmp' fifo for reading, pid 57305, ppid 57236 '@test_57236_tmp' fifo opened for reading and closed, pid 57305, ppid 57

[issue24493] subprocess with env=os.environ doesn't preserve environment variables when calling a 32bit process on Windows 8.1

2015-09-16 Thread Florian Bruhin
Florian Bruhin added the comment: I just ran into this again - when trying to run `git` via subprocess with "env" set, I got: # Start the process try: hp, ht, pid, tid = _winapi.CreateProcess(executable, args, # no special securit

[issue24493] subprocess with env=os.environ doesn't preserve environment variables when calling a 32bit process on Windows 8.1

2015-09-16 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue25129] suboptimal floating-point floor division

2015-09-16 Thread Mark Dickinson
Mark Dickinson added the comment: > What is the rounding mode used by true division, by the way? Probably not what you were asking, but with respect to true division of integers (int / int -> float), we always use round-half-to-even. Any deviation from that (non-IEEE 754 platforms excepted) i

[issue25122] test_eintr randomly fails on FreeBSD

2015-09-16 Thread STINNER Victor
STINNER Victor added the comment: Syscalls traced by truss. Parent process: 1436: unlink("fifo_5950861521") ERR#2 'No such file or directory' 1436: open("fifo_5950861521",O_WRONLY|O_CLOEXEC,00) ERR#4 'Interrupted system call' 1436: open("fifo_5950861521",O_WRONLY|O_CLOEXEC

[issue25130] Make tests more PyPy compatible

2015-09-16 Thread Maciej Fijalkowski
Maciej Fijalkowski added the comment: Hi I can answer precise questions, which tests are you asking about? Note that if the point is to unify the test suite, would be cool to make changes to both pypy and cpython and not just change cpython one. -- ___

[issue25139] Just a little refactoring

2015-09-16 Thread Алексей Смирнов
New submission from Алексей Смирнов: https://github.com/python/cpython/blob/3.5/Lib/socketserver.py#L627 Must be: try: self.finish_request(request, client_address) except: self.handle_error(request, client_address) finally: self.shutdown_request(request) -- components: Librar

[issue25106] Hash computation speedup for {buffer, string, unicode}object

2015-09-16 Thread Maciej Fijalkowski
Maciej Fijalkowski added the comment: I find numbers really hard to believe. It would mean that over 40% of django templates is string hashing (assuming 2x speedup) which really sounds unbelievable. In fact in PyPy I never found string hashing to be significant while I would expect PyPy to ha

[issue25130] Make tests more PyPy compatible

2015-09-16 Thread Martin Panter
Martin Panter added the comment: Maciej: I put a few questions and comments in the code review. See the (also linked next to Serhiy’s first patch). -- ___ Python tracker

[issue25130] Make tests more PyPy compatible

2015-09-16 Thread Maciej Fijalkowski
Maciej Fijalkowski added the comment: Hi Looking through your comments, yes, maybe those tests or those things require fixing. We at pypy don't have enough will to fight python-dev most of the time, so the usual approach is to do "minimal hack that works" without trying to dwelve into why thi

[issue25140] platform.platform() incorrectly identifies Windows 10 as 'Windows-8-6.2.9200'

2015-09-16 Thread Andrey Fedyashov
New submission from Andrey Fedyashov: Here's actual OS version: OS Name: Microsoft Windows 10 Enterprise Insider Preview OS Version:10.0.10534 N/A Build 10534 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Workstation OS Bu

[issue25140] platform.platform() incorrectly identifies Windows 10 as 'Windows-8-6.2.9200'

2015-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: A duplicate of issue19143? -- nosy: +lemburg, serhiy.storchaka ___ Python tracker ___ ___ Python-b

[issue25140] platform.platform() incorrectly identifies Windows 10 as 'Windows-8-6.2.9200'

2015-09-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 16.09.2015 13:22, Serhiy Storchaka wrote: > > A duplicate of issue19143? I guess so. -- ___ Python tracker ___

[issue25140] platform.platform() incorrectly identifies Windows 10 as 'Windows-8-6.2.9200'

2015-09-16 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue24927] multiprocessing.Pool hangs forever on segfault

2015-09-16 Thread Jonas Obrist
Changes by Jonas Obrist : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-09-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Steve: Could you please merge your changes into platform.py ? I think it should go into Python 2.7. -- ___ Python tracker ___ _

[issue25115] SSL_set_verify_depth not exposed by the ssl module

2015-09-16 Thread Grant Bremer
Grant Bremer added the comment: Attached is a patch for the 3.5 branch. The test is minimal -- we are relying on the underlying OpenSSL library and its context to manage the data. I have removed the data validation from the set function -- OpenSSL seems happy to accept negative numbers for dep

[issue25115] SSL_set_verify_depth not exposed by the ssl module

2015-09-16 Thread Grant Bremer
Changes by Grant Bremer : -- hgrepos: -316 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue25141] Spam

2015-09-16 Thread Petri Lehtinen
Changes by Petri Lehtinen : Removed file: http://bugs.python.org/file40482/mail.zip ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue25141] Spam

2015-09-16 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- status: open -> closed title: Returned mail: see transcript for details -> Spam ___ Python tracker ___

[issue22393] multiprocessing.Pool shouldn't hang forever if a worker process dies unexpectedly

2015-09-16 Thread Brian Boonstra
Changes by Brian Boonstra : -- nosy: +brianboonstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue24493] subprocess with env=os.environ doesn't preserve environment variables when calling a 32bit process on Windows 8.1

2015-09-16 Thread R. David Murray
R. David Murray added the comment: Sounds like there's something in the cwd that is making the difference (this being Windows which looks for things in the cwd always). -- nosy: +r.david.murray ___ Python tracker

[issue24493] subprocess with env=os.environ doesn't preserve environment variables when calling a 32bit process on Windows 8.1

2015-09-16 Thread Florian Bruhin
Florian Bruhin added the comment: > Sounds like there's something in the cwd that is making the difference (this > being Windows which looks for things in the cwd always). The cwd is an empty temporary directory. And that still wouldn't explain why passing env=os.environ breaks it as well, and

[issue25095] test_httpservers hangs on 3.5.0, win 7

2015-09-16 Thread Martin Panter
Martin Panter added the comment: According to those back traces, the server has apparently already handled one request and is waiting for a second request. However the client is still waiting for a response from its original request. Some things I might try would be to disable the server, and

[issue25095] test_httpservers hangs on 3.5.0, win 7

2015-09-16 Thread STINNER Victor
STINNER Victor added the comment: You may try "hg bisect" to find which revision broke test_httpservers. It can be slow if you have to recompile manually Python :-( -- ___ Python tracker __

[issue24493] subprocess with env=os.environ doesn't preserve environment variables when calling a 32bit process on Windows 8.1

2015-09-16 Thread eryksun
eryksun added the comment: The issue as I understand it is that, on this particular Windows 8.1 system, passing a non-NULL lpEnvironment to CreateProcess works when starting a native 64-bit executable, but fails when starting a 32-bit executable via the WOW64 system. The child process instead

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-16 Thread Eric V. Smith
Eric V. Smith added the comment: Simplified error handling, fixed 2 memory leaks. All tests now pass with no leaks. This should be the final version. -- Added file: http://bugs.python.org/file40484/pep-498-7.diff ___ Python tracker

[issue25142] Misleading error when initing ImportError

2015-09-16 Thread Sebastian Kreft
New submission from Sebastian Kreft: ImportError now supports the keyword arguments name and path. However, when passing invalid keyword arguments, the reported error is misleading, as shown below. In [1]: ImportError('lib', name='lib') Out[1]: ImportError('lib') In [2]: ImportError('lib', na

[issue25140] platform.platform() incorrectly identifies Windows 10 as 'Windows-8-6.2.9200'

2015-09-16 Thread Zachary Ware
Changes by Zachary Ware : -- superseder: -> Finding the Windows version getting messier (detect windows 8.1?) ___ Python tracker ___ ___

[issue25140] platform.platform() incorrectly identifies Windows 10 as 'Windows-8-6.2.9200'

2015-09-16 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue25113] documentation version switcher is broken

2015-09-16 Thread Yury Selivanov
Yury Selivanov added the comment: The switcher isn't visible on all pages, I suspect we need to bust caches on cdns/varnish -- ___ Python tracker ___ ___

[issue25143] 3.5 install fails poorly on Windows XP

2015-09-16 Thread Paul
New submission from Paul: Running the installer on an unsupported system (such as Windows XP)should fail gracefully and not just leave the user hanging. https://mail.python.org/pipermail/python-list/2015-September/696789.html -- components: Installation messages: 250852 nosy: pwat...@p

[issue25143] 3.5 install fails poorly on Windows XP

2015-09-16 Thread Paul
Paul added the comment: Installing on an unsupported platform should fail gracefully. https://mail.python.org/pipermail/python-list/2015-September/696789.html -- ___ Python tracker

[issue25143] 3.5 install fails poorly on Windows XP

2015-09-16 Thread Brett Cannon
Changes by Brett Cannon : -- components: +Windows -Installation nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ _

[issue25143] 3.5 install fails poorly on Windows XP

2015-09-16 Thread Zachary Ware
Changes by Zachary Ware : -- assignee: -> steve.dower components: +Installation stage: -> needs patch versions: +Python 3.6 ___ Python tracker ___ _

[issue25142] Misleading error when initing ImportError

2015-09-16 Thread Brett Cannon
Brett Cannon added the comment: I bet it's because of https://hg.python.org/cpython/file/tip/Objects/exceptions.c#l64 which is called by https://hg.python.org/cpython/file/tip/Objects/exceptions.c#l643 . -- components: +Interpreter Core nosy: +brett.cannon type: -> enhancement __

[issue25106] Hash computation speedup for {buffer, string, unicode}object

2015-09-16 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: +skip.montanaro ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue24927] multiprocessing.Pool hangs forever on segfault

2015-09-16 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> resolved superseder: -> multiprocessing.Pool shouldn't hang forever if a worker process dies unexpectedly ___ Python tracker ___ __

[issue25113] documentation version switcher is broken

2015-09-16 Thread Ned Deily
Ned Deily added the comment: We are pursuing the stale CDN cache issue with #python-infra. It appears that, as it stands, the cached doc pages will expire within a week. -- nosy: +ned.deily ___ Python tracker ___

[issue25142] Misleading error when initing ImportError

2015-09-16 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report. This is a duplicate of issue 21578. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Misleading error message when ImportError called with invalid keyword args __

[issue21578] Misleading error message when ImportError called with invalid keyword args

2015-09-16 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> patch review versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mai

[issue24598] asyncio: add background task detecting reference cycles

2015-09-16 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue25106] Hash computation speedup for {buffer, string, unicode}object

2015-09-16 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Please hold this patch for a while, while I analyze the received feedback. -- ___ Python tracker ___ __

[issue25106] Hash computation speedup for {buffer, string, unicode}object

2015-09-16 Thread Brett Cannon
Changes by Brett Cannon : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue25144] 3.5 Win install fails with "TARGETDIR"

2015-09-16 Thread Felipe
New submission from Felipe: The 3.5 Windows installer fails with "The TARGETDIR variable must be provided when invoking this installer" Here are the steps I followed: 1. Initial screen: - uncheck the add path and all users options - select "Customize installation" 2. Optional features:

[issue25139] Just a little refactoring

2015-09-16 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue25139] Just a little refactoring

2015-09-16 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> patch review versions: +Python 3.6 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list ma

[issue22627] Calling timestamp() on a datetime object modifies the timestamp of a different datetime object.

2015-09-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am reopening this issue as an "enhancement" because I would like to revisit it in light of PEP 495. -- assignee: -> belopolsky resolution: not a bug -> status: closed -> open type: behavior -> enhancement versions: +Python 3.6 -Python 3.4 ___

[issue25137] Behavioral change / regression? with nested functools.partial

2015-09-16 Thread Tim Graham
Tim Graham added the comment: We can use an alternate approach in Django, if appropriate: https://github.com/django/django/pull/5294 -- ___ Python tracker ___ __

[issue25143] 3.5 install fails poorly on Windows XP

2015-09-16 Thread Djoudi Benarfa
Djoudi Benarfa added the comment: The Python installer could check what operating system the user is trying to install python on and if it's not supported then, information him, and maybe redirect him to the correct python version. -- nosy: +djoudi

[issue25113] documentation version switcher is broken

2015-09-16 Thread Mark Lawrence
Mark Lawrence added the comment: This wasn't working for me earlier but it is now at 21:11 BST so I'd assume we can leave this closed. -- nosy: +BreamoreBoy ___ Python tracker _

[issue25145] urllib how-to should be updated to remove PyGoogle

2015-09-16 Thread Robert Xiao
New submission from Robert Xiao: PyGoogle has been dead for 6-7 years at this point (probably longer), yet the newest urllib documentation (https://docs.python.org/3/howto/urllib2.html#id1) still refers to it in a footnote: [1] Like Google for example. The proper way to use google from a p

[issue25146] IDLE debugger could better visualize program execution

2015-09-16 Thread Mark Roseman
New submission from Mark Roseman: (This touches a bit on things mentioned in #14111) I'm looking through the debugger code in IDLE, and now understand that it's essentially trying to make a GUI program act like a command line program. Hence the nested call to mainloop(), when we receive a trac

[issue25145] urllib how-to should be updated to remove PyGoogle

2015-09-16 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> needs patch versions: +Python 2.7 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bu

[issue25122] test_eintr randomly fails on FreeBSD

2015-09-16 Thread STINNER Victor
STINNER Victor added the comment: Ok, I'm now quite sure that it's a bug in the FreeBSD kernel or in the BSD C library. The C library ignores EINTR: if the close() syscalls fails with EINTR, the C close() function returns a success. When the close() syscall fails with EINTR, the test hangs. I

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: On python-ideas, Wes Turner reported Stallion, a visual (browser) + command line package manager interface. I believe it uses pip 'under the hood'. http://perone.github.io/stallion/ has screenshots that can give gui design ideas, though these are more elaborat

[issue25122] test_eintr randomly fails on FreeBSD

2015-09-16 Thread STINNER Victor
STINNER Victor added the comment: I reported the bug on the FreeBSD bug tracker: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203162 -- ___ Python tracker ___ __

[issue25122] test_eintr randomly fails on FreeBSD

2015-09-16 Thread Conrad Meyer
Changes by Conrad Meyer : -- nosy: +Conrad Meyer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue25146] IDLE debugger could better visualize program execution

2015-09-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that without breakpoints set, Go is currently useless. I believe that you are proposing that it become a 'Start slide show' button, where a 'slide' is the execution of one statement. I really like this idea. Like music or dance notation, a programs is

[issue25144] 3.5 Win install fails with "TARGETDIR"

2015-09-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Python-bugs-list maili

[issue25117] Windows installer: precompiling stdlib fails with missing DLL errors

2015-09-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Pre-compiling should generally not be needed; I try to remember to uncheck it. If you do want everything compiled, read the doc for compileall module. -- nosy: +terry.reedy ___ Python tracker

[issue25124] No single .msi available for 3.5 release

2015-09-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I will let Steve Dower explain or link to explanations for the change. But there were reasons. All of the approximately 10 pre-releases for 3.5.0 have been in the new .exe format. See https://www.python.org/downloads/release/python-350a1/ , which offered py

[issue25117] Windows installer: precompiling stdlib fails with missing DLL errors

2015-09-16 Thread eryksun
eryksun added the comment: There should be a bunch of logs named "Python 3.5.0*.log" in your user's %TEMP% directory. If you don't mind, zip them up and attach the file to this issue for Steve Dower to review when he returns from vacation. In the mean time, try directly installing the Univers

[issue25117] Windows installer: precompiling stdlib fails with missing DLL errors

2015-09-16 Thread eryksun
eryksun added the comment: > Pre-compiling should generally not be needed It's a useful optimization if Python is installed to a directory that doesn't grant write access to regular users, such as %ProgramFiles%. -- ___ Python tracker

[issue1471934] Python libcrypt build problem on Solaris 8, 9, 10 and OpenSolaris

2015-09-16 Thread Peter Bray
Peter Bray added the comment: While I have not tested the patch provided, the following ls(1) command on Sun Solaris 10 Update 8 and Oracle Solaris 10 Update 11, show that on (at least) X86 systems, there is no -lcrypt for 64-bit builds. So a patch is required on 64-bit builds, and possibly 32

[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file40486/deque_nonreentrant_clear2.diff ___ Python tracker ___ ___ Python-b

[issue25117] Windows installer: precompiling stdlib fails with missing DLL errors

2015-09-16 Thread Marius Gedminas
Changes by Marius Gedminas : Added file: http://bugs.python.org/file40487/Python 3.5.0 installer crash logs.zip ___ Python tracker ___ ___ Py

[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict

2015-09-16 Thread Yu Tomita
Yu Tomita added the comment: Submitting a patch. To support both iterable and mapping in the same way as with dict(...), `values` is updated to be a list of length-2 iterables instead of using copy call. Patch includes unittest which tests the reported problem. -- keywords: +patch n

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-09-16 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: -ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.