[issue27020] os.writev() does not accept generators (as buffers argument)

2016-05-15 Thread Марк Коренберг
Марк Коренберг added the comment: How sequence is iterated in writev(): https://github.com/python/cpython/blob/e4945dbd854befd04fe2d5ad99ab52c8d13dc162/Modules/posixmodule.c#L8086 How IOV is filled in semdmsg():

[issue1674555] sys.path in tests contains system directories

2016-05-15 Thread Martin Panter
Martin Panter added the comment: I did a quick merge of Arfrever’s 2.7 patch with current code (mainly pgo flags). Unfortunately it didn’t fix my problem with unhandled ImportWarning, but here it is in case it is useful. -- Added file:

[issue18910] IDle: test textView.py

2016-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have stopped patching IDLE for 2.7 and will not add more tests. So there is no reason to constrain tests for 3.5, and soon 3.6, to 2.7 limitations. -- assignee: -> terry.reedy resolution: -> fixed stage: needs patch -> resolved status: open ->

[issue18910] IDle: test textView.py

2016-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset f5e20abea871 by Terry Jan Reedy in branch '2.7': Issue 18910: Edit idle_test/README.txt to add 'requires' warning. https://hg.python.org/cpython/rev/f5e20abea871 New changeset 735eebce6765 by Terry Jan Reedy in branch '3.5': Issue 18910: Edit

[issue12669] test_curses skipped on buildbots

2016-05-15 Thread Martin Panter
Martin Panter added the comment: FYI I just added a reasonably generic function pty_run(script, input) -> output to Lib/test/test_readline.py:120 for Issue 26870. It runs a Python script string in a child process under a pseudo-terminal. If you need to drive the curses tests with a

[issue26807] mock_open()().readline() fails at EOF

2016-05-15 Thread Robert Collins
Robert Collins added the comment: I've committed a minimal variation - thanks for the patches. -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue26807] mock_open()().readline() fails at EOF

2016-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset cbb31b2a3dba by Robert Collins in branch '3.5': Issue #26807: mock_open 'files' no longer error on readline at end of file. https://hg.python.org/cpython/rev/cbb31b2a3dba New changeset 72a798e27117 by Robert Collins in branch 'default': Issue

[issue20792] Idle: test PathBrowser more

2016-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: The Feb 2014 patches contained changes to Pathbrowser.main. In June/July 2014, module 'main' tests were converted to htests. I have determined that the htest supercedes the main changes and that this issue can be closed. -- assignee: -> terry.reedy

[issue23977] Enhancing IDLE's test_delegator.py unit test

2016-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6bc08af57813 by Terry Jan Reedy in branch '3.5': Issue #23977: Tweak IDLE Delegator and its test. https://hg.python.org/cpython/rev/6bc08af57813 -- nosy: +python-dev ___ Python tracker

[issue23977] Enhancing IDLE's test_delegator.py unit test

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

[issue26168] Py_BuildValue may leak 'N' arguments on PyTuple_New failure

2016-05-15 Thread Martin Panter
Martin Panter added the comment: Is it really a problem if the old value is deallocated? It sounds like a similar case to , and would only be a problem if you passed a borrowed reference, and relied on the reference staying alive for another

[issue20640] Idle: test configHelpSourceEdit

2016-05-15 Thread Martin Panter
Martin Panter added the comment: Yep all four buildbots, x86 Tiger and AMD64 Snow Leop, 3.5 and 3.x, are now green. -- status: open -> closed ___ Python tracker

[issue27025] More human readable generated widget names

2016-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ah, the patch makes it clear. Tkinter is already generating a name to submit to tk, and you are proposing to replace using the Python id for that purpose. +1. I also notice that duplicate names cause the old tk widget to be destroyed even if the Python

[issue27033] Change the decode_data default in smtpd to False

2016-05-15 Thread R. David Murray
Changes by R. David Murray : -- components: +email ___ Python tracker ___ ___

[issue20371] datetime.datetime.replace bypasses a subclass's __new__

2016-05-15 Thread R. David Murray
R. David Murray added the comment: By the way, when I say "again", I'm referring to the "return type of alternative constructors" thread: http://www.mail-archive.com/python-dev@python.org/msg92163.html This is effectively an extension of that discussion, because replace is an alternative

[issue27034] Remove deprecated asynchat.fifo

2016-05-15 Thread STINNER Victor
STINNER Victor added the comment: The asynchat.fifo was deprecated in Python 3.5. -- ___ Python tracker ___

[issue27034] Remove deprecated asynchat.fifo

2016-05-15 Thread STINNER Victor
Changes by STINNER Victor : -- title: Remove derecated asynchat.fifo -> Remove deprecated asynchat.fifo ___ Python tracker ___

[issue27034] Remove derecated asynchat.fifo

2016-05-15 Thread STINNER Victor
STINNER Victor added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20371] datetime.datetime.replace bypasses a subclass's __new__

2016-05-15 Thread R. David Murray
R. David Murray added the comment: Ah, interesting. The python version (which is based on the original python code that served as the specification for the C version) has docstrings that explicitly say "new XXX". The C docstrings and rest docs do not reflect that subtlety. The docstrings

[issue27025] More human readable generated widget names

2016-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > The 'virtue' of the digit strings names is that they match tk behavior (I > presume) and are consistently opaque ;-) No, in Tk you have to give names for all widgets. frame .main button .main.ok This is similar to how classes or functions are declared in

[issue20371] datetime.datetime.replace bypasses a subclass's __new__

2016-05-15 Thread Eugene Toder
Eugene Toder added the comment: namedtuple._replace() actually doesn't call subclass' __new__. It calls tuple.__new__ directly, so it has the same problem as datetime classes. Parameter and Signature are new in 3.3. I'm not sure if they're expected to be used as base classes.

[issue27033] Change the decode_data default in smtpd to False

2016-05-15 Thread R. David Murray
Changes by R. David Murray : -- stage: patch review -> commit review ___ Python tracker ___

[issue27025] More human readable generated widget names

2016-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: First thoughts on the proposal. I overall like it. The 'virtue' of the digit strings names is that they match tk behavior (I presume) and are consistently opaque ;-) *Someone* will object to change. Is your proposal to have (_)tkinter add a name= option

[issue20371] datetime.datetime.replace bypasses a subclass's __new__

2016-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks as expected behavior to me. namedtuple._replace(), Parameter.replace(), Signature.replace() do it this way. -- ___ Python tracker

[issue27034] Remove derecated asynchat.fifo

2016-05-15 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27034] Remove derecated asynchat.fifo

2016-05-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch removes deprecated class fifo from the asynchat module and any remnants from the documentation. See also issue6916. -- components: Library (Lib) files: asynchat_remove_deprecated.patch keywords: patch messages: 265646 nosy:

[issue27033] Change the decode_data default in smtpd to False

2016-05-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch changes the default value of the decode_data parameter for smtpd.SMTPChannel and smtpd.SMTPServer constructors. The default value True was deprecated since adding this parameter in issue19662. -- components: Library (Lib) files:

[issue27024] IDLE shutdown glitch when started by import

2016-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a partial fix. Run python, import idlelib.idle, open idlelib.run, close editor, close shell, get clean >>> prompt in python. No 'bgerror ...'. This is probably enough to justify patch. (Directly opening and closing IDLE continues to work fine, as

[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2016-05-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch removes the unescape() method in the html.parser.HTMLParser class. This was deprecated since Python 3.4 (issue19688). -- components: Library (Lib) files: html_parser_remove_deprecated.patch keywords: patch messages: 265643 nosy:

[issue27031] Remove interface to obsolete Tk commands

2016-05-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch removes the tk_menuBar() and tk_bindForTraversal() dummy methods in Tkinter widget classes. Previously these methods called commands that were obsolete since Tk 4.0. The deprecation was added in all branches in issue22061. --

[issue20371] datetime.datetime.replace bypasses a subclass's __new__

2016-05-15 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: -yselivanov ___ Python tracker ___ ___

[issue27030] Remove deprecated re features

2016-05-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch removes following deprecated re features: * Three unused not documented functions: isident(), isdigit() and isname(). They were deprecated since Python 3.3 (issue14462). * '\' + ASCII character now is error if this combination is not

[issue27029] Remove support of deprecated mode 'U' in zipfile

2016-05-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch removes support of modes 'U' and 'rU' in zipfile.ZipFile.open. This support was baggy and not consistent with other binary file objects. It was deprecated since Python 3.4. -- components: Library (Lib) files:

[issue25747] test_idle failure in leaks searching mode

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

[issue25747] test_idle failure in leaks searching mode

2016-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f561804bc8e by Terry Jan Reedy in branch '3.5': Issue #25747: remove undependable and possibly useless test. https://hg.python.org/cpython/rev/5f561804bc8e -- nosy: +python-dev ___ Python tracker

[issue25747] test_idle failure in leaks searching mode

2016-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: In msg255485 'copied replacements' should be 'copied with replacements'. But 'import idlever' is not a reliable replacement for "# trigger a warning". I wonder whether 'import_fresh_module' really executes the module twice, which seems foolish, or mere

[issue25747] test_idle failure in leaks searching mode

2016-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From Mantin Panter's msg265606: == FAIL: test_idlever (idlelib.idle_test.test_warning.ImportWarnTest) -- Traceback (most

[issue20640] Idle: test configHelpSourceEdit

2016-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Patch should fix test for this issue. Please retest and close if it does. -- ___ Python tracker ___

[issue26039] More flexibility in zipfile write interface

2016-05-15 Thread Thomas Kluyver
Thomas Kluyver added the comment: The backported package now exists on PyPI as zipfile36. It's passing the tests on 3.4 - I haven't tested further back. I'm trying out Gitlab for hosting it: https://gitlab.com/takluyver/zipfile36 -- ___ Python

[issue20640] Idle: test configHelpSourceEdit

2016-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset ada719145597 by Terry Jan Reedy in branch '3.5': Issue #20640: Add https: to url prefixes so test passes on Darwin. https://hg.python.org/cpython/rev/ada719145597 -- ___ Python tracker

[issue20371] datetime.datetime.replace bypasses a subclass's __new__

2016-05-15 Thread Eugene Toder
Eugene Toder added the comment: This seems like it can lead to even more subtle bugs when replace() is not overriden. Currently, any extra state in the subclass is left uninitialized, which usually leads to obvious breakage and is relatively easy to trace back to replace(). (I've done it

[issue27023] Documentation of tempfile.gettempdir() does not mention it only supports existing directories

2016-05-15 Thread R. David Murray
R. David Murray added the comment: As Steve pointed out, the documentation is explicit: "to *find* one the user can craete files in". You can't find something that doesn't yet exist. -- ___ Python tracker

[issue20371] datetime.datetime.replace bypasses a subclass's __new__

2016-05-15 Thread R. David Murray
R. David Murray added the comment: Hmm. The contract is actually that replace returns a *new* instance with the specified values changed. So I think it would be adequate in this case to simply call the subclass constructor with the values that replace manages, and not worry about anything

[issue27023] Documentation of tempfile.gettempdir() does not mention it only supports existing directories

2016-05-15 Thread ProgVal
ProgVal added the comment: I know, that's why I did not ask to change the code. Only the doc to make that behavior more explicit. -- ___ Python tracker

[issue20371] datetime.datetime.replace bypasses a subclass's __new__

2016-05-15 Thread Eugene Toder
Eugene Toder added the comment: Yes, this is similar to my second approach. (You need to copy via __reduce__, because __copy__ my have been overriden to return self.) The general problem with it, is that if a subclass is designed to be immutable (probably a common case here), it may not

[issue20886] Disabling logging to ~/.python_history is not simple enough

2016-05-15 Thread Sworddragon
Sworddragon added the comment: I'm assuming this means this must be called on every interactive python instance. If not just correct me. While this might be an enhancement it would still be too inconvenient. Basically something that can be configured permanently for example with ~/.bashrc

[issue26870] Unexpected call to readline's add_history in call_readline

2016-05-15 Thread Martin Panter
Martin Panter added the comment: Looks like I have ironed all the bugs out. These OS bugs/quirks have already been documented in the Python bug tracker: 1. kqueue() incompatible with PTYs on OS X < 10.9 and Open BSD (Issue Issue 20365, Issue 20667 respectively) 2. poll() also incompatible

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2016-05-15 Thread Larry Hastings
Larry Hastings added the comment: Martin said: > Josh: it's not as simple as just changing the type code and variable type. > Systems used to require all kinds of types in the length parameter of read(2) > and fread(3), including int, long, and size_t. If it was int, passing size_t > would

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2016-05-15 Thread Larry Hastings
Larry Hastings added the comment: Updated patch based on feedback from Serihy. Thanks for the ping. -- Added file: http://bugs.python.org/file42860/larry.make.file_read.use.size_t.2.diff ___ Python tracker

[issue20371] datetime.datetime.replace bypasses a subclass's __new__

2016-05-15 Thread R. David Murray
R. David Murray added the comment: Why can't you make a copy and then patch the changed attributes on the copy? -- ___ Python tracker ___

[issue27022] expose sendmmsg() syscall in sockets API

2016-05-15 Thread SilentGhost
Changes by SilentGhost : -- nosy: +pitrou versions: -Python 3.5 ___ Python tracker ___

[issue27028] configparser BasicInterpolation issue with %()

2016-05-15 Thread R. David Murray
R. David Murray added the comment: You are missing the trailing 's' on the format string. -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed title: BasicInterpolation issue with %() -> configparser BasicInterpolation issue with %() type:

[issue20371] datetime.datetime.replace bypasses a subclass's __new__

2016-05-15 Thread Eugene Toder
Eugene Toder added the comment: Properly supporting subclasses in replace() is hard, at least without some cooperation from subclasses. For a proper replace() x.replace(a=newval).b == x.b should hold for every b not dependent on a, including ones added by subclasses. That is, it should

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2016-05-15 Thread STINNER Victor
STINNER Victor added the comment: > I also see that Victor has been doing some of the same work, e.g. #26146. ast.Constant idea directly comes from your work. The implementatiln may ve different. It's a first step for AST optimizers. -- ___ Python

[issue27023] Documentation of tempfile.gettempdir() does not mention it only supports existing directories

2016-05-15 Thread R. David Murray
R. David Murray added the comment: No, it shouldn't. The design is that different systems use different locations for the default tempdir, and we look down a list of ones we know about until we find one that exists and can be used. Likewise, different shells use different environment

[issue27016] BlockingIOError not raised inside function.

2016-05-15 Thread R. David Murray
R. David Murray added the comment: If I copy the second code, and add an import for fcntl, and run the resulting program twice from two different shells, I get a BlockingIOError. This is on linux. -- nosy: +r.david.murray ___ Python tracker

[issue26870] Unexpected call to readline's add_history in call_readline

2016-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset daaead1dc3e0 by Martin Panter in branch 'default': Issue #26870: Poll() also fails on OS X; try select() https://hg.python.org/cpython/rev/daaead1dc3e0 -- ___ Python tracker

[issue27028] BasicInterpolation issue with %()

2016-05-15 Thread Mehrzad Irani
New submission from Mehrzad Irani: The below code works fine with ExtendedInterpolation; however with BasicInterpolation it _url fails with invalid variable reference. The INI file: [DEFAULT] domain=abc.labs.com [machine-details] compilation_machine=abc1

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Eric V. Smith
Eric V. Smith added the comment: Yes, I'll read PEP 515 and work on the formatting. -- ___ Python tracker ___

[issue24291] Many servers (wsgiref, http.server, etc) can truncate large output blobs

2016-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: SimpleHTTPRequestHandler uses shutil.copyfileobj(), and shutil.copyfileobj() expects that write() writes all data. -- components: +IO nosy: +benjamin.peterson, pitrou, stutzbach, tarek ___ Python tracker

[issue26870] Unexpected call to readline's add_history in call_readline

2016-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 816e1fe72c1e by Martin Panter in branch 'default': Issue #26870: Avoid using kqueue() with pseudo-terminals https://hg.python.org/cpython/rev/816e1fe72c1e -- ___ Python tracker

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2016-05-15 Thread Eugene Toder
Eugene Toder added the comment: Serhiy: Nice! Yes, _PyCode_ConstantKey solved the problem. But #16619 went in the opposite direction of this patch, and introduced a new type of literal node instead of unifying the existing ones. Kind of a shame, since *this* patch, I believe, both fixes that

[issue26168] Py_BuildValue may leak 'N' arguments on PyTuple_New failure

2016-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not happy with pybuildvalue_leak3.patch. For failed keys it saves values with the same key (None). This means that old value can be deallocated before the end of building all dict. Following patch collects all values after error in a tuple. This not

[issue17085] test_socket crashes the whole test suite

2016-05-15 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue21313] Py_GetVersion() is broken when using mqueue and a long patch name

2016-05-15 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue26058] PEP 509: Add ma_version to PyDictObject

2016-05-15 Thread Jakub Stasiak
Changes by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___

[issue26219] implement per-opcode cache in ceval

2016-05-15 Thread Jakub Stasiak
Changes by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___

[issue26110] Speedup method calls 1.2x

2016-05-15 Thread Jakub Stasiak
Changes by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___

[issue26934] android: test_faulthandler fails

2016-05-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: root@generic_x86:/data/local/tmp # python Python 3.6.0a0 (default:eee959fee5f5+, May 14 2016, 13:43:41) [GCC 4.9 20150123 (prerelease)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import faulthandler >>>

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

2016-05-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #27027: add is_android in test.support to detect Android platform -- ___ Python tracker ___

[issue27027] add is_android in test.support to detect Android platform

2016-05-15 Thread Xavier de Gaye
New submission from Xavier de Gaye: Needed by tests specific to Android or that must be skipped on Android. -- components: Tests messages: 265609 nosy: ezio.melotti, michael.foord, pitrou, xdegaye priority: normal severity: normal status: open title: add is_android in test.support to

[issue20640] Idle: test configHelpSourceEdit

2016-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For test_idlever see issue25747. -- ___ Python tracker ___ ___

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2016-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, the patch is outdated, conflicts with current code (and would conflict even more after pushing the wordcode patch) and contains bugs. But it moved in right direction, I think your _PyCode_ConstantKey() could help to fix bugs. I'm going to revive this

[issue20640] Idle: test configHelpSourceEdit

2016-05-15 Thread Martin Panter
Martin Panter added the comment: FYI this broke the OS X buildbots: == FAIL: test_ok (idlelib.idle_test.test_config_help.ConfigHelpTest) -- Traceback (most

[issue26870] Unexpected call to readline's add_history in call_readline

2016-05-15 Thread Martin Panter
Martin Panter added the comment: Unfortunately, I think my debugging messages needed a flush() call to be effective when the deadlock happens. So the test is failing on three buildbots: * AMD64 Snow Leop 3.x: stuck at Lib/subprocess.py:1612, os.waitpid() waiting for child to exit * x86

[issue26039] More flexibility in zipfile write interface

2016-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Thank you Thomas. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue26039] More flexibility in zipfile write interface

2016-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 29b470b8ab77 by Serhiy Storchaka in branch 'default': Issue #26039: Document ZipInfo.is_dir() and make force_zip64 keyword-only. https://hg.python.org/cpython/rev/29b470b8ab77 -- ___ Python tracker

[issue27024] IDLE shutdown glitch when started by import

2016-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch fixes the issue for all Tkinter applications. -- components: +Tkinter -IDLE keywords: +patch stage: test needed -> patch review type: -> behavior versions: +Python 2.7 Added file:

[issue27026] async/await keywords are missing from reference docs

2016-05-15 Thread Martin Panter
Martin Panter added the comment: ..Related: Issue 26264, about updating the keywords module. Technically they are only reserved inside “async def” functions. So it could be misleading adding them with the other always-reserved keywords without an explanation. -- nosy: +martin.panter,

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2016-05-15 Thread Larry Hastings
Larry Hastings added the comment: Summary: read Matt's original message on the bug. Status: still broken. Some people think it should be left that way. Proposed fix: it's straightforward to fix. You wrote a patch, I modified yours a little. The patch is short and easy to read. --

[issue27024] IDLE shutdown glitch when started by import

2016-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are few possible workarounds: 1. Catch and ignore TclError in CodeContext.timer_event, CodeContext.font_timer_event and other callbacks. 2. Save results of after() and after_idle() calls and pass them to after_cancel() before destroying widgets.

[issue27026] async/await keywords are missing from reference docs

2016-05-15 Thread Hong Minhee
New submission from Hong Minhee: The async/await keywords are missing from §2.3.1. Keywords in reference docs. The attached patch adds two missing keywords to Doc/reference/lexical_analysis.rst file. -- assignee: docs@python components: Documentation files: patch.diff hgrepos: 343

[issue26039] More flexibility in zipfile write interface

2016-05-15 Thread Thomas Kluyver
Thomas Kluyver added the comment: Updated version of the patch with the detail moved to rst. -- Added file: http://bugs.python.org/file42855/zipfile-flex-bonus2.patch ___ Python tracker

[issue27025] More human readable generated widget names

2016-05-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: For now Tkinter generates Tk widget names just from Widget instance id. >>> import tkinter >>> root = tkinter.Tk() >>> frame = tkinter.Frame(root) >>> button = tkinter.Button(frame) >>> str(button) '.3070531884.3055478668' These names are not very readable

[issue27023] Documentation of tempfile.gettempdir() does not mention it only supports existing directories

2016-05-15 Thread ProgVal
ProgVal added the comment: The directory could be created -- ___ Python tracker ___ ___ Python-bugs-list

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Georg Brandl
Georg Brandl added the comment: Note: the changes for format()ting ("_" as thousands separator) are still missing. Eric, would you consider doing this part? -- nosy: +eric.smith ___ Python tracker

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file41892/numeric_underscores_v2.diff ___ Python tracker ___

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file42852/numeric_underscores_final_v5.diff ___ Python tracker ___

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file41888/numeric_underscores.diff ___ Python tracker ___

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file41894/numeric_underscores_v3_full.diff ___ Python tracker ___

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Georg Brandl
Changes by Georg Brandl : Added file: http://bugs.python.org/file42854/numeric_underscores_final_v6.diff ___ Python tracker ___

[issue24693] zipfile: change RuntimeError to more appropriate exception type

2016-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch includes changed tests and the documentation. It includes changes for new exceptions added in issue26039. Perhaps not all changes should be accepted, but I have included them for demonstrating. RuntimeError was used in following cases: 1.

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Georg Brandl
Georg Brandl added the comment: New patch; implements the accepted version of the PEP. I added the additional tests, thanks Stefan! -- Added file: http://bugs.python.org/file42852/numeric_underscores_final_v5.diff ___ Python tracker

[issue26934] android: test_faulthandler fails

2016-05-15 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > Please try without "sigaction(SIGSEGV, NULL, NULL);". Does the program still > quit? Nope. int main() { raise(SIGSEGV); } Still exits normally with 0. > Does faulthandler._read_null() crash Python? Yes. int main() { int *x = 0; int y = *x;

[issue24225] Idlelib: changing file names

2016-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: turtledemo.__main__ imports from idlelib will also need fixing. -- ___ Python tracker ___