[issue22168] Turtle Graphics RawTurtle problem

2014-09-14 Thread Ned Deily
Ned Deily added the comment: The changesets below should prevent the problem in 3.4.2 and 3.5.0. Since there are no standard tests for turtle at the moment, there is no testcase for using a non-default Canvas but one should be added when turtle tests are (Issue21914 and Issue21916). New

[issue2771] Test issue

2014-09-14 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list

[issue2771] Test issue

2014-09-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8510224e05dc by Georg Brandl in branch 'default': Closes #2771: test. http://hg.python.org/test/rev/8510224e05dc -- resolution: - fixed stage: test needed - resolved status: open - closed ___ Python

[issue2771] Test issue

2014-09-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset e79d1244d887 by Georg Brandl in branch 'default': #2771: test baseurl change. https://hg.python.org/test/rev/e79d1244d887 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771

[issue22406] uu-codec trailing garbage workaround is Python 2 code

2014-09-14 Thread Martin Panter
New submission from Martin Panter: The handler for the “Trailing garbage” error for “uu-codec” uses Python 2 code, while the copy in the uu” module has the correct Python 3 code. Please change the line at https://hg.python.org/cpython/file/775453a7b85d/Lib/encodings/uu_codec.py#l57 to look

[issue22407] re.LOCALE is nonsensical for Unicode

2014-09-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Current implementation of re.LOCALE support for Unicode strings is nonsensical. It correctly works only on Latin1 locales (because Unicode string interpreted as Latin1 decoded bytes string. all characters outside UCS1 range considered as non-words), on

[issue22408] Tkinter doesn't handle Unicode key events on Windows

2014-09-14 Thread Drekin
New submission from Drekin: Key events produced on Windows handles Unicode incorrectly when Unicode character is produced by dead-key combination. On my keyboard, (AltGr + M, a) produces several key events, last of which contains char==a, however, it should contain ∀. Also dead-key sequence

[issue22409] namedtuples bug between 3.3.2 and 3.4.1

2014-09-14 Thread Brynjar Smári Bjarnason
New submission from Brynjar Smári Bjarnason: In Python 3.4.1 installed with Anaconda. I tried the following (expecting an OrderedDict as result): from collections import namedtuple NT = namedtuple(NT,[a,b]) nt = NT(1,2) print(vars(nt)) {} so the result is an empty dict. In Python 3.3.2

[issue22409] namedtuples bug between 3.3.2 and 3.4.1

2014-09-14 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22409 ___

[issue22410] Locale dependent regexps on different locales

2014-09-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Locale-specific case-insensitive regular expression matching works only when the pattern was compiled on the same locale as used for matching. Due to caching this can cause unexpected result. Attached script demonstrates this (it requires two locales:

[issue22409] namedtuples bug between 3.3.2 and 3.4.1

2014-09-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: so the result is an empty dict. It works fine for me in the standard distribution: Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 00:54:21) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type copyright, credits or license() for more information.

[issue22384] Tk.report_callback_exception kills process when run with pythonw.exe

2014-09-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Error messages are already silenced if sys.stderr is None or closed. sys.stderr.close() 1/0 sys.stderr = None 1/0 I think that such things as _Errbox are application level solutions. report_callback_exception() is designed to be overwritten for

[issue22406] uu-codec trailing garbage workaround is Python 2 code

2014-09-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka keywords: +easy nosy: +doerwalter, lemburg, serhiy.storchaka priority: normal - low stage: - needs patch versions: +Python 3.5 ___ Python tracker

[issue22406] uu-codec trailing garbage workaround is Python 2 code

2014-09-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you want to provide a patch Martin? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22406 ___ ___

[issue22410] Locale dependent regexps on different locales

2014-09-14 Thread Matthew Barnett
Matthew Barnett added the comment: The support for locales in the re module is limited to those with 1 byte per character, and only for a few properties (those provided by the underlying C library), so maybe it could do the following: If the LOCALE flag is set, then read the current locale

[issue22409] namedtuples bug between 3.3.2 and 3.4.1

2014-09-14 Thread Brynjar Smári Bjarnason
Brynjar Smári Bjarnason added the comment: Thanks, I'll report it to Continuum IO. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22409 ___ ___

[issue22409] namedtuples bug between 3.3.2 and 3.4.1

2014-09-14 Thread Brynjar Smári Bjarnason
Changes by Brynjar Smári Bjarnason bi...@binnisb.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22409 ___ ___

[issue22409] namedtuples bug between 3.3.2 and 3.4.1

2014-09-14 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- resolution: - third party stage: - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22409 ___

[issue22384] Tk.report_callback_exception kills process when run with pythonw.exe

2014-09-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since traceback.print_exception already uses print statememts, your patch *is* sufficient to trap the remaining stderr exception. Go ahead. The doctring for report_callback_exception calls it an 'internal function'. To me, that implies 'ignore this' rather

[issue22384] Tk.report_callback_exception kills process when run with pythonw.exe

2014-09-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: And yes, I am thinking about a broader fix for Idle -- replacing stderr None with something writable. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22384

[issue22411] Embedding Python on Windows

2014-09-14 Thread Joakim Karlsson
New submission from Joakim Karlsson: When I embed Python 3.4 in an existing app, I run in to a few issues when our app is built in debug mode. I build against the headers, libs and dlls that I get when installing python, I don't build python myself. 1. When I include python.h it will, via

[issue22384] Tk.report_callback_exception kills process when run with pythonw.exe

2014-09-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 994a16b51544 by Serhiy Storchaka in branch '2.7': Issue #22384: An exception in Tkinter callback no longer crashes the program https://hg.python.org/cpython/rev/994a16b51544 New changeset c62fad86fac3 by Serhiy Storchaka in branch '3.4': Issue

[issue22384] Tk.report_callback_exception kills process when run with pythonw.exe

2014-09-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for suggested docstring Terry. There is related question on StackOverflow: http://stackoverflow.com/questions/4770993/silent-exceptions-in-python-tkinter-should-i-make-them-louder-how -- ___ Python

[issue22384] Tk.report_callback_exception kills process when run with pythonw.exe

2014-09-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Aivar for helpful report. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22384

[issue17668] re.split loses characters matching ungrouped parts of a pattern

2014-09-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - not a bug stage: needs patch - resolved status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17668 ___

[issue11204] re module: strange behaviour of space inside {m, n}

2014-09-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - rejected stage: - resolved status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11204 ___

[issue20537] logging exc_info parameter should accept exception instances

2014-09-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9d54903a84b5 by Vinay Sajip in branch 'default': Closes #20537: logging methods now accept an exception instance as well as a Boolean value or exception tuple. Thanks to Yury Selivanov for the patch. https://hg.python.org/cpython/rev/9d54903a84b5

[issue22412] Towards an asyncio-enabled command line

2014-09-14 Thread Martin Teichmann
New submission from Martin Teichmann: This patch is supposed to facilitate using the asyncio package on the command line. It contains two things: First, a coroutine version of builtin.input, so that it can be called while a asyncio event loop is running. Secondly, it adds a new flag to

[issue22412] Towards an asyncio-enabled command line

2014-09-14 Thread Guido van Rossum
Guido van Rossum added the comment: 1. Great that you're trying to implement this! 2. But I really recommend that you try to structure this as a 3rd party module first rather than patching the Python distribution -- it's much harder to get accepted. Or as a pure-Python patch to asyncio,

[issue21998] asyncio: a new self-pipe should be created in the child process after fork

2014-09-14 Thread Guido van Rossum
Guido van Rossum added the comment: Actually I expect that if you share an event loop across different processes via form, everything's a mess -- whenever a FD becomes ready, won't both the parent and the child be woken up? Then both would attempt to read from it. One would probably get

[issue11437] IDLE crash on startup with typo in config-keys.cfg

2014-09-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://stackoverflow.com/questions/25750477/python-2-7-8-idle-will-not-open-on-mavericks -- because one of the two files has 'shift' instead of Shift. When I make a change in either file (with custom keys being used), the traceback ends slightly differently

[issue18844] allow weights in random.choice

2014-09-14 Thread Christian Kleineidam
Christian Kleineidam added the comment: I like the idea of adding a weights keyword to choice and creating an additional choice_generator() that also takes weights. A choice_generator() could take a further argument to allow unique choices and be a generator version of sample(). In some

[issue21998] asyncio: a new self-pipe should be created in the child process after fork

2014-09-14 Thread Yury Selivanov
Yury Selivanov added the comment: Is there a use case for sharing an event loop across forking? I don't think so. I use forking mainly for the following two use-cases: - Socket sharing for web servers. Solution: if you want to have a shared sockets between multiple child processes, just

[issue22408] Tkinter doesn't handle Unicode key events on Windows

2014-09-14 Thread Ned Deily
Ned Deily added the comment: I don't have a real Windows setup to test but I would guess this may be Tk behavior. Perhaps the Tk wiki page on platform-specific keyboard modifier behaviors will help: http://wiki.tcl.tk/28331 -- nosy: +ned.deily

[issue22411] Embedding Python on Windows

2014-09-14 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22411 ___ ___ Python-bugs-list mailing list

[issue17095] Modules/Setup *shared* support broken

2014-09-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 781454f792c4 by Ned Deily in branch '3.4': Issue #17095: Temporarily revert getpath.c change that added the Modules https://hg.python.org/cpython/rev/781454f792c4 New changeset d3939f602e1f by Ned Deily in branch 'default': Issue #17095: merge from

[issue17095] Modules/Setup *shared* support broken

2014-09-14 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- priority: release blocker - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17095 ___ ___

[issue22413] Bizarre StringIO(newline=\r\n) translation

2014-09-14 Thread Martin Panter
New submission from Martin Panter: I noticed that the newline translation in the io.StringIO class does not behave as I would expect: text = NL\n CRLF\r\n CR\r EOF s = StringIO(text, newline=\r\n) s.getvalue() 'NL\r\nCRLF\r\r\nCR\rEOF' # Why is this not just equal to “text”? tuple(s)

[issue15216] Support setting the encoding on a text stream after creation

2014-09-14 Thread Martin Panter
Martin Panter added the comment: Some more use cases for temporarily switching error handler in the middle of writing to a stream: * Possibly simplify the implementation of sys.displayhook() * I have done a similar hack at