[issue26181] argparse can't handle positional argument after list (help message is wrong)

2016-01-23 Thread SilentGhost
Changes by SilentGhost : -- nosy: +bethard versions: +Python 3.5, Python 3.6 -Python 3.4 ___ Python tracker ___

[issue26098] PEP 510: Specialize functions with guards

2016-01-23 Thread STINNER Victor
STINNER Victor added the comment: Patch version 4: * Keywords are now supported everywhere and tested by unit tests * Inline specode_check() into PyFunction_GetSpecializedCode() -- Added file: http://bugs.python.org/file41702/specialize-4.patch ___

[issue26146] PEP 511: Add ast.Constant to allow AST optimizer to emit constants

2016-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5de1bd759f3b by Victor Stinner in branch 'default': Issue #26146: marshal.loads() now uses the empty frozenset singleton https://hg.python.org/cpython/rev/5de1bd759f3b -- nosy: +python-dev ___ Python

[issue26149] Suggest PyCharm Community as an editor for Unix platforms

2016-01-23 Thread Ezio Melotti
Ezio Melotti added the comment: The two links for VIM and Emacs are useful for Unix developers that happen to use these editors, but I agree that we should link to the wiki instead of having other links to specific editors. If we want to recommend a few specific ones, we could list their names

[issue26177] tkinter: Canvas().keys returns empty strings.

2016-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Is avoiding splitlist calls when not needed worthwhile? We can't guarantee that future release of Tk wouldn't return a list of strings. Calling splitlist() for a tuple is cheap (but looks cumbersome). > I am a bit curious why Canvas gives a different

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-23 Thread Julien
Julien added the comment: @haypo: And here is the patch for 2.7, and here is the result of the patch applied and new msgids translated: http://www.afpy.org/doc/python/2.7/ -- Added file: http://bugs.python.org/file41699/trans-tags-in-2.7.patch ___

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 72edb81e456b by Victor Stinner in branch '2.7': doc: i18n HTML templates https://hg.python.org/cpython/rev/72edb81e456b -- ___ Python tracker

[issue26146] PEP 511: Add ast.Constant to allow AST optimizer to emit constants

2016-01-23 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 5de1bd759f3b by Victor Stinner in branch 'default': > Issue #26146: marshal.loads() now uses the empty frozenset singleton > https://hg.python.org/cpython/rev/5de1bd759f3b This change is not directly related to this issue. It's required by

[issue26149] Suggest PyCharm Community as an editor for Unix platforms

2016-01-23 Thread Georg Brandl
Georg Brandl added the comment: > The doc section is woefully incomplete and unix-specific. That might be because the doc section is called "Using Python on Unix platforms". -- nosy: +georg.brandl ___ Python tracker

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-23 Thread INADA Naoki
INADA Naoki added the comment: O/T Hi, Julien. I'm maintainer of Python Document Japanese translation project. (http://docs.python.jp/ ) We use Transifex to ease many volunteers working on translating. https://www.transifex.com/python-doc-ja/python-35/dashboard/ Repository of Python 3.5

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-23 Thread Julien
Julien added the comment: @naoki Not sure, but with those patches you'll may be able to translate the documentation without forking it. Like we're doing here: https://github.com/afpy/python_doc_fr Also did you contacted the upstream to ask them if they want to cross-link your versions ?

[issue26185] zipfile.ZipInfo slots can raise unexpected AttributeError

2016-01-23 Thread SilentGhost
Changes by SilentGhost : -- stage: -> patch review ___ Python tracker ___ ___

[issue26185] zipfile.ZipInfo slots can raise unexpected AttributeError

2016-01-23 Thread SilentGhost
Changes by SilentGhost : -- nosy: +alanmcintyre, serhiy.storchaka, twouters ___ Python tracker ___

[issue26183] 2.7.11 won't clean install on Windows 10 x64

2016-01-23 Thread SilentGhost
Changes by SilentGhost : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue26146] PEP 511: Add ast.Constant to allow AST optimizer to emit constants

2016-01-23 Thread STINNER Victor
STINNER Victor added the comment: @Serhiy: Would you mind reviewing constant-2.patch? I reviewed my own patch and added some comments, I found a refleak ;-) -- ___ Python tracker

[issue19883] Integer overflow in zipimport.c

2016-01-23 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > Updated patch addresses Victor's comments and adds (mandatory now) > parenthesis. Thank you Victor. Do you mean braces {...}? The new patch looks good to me, thanks for taking all my comments in account ;-) --

[issue19883] Integer overflow in zipimport.c

2016-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Victor's comments and adds (mandatory now) parenthesis. Thank you Victor. -- assignee: -> serhiy.storchaka Added file: http://bugs.python.org/file41697/zipimport_int_overflow_4.patch ___

[issue26185] zipfile.ZipInfo slots can raise unexpected AttributeError

2016-01-23 Thread Matthew Zipay
New submission from Matthew Zipay: The zipfile.ZipInfo.__init__ method permits several of ZipInfo's slot attributes to go uninitialized unless the object is obtained from ZipFile.getinfo() or ZipFile.infolist(). As a result, accessing those attributes (header_offset, CRC, compress_size, or

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-23 Thread STINNER Victor
STINNER Victor added the comment: > @haypo: And here is the patch for 2.7, and here is the result of the patch > applied and new msgids translated: http://www.afpy.org/doc/python/2.7/ Thanks. I also pushed this change. @INADA Naoki, @Julien: Don't hesitate to bug me if you want to push other

[issue26182] Deprecation warnings for the future async and await keywords

2016-01-23 Thread SilentGhost
Changes by SilentGhost : -- components: +asyncio nosy: +giampaolo.rodola, gvanrossum, haypo, pitrou, yselivanov ___ Python tracker

[issue26058] PEP 509: Add ma_version to PyDictObject

2016-01-23 Thread STINNER Victor
STINNER Victor added the comment: Patch version 6: remove now unused function _testcapi.dict_set_version(). I also moved tests to test_pep509.py to make it more explicit that the implementation of the PEP 509 is not part the Python dictionary type specification, other Python implementations

[issue26145] PEP 511: Add sys.set_code_transformers()

2016-01-23 Thread STINNER Victor
STINNER Victor added the comment: > Note: ast.PyCF_TRANSFORMED_AST is not implemented yet. Additionnal pycf_transformed_ast.patch implements it. The patch should be applied on top of transformers-4.patch. Note: PyCF_TRANSFORMED_AST has the same value (0x1000) than the old constant

[issue26187] sqlite3 trace callback prints duplicate line

2016-01-23 Thread Aviv Palivoda
New submission from Aviv Palivoda: I am running the following script: -- >>> import sqlite3 >>> import os >>> import time >>> con1 = sqlite3.connect("/tmp/test.db") >>> con2 = sqlite3.connect("/tmp/test.db") >>> con1.set_trace_callback(print) >>> cur =

[issue26169] Pasting 900000 chars into a tk Entry widget fails

2016-01-23 Thread Soufiane BOUSSALI
Soufiane BOUSSALI added the comment: thanks terry reedy For Fixing This Stack Overflow :) -- ___ Python tracker ___

[issue26186] LazyLoader rejecting use of SourceFileLoader

2016-01-23 Thread Brett Cannon
Brett Cannon added the comment: One way to possibly improve this is to remove the create_module() check and replace it with a warning if create_module() doesn't return None. Another option is to use an assert statement. The final option is to just drop the check entirely, although that can

[issue26186] LazyLoader rejecting use of SourceFileLoader

2016-01-23 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +eric.snow, ncoghlan ___ Python tracker ___ ___

[issue26183] 2.7.11 won't clean install on Windows 10 x64

2016-01-23 Thread Steve Dower
Steve Dower added the comment: This is trying to remove 2.7.10, so I guess it's not as clean as you think. You'll need to repair the 2.7.10 install (not just reinstall it - it has to be the right version so you can choose repair) and then try again. --

[issue26186] LazyLoader rejecting use of SourceFileLoader

2016-01-23 Thread Brett Cannon
New submission from Brett Cannon: It was privately reported to me that importlib.util.LazyLoader rejects using importlib.machinery.SourceFileLoader (or at least _frozen_importlib.SourceFileLoader). At least a test should be added for LazyLoader to make sure it will happily accept

[issue26189] Interpreter returns control to cmd.exe early

2016-01-23 Thread Zachary Ware
Zachary Ware added the comment: What version of Python are you using, where did you get it from, and what version of Windows are you using? -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue26189] Interpreter returns control to cmd.exe early

2016-01-23 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: This also happens when running interactively - so the interactive interpreter has to be run from a non-console program to be usable. This doesn't happen with other programs (e.g. Cygwin bash) or IPython console. -- title: Non-interactive interpreter

[issue26160] Tutorial incorrectly claims that (explicit) relative imports don't work in the main module

2016-01-23 Thread Kevin Norris
Kevin Norris added the comment: >It could be misleading saying “the name of the current package”, because the >import could be relative to the a higher level parent package if more than one >dot is specified. While this is correct, Python still uses __package__ to determine what to import in

[issue23076] list(pathlib.Path().glob("")) fails with IndexError

2016-01-23 Thread Thomas Nyberg
Thomas Nyberg added the comment: I added a patch which causes glob to raise a ValueError exception if it is called with an empty string. I also added a test verifying the change and have run all the tests and they pass. Though I've been reading the developer guide, I'm a bit unfamiliar with

[issue26186] LazyLoader rejecting use of SourceFileLoader

2016-01-23 Thread Keith Dart
Changes by Keith Dart : -- nosy: +kdart ___ Python tracker ___ ___ Python-bugs-list

[issue26188] Provide more helpful error message when `await` is called inside non-`async` method

2016-01-23 Thread Nicholas Chammas
New submission from Nicholas Chammas: Here is the user interaction: ```python $ python3 Python 3.5.1 (default, Dec 7 2015, 21:59:10) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> def oh_hai(): ...

[issue26189] Non-interactive interpreter returns control to cmd.exe early

2016-01-23 Thread Ivan Pozdeev
New submission from Ivan Pozdeev: When running python.exe from windows console non-interactively, cmd.exe prompt appears immediately after starting: C:\>python -c "import time; time.sleep(2); print 'bla-bla-bla'" C:\>bla-bla-bla Not only this prevents from cmd to setting ERRORLEVEL to the

[issue26074] Add a method to pip.. pip.require("package_name")

2016-01-23 Thread Blaize Rhodes
Blaize Rhodes added the comment: Righto.. will talk to the pip dudes. Thanks for your time. (@matrixise The reason I posted this here is because pip is included as part of the cpython distribution. None of the documentation I've seen suggests that this isn't a forum for discussing the std

[issue26189] Interpreter returns control to cmd.exe early

2016-01-23 Thread Steve Dower
Steve Dower added the comment: That'd suggest a change in the link options since 2.7.10, probably SUBSYSTEM. Or possibly there's a config option that prevents allocating a console correctly on startup. FWIW, I don't think WinXP 64-bit was ever considered trustworthy, so it may be a bug in

[issue26189] Interpreter returns control to cmd.exe early

2016-01-23 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:40:30) [MSC v.1500 64 bit (AMD64)] on win32 WinXP x64 SP2 I also tested with PowerShell 1.0. Python opens another window, but the shell's prompt also shows up immediately. --

[issue26189] Interpreter returns control to cmd.exe early

2016-01-23 Thread Eryk Sun
Eryk Sun added the comment: Try forcing cmd to wait using the "start" command: C:\>start /b /w python -c "raise SystemExit(42)" C:\>echo %errorlevel% 42 -- nosy: +eryksun ___ Python tracker