[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

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

2015-09-19 Thread Brett Cannon
Changes by Brett Cannon : -- status: open -> pending ___ Python tracker ___ ___

[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 ___

[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 ___

[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

[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. --

[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.

[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

[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

[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

[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 ___

[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')

[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

[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

[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

[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,

[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

[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

[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

[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

[issue25185] Inconsistency between venv and site

2015-09-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +vinay.sajip ___ Python tracker ___ ___

[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:

[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

[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

[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

[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

[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 ___

[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

[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 ___

[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

[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,

[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

[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,

[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? --

[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

[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

[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

[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 --

[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

[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:

[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 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

[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

[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

[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

[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

Re: Einstein's Riddle

2015-09-19 Thread Michael Torrie
On 09/18/2015 03:51 AM, Nick Sarbicki wrote: > On Fri, Sep 18, 2015 at 10:33 AM, Steven D'Aprano >> Time is relative. Perhaps the poster has been travelling at close to the >> speed of light, and for him it is only a few minutes after the original >> post was sent. > > I

Re: Hello

2015-09-19 Thread Mark Lawrence
On 19/09/2015 18:31, Dennis Lee Bieber wrote: On Thu, 17 Sep 2015 16:10:55 +0100, moon khondkar declaimed the following: Hello I have problem with python installation.I downloaded python 3.5 but I cannot use it on my computer.I can not open the idle. I get something like

RE: Hello

2015-09-19 Thread Watson, Paul
> Hello I have problem with python installation.I downloaded python 3.5 but > I cannot use it on my computer.I can not open the idle. I get something like > saying > "users\local settings\Application data\programs\python\python35-32\pythonw.exe > is not valid win32 application. Thanks that will

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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. --

[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 ___ ___

[issue17319] http.server.BaseHTTPRequestHandler send_response_only doesn't check the type and value of the code.

2015-09-19 Thread Martin Panter
Martin Panter added the comment: The proposed patch changes the code to 500 if the code is invalid (rather than raising an exception as I initially assumed). I would be inclined to leave send_response() without any extra error checking or handling, unless this is a common problem and there is

[issue25138] test_socket: socket.EAI_NODATA doesn't exist on FreeBSD

2015-09-19 Thread Martin Panter
Martin Panter added the comment: Actually, None is probably a bad default, since gaierror().errno also defaults to None. Maybe choose some other unlikely non-integer object instead. -- ___ Python tracker

Re: True == 1 weirdness

2015-09-19 Thread Gregory Ewing
Random832 wrote: I'm disputing that chained comparisons are used for the particular combinations that I am actually arguing should not be used in python. Such as a < b > c or a != b != c [whereas a may or may not be equal to c] I can't remember offhand seeing a != b != c written by a

[issue25011] Smarter rl complete: hide private and special names

2015-09-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If no one has objections, I'll commit the patch. -- assignee: -> serhiy.storchaka ___ Python tracker ___

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

2015-09-19 Thread STINNER Victor
STINNER Victor added the comment: Hum, the change 7fcff838d09e broke the buildbot "AMD64 Debian PGO 3.5". It would nice to add Clang support without loosing GCC support :-D http://buildbot.python.org/all/builders/AMD64%20Debian%20PGO%203.5/builds/274 -- nosy: +haypo resolution: fixed

[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 :-)

Re: True == 1 weirdness

2015-09-19 Thread Jussi Piitulainen
Random832 writes: > On Fri, Sep 18, 2015, at 14:24, Terry Reedy wrote: >> If a, b, c are members of a totally ordered set, so that < is >> transitive, this is equivalent to max(a,c) < b. But the latter makes >> an irrelevant comparison between a and c. > > But *who would write that?* It's not a

[issue21259] replace "except: pass" by "except Exception: pass"

2015-09-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I presume you do not mind if I reclose this. Thanks, please do reclose this. -- ___ Python tracker ___

[issue25138] test_socket: socket.EAI_NODATA doesn't exist on FreeBSD

2015-09-19 Thread Martin Panter
Martin Panter added the comment: Maybe it is good enough use something like this as a workaround, with an appropriate comment: if e.errno == getattr(socket, "EAI_NODATA", None): # Symbol not defined on FreeBSD However I wonder if it would be reasonable to set this constant (and similar

Re: Add items from a python list to a javascript array

2015-09-19 Thread Denis McMahon
On Sat, 19 Sep 2015 00:25:20 -0700, Darryl Doherty wrote: > I have a kiosk for digital signage which has a html index file with a > javascript which rotates through other html files using iframe at timed > intervals. What I want to do is edit the array in the index file with > Python to add and

[issue25138] test_socket: socket.EAI_NODATA doesn't exist on FreeBSD

2015-09-19 Thread STINNER Victor
STINNER Victor added the comment: It would be better to catch the FreeBSD error code when the hostname is not known. -- ___ Python tracker ___

[issue25101] test_zipfile failure when run by unprivileged user with installed Python

2015-09-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 80d002edc9c1 by Serhiy Storchaka in branch '3.4': Issue #25101: Try to create a file to test write access in test_zipfile. https://hg.python.org/cpython/rev/80d002edc9c1 New changeset fe84898fbe98 by Serhiy Storchaka in branch '2.7': Issue #25101:

[issue25139] socketserver.ThreadingMixIn exception handler: Just a little refactoring

2015-09-19 Thread Martin Panter
Martin Panter added the comment: I suggest changing the “except” clause to “except BaseException”, which would make the intention clearer. As an alternative, see also my Issue 23430, were I proposed not catching exceptions like KeyboardInterrupt and SystemExit, by changing this to: try:

Add items from a python list to a javascript array

2015-09-19 Thread Darryl Doherty
I have a kiosk for digital signage which has a html index file with a javascript which rotates through other html files using iframe at timed intervals. What I want to do is edit the array in the index file with Python to add and remove the HTML file paths from the array. I have a list of all

[issue25101] test_zipfile failure when run by unprivileged user with installed Python

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

ConnectionError handling problem

2015-09-19 Thread shiva upreti
I am learning python. I wrote a script using requests module. The scripts runs fine for sometime, but after a while it hangs. When I press CTRL+C it shows ConnectionError even though I have included exception handling. I am not sure as to why it cant handle ConnectionError when the script runs

[issue25159] Regression in time to import a module

2015-09-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I did not find any significant different between 3.4 and 3.5 on Windows running the following: import os, time from importlib import import_module files = os.listdir("C:/Programs/Python34/Lib") excludes = {'antigravity.py', 'compileall.py', 'crypt.py',

[issue25161] Missing periods at the end of sentences

2015-09-19 Thread Martin Panter
Changes by Martin Panter : -- stage: -> patch review ___ Python tracker ___ ___

[issue25161] Missing periods at the end of sentences

2015-09-19 Thread Martin Panter
Martin Panter added the comment: All the changes in the non-2.7 patch look reasonable to me. I left two review comments suggesting a few extra minor edits. -- nosy: +martin.panter ___ 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: 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: --- /home/haypo/prog/python/2.7/Lib/threading.py2014-11-05 15:05:11.432003853

[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 ___ ___

[issue21259] replace "except: pass" by "except Exception: pass"

2015-09-19 Thread Martin Panter
Changes by Martin Panter : -- superseder: -> Fix bare excepts in various places in std lib ___ Python tracker ___

[issue25112] Windows installer assigns non-existent icons to Python file types

2015-09-19 Thread Mark Mikofski
Mark Mikofski added the comment: +1 I just wasted at least an hour on this. :( should have checked bugs first. Google says nothing, so I thought I was going crazy. I saw that py.exe had only one icon and that Python.File had c:\windows\py.exe, 1 while Python.CompiledFile had

[issue17319] http.server.BaseHTTPRequestHandler send_response_only doesn't check the type and value of the code.

2015-09-19 Thread Martin Panter
Changes by Martin Panter : -- Removed message: http://bugs.python.org/msg227647 ___ Python tracker ___

[issue17319] http.server.BaseHTTPRequestHandler send_response_only doesn't check the type and value of the code.

2015-09-19 Thread Martin Panter
Changes by Martin Panter : -- Removed message: http://bugs.python.org/msg227645 ___ Python tracker ___

[issue25101] test_zipfile failure when run by unprivileged user with installed Python

2015-09-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

Re: Shutting down a cross-platform multithreaded app

2015-09-19 Thread James Harris
"Laura Creighton" wrote in message news:mailman.5.1442609448.21674.python-l...@python.org... In a message of Fri, 18 Sep 2015 20:09:19 +0100, "James Harris" writes: Set the daemon flag on the worker threads, so when the main thread exits, the workers also exit. Interesting

[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

[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

Re: Adding PEP 495 support to dateutil

2015-09-19 Thread Alexander Belopolsky
[Tim Peters] > > I think acceptance of 495 should be contingent upon > someone first completing a fully functional (if not releasable) > fold-aware zoneinfo wrapping. [Alexander Belopolsky] > > I am making all development public early on and hope to see code reviews and pull requests from

Hello

2015-09-19 Thread moon khondkar
Hello I have problem with python installation.I downloaded python 3.5 but I cannot use it on my computer.I can not open the idle. I get something like saying "users\local settings\Application data\programs\python\python35-32\pythonw.exe is not valid win32 application. Thanks that will be help

windows 10

2015-09-19 Thread heidimtaylor
I am using Windows 10. I cannot find the Python (command line). Do you know where I would find it? Thank you, Heidi Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

[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.

[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

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

2015-09-19 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +steven.daprano ___ Python tracker ___ ___

[issue9253] argparse: optional subparsers

2015-09-19 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing

Re: Shutting down a cross-platform multithreaded app

2015-09-19 Thread James Harris
"Chris Angelico" wrote in message news:mailman.8.1442612439.21674.python-l...@python.org... On Sat, Sep 19, 2015 at 3:17 AM, James Harris wrote: Needless to say, on a test Windows machine AF_UNIX is not present. The only cross-platform option,

Re: Shutting down a cross-platform multithreaded app

2015-09-19 Thread Chris Angelico
On Sat, Sep 19, 2015 at 7:49 PM, James Harris wrote: > "Chris Angelico" wrote in message > news:mailman.8.1442612439.21674.python-l...@python.org... >> >> On Sat, Sep 19, 2015 at 3:17 AM, James Harris >> wrote: >>> >>>

[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 ___

  1   2   >