[issue25190] Define StringIO seek offset as code point offset

2015-09-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I suspect it would be not easy to do for Python implementation. -- nosy: +benjamin.peterson, pitrou, serhiy.storchaka, stutzbach ___ Python tracker __

[issue24199] Idle: remove idlelib.idlever.py and its use in About dialog

2015-09-19 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24199] Idle: remove idlelib.idlever.py and its use in About dialog

2015-09-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3c39413d277f by Terry Jan Reedy in branch '2.7': Issue #24199: Add stacklevel to deprecation warning call. https://hg.python.org/cpython/rev/3c39413d277f New changeset 048fce602bcd by Terry Jan Reedy in branch '3.4': Issue #24199: Add stacklevel to

[issue12922] StringIO and seek()

2015-09-19 Thread Martin Panter
Martin Panter added the comment: Opened Issue 25190 about the enhancing StringIO side of this. -- ___ Python tracker ___ ___ Python-bu

[issue25190] Define StringIO seek offset as code point offset

2015-09-19 Thread Martin Panter
New submission from Martin Panter: This follows from Issue 12922. When no newline translation is being done, it would be useful to define the seek() offset as the code point offset into the underlying string, allowing stuff like: s = StringIO() print("line", file=s) # Some inflexible API with

[issue25189] An issue about os.access

2015-09-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks as a duplicate of issue2528. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Change os.access to check ACLs under Windows ___ Python tracker

[issue25146] IDLE debugger could better visualize program execution

2015-09-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I had a wild idea, possible a result of too much ignorance. Run the main debugger in the user process, with a separate root and event loop. Add to the communication protocol options to send a list of breakpoints and modules to be traced into and to send (mod

[issue25189] An issue about os.access

2015-09-19 Thread yangyanbo
yangyanbo added the comment: I wrote error ,it should be os.access, and the issue is really exist -- Added file: http://bugs.python.org/file40525/1.png ___ Python tracker ___ ___

[issue25189] An issue about os.access

2015-09-19 Thread yangyanbo
Changes by yangyanbo : -- title: An issue about os.acess -> An issue about os.access ___ Python tracker ___ ___ Python-bugs-list maili

[issue25189] An issue about os.acess

2015-09-19 Thread yangyanbo
New submission from yangyanbo: On Windows 10 . The telnet function is closed on Windows10, I open it and I can use it in WIN CMD. But when i start python shell,and import os module, I use the command os.acess(r"C:\Windows\System32\telnet.exe",os.X_OK) to check it is or not be executeable,And I

[issue25057] Make parameter of io.base to be positional and keyword

2015-09-19 Thread Martin Panter
Martin Panter added the comment: For an illustration of the problem that this would cause, I did a quick search through Python’s own source tree. It already has various keyword names: def seek(self, pos, whence=0): def seek(self, cookie, whence=0): def seek(self, offset, whence=0): def seek(sel

[issue25108] traceback.extract_stack() compatibility break in 3.5

2015-09-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue25108] traceback.extract_stack() compatibility break in 3.5

2015-09-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Arfrever. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue25108] traceback.extract_stack() compatibility break in 3.5

2015-09-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7e718bbf5152 by Serhiy Storchaka in branch '2.7': Issue #25108: Fixed test_traceback in the case when this test is run twice. https://hg.python.org/cpython/rev/7e718bbf5152 -- ___ Python tracker

[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-19 Thread Alecsandru Patrascu
New submission from Alecsandru Patrascu: This issue adds improved support for Profile Guided Optimization builds in the regression test suite. Mainly, we keep the visual progress status in this process and suppress errors or any other unnecessary output that can alarm users. -- compo

[issue25185] Inconsistency between venv and site

2015-09-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Example: $ LC_ALL=ru_RU.cp1251 ./python -m venv ../vpy× $ LC_ALL=ru_RU.cp1251 ./python -m venv ../vpyØ Error: 'charmap' codec can't encode character '\udc98' in position 617: character maps to The first command is successful, the latter command is failed.

[issue14586] TypeError: truncate() takes no keyword arguments

2015-09-19 Thread Martin Panter
Martin Panter added the comment: I agree with Guy’s earlier comments and would prefer this be fixed in the documentation. Otherwise, we would end up with third party IOBase implementations that use the wrong keyword name, or that don’t accept keywords at all. These would no longer be compatibl

[issue23738] Clarify documentation of positional-only default values

2015-09-19 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +TypeError: truncate() takes no keyword arguments ___ Python tracker ___ ___ Python-bugs-l

[issue25108] traceback.extract_stack() compatibility break in 3.5

2015-09-19 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: > New changeset f6125114b55f by Serhiy Storchaka in branch '2.7': > Issue #25108: Backported tests for traceback functions print_stack(), > https://hg.python.org/cpython/rev/f6125114b55f The new tests fail on 2.7 branch when Lib/test/test_tr

[issue25180] Tools/parser/unparse.py needs to be updated for f-strings

2015-09-19 Thread Martin Panter
Martin Panter added the comment: I think this patch should do it. No major surgery required, just a good dose of recursion :) def test_nested_fstrings(self): # Original code y = 5 self.assertEqual(f'{f"{0}"*3}', '000') self.assertEqual(f'{f"{y}"*3}', '555') self.assertEqual(f'{

[issue25187] bdist_rpm fails due to wrong hardcoded assumption about RPM filename format

2015-09-19 Thread David Ward
New submission from David Ward: bdist_rpm wrongly assumes a hard-coded format for the filename of the non-source RPM which is generated when it calls rpmbuild, specifically: "%{arch}/%{name}-%{version}-%{release}.%{arch}.rpm" The format used by rpmbuild is actually specified by the RPM macro %

[issue25176] Link to urllib.parse.parse_qsl, not parse_qs, from cgi.parse_qsl doc

2015-09-19 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue25175] Documentation-Tkinter Clarify module spelling change in Python 3 docs

2015-09-19 Thread Carol Willing
Carol Willing added the comment: Thank you Bar Harel for submitting a patch. Ultimately, I believe that the wording should be what is most helpful for the end users. If you wish to avoid mentioning Python 2, then a simple note cautioning the user to take care that the case of the module shoul

[issue25175] Documentation-Tkinter Clarify module spelling change in Python 3 docs

2015-09-19 Thread Martin Panter
Martin Panter added the comment: Perhaps it would be better to add the notice inside the big “See also” box at the top. In particular I occasionally find myself looking at the NMT “Tkinter reference: a GUI for Python” and Effbot sites as a substitute for the missing built-in documentation, and

[issue25176] Link to urllib.parse.parse_qsl, not parse_qs, from cgi.parse_qsl doc

2015-09-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ed2427758cf by Martin Panter in branch '3.4': Issue #25176: Correct link for cgi.parse_qsl; patch from Ville Skyttä https://hg.python.org/cpython/rev/3ed2427758cf New changeset 138bbb7cf612 by Martin Panter in branch '3.5': Issue #25176: Merge cg

[issue25146] IDLE debugger could better visualize program execution

2015-09-19 Thread Mark Roseman
Mark Roseman added the comment: Ok, I lied. The program runs through start to finish regardless, and all the 'stopping' and breakpoints is really just very selectively deciding which subset of execution tracing events to pass back to the debugger. So you really do need to 'block' in those call

[issue25175] Documentation-Tkinter Clarify module spelling change in Python 3 docs

2015-09-19 Thread Mark Lawrence
Mark Lawrence added the comment: Does this open a can of worms? "You did it for Tkinter, why not do it for everything that was changed by PEP3108"? -- nosy: +BreamoreBoy ___ Python tracker ___

[issue25176] Link to urllib.parse.parse_qsl, not parse_qs, from cgi.parse_qsl doc

2015-09-19 Thread Martin Panter
Martin Panter added the comment: Thanks for the patch. This only applies to the Python 3 doc; Python 2 does not have the error. -- assignee: docs@python -> martin.panter nosy: +berker.peksag, martin.panter stage: -> commit review versions: +Python 3.4, Python 3.5 _

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-19 Thread Brett Cannon
Brett Cannon added the comment: A separate issue is fine, Alecsandru, since we can make it a dependency of this issue. -- ___ Python tracker ___

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the --pgo flag needs only work in single process mode, since multi-process would probably not write out the profiling data properly. -- ___ Python tracker _

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-19 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I can work on modifying the existing regrtest and adding a distinct flag, --pgo for example, as Antoine suggested. Indeed, it will not be trivial as regrtest has a dual approach (single process and multi process), but I will give it a try and post a patch

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Instead of writing a custom test runner from scratch, I would suggest adding a hidden --option to regrtest that would disable reporting errors. -- ___ Python tracker _

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-19 Thread Brett Cannon
Brett Cannon added the comment: I gave the custom test runner a try using unittest's discovery facility, but it started to execute the whole test suite again, so it's a bit more complicated than you might think (I guess it imported regrtest or something?). -- Added file: http://bugs.py

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

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

[issue25186] Don't duplicate _verbose_message in importlib._bootstrap and _bootstrap_external

2015-09-19 Thread Brett Cannon
New submission from Brett Cannon: For some reason _verbose_message() is defined in both _bootstrap and _bootstrap_external. Probably should only have it in _bootstrap, unless Eric has a reason he duplicated the code. -- components: Library (Lib) messages: 251124 nosy: brett.cannon, eri

[issue25182] python -v crashes in nonencodable directory

2015-09-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: python without -v is not failed. If wrap message in _bootstrap_external._verbose_message with '!%a'% and in _bootstrap._verbose_message with '%a'% (why _verbose_message is duplicated in _bootstrap and _bootstrap_external?), the output is: ... # installing z

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

2015-09-19 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : -- nosy: +Jelle Zijlstra status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25182] python -v crashes in nonencodable directory

2015-09-19 Thread Brett Cannon
Brett Cannon added the comment: And what happens if you leave -v off? Since the failure is in Py_Initialize I want to know if that Py_FatalError trigger is avoided without -v. A possible fix to test is to simply modify importlib._bootstrap._verbose_message to catch UnicodeDecodeError and then

[issue25175] Documentation-Tkinter Clarify module spelling change in Python 3 docs

2015-09-19 Thread Martin Panter
Martin Panter added the comment: Normally the documentation doesn’t mention changes from Python 2. But in this case one often has to rely on other sources of documentation, which are often about Python 2, so I think the notice might be reasonable. -- components: +Tkinter stage: needs p

[issue25180] Tools/parser/unparse.py needs to be updated for f-strings

2015-09-19 Thread Eric V. Smith
Eric V. Smith added the comment: This task is actually pretty difficult, and is going to require some major surgery to unparse.py. Unfortunately, until it's fixed, you can't use f-strings in the stdlib or in stdlib tests. Particularly challenging are nested f-strings like: f'{f"{0}"*3}' Gett

[issue25185] Inconsistency between venv and site

2015-09-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue25185] Inconsistency between venv and site

2015-09-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: venv writes pyvenv.cfg with utf-8 encoding, but site reads it with locale encoding. -- components: Library (Lib) messages: 251119 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Inconsistency between venv and site type:

[issue25146] IDLE debugger could better visualize program execution

2015-09-19 Thread Mark Roseman
Mark Roseman added the comment: Regarding the nested loops, what's happening is: - IDLE tells interpreter to run program - Interpreter now has control and is running program, start to end - Because execution is being traced, before every statement we get a callback If we didn't use the nested lo

[issue25181] Tests failed in nondecodable directory

2015-09-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +"python -m pydoc -w" fails in nondecodable directory, python -m inspect --details fails in nondecodable directory, python -v crashes in nonencodable directory ___ Python tracker

[issue25184] "python -m pydoc -w" fails in nondecodable directory

2015-09-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ pwd /home/serhiy/py/cpy�thon-3.5 $ ./python -m pydoc -w pydoc Traceback (most recent call last): File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/runpy.py", line 170, in _run_module_as_main "__main__", mod_spec) File "/home/serhiy/py/cpy\udcffthon-3.5/L

[issue25183] python -m inspect --details fails in nondecodable directory

2015-09-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ pwd /home/serhiy/py/cpy�thon-3.5 $ ./python -m inspect --details unittest Target: unittest Traceback (most recent call last): File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/runpy.py", line 170, in _run_module_as_main "__main__", mod_spec) File "/home/

[issue25182] python -v crashes in nonencodable directory

2015-09-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ pwd /home/serhiy/py/cpy�thon-3.5 $ ./python -v import _frozen_importlib # frozen import _imp # builtin import sys # builtin import '_warnings' # import '_thread' # import '_weakref' # import '_frozen_importlib_external' # import '_io' # import 'marshal

[issue25079] Tokenize generates NL instead of NEWLINE for comments

2015-09-19 Thread Optimal BPM
Optimal BPM added the comment: OK. But just to make me understand, would that explain why an else statement gets its DEDENT before the else, instead of before an dedented comment just before it? Even if the comment is visually dedented as the else? Example where tokenize returns the DEDENT in

[issue25181] Tests failed in nondecodable directory

2015-09-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: A number of tests are failed or skipped when run in directory with a name that contains non-decodable characters. Attached output of following command: ./python -m test.regrtest -uall -v test_cgitb test_cmd_line test_gdb test_inspect test_multiprocessin_fo

[issue25180] Tools/parser/unparse.py needs to be updated for f-strings

2015-09-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 37d3b95a289b by Eric V. Smith in branch 'default': Temporary hack for issue #25180: exclude test_fstring.py from the unparse round-tripping, while I figure out how to properly fix it. https://hg.python.org/cpython/rev/37d3b95a289b -- nosy:

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-19 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Thank you for upstreaming this in both branches of Python! Do you think that a different version of regrtest.py, that will be used only for PGO training, should be better in this case? I mean, by implementing a custom version, I think we can control better

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-19 Thread Skip Montanaro
Skip Montanaro added the comment: Would it be possible to grep out the warning messages, but let everything else through? On Sep 19, 2015 1:34 PM, "Brett Cannon" wrote: > > Brett Cannon added the comment: > > The problem with the output is that error cases are unimportant and yet it > fooled Sk

[issue25175] Documentation-Tkinter Clarify module spelling change in Python 3 docs

2015-09-19 Thread Bar Harel
Bar Harel added the comment: Is this good? :-) -- keywords: +patch nosy: +bar.harel Added file: http://bugs.python.org/file40520/Issue25175.patch ___ Python tracker ___ _

[issue25177] OverflowError in statistics.mean when summing large floats

2015-09-19 Thread Mark Dickinson
Mark Dickinson added the comment: That patch doesn't really help, I'm afraid, since it introduces problems at the other end of the floating-point range: for example, `mean([5e-324, 5e-324])` would give `0.0` with that patch (instead of the `5e-324` it currently gives). So currently, when compu

[issue25180] Tools/parser/unparse.py needs to be updated for f-strings

2015-09-19 Thread Eric V. Smith
Eric V. Smith added the comment: And it always fails with "-u cpu", which the buildbots use. -- ___ Python tracker ___ ___ Python-bugs

[issue25180] Tools/parser/unparse.py needs to be updated for f-strings

2015-09-19 Thread Eric V. Smith
New submission from Eric V. Smith: test_unparse.py occasionally fails if it picks a module that uses f-strings. -- assignee: eric.smith keywords: easy messages: 251106 nosy: eric.smith priority: normal severity: normal stage: needs patch status: open title: Tools/parser/unparse.py needs

[issue25170] 3.5.0 documentation archives missing

2015-09-19 Thread Georg Brandl
Georg Brandl added the comment: This is still in PEP 101: ___ If this is a final release: Move the doc zips and tarballs to /srv/www.python.org/ftp/python/doc/X.Y.Z, creating the directory if necessary, and adapt the "current" symlink in .../doc to point to th

[issue23883] __all__ lists are incomplete

2015-09-19 Thread Jacek Kołodziej
Jacek Kołodziej added the comment: Does anyone have strong preference towards one of the propositions above? TestCase subclass looks reasonable IMHO, but I'd not add that to the scope of this issue (I'd be happy to implement it later, though). Any suggestions? --

[issue25177] OverflowError in statistics.mean when summing large floats

2015-09-19 Thread Bar Harel
Bar Harel added the comment: Seems like this is the only viable option. It fixes the OverflowError but comes at the cost of precision and time. Another option would be to try/except the overflow error and only then return the slower method. Regarding the data [8.988465674311579e+307, 8.98846567

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-19 Thread Eric V. Smith
Eric V. Smith added the comment: Documentation task added as issue #25179. Thanks to Martin for the great code reviews. -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue25179] PEP 498 f-strings need to be documented

2015-09-19 Thread Eric V. Smith
New submission from Eric V. Smith: Issue 24965 add f-strings (see PEP 498). They need to be documented. -- assignee: docs@python components: Documentation messages: 251101 nosy: docs@python, eric.smith priority: normal severity: normal stage: needs patch status: open title: PEP 498 f-str

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset a10d37f04569 by Eric V. Smith in branch 'default': Issue #24965: Implement PEP 498 "Literal String Interpolation". Documentation is still needed, I'll open an issue for that. https://hg.python.org/cpython/rev/a10d37f04569 -- __

[issue21264] test_compileall fails to build in the installed location

2015-09-19 Thread R. David Murray
R. David Murray added the comment: Yes the point is to test compilation of the path. If I run python3 -m compilelall on my installed python, it works fine (zero return code). I can't really investigate this further right now, but it isn't obvious to me what the answer is from the information

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

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

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-19 Thread Brett Cannon
Brett Cannon added the comment: The problem with the output is that error cases are unimportant and yet it fooled Skip into temporarily caring until he finally noticed the warning message. So my worry is that someone doesn't notice the "NOTE: ignore errors as they don't affect anything" and th

[issue25178] IDLE: search regex errors should be in/attached to search dialog

2015-09-19 Thread Mark Roseman
New submission from Mark Roseman: Follow-on to #25173, any regex errors are displayed by SearchEngine but they should be shown by the dialog where the user is typing the error. Either as a modal tkMessageBox attached to the dialog, or as an inline error in the dialog itself. -- compon

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2015-09-19 Thread Petr Prikryl
Petr Prikryl added the comment: I have worked around a bit differently -- the snippet from the code: result = time.tzname[0]# simplified version of the original code. # Because of the bug in Windows libraries, Python 3.3 tried to work around # some issues. However, the shit hit

[issue25173] IDLE - several common dialogs don't have correct parent set

2015-09-19 Thread Mark Roseman
Mark Roseman added the comment: Attached masterparent27.patch, same thing for 2.7 branch -- Added file: http://bugs.python.org/file40518/masterparent27.patch ___ Python tracker _

[issue25173] IDLE - several common dialogs don't have correct parent set

2015-09-19 Thread Mark Roseman
Mark Roseman added the comment: I think both master and parent are needed, for the likely rare case when you don't want a dialog attached to any window, but it needs a Tk window handle to build the dialog from. Ran across that in SearchEngine, which has a root window just for the purpose of

[issue25170] 3.5.0 documentation archives missing

2015-09-19 Thread R. David Murray
R. David Murray added the comment: I'm not sure there's no bug here, though there certainly doesn't seem to be any bug in your execution of the release process. I think we should ask Georg's opinion at least. -- nosy: +georg.brandl, r.david.murray

[issue16701] Docs missing the behavior of += (in-place add) for lists.

2015-09-19 Thread R. David Murray
R. David Murray added the comment: I suggested updating the library reference in my first reply on this issue. No one has proposed a patch yet, though. -- ___ Python tracker __

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 19/09/2015 20:18, Brett Cannon a écrit : > > And I don't want to add output back simply to appease the buildbot as the output means nothing to a user who is doing the build themselves. The output is actually a good indication of progress, so I don't think it

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-19 Thread Brett Cannon
Brett Cannon added the comment: It didn't break gcc, the buildbot simply wasn't patient enough for the PGO run of the test suite to complete: http://buildbot.python.org/all/builders/AMD64%20Debian%20PGO%203.5/builds/274/steps/compile/logs/stdio . It takes a good amount of time to run the test

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2015-09-19 Thread Jason R. Coombs
Jason R. Coombs added the comment: After porting the latest released Setuptools version, I discovered yet another regression in the Setuptools implementation, specifically around its handling for this issue, so I've created yet another release of Setuptools (18.3.2) to include tests and fixes

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2015-09-19 Thread Jason R. Coombs
Changes by Jason R. Coombs : Added file: http://bugs.python.org/file40516/3da42b593e1f.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue25177] OverflowError in statistics.mean when summing large floats

2015-09-19 Thread Bar Harel
Bar Harel added the comment: Alright, Seems like the problem is bigger than I thought. PEP 238 (https://www.python.org/dev/peps/pep-0238/) mentions that problem. Using the new division, // will cause a floor while / will cause an OverflowError. An ugly way around it involves type checking or re

[issue22559] [backport] ssl.MemoryBIO

2015-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't know or remember what the whole PEP says. In doubt, I suggest floating it by python-dev to get a more informed answer. -- ___ Python tracker __

[issue25173] IDLE - several common dialogs don't have correct parent set

2015-09-19 Thread Mark Roseman
Mark Roseman added the comment: No comment on state of Tkinter documentation. ;-) I'll have a go through the uses of 'master' in IDLE and see which others should be changed, and put together a patch. Plus double-check with all the other dialogs in lib/tkinter to see if there are any other gotc

[issue25177] OverflowError in statistics.mean when summing large floats

2015-09-19 Thread Bar Harel
Bar Harel added the comment: Yup, it indeed fixes the problem. Sorry for thinking it's intended. Seems like it's a small problem but it does affects all the uses of Integral or Rational. I'll test it with the suite hoping it has a sufficient coverage. -- __

[issue25177] OverflowError in statistics.mean when summing large floats

2015-09-19 Thread Bar Harel
Bar Harel added the comment: Whoop! I see the reason for it now. By limit I don't mean the precision limit, I mean the top limit in which float converts to "inf". Seems like this bug is due to the change of python 3's division operator. Under numbers it states: "It's important that this conversi

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2015-09-19 Thread Jason R. Coombs
Jason R. Coombs added the comment: Although the code was ported from setuptools, it wasn't ported from the long stable implementation, but was ported following the recent refactor, which had a [regression](https://bitbucket.org/pypa/setuptools/issues/425/odd-failure-on-183-missing-files-but-th

[issue22559] [backport] ssl.MemoryBIO

2015-09-19 Thread Donald Stufft
Donald Stufft added the comment: Now that 3.5 is out, does that mean we can sync 2.7 with the 3.5 ssl again and land this patch? -- ___ Python tracker ___ __

[issue25177] OverflowError in statistics.mean when summing large floats

2015-09-19 Thread David MacIver
David MacIver added the comment: I'm not sure what you mean by float having a limit here. It's certainly finite precision, but there is still a representable value with that finite precision closest to the mean. As an example where there is an obvious correct answer that will trigger this err

[issue25177] OverflowError in statistics.mean when summing large floats

2015-09-19 Thread Bar Harel
Bar Harel added the comment: I believe it's an intended behavior as python's float has a limit after all. It's hard to reach it but definitely possible. A workaround is to internally use Decimal (also take the advantage that it's implementation is now way faster) but it will cause a precision l

[issue25175] Documentation-Tkinter Clarify module spelling change in Python 3 docs

2015-09-19 Thread Carol Willing
Carol Willing added the comment: Although the documentation for Python 3 and Python 2 is correct as Martin shared, adding a note about capitalization in the Python 3 docs would be helpful for beginners for two reasons: 1) the name of the Tkinter project does start with a capital 'T' and 2) the

[issue25177] OverflowError in statistics.mean when summing large floats

2015-09-19 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue9253] argparse: optional subparsers

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

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-09-19 Thread STINNER Victor
STINNER Victor added the comment: > This variant look overcomplicated to me. Ok fine. I pushed pylong_digits.patch, but I also modified a similar code a few lines below. -- ___ Python tracker ___

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-09-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 21076e24cd8a by Victor Stinner in branch '3.5': Issue #24999: In longobject.c, use two shifts instead of ">> 2*PyLong_SHIFT" to https://hg.python.org/cpython/rev/21076e24cd8a -- nosy: +python-dev ___ Pyth

[issue25177] OverflowError in statistics.mean when summing large floats

2015-09-19 Thread David MacIver
New submission from David MacIver: The following code produces an OverflowError: import statistics statistics.mean([8.988465674311579e+307, 8.98846567431158e+307]) The error is: File "/home/david/.pyenv/versions/3.5.0/lib/python3.5/statistics.py", line 293, in mean return _sum(data)/n

[issue25084] remove semi-busy loop in py2.7 threading.Condition.wait(timeout=x)

2015-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, let's close it then. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ _

[issue25084] remove semi-busy loop in py2.7 threading.Condition.wait(timeout=x)

2015-09-19 Thread STINNER Victor
STINNER Victor added the comment: "The balancing fix has 3 main problems imo:" Oh by the way, I don't want to apply it to Python 2.7 upstream for a similar reason: it's a new feature which would be added to a Python 2.7 minor version. We try to avoid that, even if Python 2.7 is special. ---

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-19 Thread Eric V. Smith
Eric V. Smith added the comment: I changed the generated code to call: format(x [, spec]) instead of: x.__format__(spec) The reason is that the correct way to call __format__ is actually: type(x).__format__(x, spec) That is, the __format__ lookup is done on the type, not the instance. From the

[issue25176] Link to urllib.parse.parse_qsl, not parse_qs, from cgi.parse_qsl doc

2015-09-19 Thread Ville Skyttä
New submission from Ville Skyttä: The docs for cgi.parse_qsl should link to urllib.parse.parse_qsl instead of urllib.parse.parse_qs, patch attached. -- assignee: docs@python components: Documentation files: cgi.parse_qsl.doc.patch keywords: patch messages: 251072 nosy: docs@python, scop

[issue25175] Documentation-Tkinter wrong statement

2015-09-19 Thread Martin Panter
Martin Panter added the comment: The problem here is you have quoted the Python 3 documentation (see in the title, or the version switcher at the top), when you are presumably using Python 2. The module changed name to lowercase in Python 3. -- nosy: +martin.panter ___

[issue25175] Documentation-Tkinter wrong statement

2015-09-19 Thread Rishit Bansal
New submission from Rishit Bansal: The statement required to check whether Tkinter is installed on a system is mentioned in the documentation as python -m tkinter , whereas it is supposed to be python -m Tkinter (with a big 't'). Please correct this error on the documentation here:https://docs

[issue25084] remove semi-busy loop in py2.7 threading.Condition.wait(timeout=x)

2015-09-19 Thread Flavio Grossi
Flavio Grossi added the comment: > About the new optional balanced parameter added downstream to Fedora, the > patch is very small compared to timedlock.patch. It only changes the Python > code, not the C code The balancing fix has 3 main problems imo: - It causes long delays to receive the no

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2015-09-19 Thread eryksun
eryksun added the comment: To decode the tzname strings, Python calls mbstowcs, which on Windows uses Latin-1 in the "C" locale. However, in this locale the tzname strings are actually encoded using the system ANSI codepage (e.g. 1250 for Central/Eastern Europe). So it ends up decoding ANSI st

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-09-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This variant look overcomplicated to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-09-19 Thread STINNER Victor
STINNER Victor added the comment: pylong_digits.patch: new patch add two local inlined functions _PyLong_AsDigits() and _PyLong_FromDigits() to make the code more readable. Does it look good to you? I chose two shifts since only Tim Peters has an opinion on it, and he prefers two shifts :-)

  1   2   >