[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 so that 
people can find them in the wiki.

--
nosy: +ezio.melotti

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 return.  Is the special 
> casing in _tkinter or tk itself?

Tk is full of such inconsistencies. A result for one widget can be a list of 
numbers, but for other it is a list of strings or a list of special Tcl 
objects. One method can return empty list, other returns empty string. One 
widgets truncate floating point parameters, others round them up or down.

I'll commit the patch after testing with Tk 8.5 and 8.4.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 test_singleton_empty_frozenset() of test_set when an AST 
transformer replaces frozenset(), frozenset([]), etc. calls with an empty 
frozenset constant.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Japanese document is here: 
https://github.com/python-doc-ja/cpython-doc-intl

--
nosy: +naoki

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ? Sphinx don't natively support it, but it still doable and can be a 
nice way to advertise our efforts (I mean, I'm sure a lot of french people 
don't know we're doing it and stuck to the english version).

I heard we used transfiex too like 6 years ago, long before me being on the 
project, I may drop an eye on it, thanks.

It may be a bit out of the scope of this issue, so let's continue elsewhere, 
like by email if you want I'm julien at palard dot fr.

BTW, nice to hear we're not alone to translate the Python doc :-))).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26185] zipfile.ZipInfo slots can raise unexpected AttributeError

2016-01-23 Thread SilentGhost

Changes by SilentGhost :


--
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26185] zipfile.ZipInfo slots can raise unexpected AttributeError

2016-01-23 Thread SilentGhost

Changes by SilentGhost :


--
nosy: +alanmcintyre, serhiy.storchaka, twouters

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ;-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
file_size) or attempting to repr() a ZipInfo object can fail unexpectedly with 
AttributeError. (I say "unexpectedly" because ZipInfo.__init__ and its 
attributes are public/documented, so the attributes ought to be properly 
initialized regardless of how the object gets created.)

A simple test to illustrate:

>>> import zipfile
>>> zinfo = zipfile.ZipInfo()
>>> repr(zinfo)
Traceback (most recent call last):
  File "", line 1, in 
  File "/cpython/Lib/zipfile.py", line 376, in __repr__
result.append(' file_size=%r' % self.file_size)
AttributeError: file_size

(If you assign zinfo.file_size = None, it next fails on compress_size.)

This problem has been noted before - see issues 3039 and 22217 - but has not 
been resolved.

Patch including tests is attached.

--
components: Library (Lib)
files: zipfile.ZipInfo.patch
keywords: patch
messages: 258859
nosy: Matthew Zipay
priority: normal
severity: normal
status: open
title: zipfile.ZipInfo slots can raise unexpected AttributeError
type: behavior
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file41698/zipfile.ZipInfo.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
changes to make your work easier.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 can choose to not implement it.

--
Added file: http://bugs.python.org/file41701/dict_version-6.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
CO_GENERATOR_ALLOWED. This constant was removed in Python 2.5.0 by the 
changeset 6b42920accc9 in 2006. Is it an issue?

--
Added file: http://bugs.python.org/file41700/pycf_transformed_ast.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 = con1.cursor()
>>> cur.execute("create table test(a)")
create table test(a)

>>> con2.execute("create table test2(a)")

>>> cur.execute("insert into test(a) values(1)")
BEGIN 
insert into test(a) values(1)
insert into test(a) values(1)

>>> for a in con1.execute("select * from test"):
... print("result:", a)
... 
select * from test
result: (1,)
---

As you can see i get duplicate traceback print of the "insert into test(a) 
values(1)" line. The duplicate print has no effect on the actual db.

I have tested this both on python 3.4.3 and 3.6.0a0 on ubuntu14.04

--
components: Extension Modules
messages: 258874
nosy: ghaering, palaviv
priority: normal
severity: normal
status: open
title: sqlite3 trace callback prints duplicate line
type: behavior
versions: Python 3.4, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 make debugging difficult.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26186] LazyLoader rejecting use of SourceFileLoader

2016-01-23 Thread Brett Cannon

Changes by Brett Cannon :


--
nosy: +eric.snow, ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
importlib.machinery.SourceFileLoader, and if it rejects the one from 
_frozen_importlib, tweak the test to accept loaders from there as well.

--
assignee: brett.cannon
components: Library (Lib)
messages: 258873
nosy: brett.cannon
priority: normal
severity: normal
stage: test needed
status: open
title: LazyLoader rejecting use of SourceFileLoader
type: behavior
versions: Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 returns control to cmd.exe early -> 
Interpreter returns control to cmd.exe early

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 that case.  I simply replaced "__package__" with "the name of the 
current package" to make it easier to read, much as the original text replaces 
"__name__" with "the name of the current module."

>Then point out that relative imports won’t work with ``python file.py`` or 
>interactive mode, but don’t mention “-m” (or the other ways to run scripts and 
>modules).

SGTM if you can find a reasonable way of phrasing that.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the 
process here so I'm not totally sure I'm doing this right. I created the patch 
relative to the current default branch (even though the discussion here seems 
to indicate it should maybe be applied going back a few versions).

--
hgrepos: +331
keywords: +patch
nosy: +thomas.nyberg
Added file: http://bugs.python.org/file41703/pathlib_glob.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26186] LazyLoader rejecting use of SourceFileLoader

2016-01-23 Thread Keith Dart

Changes by Keith Dart :


--
nosy: +kdart

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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():
... await something()
  File "", line 2
await something()
  ^
SyntaxError: invalid syntax
```

It would be helpful if Python could tell the user something more specific about 
_why_ the syntax is invalid. Is that possible?

For example, in the case above, an error message along the following lines 
would be much more helpful:

```
SyntaxError: Cannot call `await` inside non-`async` method.
```

Without a hint like this, it's too easy to miss the obvious and waste time 
eye-balling the code, like I did. :-)

--
components: Interpreter Core
messages: 258879
nosy: Nicholas Chammas
priority: normal
severity: normal
status: open
title: Provide more helpful error message when `await` is called inside 
non-`async` method
versions: Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 return code, this 
makes it impossible to run scripts that expect input from console because 
Python and cmd get input lines in turns (I typed both inputs 2 times in the 
following example):

C:\>python -c "s=raw_input('1st:'); print s; s=raw_input('2nd:'); print s"

C:\>1st:abcdef
'abcdef' is not recognized as an internal or external command,
operable program or batch file.

C:\>abcdef
abcdef
2nd:123456
'123456' is not recognized as an internal or external command,
operable program or batch file.

C:\>123456
123456


--
components: IO
messages: 258880
nosy: Ivan.Pozdeev
priority: normal
severity: normal
status: open
title: Non-interactive interpreter returns control to cmd.exe early
type: behavior
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 python libs, and indeed there seem to 
be many enhancement requests for python libs in this bug db.  It seems that pip 
has some special status as included as part of the std python distribution but 
not part of the std libs.  I would have thought that it was obvious from the 
context that I was unaware of this fact at the time I posted the request.  Does 
that answer your question?  What's with the attitude?  You've never made a 
mistake I take it?).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the OS that never got fixed.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com