[issue16811] email.message.Message flatten dies of list index out of range

2015-11-20 Thread R. David Murray
R. David Murray added the comment: Please open a new issue and provide a reproducer. Thanks. -- ___ Python tracker ___

[issue25679] Fix typo in Doc/reference/executionmodel.rst

2015-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3e723559d9f1 by R David Murray in branch '3.4': #25679: spelling fix https://hg.python.org/cpython/rev/3e723559d9f1 New changeset 44ca5e073feb by R David Murray in branch '3.5': Merge: #25679: spelling fix

[issue25681] Assignment of one element in nested list changes multiple elements

2015-11-20 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue25677] Syntax error caret confused by indentation

2015-11-20 Thread R. David Murray
R. David Murray added the comment: It appears as though the line is always printed without the leading whitespace, but the caret takes the whitespace into account (try indenting the line even further). So the problem is that the caret and the printing of the source line in the error message

[issue25681] Assignment of one element in nested list changes multiple elements

2015-11-20 Thread Yan
New submission from Yan: Is this the correct behavior? >>> l=[['']*2]*3 >>> b=[['', ''], ['', ''], ['', '']] >>> l == b True >>> l[0][1]='A' >>> b[0][1]='A' >>> l == b False >>> l [['', 'A'], ['', 'A'], ['', 'A']] >>> b [['', 'A'], ['', ''], ['', '']] -- messages: 254978 nosy: ydu

[issue25680] Selector.select() hangs when there is nothing to select

2015-11-20 Thread STINNER Victor
STINNER Victor added the comment: Your code doesn't make sense. You listen to 0 file descriptor and wait forever until you get events, which will never occur. I'm not even sure that it should be allowed by the Selector API. What's the point of your bug report? Does your application really

[issue25681] Assignment of one element in nested list changes multiple elements

2015-11-20 Thread Emanuel Barry
Emanuel Barry added the comment: Your list `l` actually holds only one list, except three times. When you change it, it's reflected in all the lists. It's the equivalent of the following: >>> x=['', ''] >>> l=[x, x, x] Makes a bit more sense this way? Either way, yes, this is intentional

[issue25681] Assignment of one element in nested list changes multiple elements

2015-11-20 Thread Emanuel Barry
Emanuel Barry added the comment: Another way to fix this would be the following: >>> l=[[''] * 2 for _ in range(3)] >>> l [['', ''], ['', ''], ['', '']] >>> l[0][1] = "A" >>> l [['', 'A'], ['', ''], ['', '']] The * operator on lists doesn't create new elements, it only adds new references to

[issue16811] email.message.Message flatten dies of list index out of range

2015-11-20 Thread Jan Malte
Jan Malte added the comment: seems like this happens still, if the CC header starts with a new line character. Python 3.4.3 -- nosy: +janmalte ___ Python tracker

[issue25680] Selector.select() hangs when there is nothing to select

2015-11-20 Thread Aleksey Kladov
New submission from Aleksey Kladov: The following hangs on Linux ```Python >>> import selectors >>> s = selectors.DefaultSelector() >>> s.select() ``` On Mac it returns an empty list. -- messages: 254975 nosy: Aleksey Kladov priority: normal severity: normal status: open title:

[issue9504] signal.signal/signal.alarm not working as expected

2015-11-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue25646] Distutils and Windows SDK 7.1

2015-11-20 Thread JGoutin
JGoutin added the comment: Better compatibility for Architectures names conversion between Vcvarsall.bat and SetEnv.Cmd for cross compilation. This seem to work good on classic compilation, but I still have difficulties with cross-compilation. -- title: Distutils and Windows SDK 7.0

[issue25626] Gzip fails for file over 2**32 bytes

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added new comments. -- ___ Python tracker ___ ___ Python-bugs-list

[issue25677] Syntax error caret confused by indentation

2015-11-20 Thread R. David Murray
R. David Murray added the comment: By the way, python3.4 also shows the behavior. Python2 does not, because python2 does not print the caret. The bug presumably crept in when the caret was added. I'm marking this as easy...presumably the hardest part of fixing it is figuring out exactly

[issue25681] Assignment of one element in nested list changes multiple elements

2015-11-20 Thread Yan
Yan added the comment: Thanks for the quick response. It makes sense to me. I misunderstood the * operator. -- ___ Python tracker ___

[issue25679] Fix typo in Doc/reference/executionmodel.rst

2015-11-20 Thread R. David Murray
R. David Murray added the comment: Fixed, thanks. I wonder if it was one of our german speakers who typed that :) -- nosy: +r.david.murray resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue25669] unittest.assertEqual() on un-equal types inheriting from collections.Mapping

2015-11-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker ___

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Eryk Sun
Eryk Sun added the comment: I just made a quick modification to check that it works. I'm sure you could do the same. But here it is anyway. -- keywords: +patch Added file: http://bugs.python.org/file41095/issue25678.patch ___ Python tracker

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is similar to issue24802. The patch for issue24802 was not backported to 2.7 because affected functions don't accept memoryview in Python 2. Now we have an example, and can backport that patch. -- nosy: +martin.panter, serhiy.storchaka stage:

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you forgot to add a patch? -- ___ Python tracker ___ ___

[issue25656] multiprocessing.dummy: pool.map hangs on empty list

2015-11-20 Thread Davin Potts
Davin Potts added the comment: I am unable to reproduce the behavior you describe using the code you provided. I've tried on both the current Linux Mint release (64-bit) and OS X 10.10 using the current Python 2.7 release (2.7.10). Could you be more specific about what platform you are using

[issue25672] set SSL_MODE_RELEASE_BUFFERS

2015-11-20 Thread Cory Benfield
Cory Benfield added the comment: Thanks for the updated info Marc-Andre. Yeah, while generally speaking OpenSSL doesn't ship betas, it does provide them as tarballs. I have a beta of 1.0.2 floating around somewhere on my machine that I was using for ALPN testing back in 2014, and so I can

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Eryk Sun
Eryk Sun added the comment: > Now we have an example, and can backport that patch. More seriously it's possible to get a buffer over-read using NumPy: >>> import numpy >>> int(buffer(numpy.array('123', dtype='c'))) Traceback (most recent call last): File "", line 1, in

[issue25672] set SSL_MODE_RELEASE_BUFFERS

2015-11-20 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 20.11.2015 12:10, Cory Benfield wrote: > Yeah, while generally speaking OpenSSL doesn't ship betas, it does provide > them as tarballs. I have a beta of 1.0.2 floating around somewhere on my > machine that I was using for ALPN testing back in 2014, and

[issue25646] Distutils and Windows SDK 7.0 / Windows SDK 7.1 / Visual C++ Build Tools 2015

2015-11-20 Thread JGoutin
JGoutin added the comment: I updated the file. I did some new tests with cross compilation and I see that the "libpath" environment variable may be missing in some case. Fortunately, this one is not used in the following of the code. So I set it as optional result for "query_vcvarsall".

[issue25626] Gzip fails for file over 2**32 bytes

2015-11-20 Thread Martin Panter
Martin Panter added the comment: Thanks for your testing Serhiy. I can reproduce this on 32-bit Linux (also by building with CC="gcc -m32"). It is easy to produce the bug with flush(), but with Decompress.decompress() it would need over 2 GiB of memory and data to expand the buffer enough to

[issue25626] Gzip fails for file over 2**32 bytes

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, I found yet one bug. >>> zlib.decompress(zlib.compress(b'abcd'), 0, sys.maxsize+1) Traceback (most recent call last): File "", line 1, in SystemError: Negative size passed to PyBytes_FromStringAndSize There are similar bugs in decompressor's methods

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you backport full patch, with tests? And compile() is affected too: >>> compile(buffer("123\0test", 1, 2), '', 'exec') at 0xb70c5800, file "", line 1> >>> compile(buffer("123test", 1, 2), '', 'exec') Traceback (most recent call last): File "", line

[issue25612] nested try..excepts don't work correctly for generators

2015-11-20 Thread Guido van Rossum
Guido van Rossum added the comment: I'm sorry, I'm no help here -- I don't know how __context__ is supposed to work. :-( On Fri, Nov 20, 2015 at 8:14 AM, Yury Selivanov wrote: > > Yury Selivanov added the comment: > > Martin, you might be right here. Guido, do you

[issue25612] nested try..excepts don't work correctly for generators

2015-11-20 Thread Yury Selivanov
Yury Selivanov added the comment: Anyways, here's a separate issue for the __context__ problem: http://bugs.python.org/issue25683 -- ___ Python tracker

[issue25660] tabs don't work correctly in python repl

2015-11-20 Thread Yury Selivanov
Yury Selivanov added the comment: Can someone try the patch? I'm fairly confident it should work, and it'd be great to have it fixed in 3.5.1. -- priority: high -> release blocker ___ Python tracker

[issue25683] __context__ for yields inside except clause

2015-11-20 Thread Yury Selivanov
New submission from Yury Selivanov: In the below snippet, SubError will propagate with __context__ set to None, instead of MainError. Maybe this isn't a bug? class MainError(Exception): pass class SubError(Exception): pass def main(): try: raise MainError()

[issue25665] typing.NamedTuple instances are not picklable.

2015-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f30b0d47c24 by Serhiy Storchaka in branch '3.5': Issue #25665: Test pickling with all protocols in test_typing. https://hg.python.org/cpython/rev/4f30b0d47c24 New changeset 9e65015582a5 by Serhiy Storchaka in branch 'default': Issue #25665: Test

[issue25612] nested try..excepts don't work correctly for generators

2015-11-20 Thread Yury Selivanov
Yury Selivanov added the comment: Guido, Martin, I've just posted to python-dev about this ticket. Let's see what others think. -- ___ Python tracker

[issue25677] Syntax error caret confused by indentation

2015-11-20 Thread R. David Murray
Changes by R. David Murray : -- stage: needs patch -> patch review ___ Python tracker ___

[issue25665] typing.NamedTuple instances are not picklable.

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The test tests pickling only with default protocol. It would be better to test pickling with all supported protocols. Why special TestCase methods to check for and report failures are not used in test_typing? -- nosy: +serhiy.storchaka Added file:

[issue25682] __package__ not set to None under pdb in Python 3

2015-11-20 Thread Keith Prussing
New submission from Keith Prussing: When a module is run under pdb in Python 3, __package__ is set to the empty string instead of None. The attached minimum working example depicts this behavior. The results are summarized in the following table. === == == Command

[issue25677] Syntax error caret confused by indentation

2015-11-20 Thread Michael Layzell
Michael Layzell added the comment: This should fix the problem. It appears as though the indentation was being stripped from the program text differently depending on how the error was produced. In the case of a syntax error from the parser, the indentation was maintained until it was printed

[issue25646] Distutils and Windows SDK 7.1

2015-11-20 Thread Steve Dower
Steve Dower added the comment: I appreciate the enthusiasm, but be aware that at best this will show up in Python 3.4.4 only, and the timeline for that is very short. You would have a better chance if you were to make this a monkey-patch via setuptools. See

[issue25665] typing.NamedTuple instances are not picklable.

2015-11-20 Thread Guido van Rossum
Guido van Rossum added the comment: Serhiy, feel free to commit that patch. I was just being lazy. Also, I was using assert instead of self.assertEquals etc. out of laziness (and because at Dropbox people have got the py.test religion and prefer to use assert statements -- but I'm not keen to

[issue25612] nested try..excepts don't work correctly for generators

2015-11-20 Thread Yury Selivanov
Yury Selivanov added the comment: Martin, you might be right here. Guido, do you think it's OK that SubError doesn't have MainError in its __context__? http://bugs.python.org/issue25612#msg254576 -- ___ Python tracker

[issue25677] Syntax error caret confused by indentation

2015-11-20 Thread R. David Murray
Changes by R. David Murray : -- nosy: +haypo, serhiy.storchaka ___ Python tracker ___

[issue25625] "chdir" Contex manager for pathlib

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree with desbma. -- nosy: +serhiy.storchaka resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Eryk Sun
Eryk Sun added the comment: > I think the tests should be using buffer(..., a, b) instead. Thanks, you're right. :) -- Added file: http://bugs.python.org/file41102/issue25678_3.patch ___ Python tracker

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Sven Berkvens-Matthijsse
Sven Berkvens-Matthijsse added the comment: (Please excuse my horrible spelling in my last message, I'm apparently more tired than I care to admit) -- ___ Python tracker

[issue25625] "chdir" Contex manager for pathlib

2015-11-20 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: What's the relation with subprocess.Popen ? -- nosy: +matrixise ___ Python tracker ___

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Sven Berkvens-Matthijsse
Sven Berkvens-Matthijsse added the comment: Eryk, could the tests in the path file that you posted regarding int() and float() be incorrect in the sense that buffer(...)[a:b] returns a str() and not another buffer() (and will thus always be NUL terminated and not exhibit the problem, whether

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2015-11-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: "not responsive to new commands" means that a statements can be typed but is ignored and no execution takes place. -- ___ Python tracker

[issue25623] Keep the link to Python implementation of OrderedDict

2015-11-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25677] Syntax error caret confused by indentation

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would be nice to have a test. -- stage: patch review -> test needed ___ Python tracker ___

[issue25671] Fix venv activate.fish to maintain $status

2015-11-20 Thread Nathan West
Nathan West added the comment: Fixed an issue where fish_prompt was returning before calling _old_fish_prompt -- Added file: http://bugs.python.org/file41103/patch.diff ___ Python tracker

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Eryk Sun
Changes by Eryk Sun : Added file: http://bugs.python.org/file41101/issue25678_2.patch ___ Python tracker ___

[issue25625] "chdir" Contex manager for pathlib

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > What's the relation with subprocess.Popen ? In the context of subprocesses there is better way to run a program in specified working directory that temporary change current working directory in parent process. --

[issue25623] Keep the link to Python implementation of OrderedDict

2015-11-20 Thread Eric Snow
Eric Snow added the comment: I agree with Raymond. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25684] ttk.OptionMenu radiobuttons aren't unique between two instances of OptionMenu

2015-11-20 Thread Bryan Oakley
Changes by Bryan Oakley : -- type: -> behavior ___ Python tracker ___ ___

[issue25684] ttk.OptionMenu radiobuttons aren't unique between two instances of OptionMenu

2015-11-20 Thread Bryan Oakley
New submission from Bryan Oakley: Original issue was brought to my attention by this SO question: http://stackoverflow.com/questions/33831289/ttk-optionmenu-displaying-check-mark-on-all-menus The ttk.OptionMenu uses radiobuttons for the dropdown menu. However, because it doesn't set the

[issue25684] ttk.OptionMenu radiobuttons aren't unique between two instances of OptionMenu

2015-11-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> needs patch versions: -Python 3.2, Python 3.3 ___ Python tracker

[issue25625] "chdir" Contex manager for pathlib

2015-11-20 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: > In the context of subprocesses there is better way to run a program in > specified working directory that temporary change current working directory > in parent process. Ok, haven't read the last line of the description. thanks for the clarification. --

[issue25644] Unable to open IDLE on Windows 10 with Python 2.7.10

2015-11-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: By 'active Python distribution', do you mean 'ActiveState Python distribution'? If so, you should talk with ActiveState. The 2.7.10 64 bit PSF installer works fine on my machine. Was Win 7, now Win 10. In any case, try "python -m idlelib" at a command

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed after fixing some details. Thank you Eryk Sun. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25685] Inefficiency with SocketHandler - may send log record message string twice in pickled data structure

2015-11-20 Thread Marvin Greenberg
New submission from Marvin Greenberg: In logging.handlers.SocketHandler.makePickle code was added for issue 14436 that replaces the 'msg' in the log record dict with the formatted message. But if an earlier handler already formatted the message, it will have been added to the log record with

[issue25685] Inefficiency with SocketHandler - may send log record message string twice in pickled data structure

2015-11-20 Thread SilentGhost
Changes by SilentGhost : -- nosy: +vinay.sajip stage: -> patch review versions: +Python 3.6 ___ Python tracker ___

[issue25644] Unable to open IDLE on Windows 10 with Python 2.7.10

2015-11-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Crash' means getting a Windows 'Application stopped running' box as opposed to Python merely stopping with no error message when started from an icon. -- type: crash -> behavior versions: +Python 2.7 ___ Python

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka stage: needs patch -> patch review ___ Python tracker ___

[issue24802] int and float constructing from non NUL-terminated buffer

2015-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ef7d1af5195 by Serhiy Storchaka in branch '2.7': Issue #25678: Copy buffer objects to null-terminated strings. https://hg.python.org/cpython/rev/3ef7d1af5195 -- ___ Python tracker

[issue25637] Move non-collections-related ABCs out of collections.abc

2015-11-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would not like to have, say, 20 namespaces, some with just one ABD, such as functools.abc.Callable. I might have preferred abc.collections to collections.abc, etc. -- nosy: +terry.reedy ___ Python tracker

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ef7d1af5195 by Serhiy Storchaka in branch '2.7': Issue #25678: Copy buffer objects to null-terminated strings. https://hg.python.org/cpython/rev/3ef7d1af5195 -- nosy: +python-dev ___ Python tracker

[issue25671] Fix venv activate.fish to maintain $status

2015-11-20 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I am a user of fish. The use case is just execute python -mvenv demo source demo/bin/activate.fish check the status and deactivate the virtualenv ? do you confirm ? Thank you -- nosy: +matrixise ___ Python

[issue25594] enum instance attribute access possible

2015-11-20 Thread Ethan Furman
Ethan Furman added the comment: Other changeset f4b495ceab17 in default branch. -- ___ Python tracker ___ ___

[issue25686] Don't use distutils in test_shutil

2015-11-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The distutils package is used in test_shutil to search and run external archivers. But using distutils can have side effects (see issue25607). Proposed patch replaces distutils with standard functions for searching executables and running command,

[issue25686] Don't use distutils in test_shutil

2015-11-20 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Works fine on my laptop with 3.6. and the code is right -- nosy: +matrixise ___ Python tracker ___

[issue25594] enum instance attribute access possible

2015-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 276cf69b911e by Ethan Furman in branch '3.5': Close issue25594: advise against accessing Enum members from other members https://hg.python.org/cpython/rev/276cf69b911e -- nosy: +python-dev resolution: -> fixed stage: patch review ->

[issue25638] Verify the etree_parse and etree_iterparse benchmarks are working appropriately

2015-11-20 Thread Brett Cannon
Brett Cannon added the comment: The commands I used are in the notebook for each implementation and you can get the same result with `python3 perf.py -b etree python2 python3`. -- ___ Python tracker

[issue25638] Verify the etree_parse and etree_iterparse benchmarks are working appropriately

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry Brett. How tests were ran? There are two implementations of ElementTree, accelerated and non-accelerated. xml.etree.ElementTree by default is accelerated in Python 3, but non-accelerated in Python 2. $ python2.7 bm_elementtree.py -n 7 --take_geo_mean

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Sven Berkvens-Matthijsse
New submission from Sven Berkvens-Matthijsse: Calling int() or long() on a buffer() object in Python 2.7 does not do the right thing. The following code snippet: buf = buffer("123test", 1, 2) print buf print int(buf) does not do what I would expect (that it print "23" twice). Instead, it

[issue25557] Optimize LOAD_NAME bytecode

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Victor. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25672] set SSL_MODE_RELEASE_BUFFERS

2015-11-20 Thread Cory Benfield
Cory Benfield added the comment: Good idea Benjamin. I've uploaded a second patch that adjusts the check to be a runtime one, rather than a compiled one. -- Added file: http://bugs.python.org/file41091/ssl2.patch ___ Python tracker

[issue25669] unittest.assertEqual() on un-equal types inheriting from collections.Mapping

2015-11-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___

[issue25669] unittest.assertEqual() on un-equal types inheriting from collections.Mapping

2015-11-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- versions: +Python 3.6 -Python 2.7 ___ Python tracker ___

[issue25672] set SSL_MODE_RELEASE_BUFFERS

2015-11-20 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The release buffer mode bugs were fixed in 1.0.0m and 1.0.1h: https://openssl.org/news/vulnerabilities.html#y2014 CVE-2014-0198 (OpenSSL advisory) 21st April 2014: A flaw in the do_ssl3_write function can allow remote attackers to cause a denial of

[issue25679] Fix typo in Doc/reference/executionmodel.rst

2015-11-20 Thread Novice Live
New submission from Novice Live: > 4. Execution model > 4.1. Structure of a programm You see. -- assignee: docs@python components: Documentation files: executionmodel-typo.patch keywords: patch messages: 254962 nosy: docs@python, n0vicelive priority: normal severity: normal status:

[issue25660] tabs don't work correctly in python repl

2015-11-20 Thread Martin Panter
Martin Panter added the comment: Didn’t mean to adjust priority -- priority: high -> release blocker ___ Python tracker ___

[issue25638] Verify the etree_parse and etree_iterparse benchmarks are working appropriately

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The slowing down Python 3 can be related to adding XMLPullParser (issue17741). -- ___ Python tracker ___

[issue21162] code in multiprocessing.pool freeze if inside some code from scikit-learn (and probably liblinear) executed on ubuntu 12.04 64 Bit

2015-11-20 Thread Davin Potts
Davin Potts added the comment: I'm going ahead with closing this issue as it originates outside of multiprocessing and Python itself as well as being highly dependent upon specific combinations of build options and versions of 3rd party libraries (such as ATLAS). -- stage: ->

[issue25660] tabs don't work correctly in python repl

2015-11-20 Thread Martin Panter
Martin Panter added the comment: Sorry to throw a potential spanner in the works, but I think this introduces a dependence on the readline module. Consider what happens when the Completer class is used but Readline is not, or even if the “readline” could not be imported (see bottom of

[issue25660] tabs don't work correctly in python repl

2015-11-20 Thread Yury Selivanov
Yury Selivanov added the comment: > Sorry to throw a potential spanner in the works, but I think this introduces > a dependence on the readline module. Consider what happens when the Completer > class is used but Readline is not, or even if the “readline” could not be > imported (see bottom

[issue25485] Add a context manager to telnetlib.Telnet

2015-11-20 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Need review for this new patch. * Add test * Improve the documentation * Update the Misc/NEWS -- Added file: http://bugs.python.org/file41106/issue25485-3.patch ___ Python tracker

[issue24455] IDLE debugger causes crash if not quitted properly before next run

2015-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset f51467273d3b by Terry Jan Reedy in branch '2.7': Issue #24455: Prevent IDLE from hanging when a) closing the shell while the https://hg.python.org/cpython/rev/f51467273d3b New changeset 1ddd77a5e8c8 by Terry Jan Reedy in branch '3.4': Issue #24455:

[issue25626] Gzip fails for file over 2**32 bytes

2015-11-20 Thread Martin Panter
Martin Panter added the comment: New patch addressing comments. I used the undocumented API _PyLong_FromNbInt() to call __int__() rather than __index__(). -- Added file: http://bugs.python.org/file41107/zlib-Py_ssize_t.2.patch ___ Python tracker

[issue15347] IDLE - does not close if the debugger was active

2015-11-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: See #15348 for result of fix-mainloop2.patch on Windows. -- ___ Python tracker ___

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2015-11-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch for #24455 replaced root.mainloop,.quit with tcl vwait, set as the suspend/resume mechanism for Debugger.interation. After this, closing the shell as described in #15347, or the debugger with [x] as described here, on my Windows 10 machine,

[issue24455] IDLE debugger causes crash if not quitted properly before next run

2015-11-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Patch does two things. On startup, check if debugger is already active and if it is, send 'finish' signal to existing interaction and try again after .1 second. This is the part aimed at the particular problem of this issue. During active running, use the

[issue15347] IDLE - does not close if the debugger was active

2015-11-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Git patch does not apply because header does not have full paths. diff --git a/Debugger.py b/Debugger.py index e2014d1..9efe6fa 100644 --- a/Debugger.py +++ b/Debugger.py versus diff -r ed694938c61a Lib/idlelib/Debugger.py --- a/Lib/idlelib/Debugger.py Tue

[issue25626] Gzip fails for file over 2**32 bytes

2015-11-20 Thread Martin Panter
Martin Panter added the comment: Actually it did make an existing bug a bit worse. The bug is triggered with valid sizes greater than LONG_MAX, due to an exception not being cleared, and my change made this bug more dramatic, turning the OverflowError into a crash. This new patch should fix

[issue25670] ast.NodeTransformer: remove duplicate getattr()

2015-11-20 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue25557] Optimize LOAD_NAME bytecode

2015-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset c35d65c9ded3 by Victor Stinner in branch 'default': Issue #25557: Refactor _PyDict_LoadGlobal() https://hg.python.org/cpython/rev/c35d65c9ded3 -- nosy: +python-dev ___ Python tracker

[issue25557] Optimize LOAD_NAME bytecode

2015-11-20 Thread STINNER Victor
STINNER Victor added the comment: Since LOAD_NAME is rare, I don't think that it's worth to optimize it. I pushed a partial version of pydict_loadname-2.patch to add comments to the code. -- resolution: -> fixed status: open -> closed ___ Python

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2015-11-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: (I was wrong about seeing the exception when closing the shell.) A major difference between [Quit] and [x] is that [Quit] stops the running program whereas [x] closes the visible gui but leaves the program to run through to the end, as though the [go] button

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2015-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 427ad0ede016 by Terry Jan Reedy in branch '2.7': Issue 15348: Stop debugger engine (normally in user process) https://hg.python.org/cpython/rev/427ad0ede016 New changeset 4eae64a9cd26 by Terry Jan Reedy in branch '3.4': Issue 15348: Stop debugger

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2015-11-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't like the idea of [x] flashing quit instead of closing. This patch, on top of the one for #24455, may not be perfect, but the two are definite improvements. Unless I see something critically bad first, I want them in the upcoming releases. Mark

  1   2   >