[issue27350] Compact and ordered dict

2016-06-26 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file43542/compact-dict.patch ___ Python tracker ___

[issue27051] Create PIP gui

2016-06-26 Thread Upendra Kumar
Upendra Kumar added the comment: In ref. to msg269264: @Terry, I am ready to maintain this project. But for as backup is concerned I really don't know a lot of people and where should I look for them. In reference to msg269038: I was more engrossed in reading through other messages related

[issue27051] Create PIP gui

2016-06-26 Thread Upendra Kumar
Upendra Kumar added the comment: I am trying something similar to BrownTruck in issue : https://github.com/pypa/pip/pull/3733 I tried to execute pip.main('install','-U',) from a thread. I got a similar error : Traceback (most recent call last): File

[issue27390] state of the 3.3 branch unclear

2016-06-26 Thread Thomas Klausner
New submission from Thomas Klausner: https://www.python.org/dev/peps/pep-0398/ mentions that a 3.3.7 release was planned for February 27, 2016. It appears this never happened. It also mentions that there will be source-only security updates for 3.3.x until September 2017. However, it appears

[issue27389] When a TypeError is raised due to invalid arguments to a method, it should use __qualname__ to identify the class the method is in

2016-06-26 Thread Martin Panter
Martin Panter added the comment: Have a look at Issue 2786. I think it might be the same thing. -- nosy: +martin.panter ___ Python tracker ___

[issue27051] Create PIP gui

2016-06-26 Thread Upendra Kumar
Upendra Kumar added the comment: Refer to : msg269285 This is the code : ... from pip_tkinter.utils import pip_install_from_PyPI curr_item = self.multi_items_list.scroll_tree.focus() item_dict = self.multi_items_list.scroll_tree.item(curr_item)

[issue27387] Thread hangs on str.encode() when locale is not set

2016-06-26 Thread STINNER Victor
STINNER Victor added the comment: It is a deadlock on the import lock. You should avoid creating and waiting for a thread when a module is imported. Defer the creation of the thread. -- ___ Python tracker

[issue22115] Add new methods to trace Tkinter variables

2016-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Good idea. Anyone who knows enough to create one by calling into tcl, assuming that is possible, should know that the methods apply. Everyone else, like me, will just be confused. -- ___ Python tracker

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2016-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good point! tp_bases should be iterated instead of tp_mro in this check. -- resolution: fixed -> stage: resolved -> patch review status: closed -> open Added file: http://bugs.python.org/file43541/issue22079-tp_bases.patch

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2016-06-26 Thread Xiang Zhang
Xiang Zhang added the comment: I thought that too at first. But if we use __bases__, can we still guarantee that 'all bases of statically allocated type should be statically allocated'? How about its grand bases? Is it possible that a statically allocated type inherit a dynamic type but does

[issue22115] Add new methods to trace Tkinter variables

2016-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset a201180c0f77 by Serhiy Storchaka in branch 'default': Issue #22115: Added methods trace_add, trace_remove and trace_info in the https://hg.python.org/cpython/rev/a201180c0f77 -- nosy: +python-dev ___

[issue27393] Command to activate venv in Windows has wrong path

2016-06-26 Thread Manuel Kaufmann
New submission from Manuel Kaufmann: The `venv` module has a bug in the command to activate it on Windows. In 3.3 and 3.4 the bar used is wrong: `/` instead `\` * https://docs.python.org/3.4/library/venv.html#creating-virtual-environments *

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2016-06-26 Thread Andre Merzky
Andre Merzky added the comment: Attached is a patch which seems to resolve the issue for me -- this now triggers the expected `KeyboardInterrupt` in the main thread. For verification one can run the unaltered code as provided by Thomas. I would very much appreciate feedback, to make sure

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2016-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is interesting question. It looks that base classes (as well as mro classes) may not go through PyType_Ready. There is no even a check that mro() returns only ancestor classes and contains the initial class itself. --

[issue27391] server_hostname should only be required when checking host names

2016-06-26 Thread Jim Fulton
New submission from Jim Fulton: If the given ssl context has check_hostname set to False, then the server_hostname shouldn't be required. -- components: asyncio messages: 269292 nosy: gvanrossum, haypo, j1m, yselivanov priority: normal severity: normal status: open title:

[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2016-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Benjamin, there is a crash, and there is a simple patch that presumably fixes a crash. I think fixing crashes has high priority. The patch is tested on Linux and needs to be tested on Windows. -- components: +Windows nosy: +paul.moore, steve.dower,

[issue27392] Add a server_side keyword parameter to create_connection

2016-06-26 Thread Yury Selivanov
Yury Selivanov added the comment: > On Jun 26, 2016, at 12:05 PM, Jim Fulton wrote: > > I've switched my code to use create_server, but this has led to stability > problems. BTW, did you try to run ZEO tests on uvloop? I'm just curious if stability is somehow related

[issue27390] state of the 3.3 branch unclear

2016-06-26 Thread Brett Cannon
Brett Cannon added the comment: New releases of Python 3.3 are on hold pending a security fix: https://mail.python.org/pipermail/python-dev/2016-February/143400.html -- nosy: +brett.cannon, georg.brandl resolution: -> out of date status: open -> closed

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2016-06-26 Thread Thomas Kluyver
Thomas Kluyver added the comment: It's waiting for someone to make a patch - I'm no longer running into it, so it's not high on my priority list. Given that it's been over a year since I created this issue, it's probably not about to get fixed unless you've got some time to work on it.

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2016-06-26 Thread Andre Merzky
Andre Merzky added the comment: Did anything ever come of this? I also frequently stumble over that error -- but alas not in a debug setting, but on actual running code... :/ -- nosy: +Andre Merzky ___ Python tracker

[issue22115] Add new methods to trace Tkinter variables

2016-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 77378dce6bcf by Serhiy Storchaka in branch '2.7': Issue #22115: Fixed tracing Tkinter variables. https://hg.python.org/cpython/rev/77378dce6bcf New changeset 293ec9547334 by Serhiy Storchaka in branch '3.5': Issue #22115: Fixed tracing Tkinter

[issue27392] Add a server_side keyword parameter to create_connection

2016-06-26 Thread Jim Fulton
New submission from Jim Fulton: The event loop create_connection method can take a socket to create a connection on an existing socket, including sockets obtained via an external listener. If an SSL context is provided, however, it assumes it's creating a client connection, making it

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2016-06-26 Thread Andre Merzky
Changes by Andre Merzky : -- versions: +Python 2.7 ___ Python tracker ___ ___

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2016-06-26 Thread Thomas Kluyver
Thomas Kluyver added the comment: As far as I know it has not been fixed. -- ___ Python tracker ___ ___

[issue22115] Add new methods to trace Tkinter variables

2016-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Backported fixes for old tracing methods. Unfortunately the tracing in the "u" mode doesn't work in 2.7. This is related to some differences in GC. I don't think this is important and close this issue. -- resolution: -> fixed stage: patch review ->

[issue26865] Meta-issue: support of the android platform

2016-06-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #22724: byte-compile fails for cross-builds -- dependencies: +byte-compile fails for cross-builds ___ Python tracker

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2016-06-26 Thread Andre Merzky
Andre Merzky added the comment: Thanks for the PingBack, Thomas. I am not very familiar with the Python community approach to bug reports, so can someone comment if that is worth waiting for to get fixed, or is it that a rather futile hope without providing a patch myself? I don't think I

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2016-06-26 Thread Andre Merzky
Andre Merzky added the comment: Thanks Thomas. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27352] Bug in IMPORT_NAME

2016-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I was wrong. The level argument is always non-negative integer (if a bytecode is not corrupted). The second branch can be just removed. Following patch also fixes the validation of the ImportFrom AST node. -- nosy: +benjamin.peterson,

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2016-06-26 Thread Andre Merzky
Andre Merzky added the comment: thanks for looking into this! And also, thanks for the details in the original bug report -- I found this by chance, after unsuccessfully banging my head against this very problem for quite a while! I am not sure if the DecRef needs to be called really if the

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2016-06-26 Thread Andre Merzky
Andre Merzky added the comment: It seems you were right, that needed a DecRef indeed: the IncRef is already called on construction. The DecRef for the result also needed fixing - an updated patch is attached. -- Added file: http://bugs.python.org/file43546/issue23395.2.patch

[issue27372] Test_idle should stop changing locale

2016-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Added a couple of blank lines and expanded a comment. -- ___ Python tracker ___

[issue23401] Add pickle support of Mapping views

2016-06-26 Thread Guido van Rossum
Guido van Rossum added the comment: Please close. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27387] Thread hangs on str.encode() when locale is not set

2016-06-26 Thread R. David Murray
R. David Murray added the comment: This situation is warned about explicitly in the threading docs (https://docs.python.org/2/library/threading.html#importing-in-threaded-code). The import deadlock is fixed in python3, but it is still a really bad idea to launch threads on module import.

[issue24833] IDLE tabnanny check fails

2016-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-06-26 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, I'd like to see a more minimal repro to understand what's going in. -- ___ Python tracker ___

[issue27392] Add a server_side keyword parameter to create_connection

2016-06-26 Thread Guido van Rossum
Guido van Rossum added the comment: I'm confused. create_connection() is meant for creating client connection, so I don't think a server_side flag makes sense. (There are lower-level internal APIs that do take a server_side flag, but create_connection() is just one caller for these.) If

[issue27253] More efficient deepcopying of Mapping

2016-06-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27252] Make dict views copyable

2016-06-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue23401] Add pickle support of Mapping views

2016-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can this issue be closed? -- ___ Python tracker ___ ___ Python-bugs-list

[issue27372] Test_idle should stop changing locale

2016-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : Added file: http://bugs.python.org/file43548/locale-change2.diff ___ Python tracker ___

[issue22890] StringIO.StringIO pickled in 2.7 is not unpickleable on 3.x

2016-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is the _compat_pickle module that purposed to support backward and forward compatibility for renamed or moved classes and modules. StringIO.StringIO in 2.x corresponds to io.StringIO or io.BytesIO. The problem is that we can't determine what of

[issue27364] Deprecate invalid unicode escape sequences

2016-06-26 Thread Guido van Rossum
Guido van Rossum added the comment: I am okay with making it a silent warning. Can we do it in two stages though? It doesn't have to be two releases, I just mean two separate commits: (1) fix all places in the stdlib that violate this principle; (2) separately commit the code that causes the

[issue27051] Create PIP gui

2016-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upendra, with respect to the error installing timingwheel, msg268983, that looks like a bug in timingwheel. Report it to the pip or timingwheel list or tracker. I ran the command normally and got the same exception, with less noise. It is not a problem

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-06-26 Thread Марк Коренберг
Марк Коренберг added the comment: Please reduce program, and make sure it still hangs. -- nosy: +mmarkk ___ Python tracker ___

[issue27391] server_hostname should only be required when checking host names

2016-06-26 Thread R. David Murray
R. David Murray added the comment: (To clarify: I haven't used the ssl interface enough for it to be obvious to me where the bug is.) -- ___ Python tracker

[issue27391] server_hostname should only be required when checking host names

2016-06-26 Thread R. David Murray
R. David Murray added the comment: Where is it required? -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue23401] Add pickle support of Mapping views

2016-06-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27364] Deprecate invalid unicode escape sequences

2016-06-26 Thread Emanuel Barry
Emanuel Barry added the comment: I originally considered making two different patches, so there you go. deprecate_invalid_escapes_only_1.patch has the deprecation plus a test, and invalid_stdlib_escapes_1.patch fixes all invalid escapes in the stdlib. My code was the cause, although no

[issue27364] Deprecate invalid unicode escape sequences

2016-06-26 Thread Emanuel Barry
Changes by Emanuel Barry : Added file: http://bugs.python.org/file43550/invalid_stdlib_escapes_1.patch ___ Python tracker ___

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2016-06-26 Thread Thomas Kluyver
Thomas Kluyver added the comment: Does Py_DECREF(arglist); need to be called in all cases? I'm genuinely unsure, as I don't usually work on C code, but my guess would be that it does. I'm not sure whether review is now done on Github. -- ___ Python

[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2016-06-26 Thread Eryk Sun
Eryk Sun added the comment: To resolve the crash on Windows in 2.7 requires backporting checktm(). Using asctime_s doesn't solve the problem. The CRT still calls the default invalid parameter handler, which kills the process -- as shown by the following ctypes example: from ctypes import

[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2016-06-26 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue27372] Test_idle should stop changing locale

2016-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ffdb9277054 by Terry Jan Reedy in branch 'default': Issue 27372: Stop test_idle from changing locale, so test passes. https://hg.python.org/cpython/rev/3ffdb9277054 -- nosy: +python-dev ___ Python

[issue27372] Test_idle should stop changing locale

2016-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue27173] Modern Unix key bindings for IDLE

2016-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27394] Crash with compile returning a value with an error set

2016-06-26 Thread Emanuel Barry
New submission from Emanuel Barry: My trivial patch exposed a bug in the ast/compiler, where compile() would return a value and set an exception. See http://bugs.python.org/issue27364#msg269323 for more information and steps to reproduce. I looked a bit into it, but I don't know enough about

[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 30e563e2702e by Terry Jan Reedy in branch '3.5': Issue #27365: Allow non-ascii in idlelib/NEWS.txt - minimal part for 3.5.2. https://hg.python.org/cpython/rev/30e563e2702e -- ___ Python tracker

[issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen"

2016-06-26 Thread Claudiu Saftoiu
New submission from Claudiu Saftoiu: I'm processing Yahoo! Groups backup archives, and came across an email message which causes the `.get_payload(decode=True)` step to raise an AssertionError. Particularly, the following exception is raised in `lib/python3.5/email/_encoded_words.py`, line

[issue27380] IDLE: add base Query dialog with ttk widgets

2016-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use True and False instead of TRUE and FALSE. You can import constants with "from tkinter.constants import *". The benefit of using constants instead of string literals is early failing in case of typo. -- nosy: +serhiy.storchaka

[issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen"

2016-06-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> r.david.murray nosy: +r.david.murray priority: normal -> high ___ Python tracker

[issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen"

2016-06-26 Thread Claudiu Saftoiu
Claudiu Saftoiu added the comment: See attached another file with more test cases. -- Added file: http://bugs.python.org/file43557/bugreport_moretests.py ___ Python tracker

[issue27173] Modern Unix key bindings for IDLE

2016-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't reproduce your issue (or understand it correctly). Could you please show the [Keys] section in your config-main.cfg? -- ___ Python tracker

[issue23804] SSLSocket.recv(0) receives up to 1024 bytes

2016-06-26 Thread Martin Panter
Martin Panter added the comment: This was not fixed properly. The first symptom is that recv(0) etc still blocks if the other end sends no data. The second symptom is that it does not work with suppress_ragged_eofs=False. The problem is SSL is still called to do a read, which returns zero,

[issue27396] Change default filecmp.cmp shallow option

2016-06-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Changing an existing API is painful, especially so for cases like this that have existed for a very, very long time. Such as a change would likely have a detrimental effect on long-standing code relying on the existing behavior. The module itself is all

[issue27255] More opcode predictions

2016-06-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: The second version of the patch mostly looks fine. The prediction from DUP_TOP_TWO to BINARY_SUBSCR is questionable. Because compile.c only uses it one context, the prediction rate is 100%; however, there is no intrinsic relationship between the two

[issue27396] Change default filecmp.cmp shallow option

2016-06-26 Thread Gabriel Hackebeil
Gabriel Hackebeil added the comment: All good points. Perhaps further emphasis on this in the documentation would be helpful to. As it stands, this module is a dangerous one for a naive user (like me) to stumble across. Maybe introducing an “exact” or “slow" diff function to the module would

[issue27396] Change default filecmp.cmp shallow option

2016-06-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: The docs are already pretty clear. In general, there isn't a defense against a naive use of anything in the computing world. We can write docs but can't make a person read them and realize that their pre-existing mental model is off base. Sorry, but I'm

[issue27173] Modern Unix key bindings for IDLE

2016-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: The change in v4 is the addition of self.AddChangedItem('main', 'Keys', 'name2', '') There is a bug in the get keys function. After applying, when I restart IDLE and go to 'Keys', my custom key set is 'Modern Unix' instead of 'Terry'. It is still

[issue27395] Increase test coverage of unittest.runner.TextTestResult

2016-06-26 Thread Pam McA'Nulty
New submission from Pam McA'Nulty: While working on another issue, I added a test to increase (low-hanging fruit) test coverage in unittest.runner.TextTestResult -- components: Tests files: textresult_coverage.patch keywords: patch messages: 269330 nosy: Pam.McANulty priority: normal

[issue27364] Deprecate invalid unicode escape sequences

2016-06-26 Thread Emanuel Barry
Emanuel Barry added the comment: Aaand I feel pretty stupid; I didn't check the return value of PyErr_WarnFormat, so it was my mistake. Attached new patch, actually done right this time. -- Added file: http://bugs.python.org/file43552/deprecate_invalid_escapes_only_2.patch

[issue27394] Crash with compile returning a value with an error set

2016-06-26 Thread Emanuel Barry
Emanuel Barry added the comment: Nevermind, my mistake. -- resolution: -> not a bug stage: needs patch -> resolved status: open -> closed type: crash -> ___ Python tracker

[issue27364] Deprecate invalid unicode escape sequences

2016-06-26 Thread Martin Panter
Martin Panter added the comment: Hello Emanual, I think I have fixed your problem with -Werror, by handling the exception returned by PyErr_WarnFormat() (see my patch). Thanks for separating the actual change from the escape violation fixes; it made it easier to spot the real problem :)

[issue27364] Deprecate invalid unicode escape sequences

2016-06-26 Thread Emanuel Barry
Emanuel Barry added the comment: Indeed, we did, thanks for letting me know my mistake :) I didn't get very far into making bytes literal disallow invalid sequences, as I ran into issues with _codecs.escape_decode throwing the warning even when the literal was fine, and I think I stopped

[issue27396] Change default filecmp.cmp shallow option

2016-06-26 Thread Gabriel Hackebeil
New submission from Gabriel Hackebeil: I would like to propose changing the default setting for the shallow compare option in filecmp.cmp to False (or providing access an exact comparison function that does not use various performance optimizations). I think many users will turn to this

[issue27380] IDLE: add base Query dialog with ttk widgets

2016-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4796d7fb00c5 by Terry Jan Reedy in branch 'default': Issue #27380: IDLE: add base Query dialog, with ttk widgets and subclass https://hg.python.org/cpython/rev/4796d7fb00c5 -- nosy: +python-dev ___

[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4d04aca4afb0 by Matthias Klose in branch '3.5': Issue #26867: Ubuntu's openssl OP_NO_SSLv3 is forced on by default; fix test. https://hg.python.org/cpython/rev/4d04aca4afb0 New changeset 8f028d04df11 by Matthias Klose in branch '3.4': Issue #26867:

[issue26930] Upgrade installers to OpenSSL 1.0.2h

2016-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset e1e5691d02d8 by Zachary Ware in branch '3.5': Issue #26930: Update Windows build to OpenSSL 1.0.2h https://hg.python.org/cpython/rev/e1e5691d02d8 -- ___ Python tracker

[issue27051] Create PIP gui

2016-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: With respect to threading: I have close to 0 experience. I know that tkinter is supposed to be 'thread-safe' (Martin Loewis) and that people have real problems mixing threads with tkinter. If you can create a minimal complete verifiable example (SO MCVE),

[issue27364] Deprecate invalid unicode escape sequences

2016-06-26 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, if you manage to trigger an assert() in the C code by writing some evil Python code, the C code is considered broken (unless it was using ctypes or one or two other explicit "void-the-warranty" exceptions). Maybe someone who has worked more with the C

[issue27364] Deprecate invalid unicode escape sequences

2016-06-26 Thread Emanuel Barry
Emanuel Barry added the comment: Ah right, assert() is only enabled in debug mode, I forgot that. My (very uneducated) guess is that compile() got the error (which was a warning) but then decided to return a value anyway, and the next thing that tries to call anything crashes Python. I opened

[issue27364] Deprecate invalid unicode escape sequences

2016-06-26 Thread Martin Panter
Martin Panter added the comment: Hah, we posted the same fix almost at the same time :) -- ___ Python tracker ___

[issue27380] IDLE: add base Query dialog with ttk widgets

2016-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Pushed with minor changes. I decided not to wait until I added more subclasses because file renames with post rename changes do not survive shelving. Reloading from the diff requires 'rediscovering' the renames. -- Added file:

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2016-06-26 Thread Xiang Zhang
Xiang Zhang added the comment: Oh yes. The mro list can be customized so we can not even guarantee the type appears at index 0 and object at index n-1. It seems we should still keep what it is now, iterating the whole mro list. Sorry that my previous comments seem to be noise. But maybe we

[issue27364] Deprecate invalid unicode escape sequences

2016-06-26 Thread Martin Panter
Martin Panter added the comment: Code samples in the documentation should also be fixed, like at . I think you can run “make -C Doc doctest” or something similar, which may help find some of these. Also, playing with your current patch, it