[issue21922] PyLong: use GMP

2014-07-12 Thread Case Van Horsen

Changes by Case Van Horsen cas...@gmail.com:


--
nosy: +casevh

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



[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Let's try. As I understand, issue10044 was rejected because it complicates the 
code too much. May be new attempt will be more successful.

--
nosy: +serhiy.storchaka

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



[issue11077] Tkinter is not thread safe

2014-07-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I can't reproduce the bug on 2.7.8+, but on 2.7.3 I sometimes got messages like 
Exception in thread Thread-26 (most likely raised during interpreter 
shutdown): or:

  File /usr/lib/python2.7/lib-tk/Tkinter.py, line 2204, in create_line
  File /usr/lib/python2.7/lib-tk/Tkinter.py, line 2184, in _create
type 'exceptions.TypeError': 'NoneType' object is not callable

This points to shutdown issue. When TkinterCrash2.py call quit(), other threads 
are still work. And when modules (including Tkinter and __main__) are cleaned, 
they try to call global functions which are set to None. After fixing 
TkinterCrash2.py to not invoke any code during shutdown, error messages on 
2.7.3 gone.

I don't see any bugs in Tkinter exposed by this script, only a bug in the 
script itself.

Here is a script with quick and dirty fix. This solution is not perfect, there 
is small chance of race conditions (happened once in about 500 runs). Correct 
solution should be more complicated. If there no other errors in 
TkinterCrash2-2.py, this issue can be closed.

--
Added file: http://bugs.python.org/file35927/TkinterCrash2-2.py

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



[issue21922] PyLong: use GMP

2014-07-12 Thread Mark Dickinson

Mark Dickinson added the comment:

... and if there's one person who's *very* well placed to comment on the ease 
or difficulty of keeping up with GMP/MPIR (especially on Windows), it's Case 
Van Horsen, who I notice has recently added himself to the nosy.  @casevh: any 
comments?

--

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



[issue12588] test_capi.test_subinterps() failed on OpenBSD (powerpc)

2014-07-12 Thread Landry Breuil

Landry Breuil added the comment:

Seems something in between fixed it, because it works with 3.4.1. Can test 3.3 
if needed.

mikey:/usr/obj/tmpfs/ports/Python-3.4.1/Python-3.4.1/ $LD_LIBRARY_PATH=. 
./Modules/_testembed
--- Pass 0 ---
interp 0xac003e00, thread state 0xb4380f80: id(modules) = 2813069072
interp 0xa84b8480, thread state 0xa897cd00: id(modules) = 2840181576
interp 0xa84b8dc0, thread state 0xb1a0b700: id(modules) = 2840181696
interp 0xb1efb540, thread state 0xaec09880: id(modules) = 2929755640
interp 0xac003e00, thread state 0xb4380f80: id(modules) = 2813069072
--- Pass 1 ---
interp 0xab4f1780, thread state 0xaec09000: id(modules) = 2813071072
interp 0xac0035c0, thread state 0xaae20080: id(modules) = 2981253808
interp 0xb2bd6e00, thread state 0xaac10a00: id(modules) = 2981254728
interp 0xab4f1880, thread state 0xb0f31d00: id(modules) = 2862169464
interp 0xab4f1780, thread state 0xaec09000: id(modules) = 2813071072
--- Pass 2 ---
interp 0xb3731e00, thread state 0xb3a6be00: id(modules) = 2812938720
interp 0xa8842e40, thread state 0xaac10c80: id(modules) = 2981325640
interp 0xab4f1500, thread state 0xaec09a80: id(modules) = 2981325160
interp 0xb3731b00, thread state 0xaec06580: id(modules) = 3039539968
interp 0xb3731e00, thread state 0xb3a6be00: id(modules) = 2812938720

--

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



[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Failed on 32-bit:

==
ERROR: test_large_read (test.test_os.FileTests)
--
Traceback (most recent call last):
  File /home/serhiy/py/cpython/Lib/test/support/__init__.py, line 1592, in 
wrapper
return f(self, maxsize)
  File /home/serhiy/py/cpython/Lib/test/test_os.py, line 136, in 
test_large_read
data = os.read(fp.fileno(), size)
OverflowError: Python int too large to convert to C ssize_t

--

Re-add the @unittest.skipUnless(INT_MAX  PY_SSIZE_T_MAX, needs INT_MAX  
PY_SSIZE_T_MAX) decorator (between cpython_only and bigmemtest).

--

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



[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-12 Thread STINNER Victor

STINNER Victor added the comment:

I'm not interested to work on this issue right now. If anyone is
interested, please go ahead!

--

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



[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-12 Thread STINNER Victor

STINNER Victor added the comment:

Serhiy Storchaka added the comment:
 Let's try. As I understand, issue10044 was rejected because it complicates 
 the code too much. May be new attempt will be more successful.

I read that Mark rejected the issue #10044 because it introduces an
undefined behaviour.

--

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



[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 880e2cdac8b1 by Victor Stinner in branch 'default':
Issue #21932: Skip test_os.test_large_read() on 32-bit system
http://hg.python.org/cpython/rev/880e2cdac8b1

--

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



[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-12 Thread STINNER Victor

STINNER Victor added the comment:

 Re-add the @unittest.skipUnless(INT_MAX  PY_SSIZE_T_MAX, needs INT_MAX  
 PY_SSIZE_T_MAX) decorator (between cpython_only and bigmemtest).

Oh, I removed it because I thought that it was useless. I didn't understand the 
purpose of the test. I added a comment. Thanks for the report.

--

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



[issue21965] Add support for Memory BIO to _ssl

2014-07-12 Thread Geert Jansen

New submission from Geert Jansen:

The attached patch adds a _MemoryBIO type to _ssl, and a _wrap_bio() method to 
_SSLContext. The patch also includes tests.

For now I kept _wrap_bio() and _MemoryBIO semi-private. The reason is that it 
returns an _SSLSocket instead of an SSLSocket and this type has not been 
exposed before as part of the public API. Changing the result of _wrap_bio to 
return an SSLSocket is not appropriate IMHO because it should not inherit from 
socket.socket which would waste a file descriptor and None of the IO methods 
are relevant.

The patch works for me and gives no errors with --with-pydebug. I've also used 
it in an experimental branch of Gruvi and all the tests pass there too.

--
files: ssl-memory-bio.patch
keywords: patch
messages: 222833
nosy: geertj
priority: normal
severity: normal
status: open
title: Add support for Memory BIO to _ssl
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file35928/ssl-memory-bio.patch

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



[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2014-07-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yes, this is very similar to issue13153. Both these issues can have same 
solution or can have different solutions. This issue relates to more realistic 
situation and therefore is more important.

Here is simple and almost working solution for this issue. Unfortunately it 
works incorrectly when astral characters are encountered in raw string 
literals. More mature solution should parse sources and convert raw string 
literals containing astral characters to non-raw string literals. But this will 
not work with invalid Python files and non-Python files.

I afraid this issue has not perfect solution. The question is which imperfect 
solution and compromise we will decided enough acceptable.

--
assignee:  - serhiy.storchaka
components: +Tkinter, Unicode
keywords: +patch
nosy: +haypo
versions: +Python 2.7, Python 3.5 -Python 3.3
Added file: http://bugs.python.org/file35929/idle_fix_non_bmp.patch

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



[issue21961] Add What's New for Idle.

2014-07-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Isn't IDLE-specific What's New file was merged in general What's New file few 
years ago?

--
nosy: +serhiy.storchaka

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



[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for fixing os.read().

--

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



[issue21951] tcl test change crashes AIX

2014-07-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
priority: normal - high

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



[issue21951] tcl test change crashes AIX

2014-07-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Is it crashes when comment out check((), '')? Is it crashes when comment out 
two previous checks (for inf and -inf)?

--

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



[issue16494] Add a method on importlib.SourceLoader for creating bytecode file format/container

2014-07-12 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee:  - brett.cannon
versions: +Python 3.5 -Python 3.4

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



[issue15600] expose the finder details used by the FileFinder path hook

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

@Eric do you wish to take this any further?  I'm only asking as Brett's 
questions in msg185283 are currently unanswered.

--
nosy: +BreamoreBoy
status: pending - open
versions: +Python 3.5 -Python 3.4

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



[issue7979] connect_ex returns 103 often

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

As the resolution is already set to out of date I believe this can be closed.

--
nosy: +BreamoreBoy
status: pending - open
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

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



[issue19919] SSL: test_connect_ex_error fails with EWOULDBLOCK

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

Accidentally set to pending?

--
nosy: +BreamoreBoy
status: pending - open

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



[issue19954] test_tk floating point exception on my gentoo box with tk 8.6.1

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

I think this was meant to be closed rather than moved to pending see msg210788.

--
nosy: +BreamoreBoy
status: pending - open

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



[issue20026] sqlite: handle correctly invalid isolation_level

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

Accidentally set to pending?

--
nosy: +BreamoreBoy
status: pending - open

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



[issue18228] AIX locale parsing failure

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

Presumably this can be closed as fixed.

--
nosy: +BreamoreBoy
status: pending - open

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



[issue2008] cookielib lacks FileCookieJar class for Safari

2014-07-12 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy:  -berker.peksag

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



[issue9325] Add an option to pdb/trace/profile to run library module as a script

2014-07-12 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy:  -berker.peksag

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



[issue19076] Pdb.do_break calls error with obsolete file kwarg

2014-07-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset afa9c0e24a71 by Berker Peksag in branch '3.4':
Issue #19076: Don't pass the redundant 'file' argument to self.error().
http://hg.python.org/cpython/rev/afa9c0e24a71

New changeset d891ad8aeb80 by Berker Peksag in branch 'default':
Issue #19076: Merge with 3.4.
http://hg.python.org/cpython/rev/d891ad8aeb80

--
nosy: +python-dev

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



[issue19076] Pdb.do_break calls error with obsolete file kwarg

2014-07-12 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the report, Michael.

--
assignee:  - berker.peksag
components:  -Extension Modules
nosy: +r.david.murray
resolution:  - fixed
stage: needs patch - resolved
status: open - closed
type:  - behavior
versions: +Python 3.5 -Python 3.3

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



[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-12 Thread STINNER Victor

STINNER Victor added the comment:

 Serhiy Storchaka added the comment:

 Thank you for fixing os.read().


You're welcome, thanks for your help with the test. I hope that it would
help you to implement FileIO in Python.

FYI I saw EINVAL errors on test_large_read() on some buildbots, Mac OS X
and FreeBSD if I remember correctly, when I forgot the bigmem decorator.
And FreeBSD kills the process if there is not enough memory.

--

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



[issue21914] Create unit tests for Turtle guionly

2014-07-12 Thread Lita Cho

Lita Cho added the comment:

Make some changes to patch.

--

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



[issue20026] sqlite: handle correctly invalid isolation_level

2014-07-12 Thread STINNER Victor

STINNER Victor added the comment:

The patch has been commited, the issue can be closed. Yes pending was a
mistake.

--

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



[issue21914] Create unit tests for Turtle guionly

2014-07-12 Thread Lita Cho

Lita Cho added the comment:

Trying to attach a file again. I seem to be having trouble attaching it.

--

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



[issue21914] Create unit tests for Turtle guionly

2014-07-12 Thread Lita Cho

Changes by Lita Cho lita@gmail.com:


Added file: http://bugs.python.org/file35930/test_turtle_guionly_v2.patch

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



[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Alexander Belopolsky

New submission from Alexander Belopolsky:

When invoked with -q option, python3 prints no banner:
$ python3 -q


However, code.InteractiveConsole does not implement this feature:
$ python3 -mcode -q
Python 3.4.1 (default, May 19 2014, 13:10:29)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type help, copyright, credits or license for more information.
(InteractiveConsole)


--
keywords: easy
messages: 222850
nosy: belopolsky
priority: normal
severity: normal
status: open
title: InteractiveConsole does not support -q option
type: enhancement

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



[issue21922] PyLong: use GMP

2014-07-12 Thread Case Van Horsen

Case Van Horsen added the comment:

Disclaimer: as Mark alluded to, I maintain gmpy2.

Some comments on MPIR/GMP:

For all practical purposes, building GMP on Windows requires some version of 
the mingw compiler toolchain. None of the performance gains of custom assembly 
code is available if GMP is build with the VS compiler. When compiled with 
mingw, GMP supports CPU detection to automatically use code optimized for the 
specific instruction set. This level of optimization may not be needed for 
Python, though.

The MPIR fork of GMP can be built with VS. Assembly code is supported via the 
YASM assembler plugin. Only a single instruction set is supported by the 
lib/dll.

gmpy2 currently uses MPIR. I've had no issues with its stability.

The mpz type has a maximum precision. IIRC, the maximum length is 2^31 bits on 
a 32-bit platform and 2^37 on a 64-bit platform. The mpn interface may or may 
not have the same restrictions. This might impact code that runs correctly, but 
slowly, with Python's normal PyLong implementation.

GMP does not handle out-of-memory situations gracefully. When GMP encounters a 
memory allocation failure (exceeding the limits above or when running our of 
scratch space), it will just abort. It is easy in gmpy2 to trigger an abort 
that will crash the Python interpreter.

My main concern is tightly linking the Python interpreter to a specific version 
of GMP (i.e. whatever version is used for the Windows builds or the version 
provided by the distribution). As long as gmpy2 can continue to use another 
version of GMP, it shouldn't matter to me.

GMP and MPIR are both licensed under LGPL v3+ (not v2+). I'll reserve any 
further licensing discussions for python-dev. 

I'll try to test the patch this weekend and that should answer some of my 
questions.

--

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



[issue21967] Interpreter crash upon accessing frame.f_restricted of a frame from a dead thread

2014-07-12 Thread Anselm Kruis

New submission from Anselm Kruis:

If you store a reference to a frame from a dead thread and then access 
frame.f_restricted python eventually crashed.

I didn't investigate this bug in depth. Here is my preliminary explanation.

The access of frame.f_restricted causes a call of PyFrame_IsRestricted(f). 

PyFrame_IsRestricted is a macro and expands to 
((f)-f_builtins != (f)-f_tstate-interp-builtins) 

Now, if the thread that created f is already dead, the f_tstate points to an 
invalid structure. Depending on the content of the memory the access of 
f_tstate-interp causes an access violation. I use a Win32 debug build to 
reliable reproduce the issue.

--
components: Interpreter Core
files: crash_on_f_restricted.py
messages: 222852
nosy: anselm.kruis
priority: normal
severity: normal
status: open
title: Interpreter crash upon accessing frame.f_restricted of a frame from a 
dead thread
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file35931/crash_on_f_restricted.py

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



[issue21931] Nonsense errors reported by msilib.FCICreate for bad argument

2014-07-12 Thread Ezio Melotti

Ezio Melotti added the comment:

Do you want to propose a patch?

--
components: +Windows
nosy: +ezio.melotti, loewis, steve.dower, tim.golden, zach.ware
stage:  - needs patch

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



[issue15414] os.path.join behavior on Windows (ntpath.join) is unexpected and not well documented

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

ntpath.join() was fixed in issue19456 so I think all we need here is a commit 
review of the attached documentation patch.

--
nosy: +BreamoreBoy

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



[issue21965] Add support for Memory BIO to _ssl

2014-07-12 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou

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



[issue1669539] Improve Windows os.path.join (ntpath.join) smart joining

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

I've asked for a commit review on issue 15414 so can we close this?

--
nosy: +BreamoreBoy
status: pending - open

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



[issue15414] os.path.join behavior on Windows (ntpath.join) is unexpected and not well documented

2014-07-12 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue1669539] Improve Windows os.path.join (ntpath.join) smart joining

2014-07-12 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue15849] PEP 3121, 384 Refactoring applied to xx module

2014-07-12 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

I added documentation to the components list because this in the main purpose 
of this module - to serve as a template for extension module writers.

--
assignee:  - docs@python
components: +Documentation
nosy: +docs@python

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



[issue15849] PEP 3121, 384 Refactoring applied to xx module

2014-07-12 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
versions: +Python 3.5 -Python 3.4

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



[issue21928] Incorrect reference to partial() in functools.wraps documentation

2014-07-12 Thread Ezio Melotti

Ezio Melotti added the comment:

The docstring is correct, as this is how wraps is implemented (see 
Lib/functools.py#l73).
partial(update_wrapper, wrapped=wrapped, assigned=assigned, updated=updated) 
will return a partial version of update_wrapper() where only the wrapper 
argument is missing.  The missing argument is the function decorated with 
wraps().

For example, this code:

def my_decorator(f):
@wraps(f)
def wrapper(*args, **kwds):
return f(*args, **kwds)
return wrapper

is equivalent to:

def my_decorator(f):
def wrapper(*args, **kwds):
return f(*args, **kwds)
wrapper = wraps(f)(wrapper)
return wrapper

Here wraps(f) creates a partial version of update_wrapper, with only the 
wrapped argument (i.e. f) set.  When the partial object returned by wrap(f) 
gets called, the missing wrapper argument is received, thus making 
wraps(f)(wrapper) equivalent to:

def my_decorator(f):
def wrapper(*args, **kwds):
return f(*args, **kwds)
wrapper = update_wrapper(wrapper, f)
return wrapper


That said, I agree that the sentence you quoted is not too clear/intuitive, but 
the following example is quite clear, so I'm not sure it's worth to 
removing/rephrasing the first part.

Maybe it could say something like This is a convenience function for invoking 
update_wrapper() (by using partial(update_wrapper, wrapped=wrapped, 
assigned=assigned, updated=updated)) as a function decorator when defining a 
wrapper function. instead?

--
nosy: +ezio.melotti, r.david.murray, rhettinger, terry.reedy
status: open - pending
type:  - enhancement
versions: +Python 3.5

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



[issue21934] OpenBSD has no /dev/full device

2014-07-12 Thread Ezio Melotti

Ezio Melotti added the comment:

If it's not needed in other places, I think the proposed patch might be OK 
(assuming it works fine on other platforms).

--
nosy: +ezio.melotti
stage:  - patch review
versions: +Python 3.4, Python 3.5

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



[issue21941] Clean up turtle TPen class

2014-07-12 Thread Ezio Melotti

Ezio Melotti added the comment:

While TPen doesn't seem to be documented, it's not prefixed by a '_', so there 
might people using it and relying on these methods.

--
nosy: +ezio.melotti

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



[issue21946] 'python -u' yields trailing carriage return '\r' (Python2 for Windows)

2014-07-12 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +haypo

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



[issue15849] PEP 3121, 384 Refactoring applied to xx module

2014-07-12 Thread Stefan Krah

Stefan Krah added the comment:

I think we should perhaps leave the xxmodule as an example for
static types and create another pep-384 version that mentions
*potential* performance traps.

Of course many modules won't suffer from this, but first-time
extension writers tend to paste from the examples and should
know the alternatives if they happen to write a performance
sensitive application.

--
nosy: +skrah

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



[issue15849] PEP 3121, 384 Refactoring applied to xx module

2014-07-12 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

 create another pep-384 version

+1 - and with a more descriptive name than xxmodule.c

Suggestions:

* pep384module.c
* pep384demo.c
* pep384.c
* abidemo.c

--

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



[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky

Anton Barkovsky added the comment:

Here's a patch.

--
keywords: +patch
nosy: +anton.barkovsky
Added file: http://bugs.python.org/file35932/code.patch

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



[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

That was quick! (Well - I knew it would not be hard.)

I have two questions:

1. How should python3 -q -mcode behave?
2. If we add this patch, should we also attempt to emulate other command line 
options (-V, -h, etc.)?

--
assignee:  - belopolsky
nosy: +benjamin.peterson
stage:  - commit review
versions: +Python 3.5

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



[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
components: +Library (Lib)

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



[issue14050] Tutorial, list.sort() and items comparability

2014-07-12 Thread R. David Murray

R. David Murray added the comment:

Unless I'm misremembering, it is exactly __lt__ (or __gt__, if __lt__ returns 
NotImplemented) that sorting depends on.  Since I'm sure there is code out 
there that depends on this fact, I wonder if it should be part of the language 
definition.

Also, the comparison documentation 
(https://docs.python.org/3/reference/expressions.html#comparisons) speaks about 
total ordering as being the requirement, which has a specific mathematical 
meaning (which sets, for example, do not satisfy, even though they have a 
__lt__ method).  Whether or not the distinction is worth explaining in the 
tutorial is a open question.

--

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



[issue7979] connect_ex returns 103 often

2014-07-12 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
stage: test needed - resolved
status: open - closed

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



[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread R. David Murray

R. David Murray added the comment:

Whether or not other options are emulated, unimplemented ones should probably 
be rejected.

--
nosy: +r.david.murray

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



[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky

Anton Barkovsky added the comment:

 1. How should python3 -q -mcode behave?

I've only now found out about sys.flags. I think we should check for -q both 
before -m and after, because why not?

 2. If we add this patch, should we also attempt to emulate other command line 
 options (-V, -h, etc.)?

As I see it, the module is only concerned with REPL functionality, making these 
options a bit out of scope.

--

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



[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

In order to implement reasonable rejection behavior, we probably need to add 
some support for -h.

$ python3 -z
Unknown option: -z
usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.

I don't think we should condition acceptance of this patch on extra features.

AFAICT, the main use of the code module is in embedded situations and the if 
__name__ == __main__ behavior is mostly there for demonstration purposes.

On the other hand, something like

$ python3 -mcode -z
Unknown option: -z
usage: python3 -mcode [-q]

is not hard to implement.

--

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



[issue7976] warnings should provide a public API for accessing its option parsing code

2014-07-12 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +berker.peksag
versions: +Python 3.5 -Python 3.4

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



[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky

Anton Barkovsky added the comment:

Here's a patch that checks both sys.flags and sys.argv and uses argparse.

--
Added file: http://bugs.python.org/file35933/code_flags_argparse.patch

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



[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

 I think we should check for -q both before -m and after, because why not?

If we check for sys.flags.quiet, wouldn't it be surprising to have

$ python3 -mcode -q
 import sys; sys.flags.quiet
0

--

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



[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky

Anton Barkovsky added the comment:

That's not a very likely scenario and I think the distinction between arguments 
that are passed to the script and interpreter flags is fairly obvious.

--

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



[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

A nitpick: banner=banner in 

+   interact(banner=banner)

is redundant.

+   interact(banner)

would work and is just as clear.

--

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



[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky

Anton Barkovsky added the comment:

Yeah, my love for keyword arguments is a bit too big sometimes.

--
Added file: http://bugs.python.org/file35934/code_flags_argparse_v2.patch

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



[issue21934] OpenBSD has no /dev/full device

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

The patch is against test_file2k.py which I can't find in my default cpython 
setup.  If this was removed from (say) Python 3.0 how do I check for that?

--
nosy: +BreamoreBoy

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



[issue6895] locale._parse_localename fails when localename does not contain encoding information

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

I agree with the sentiment expressed in msg218513 and would close this as out 
of date.

--
nosy: +BreamoreBoy
status: pending - open

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



[issue21934] OpenBSD has no /dev/full device

2014-07-12 Thread Ezio Melotti

Ezio Melotti added the comment:

I tried to grep on 3.x for this test but it looks like it's been removed there, 
so this issue only affects 2.7.

--
versions:  -Python 3.4, Python 3.5

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



[issue21961] Add What's New for Idle.

2014-07-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The Python x.y docs describe the Python x.y language and stdlib, minus Idle 
(and turtledemo). The Python x.(y+1) What's New describes the delta between 
Python x.y and x.(y+1) in a user friendly and relevant way.

The Idle model of What's New type changes in every release does not fit the 
general model. For one thing, instead of all new non-bugfix changes appearing 
in .0 releases, there will be very few if any really new changes in x.(y+1).0. 
Almost all changes will have already appeared in some x.y.(z0) release.

Whatever is supposed to be the situation with Idle news is not working right 
and would not be sufficient even it did.

What's New in 2.7 has this (and only this) about Idle:
---
PEP 434: IDLE Enhancement Exception for All Branches

PEP 434 describes a general exemption for changes made to the IDLE ...

For details of any IDLE changes, refer to the NEWS file for the specific 
release.
--
As near as I can tell, the general NEWS file is not easily accessible. So I 
think that should say 'Idle NEWS file , accessible through Help / About 
Idle'.

However, the 2.7 Idle news.txt file has not been updated since 2.7.5. Last year 
I suggested that Idle NEWS entries should begin in the idlelib file and be 
transferred to Misc/NEWS upon release. This was vetoed, and it was claimed that 
the transfer should and would happen the other way. It is not.

What's New 3.4 has only this about Idle: Running IDLE with the -n flag (no 
subprocess) is deprecated. However, the feature will not be removed until issue 
18823 is resolved.  For 3.4.1, nothing was added to Idle NEWS. Nothing was 
added after 3.3.0 either. The update on release is not happening.

Even if Idle news.txt were properly updated, it would not serve the purposes 
served by What's New and even the html changelog version of Misc/NEWS. The 
entries are disorganized, unfiltered, duplicated, tied to specific patches 
rather than user topics, begin with *unlinked* issue numbers, and say too 
little for the user.  

Unfiltered: most of the recent Idle news entries are about unittest and human 
test additions. Here is what I might put in a What's New document to cover them 
all.
---
Idle tests:

An automated unittest suite was started in May 2013. Users can run it with 
python -m test -ugui test_idle. Adding -v will display the test classes and 
methods.

A human-operated test suite was started in May 2014. Uses can run it with 
python -m idlelib.test_idle.htest. Report problems to the idle-dev mailing 
list.
---
There are other items that are also not relevant to normal users.

Duplication: if 3.4 news.txt were properly updated release by release, then the 
items listed for 3.5.0 would be the cumulative list added for 3.4.1 through 
3.4.final, plus any 3.5-only user-relevant items that get added (there are none 
now).

This issue is about adding something that does not exist: an Idle specific file 
accessible from the idle help menu that it updated as needed with the 
occasional non-obvious user-relevant changes, especially those that users 
*need* to read.  An example of the latter is moving the the setting for the 
formatparagraph extension from config-main to confix-extensions (#20577).

--

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



[issue5248] Adding T_SIZET to structmember.h

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

msg81942 states structmember.h lacks a 'T_SIZET' define in order to properly 
support struct fields of type 'size_t'  within PyMemberDef.  As we have 
managed without this feature for the last five years do we really need it now?  
What do we gain by implementing this?

--
nosy: +BreamoreBoy

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



[issue21964] inconsistency in list-generator comprehension with yield(-from)

2014-07-12 Thread Ezio Melotti

Ezio Melotti added the comment:

There seem to be two issues here:

 list comprehension with yield(-from) would return a generator.

This is somewhat surprising, and I'm not sure it's expected/documented.
The example you provided seems to behave reasonably, so I don't think we should 
change the behavior (unless there is some actual bug in similar example).  If 
anything, we could document this, but I'm not sure if it's worth doing it and 
where could be added.

 generator comprehension would yield some None in the middle
 of the expected values.

This also seems expected, and the behavior is consistent with the equivalent 
generator function.

--
nosy: +ezio.melotti, gcewing, ncoghlan
versions: +Python 3.4

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



[issue21968] 'abort' object is not callable

2014-07-12 Thread Apple Grew

New submission from Apple Grew:

I am sometimes getting the following error from imaplib.

Traceback (most recent call last):
  File client.py, line 105, in get_new_mail_uids
result, data = retryableCall(lambda : mail.uid('search', None, UNSEEN), 
retries, delay) # search and return uids instead
  File client.py, line 25, in retryableCall
return f()
  File client.py, line 105, in 
result, data = retryableCall(lambda : mail.uid('search', None, UNSEEN), 
retries, delay) # search and return uids instead
  File /usr/lib/python2.6/imaplib.py, line 753, in uid
typ, dat = self._simple_command(name, command, *args)
  File /usr/lib/python2.6/imaplib.py, line 1060, in _simple_command
return self._command_complete(name, self._command(name, *args))
  File /usr/lib/python2.6/imaplib.py, line 893, in _command_complete
self._check_bye()
  File /usr/lib/python2.6/imaplib.py, line 808, in _check_bye
raise self.abort(bye[-1])
TypeError: 'abort' object is not callable

--
components: Library (Lib)
messages: 222879
nosy: Apple Grew
priority: normal
severity: normal
status: open
title: 'abort' object is not callable
type: crash
versions: Python 2.7

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



[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7f8843ec34ee by Alexander Belopolsky in branch 'default':
Issue #21966: Respect -q command-line option when code module is ran.
http://hg.python.org/cpython/rev/7f8843ec34ee

--
nosy: +python-dev

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



[issue21968] 'abort' object is not callable

2014-07-12 Thread Ezio Melotti

Ezio Melotti added the comment:

Do you assign anything to self.abort in your code?
Without further information we can't determine if this is a bug with impalib, I 
checked the code and I don't see anything that might change self.abort.

--
nosy: +ezio.melotti
type: crash - behavior

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



[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Committed.  Thanks, Anton.

--
resolution:  - fixed
stage: commit review - resolved
status: open - closed

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



[issue21931] Nonsense errors reported by msilib.FCICreate for bad argument

2014-07-12 Thread Jeffrey Armstrong

Jeffrey Armstrong added the comment:

Attached a patch.  The dangers of using goto...

--
keywords: +patch
Added file: http://bugs.python.org/file35935/_msi.3.4.0.patch

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



[issue21968] 'abort' object is not callable

2014-07-12 Thread Apple Grew

Apple Grew added the comment:

That is the problem. I don't assign anything to that. I in fact grepped my
code for the word abort but could find none, except in the following code
block.

def retryableCall(f, retries, delay):
while True:
try:
return f()
except imaplib.IMAP4_SSL.abort, imaplib.IMAP4.abort:
if retries  0:
retries -= 1
try:
mail.shutdown()
except Exception, e:
if verbose:
print 'Error in shutting down mail.', e
print e

time.sleep(delay)
open_connection(non_retryable=True)
else:
raise
except imaplib.IMAP4_SSL.readonly, imaplib.IMAP4.readonly:
if retries  0:
retries -= 1
time.sleep(delay)
else:
raise

--

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



[issue21968] 'abort' object is not callable

2014-07-12 Thread Ezio Melotti

Ezio Melotti added the comment:

In imaplib, abort is either raised or caught (in addition to be the defined 
once), so the error doesn't seem to be there.
I suggest you to try and print self.abort (and possibly its repr()/id() or 
similar informations) and try to determine if/when it gets changed and then try 
to find out what changed it to what.

--

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



[issue21968] 'abort' object is not callable

2014-07-12 Thread Apple Grew

Apple Grew added the comment:

Yes, I actually doing - print '', self.abort, from _init_, and other methods 
I am invoking. However, that seems to print nothing! I don't know why. My codes 
which is using impalib is able to print stuffs.

--

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



[issue8972] subprocess.list2cmdline doesn't quote the character

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

I believe this is still valid in which case could we have the stage and 
resolution fields set appropriately please.  You might also like to take a look 
at issue 13238 which is referred to by issue 7839.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 2.6

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



[issue8972] subprocess.list2cmdline doesn't quote the character

2014-07-12 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue10837] Issue catching KeyboardInterrupt while reading stdin

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

I can confirm that this works fine with 3.4.1 and 3.5.0a0.  I don't run 2.7 any 
more so I don't know if this is fixed in later versions.

--
nosy: +BreamoreBoy
versions:  -Python 2.6, Python 3.1

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



[issue8075] Windows (Vista/7) install error when choosing to compile .py files

2014-07-12 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
nosy: +steve.dower, zach.ware
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 2.6

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



[issue16895] Batch file to mimic 'make' on Windows

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

Is this still relevant or has it been overtaken by other work from Zach or 
Steve?

--
nosy: +BreamoreBoy, steve.dower
versions: +Python 3.5 -Python 3.4

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



[issue8075] Windows (Vista/7) install error when choosing to compile .py files

2014-07-12 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue10837] Issue catching KeyboardInterrupt while reading stdin

2014-07-12 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue16895] Batch file to mimic 'make' on Windows

2014-07-12 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue16516] argparse types (and actions) must be hashable

2014-07-12 Thread paul j3

paul j3 added the comment:

This is a straight forward patch, modifying '_registry_get' to return 'default' 
if it gets this 'TypeError'.  'test_argparse.py' has a testcase based on 
jnothman's example.  Temporarily it includes a skipped test that would pass the 
original code.

The alternative would be to add a note to the documentation to the effect that 
the 'type' must also be hashable.  But for an edge condition like this, that 
may be more confusing than enlightening.

While 'dict(one=1, two=20).get' now works as a 'type' callable, it is not 
ideal.  If there is no match it returns None.  The alternative '.__getitem__' 
raises a KeyError.  But '_get_values' handles TypeError and ValueErrors, the 
kinds returned by 'int' and 'float'.  It also handles an ArgumentTypeError, 
giving a custom type more control over the error message.  Is it worth noting 
something about the type errors in the documentation?

I've seen users make a different error with the type parameter - 
'type=boolean', thinking this means the input should be converted to boolean.  
They are thinking of 'type' as a datatype, rather than a function that converts 
a string into something else.  I don't know of a solution other than explaining 
that 'boolean()' does not act like 'int()'.

This patch also handles the 'action' case.  However I can't think of a way 
write a Action subclass that would be unhashable.  It would have to inherit 
from both Action and dict.

--
keywords: +patch
Added file: http://bugs.python.org/file35936/patch.diff

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



[issue17023] Subprocess does not find executable on Windows if it is PATH with quotes

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

@Pekka sorry about the delay in getting back to you.

I can confirm that this is still in issue in 3.4.1 and 3.5.0a0.

--
components: +Library (Lib)
nosy: +BreamoreBoy
type:  - behavior
versions: +Python 2.7, Python 3.4, Python 3.5

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



[issue18016] subprocess should open stdin in mode w+b on windows

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

@Jason I'm very sorry about the delay in getting back to you.

Can our Windows gurus shed any light on this one?

--
nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware
type:  - behavior
versions: +Python 3.4, Python 3.5

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



[issue18544] subprocess.Popen support for redirection of arbitrary file descriptors

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

@Robert can we have a response to Victor's question please.

--
nosy: +BreamoreBoy
versions: +Python 3.5

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



[issue10482] subprocess and deadlock avoidance

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

@Glenn can you provide a formal patch so we can take this forward?

--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.4

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



[issue21961] Add What's New for Idle.

2014-07-12 Thread Ned Deily

Ned Deily added the comment:

The Python x.y docs describe the Python x.y language and stdlib, minus Idle 
(and turtledemo). The Python x.(y+1) What's New describes the delta between 
Python x.y and x.(y+1) in a user friendly and relevant way.

I don't understand minus IDLE (and turtledemo).  They look documented to me:
 
https://docs.python.org/3.4/library/idle.html
https://docs.python.org/3.4/library/turtle.html#demo-scripts
https://docs.python.org/2.7/library/idle.html
https://docs.python.org/2.7/library/turtle.html#demo-scripts

As near as I can tell, the general NEWS file is not easily accessible.

The URL for the NEWS file for each release is included as the Release Notes 
link for each release on https://www.python.org/downloads/.  For Py3 releases 
since Python 3.3, a formatted HTML version is available, at urls like:

https://docs.python.org/3.4/whatsnew/changelog.html#python-3-4-1

For all current releases, include Py2.7.x, a raw text version is available at 
urls like:

http://hg.python.org/cpython/raw-file/v2.7.8/Misc/NEWS

I believe it has been suggested before that the NEWS button could open a 
browser window with the appropriate release-specific URL from above rather than 
opening a Tk window with news.txt.

What's New 3.4 has only this about Idle: [...]

These sections are not immutable.  If the section for a previous release is 
incomplete, you can update it in the current branch(es).

Rather than duplicating information between IDLE-specific files and the normal 
Python What's New and NEWS documents, wouldn't it better to just get it done 
well all in one place?  This doesn't have to be difficult.

In any case, this seems to be pretty much a duplicate of Issue17506 and 
probably Issue21621.

--
nosy: +ned.deily

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



[issue20117] subprocess on Windows: wrong return code with shell=True

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

Can our Windows gurus advise on this please.

--
nosy: +BreamoreBoy

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



[issue21951] tcl test change crashes AIX

2014-07-12 Thread David Edelsohn

David Edelsohn added the comment:

If I comment out all three tests, it runs.

--- a/Lib/test/test_tcl.py  Thu Jul 10 01:17:11 2014 -0400
+++ b/Lib/test/test_tcl.py  Sat Jul 12 16:59:33 2014 -0700
@@ -455,9 +455,9 @@
 check(float('inf'), 'Inf', eq=float_eq)
 check(-float('inf'), '-Inf', eq=float_eq)
 # XXX NaN representation can be not parsable by float()
-check((), '')
-check((1, (2,), (3, 4), '5 6', ()), '1 2 {3 4} {5 6} {}')
-check([1, [2,], [3, 4], '5 6', []], '1 2 {3 4} {5 6} {}')
+#check((), '')
+#check((1, (2,), (3, 4), '5 6', ()), '1 2 {3 4} {5 6} {}')
+#check([1, [2,], [3, 4], '5 6', []], '1 2 {3 4} {5 6} {}')
 
 def test_splitlist(self):
 splitlist = self.interp.tk.splitlist

--

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



[issue20117] subprocess on Windows: wrong return code with shell=True

2014-07-12 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue21964] inconsistency in list-generator comprehension with yield(-from)

2014-07-12 Thread Nick Coghlan

Nick Coghlan added the comment:

It's a side effect of the hidden closure that provides the new scope for the 
iteration variable - that's an ordinary function object, so using yield or 
yield from turns it into a generator expression instead. Generator expressions 
are already generators, so using yield or yield from just adds more yield 
points beyond the implied ones.

I've never figured out a good way to document it - it's a natural consequence 
of the comprehension's closure. An explicit mention in the reference docs for 
comprehensions may be worth adding.

--

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



[issue21969] WindowsPath constructor does not check for invalid characters

2014-07-12 Thread Antony Lee

New submission from Antony Lee:

PureWindowsPath(foo*) returns a path object, even though it is an invalid one 
(e.g., open(foo*) on Windows throws an OSError for invalid argument rather 
than a FileNotFoundError).  Given the amount of checking that is done in (e.g.) 
with_name and with_suffix, it seems reasonable to throw an exception in this 
case too.

--
components: Library (Lib)
messages: 222899
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title: WindowsPath constructor does not check for invalid characters
versions: Python 3.4, Python 3.5

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



[issue6631] Disallow relative files paths in urllib*.open()

2014-07-12 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
nosy: +vadmium

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



[issue21789] Broken link to PEP 263 in Python 2.7 error message

2014-07-12 Thread Martijn Pieters

Martijn Pieters added the comment:

The *redirect* should be corrected here too!

http://www.python.org/peps/pep-0263.html is still going to be in use for some 
time to come, a simple redirect *on Python.org* to the correct location would 
be helpful.

--
nosy: +mjpieters

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



[issue21970] Broken code for handling file://host in urllib.request.FileHandler.file_open

2014-07-12 Thread Martin Panter

New submission from Martin Panter:

This isn’t a particularly important problem for me but when reading the code I 
noticed some bit rot in this function, where a host name in a “file:” URL would 
be handled differently than intended.

* The url[:2] == '//' check is probably wrong because it is comparing the URL’s 
path component (selector), not the prefix for a host name. Compare 
urlopen(file://host//) and urlopen(file://host/) error messages.

* The req.host is self.get_names() should probably use “in”, not “is”. The code 
author presumably expected urlopen(file://127.0.0.1//dev/null) to work.

* Also it seems odd that urlopen(file://remote/missing) immediately reports 
“No such file”, while urlopen(file://remote/) blocks for a host name lookup 
and then reports “not on local host”.

--
components: Library (Lib)
messages: 222901
nosy: vadmium
priority: normal
severity: normal
status: open
title: Broken code for handling file://host in 
urllib.request.FileHandler.file_open
versions: Python 3.4

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



[issue21789] Broken link to PEP 263 in Python 2.7 error message

2014-07-12 Thread Ned Deily

Ned Deily added the comment:

Martijn, please report problems with the python.org web site to its issue 
tracker: https://github.com/python/pythondotorg/issues.  Thanks!

--

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



  1   2   >