[issue22104] test_asyncio unstable in refleak mode

2014-07-30 Thread STINNER Victor

STINNER Victor added the comment:

It may be related to the issue #17911.

--

___
Python tracker 

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



[issue22085] Drop support of Tk 8.3

2014-07-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I'm even not sure that current code works with Tk 8.3. We have no buildbots 
with Tk 8.3 and compatibility with it was not tested for years.

Here is a patch which drops support of Tk 8.3.

--
stage:  -> patch review
title: Update deprecated Tcl commands in Tkinter -> Drop support of Tk 8.3
Added file: http://bugs.python.org/file36161/tkinter_drop_83.patch

___
Python tracker 

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



[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-07-30 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +loewis

___
Python tracker 

___
___
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-30 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
stage: test needed -> resolved
status: pending -> closed

___
Python tracker 

___
___
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-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7de64def6565 by Serhiy Storchaka in branch '2.7':
Issue #21951: Temporary skip crashing test_user_command on AIX.
http://hg.python.org/cpython/rev/7de64def6565

New changeset 31f4cb1fede9 by Serhiy Storchaka in branch '3.4':
Issue #21951: Temporary skip crashing test_user_command on AIX.
http://hg.python.org/cpython/rev/31f4cb1fede9

New changeset de32cd419174 by Serhiy Storchaka in branch 'default':
Issue #21951: Temporary skip crashing test_user_command on AIX.
http://hg.python.org/cpython/rev/de32cd419174

--
nosy: +python-dev

___
Python tracker 

___
___
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-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Link to log with a crash:

http://buildbot.python.org/all/builders/PPC64%20AIX%203.x/builds/2442/steps/test/logs/stdio

--
stage: patch review -> needs patch

___
Python tracker 

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



[issue22018] signal.set_wakeup_fd() should accept sockets on Windows

2014-07-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 963214896b22 by Victor Stinner in branch 'default':
Issue #22018: Fix test_signal: use assertEqual() not assertIs()
http://hg.python.org/cpython/rev/963214896b22

--

___
Python tracker 

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



[issue22104] test_asyncio unstable in refleak mode

2014-07-30 Thread STINNER Victor

Changes by STINNER Victor :


--
components: +asyncio

___
Python tracker 

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



[issue22104] test_asyncio unstable in refleak mode

2014-07-30 Thread STINNER Victor

STINNER Victor added the comment:

> It may be related to the issue #17911.

I checked: it is. The strange reference count can be seen with a single test. 
Example:

$ ./python -m test -R 3:3: -m test_default_exc_handler_coro test_asyncio 
[1/1] test_asyncio
beginning 6 repetitions
123456
..
test_asyncio leaked [53, 53, -106] references, sum=0
test_asyncio leaked [15, 15, -30] memory blocks, sum=0
1 test failed:
test_asyncio

This test uses a coroutine which raises an exception. The exception is stored 
in a Task object. But the exception contains also a traceback which indirectly 
creates a reference cycle. For example, the zero_error_coro() coroutine of the 
test uses the free variable "self".

It's very difficult to find all objects of a reference cycle. We can try to 
break some cycles, it's already done Task._step() which sets self to None, but 
it's a waste of time. IMO the correct fix is to not store frame objects in an 
exception: see the issue #17911.

--

___
Python tracker 

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



[issue22085] Drop support of Tk 8.3

2014-07-30 Thread Martin v . Löwis

Martin v. Löwis added the comment:

The patch looks fine, please apply.

--

___
Python tracker 

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



[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-07-30 Thread Martin v . Löwis

Martin v. Löwis added the comment:

The 3.4 patch looks fine, please apply.

I'm -1 on the 2.7 patch. I think it would be better to add a _tkinter helper 
function to create Tcl byte array objects. Alternatively, the "binary format" 
command might help. OTOH, I don't care about 2.7, so feel free to do whatever 
you consider appropriate.

--

___
Python tracker 

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



[issue2052] Allow changing difflib._file_template character encoding.

2014-07-30 Thread Masato HASHIMOTO

Changes by Masato HASHIMOTO :


--
nosy: +hashimo

___
Python tracker 

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



[issue22106] Python 2 docs 'control flow/pass' section contains bad example

2014-07-30 Thread Charles Newey

New submission from Charles Newey:

URL: https://docs.python.org/2/tutorial/controlflow.html#pass-statements

Quoted verbatim:
"""
The pass statement does nothing. It can be used when a statement is required 
syntactically but the program requires no action. For example:
>>>

>>> while True:
... pass  # Busy-wait for keyboard interrupt (Ctrl+C)
...

"""

While the example illustrates the point, it *may* give bad ideas to novice 
programmers reading it - "while True: pass" is an antipattern as it's very 
inefficient.

--
assignee: docs@python
components: Documentation
messages: 224296
nosy: Charles.Newey, docs@python
priority: normal
severity: normal
status: open
title: Python 2 docs 'control flow/pass' section contains bad example
type: enhancement
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



[issue22106] Python 2 docs 'control flow/pass' section contains bad example

2014-07-30 Thread Ezio Melotti

Ezio Melotti added the comment:

Do you have any suggestion?
The section already includes examples about empty classes and as placeholder 
inside functions, and the only other "realistic" situations I can think of is 
inside an except to ignore errors -- but that might be considered an 
anti-pattern too.
It could be used with "for" loops if you want to e.g. consume an iterator, or 
with the "with" statement if you want to create an empty file, but these cases 
are not very common.

--
nosy: +ezio.melotti

___
Python tracker 

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



[issue22106] Python 2 docs 'control flow/pass' section contains bad example

2014-07-30 Thread Charles Newey

Charles Newey added the comment:

Your point about using "pass" with the "with" statement sounds like a better 
example than using "pass" in a loop.

Perhaps even something like adding a note to the example to clarify it:
"""
# Don't use this in Python code - it is for illustrative purposes only
while True:
pass  # Busy-wait for keyboard interrupt (Ctrl+C)
"""

On the other hand -- one could argue that the documentation should not show 
"incorrect" uses of Python syntax at all.

--

___
Python tracker 

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



[issue10572] Move test sub-packages to Lib/test

2014-07-30 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +berker.peksag
stage: needs patch -> patch review

___
Python tracker 

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



[issue10572] Move test sub-packages to Lib/test

2014-07-30 Thread Michael Foord

Michael Foord added the comment:

I still dislike moving tests around.

--

___
Python tracker 

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



[issue22106] Python 2 docs 'control flow/pass' section contains bad example

2014-07-30 Thread R. David Murray

R. David Murray added the comment:

How about something like:

   for x in my_generator():
   pass   # Exhaust co-routine generator to make sure all data is processed.

I have no idea if you'd ever actually do that in a well-structured co-routine 
context, though, not having written very much of that kind of code.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue20746] test_pdb fails in refleak mode

2014-07-30 Thread Xavier de Gaye

Xavier de Gaye added the comment:

This is because breakpoints number are class attributes. With the following 
change, the "./python -m test test_pdb test_pdb" is ok:

$ hg diff
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
--- a/Lib/test/test_pdb.py
+++ b/Lib/test/test_pdb.py
@@ -614,6 +614,8 @@
 ... test_function_2()
 ... end = 1
 
+>>> from bdb import Breakpoint; Breakpoint.next = 1
+
 >>> with PdbTestInput(['break test_function_2',
 ...'continue',
 ...'return',

Attached refleak_3.patch fixes this problem for 
test_next_until_return_at_return_event().

--
Added file: http://bugs.python.org/file36162/refleak_3.patch

___
Python tracker 

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



[issue20746] test_pdb fails in refleak mode

2014-07-30 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Sorry, I posted to the wrong issue, please ignore my previous message.

--

___
Python tracker 

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



[issue20766] reference leaks in pdb

2014-07-30 Thread Xavier de Gaye

Changes by Xavier de Gaye :


Added file: http://bugs.python.org/file36163/refleak_3.patch

___
Python tracker 

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



[issue20766] reference leaks in pdb

2014-07-30 Thread Xavier de Gaye

Xavier de Gaye added the comment:

This is because breakpoints number are class attributes. With the following 
change, the "./python -m test test_pdb test_pdb" is ok:

$ hg diff
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
--- a/Lib/test/test_pdb.py
+++ b/Lib/test/test_pdb.py
@@ -614,6 +614,8 @@
 ... test_function_2()
 ... end = 1
 
+>>> from bdb import Breakpoint; Breakpoint.next = 1
+
 >>> with PdbTestInput(['break test_function_2',
 ...'continue',
 ...'return',

Attached refleak_3.patch fixes this.

--

___
Python tracker 

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



[issue22107] tempfile module misinterprets access denied error on Windows

2014-07-30 Thread Roger Upole

New submission from Roger Upole:

_mkstemp_inner assumes that an access denied error means that it
has generated a filename that matches an existing foldername.
However, in the case of a folder for which you don't have permissions to
create a file, this means it will loop thru the maximum possible number of 
files.
This causes it to hang for several seconds and eventually return a bogus
FileExistsError.

Similar behaviour exists in 2.7.7, but it throws an IOError instead.

http://bugs.python.org/issue18849 seems to be where this was introduced.

--
components: Windows
messages: 224304
nosy: rupole
priority: normal
severity: normal
status: open
title: tempfile module misinterprets access denied error on Windows
versions: Python 2.7, Python 3.4

___
Python tracker 

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



[issue21591] "exec(a, b, c)" not the same as "exec a in b, c" in nested functions

2014-07-30 Thread Berker Peksag

Changes by Berker Peksag :


--
stage: patch review -> resolved

___
Python tracker 

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



[issue22104] test_asyncio unstable in refleak mode

2014-07-30 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Le 30/07/2014 06:08, STINNER Victor a écrit :
>
> This test uses a coroutine which raises an exception. The exception
> is
stored in a Task object. But the exception contains also a traceback
which indirectly creates a reference cycle.

regrtest calls gc.collect().

--

___
Python tracker 

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



[issue22106] Python 2 docs 'control flow/pass' section contains bad example

2014-07-30 Thread Charles Newey

Charles Newey added the comment:

@David I have no idea either (no having written much of that sort of code 
myself either), but that looks more sensible.

I'm just nitpicking really, anyway.

--

___
Python tracker 

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



[issue22106] Python 2 docs 'control flow/pass' section contains bad example

2014-07-30 Thread Ezio Melotti

Ezio Melotti added the comment:

Keep in mind that this is in one of the first sections of the tutorial, where 
try/except, with, and generators have not been introduced yet.
Maybe the comment could be changed to a simpler "loop forever (use ctrl+c to 
stop)" so that it doesn't suggest that this is the way to wait for keyboard 
interrupts and/or a note like "note that this will use 100% of the CPU" could 
be added as well.

--

___
Python tracker 

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-07-30 Thread Larry Hastings

Larry Hastings added the comment:

Here's a fresh diff.  I did some cleanup this time (Clinic now generates the 
#ifndef versions of the METHODDEF structures) and I believe solved everything 
MSVC complains about.

Zachary, can you try this one?

--
Added file: http://bugs.python.org/file36164/larry.clinicize.posixmodule.5.diff

___
Python tracker 

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



[issue20341] Argument Clinic: add "nullable ints"

2014-07-30 Thread Larry Hastings

Larry Hastings added the comment:

Here's a fresh patch.  After discussing with Martin at EuroPython, I moved the 
implementation into Python/getargs.c, and the prototypes into modsupport.h.  
I'm still using the example of "repeat.new" to show what it looks like and how 
it works.  However I don't plan on checking the changes to repeat.new in when I 
check in the patch--I'd want to discuss it with Raymond first.

--
nosy: +loewis

___
Python tracker 

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



[issue20341] Argument Clinic: add "nullable ints"

2014-07-30 Thread Larry Hastings

Larry Hastings added the comment:

Whoops, here's the patch.

--
Added file: http://bugs.python.org/file36165/larry.nullable.ints.4.txt

___
Python tracker 

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



[issue22104] test_asyncio unstable in refleak mode

2014-07-30 Thread Zachary Ware

Zachary Ware added the comment:

I checked on my theory, and removing the extra reference to 'tests' from the 
runtest_inner scope fixes it for me:

$ python -m test -R 3:3: test_asyncio
Running Debug|Win32 interpreter...
[1/1] test_asyncio
beginning 6 repetitions
123456
..
1 test OK.

Here's the patch.

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

___
Python tracker 

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



[issue17620] Python interactive console doesn't use sys.stdin for input

2014-07-30 Thread Guido van Rossum

Guido van Rossum added the comment:

Is this at all related to the use of GNU readline?

--
nosy: +gvanrossum

___
Python tracker 

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



[issue17620] Python interactive console doesn't use sys.stdin for input

2014-07-30 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Yes, it is. GNU readline will use a FILE*. Apparently, one can customize this 
behaviour, see http://cnswww.cns.cwru.edu/php/chet/readline/readline.html#SEC25

"""Variable: rl_getc_func_t * rl_getc_function
If non-zero, Readline will call indirectly through this pointer to get a 
character from the input stream. By default, it is set to rl_getc, the default 
Readline character input function (see section 2.4.8 Character Input). In 
general, an application that sets rl_getc_function should consider setting 
rl_input_available_hook as well. """

It is not obvious how that interacts with special keys, e.g. arrows.

--

___
Python tracker 

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



[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

@Christoph please raise a new issue regarding the problem you describe in 
msg219788.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-07-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9474f2971855 by Serhiy Storchaka in branch '3.4':
Issue #21580: Now Tkinter correctly handles bytes arguments passed to Tk.
http://hg.python.org/cpython/rev/9474f2971855

New changeset b9d249316f29 by Serhiy Storchaka in branch 'default':
Issue #21580: Now Tkinter correctly handles bytes arguments passed to Tk.
http://hg.python.org/cpython/rev/b9d249316f29

--
nosy: +python-dev

___
Python tracker 

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



[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

@Christoph sorry #21652 has already been raised to address the problem of mixed 
str and unicode objects.

--

___
Python tracker 

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



[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2014-07-30 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy:  -brian.curtin

___
Python tracker 

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



[issue10551] mimetypes read from the registry should not overwrite standard mime mappings

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

Ben you're correct.  The other issues have been addressed in #10162 and #9291 
so I believe this can be closed.  One 2.7 regression regarding mixed str and 
unicode objects is addressed in #21652.

--

___
Python tracker 

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



[issue16328] win_add2path.py sets wrong user path

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

Should we create the scripts dir during install?  Is it that big a deal?

--
nosy: +BreamoreBoy, steve.dower, zach.ware

___
Python tracker 

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



[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-07-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Martin for your reviews. Here is updated 2.7 patch which implements 
your suggestion.

The disadvantage of this patch in comparison with first version is that it will 
not work with statically compiled embedded Python, when only stdlib is updated. 
I once broke re in bugfix release in such manner (by moving one constant from 
Python sources to C sources). On other hand, it is very unlikely that anyone 
uses Tkinter in such circumstances, and in any case this part of code is broken 
for now, so patch should not introduce new regression.

--
Added file: http://bugs.python.org/file36167/tkinter_bytes-2.7_2.patch

___
Python tracker 

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



[issue2771] Test issue

2014-07-30 Thread Martin v . Löwis

Changes by Martin v. Löwis :


--
priority: normal -> 

___
Python tracker 

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



[issue2771] Test issue

2014-07-30 Thread Martin v . Löwis

Changes by Martin v. Löwis :


--
status: closed -> 

___
Python tracker 

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



[issue2771] Test issue

2014-07-30 Thread Martin v . Löwis

Changes by Martin v. Löwis :


--
status:  -> closed

___
Python tracker 

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-07-30 Thread Zachary Ware

Zachary Ware added the comment:

Close, but no cigar :).  Posted Rietveld comments to address the last two 
compile issues (one of which also appears to be a major bug, but only a warning 
at compile time).

Also, Victor has added os.get_blocking() and os.set_blocking(), which prevent 
your patch from applying cleanly (I tested against the parent of Victor's 
changeset).

After fixing the two issues I pointed out on Rietveld, I still get major 
failure on test:

==
ERROR: test_1565150 (__main__.StatAttributeTests)
--
Traceback (most recent call last):
  File "P:\ath\to\cpython\lib\test\test_os.py", line 214, in tearDown
os.rmdir(support.TESTFN)
OSError: [WinError 145] The directory is not empty: '@test_13492_tmp'

==
ERROR: test_1686475, test_file_attributes, test_large_time, 
test_stat_attributes, test_stat_attributes_bytes, test_stat_result_pickle, 
test_utime, test_utime_dir, test_utime_invalid_arguments, test_utime_ns, 
test_utime_subsecond, test_exist_ok_existing_directory, 
test_exist_ok_existing_regular_file, test_exist_ok_s_isgid_directory, 
test_makedir (All the same error)
--
Traceback (most recent call last):
  File "P:\ath\to\cpython\lib\test\test_os.py", line ###, in setUp
os.mkdir(support.TESTFN)
FileExistsError: [WinError 183] Cannot create a file when that file already 
exists: '@test_13492_tmp'

==
ERROR: test_urandom_fd_reopened (__main__.URandomTests)
--
Traceback (most recent call last):
  File "P:\ath\to\cpython\lib\test\test_os.py", line 1138, in 
test_urandom_fd_reopened
with open(support.TESTFN, 'wb') as f:
PermissionError: [Errno 13] Permission denied: '@test_13492_tmp'

==
FAIL: test_chdir (__main__.Win32ErrorTests)
--
Traceback (most recent call last):
  File "P:\ath\to\cpython\lib\test\test_os.py", line 1274, in test_chdir
self.assertRaises(OSError, os.chdir, support.TESTFN)
AssertionError: OSError not raised by chdir

--
Ran 164 tests in 5.122s

The problem appears to be in unlink or rmdir, but I can't see anything amiss in 
either one.  I'll keep looking, but you may have a better idea what's going 
wrong.

--

___
Python tracker 

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



[issue22085] Drop support of Tk 8.3

2014-07-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1aa6ac23340d by Serhiy Storchaka in branch 'default':
Issue #22085: Dropped support of Tk 8.3 in Tkinter.
http://hg.python.org/cpython/rev/1aa6ac23340d

--
nosy: +python-dev

___
Python tracker 

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



[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-07-30 Thread Martin v . Löwis

Martin v. Löwis added the comment:

The 2.7_2 patch looks good to me. I won't rule on the backwards compatibility 
implications, although I agree that this is unlikely to cause a regression (it 
would only if somebody updated the standard library only, *and* would use data= 
for PhotoImage). I'm unsure whether it was possible at all so far to use data= 
(with whatever argument); if you could have passed a non-buffer object 
successfully, this would break now.

--

___
Python tracker 

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



[issue22085] Drop support of Tk 8.3

2014-07-30 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue16383] Python 3.3 Permission Error with User Library on Windows

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

Works fine for me on Windows 8.1 64 bit using 3.4.1 and 3.5.0a0.  Can one on 
our Windows gurus confirm this please.

--
nosy: +BreamoreBoy, 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



[issue1776160] Buffer overflow when listing deeply nested directory

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

I suggest we close this as "won't fix" since I don't see how we can justify 
spending time working around a known limitation of Windows.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2014-07-30 Thread Mark Lawrence

Changes by Mark Lawrence :


--
components:  -Distutils2
nosy: +dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.2, Python 3.3

___
Python tracker 

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



[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

Could somebody respond to the originator please.

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

___
Python tracker 

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



[issue18885] handle EINTR in the stdlib

2014-07-30 Thread Piotr Dobrogost

Changes by Piotr Dobrogost :


--
nosy: +piotr.dobrogost

___
Python tracker 

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



[issue1776160] Buffer overflow when listing deeply nested directory

2014-07-30 Thread Martin v . Löwis

Changes by Martin v. Löwis :


--
nosy:  -loewis

___
Python tracker 

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



[issue22007] sys.stdout.write on Python 2.7 is not EINTR safe

2014-07-30 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

@hypo
Is there any reason you keep this PEP "secret" :) by not mentioning it on bug 
18885?

--
nosy: +piotr.dobrogost

___
Python tracker 

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



[issue22108] python c api wchar_t*/char* passing contradiction

2014-07-30 Thread Jonas Jelten

New submission from Jonas Jelten:

The documentation and the code example at
https://docs.python.org/3.5/extending/embedding.html#very-high-level-embedding

#include 

int
main(int argc, char *argv[])
{
  Py_SetProgramName(argv[0]);  /* optional but recommended */
  Py_Initialize();
  PyRun_SimpleString("from time import time,ctime\n"
 "print('Today is', ctime(time()))\n");
  Py_Finalize();
  return 0;
}

contradicts the actual implementation of the code:
http://hg.python.org/cpython/file/tip/Include/pythonrun.h#l25

which leads to compiler errors. To fix them, ugly wchar_t to char conversions 
are needed.

Also, I was hoping, Python 3.3 finally switched from wchar_t to char and UTF-8.
at least that's how I understood PEP 393 http://python.org/dev/peps/pep-0393/

see also:

http://stackoverflow.com/questions/21591908/python-3-3-c-string-handling-wchar-t-vs-char


=> Are the docs wrong (which i hope are not, the example is straightforward and 
simple-stupid with a char*),
or is cpython wrong?

--
components: Unicode
messages: 224327
nosy: ezio.melotti, haypo, thejj
priority: normal
severity: normal
status: open
title: python c api wchar_t*/char* passing contradiction
type: compile error
versions: Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

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



[issue6639] turtle: _tkinter.TclError: invalid command name ".10170160"

2014-07-30 Thread Lita Cho

Lita Cho added the comment:

I can make it worth such that it doesn't raise a Terminator error. This works 
great when working with Turtle on the command line. I basically check if the 
root exists for all Tk canvas calls. 

If it got destroyed, then it just returns. However, if you run the following 
recursive code, it will just keep popping up a window forever unless you Ctrl+C 
out of the program. So that is not going to work. I still believe raising an 
error is the proper approach.

--

___
Python tracker 

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



[issue22108] python c api wchar_t*/char* passing contradiction

2014-07-30 Thread Martin v . Löwis

Martin v. Löwis added the comment:

You were misinterpreting PEP 393 - it is only about the representation of 
string objects, and doesn't affect any pre-existing API. Changing 
Py_SetProgramName is not possible without breaking existing code, so it could 
only happen in Python 4. 

A proper solution might be adding Py_SetProgramNameUTF8, but it could trick 
people into believing that argv[0] actually is UTF-8 on their system, which it 
might not be. Providing Py_SetProgramNameASCII might be better, but it could 
fail if argv[0] contains non-ASCII characters. Yet another solution could be to 
expose _Py_char2wchar to the developer.

In any case: yes, the example is outdated, and only valid for Python 2.

--
nosy: +loewis

___
Python tracker 

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



[issue17620] Python interactive console doesn't use sys.stdin for input

2014-07-30 Thread Guido van Rossum

Guido van Rossum added the comment:

I propose not to mess with GNU readline.  But that doesn't mean we can't try to 
fix this issue by detecting that sys.stdin has changed and use it if it isn't 
referring to the original process stdin.  It will be tricky however to make 
sure nothing breaks.

(The passage quoted from the GNU readline docs seems to imply that it's in 
non-blocking mode, and that the FD is a raw tty device, probably with echo off. 
 It will give escape sequences for e.g. arrow keys.)

--

___
Python tracker 

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



[issue22109] Python failing in markupsafe module when running ansible

2014-07-30 Thread Cory Klein

New submission from Cory Klein:

After installing ansible and python using homebrew, if I run ansible it crashes 
after calling into python's markupsafe:

$ ansible
Traceback (most recent call last):
  File "/usr/local/Cellar/ansible/1.6.10/libexec/bin/ansible", line 5, in 

pkg_resources.run_script('ansible==1.6.10', 'ansible')
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py",
 line 492, in run_script
self.require(requires)[0].run_script(script_name, ns)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py",
 line 1350, in run_script
execfile(script_filename, namespace, namespace)
  File 
"/usr/local/Cellar/ansible/1.6.10/lib/python2.7/site-packages/ansible-1.6.10-py2.7.egg/EGG-INFO/scripts/ansible",
 line 25, in 
from ansible.runner import Runner
  File 
"/usr/local/Cellar/ansible/1.6.10/lib/python2.7/site-packages/ansible-1.6.10-py2.7.egg/ansible/runner/__init__.py",
 line 32, in 
import jinja2
  File 
"/usr/local/Cellar/ansible/1.6.10/libexec/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/__init__.py",
 line 33, in 
from jinja2.environment import Environment, Template
  File 
"/usr/local/Cellar/ansible/1.6.10/libexec/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py",
 line 13, in 
from jinja2 import nodes
  File 
"/usr/local/Cellar/ansible/1.6.10/libexec/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/nodes.py",
 line 18, in 
from jinja2.utils import Markup
  File 
"/usr/local/Cellar/ansible/1.6.10/libexec/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/utils.py",
 line 520, in 
from markupsafe import Markup, escape, soft_unicode
  File "/Library/Python/2.7/site-packages/markupsafe/__init__.py", line 14, in 

from markupsafe._compat import text_type, string_types, int_types, \
ImportError: No module named _compat

--
assignee: ronaldoussoren
components: Macintosh
messages: 224331
nosy: coryfklein, ronaldoussoren
priority: normal
severity: normal
status: open
title: Python failing in markupsafe module when running ansible
type: crash
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



[issue22109] Python failing in markupsafe module when running ansible

2014-07-30 Thread Cory Klein

Cory Klein added the comment:

Also to note: this is on OS X 10.10 Yosemite

--

___
Python tracker 

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



[issue4508] distutils compiler not handling spaces in path to output/src files

2014-07-30 Thread Mark Lawrence

Changes by Mark Lawrence :


--
components:  -Distutils2
nosy: +dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.2, Python 3.3

___
Python tracker 

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



[issue17620] Python interactive console doesn't use sys.stdin for input

2014-07-30 Thread Drekin

Drekin added the comment:

My naive picture of ideal situation looks like this: When the interactive loop 
wants input, it just calls sys.stdin.readline, which delegates to 
sys.stdin.buffer.raw.readinto or .read, these can use GNU readline if available 
to get the data. May I ask, what's wrong with my picture?

--

___
Python tracker 

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



[issue16907] Distutils fails to build extension in path with spaces

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

Of the two issues mentioned in msg179485 #4508 is still open but #13765 has 
been closed "not a bug".

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

___
Python tracker 

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



[issue22106] Python 2 docs 'control flow/pass' section contains bad example

2014-07-30 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Sorry Charles, this is a non-issue.  The section does a great job communicating 
what "pass" does.  It has been in the docs since 2007 and no harm has come of 
it.

--
nosy: +rhettinger
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue22106] Python 2 docs 'control flow/pass' section contains bad example

2014-07-30 Thread Ezio Melotti

Changes by Ezio Melotti :


--
stage:  -> resolved

___
Python tracker 

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



[issue22109] Python failing in markupsafe module when running ansible

2014-07-30 Thread R. David Murray

R. David Murray added the comment:

As is indicated by the fact that markupsafe is in the 'site-packages' 
directory, markupsafe is a 3rd party library and is not part of the python 
standard library.  Most likely the version of markupsafe you have does not 
match the one ansible is expecting, but if that isn't enough info to solve your 
problem you should reach out for support from the anisble community.

--
nosy: +r.david.murray
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue22109] Python failing in markupsafe module when running ansible

2014-07-30 Thread Cory Klein

Cory Klein added the comment:

I'll track things down in that direction. Thanks, David.

--

___
Python tracker 

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



[issue17620] Python interactive console doesn't use sys.stdin for input

2014-07-30 Thread Guido van Rossum

Guido van Rossum added the comment:

sys.stdin.readline() never delegates to GNU readline.  The REPL calls GNU 
readline directly.  There's clearly some condition that determines whether to 
call GNU readline or sys.stdin.readline, but it may not correspond to what you 
want (e.g. it may just test whether FD 0 is a tty).  Can you find in the 
CPython source code where this determination is made?

--

___
Python tracker 

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



[issue2771] Test issue

2014-07-30 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
status: closed -> 

___
Python tracker 

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



[issue2771] Test issue

2014-07-30 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
priority:  -> low
resolution: not a bug -> 
status:  -> open

___
Python tracker 

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



[issue2771] Test issue

2014-07-30 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
priority: low -> 

___
Python tracker 

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



[issue18885] handle EINTR in the stdlib

2014-07-30 Thread STINNER Victor

STINNER Victor added the comment:

FYI Charles-François and me are working on a PEP to address this issue: the PEP 
475. The PEP is not ready yet for a review.

--

___
Python tracker 

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



[issue22108] python c api wchar_t*/char* passing contradiction

2014-07-30 Thread STINNER Victor

STINNER Victor added the comment:

This issue is why I created the issue #18395.

--

___
Python tracker 

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



[issue16383] Python 3.3 Permission Error with User Library on Windows

2014-07-30 Thread Zachary Ware

Zachary Ware added the comment:

Jim, is there any way you could cut down your example to something small and 
self-contained?  It may be that the process of doing that leads to a problem in 
your code.  As it is, I cannot reproduce your error, or pick out what might be 
causing it.  From a brief glance, I have a few suggestions, though:

- Don't use sys.path[0] to determine where the file lives, it's not a reliable 
indicator.  Try using 'os.path.dirname(__file__)' instead (or 
'os.path.dirname(os.path.abspath(__file__))' if __file__ is relative, which 
should only be the case when passing the filename directly to Python as a 
relative path).
- Use 'os.path.join()' instead of adding strings to make paths.  Shouldn't 
matter, but makes things cleaner.
- (Unrelated, but) it's really not very nice to change the display color 
without changing it back.  On Windows, 'color' affects the entire window, not 
just your output, and it lasts past the death of your process.

Until you can provide a short (200 lines or less across 5 files or less) 
reproducer, there's not much we can do, so I'm closing the issue.  If you can 
provide one, please do so and I'll happily take a look!

--
resolution:  -> works for me
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue15082] [httplib] httplib.BadStatusLine on any HTTPS connection in certain unknown cases.

2014-07-30 Thread Demian Brecht

Changes by Demian Brecht :


--
nosy: +demian.brecht

___
Python tracker 

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



[issue13719] bdist_msi upload fails

2014-07-30 Thread Mark Lawrence

Changes by Mark Lawrence :


--
components:  -Distutils2
nosy: +dstufft
versions: +Python 3.5 -3rd party, Python 3.2, Python 3.3

___
Python tracker 

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



[issue13719] bdist_msi upload fails

2014-07-30 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy:  -brian.curtin

___
Python tracker 

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



[issue10572] Move test sub-packages to Lib/test

2014-07-30 Thread Zachary Ware

Zachary Ware added the comment:

I'm in favor of a move, especially for ctypes, sqlite3, unittest, and tkinter, 
and don't really see a reason not to move distutils and lib2to3.  The IDLE 
tests make a certain amount of sense to stay in the idlelib folder, just 
because IDLE is a special case.  I'm pretty sure that covers all of the 
packages that still have tests outside of the test package.

I think the movements should only happen on 3.5; merging forward isn't nearly 
as much of an issue here in the days of hg, and backports to 2.7 should be 
becoming fewer and farther between.

I'd be happy to take care of making the moves, if we can decide that it's worth 
doing (or if it's left up to me :).

--

___
Python tracker 

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



[issue17371] Mismatch between Python 3.3 build environment and distutils compiler support

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

According to http://matthew-brett.github.io/pydagogue/python_msvc.html Python 
3.3 has always been compiled with 2010 on Windows so I think this can be closed 
as "user sorted it out for him/herself" :)

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue12806] argparse: Hybrid help text formatter

2014-07-30 Thread paul j3

paul j3 added the comment:

In http://bugs.python.org/issue22029 argparse
CSS white-space: like control for individual text blocks

I propose a set of `str` subclasses that can be used to define the wrapping 
style of individual text blocks. The idea is adapted from the HTML '' tag, 
and the CSS white-space: option.

`argparse.WhitespaceStyle` is a cover class that defines various utility 
methods, including `_str_format` which handles all of the `%` formatting.  The 
individual subclasses implement their own version of `_split_lines` and 
`_fill_text`.  I chose a standard set of classes based on the CSS white-space 
options:

Normal() - full white space compression and wrapping.  This is the default 
default of text in `argparse`.

Pre() - preformatting, the same as the `Raw` formatters

NoWrap() - Pre plus whitespace compression

PreLine()

PreWrap()

In `HelpFormatter`, `_split_lines`, `_fill_lines`, `_str_format` delegate the 
action to text's own methods.  Plain text is handled as `Normal()`.

I also defined a `WSList` class.  This is a list of Style class objects. It has 
the same API as the Style classes, iterating over the items.

Where possible these methods try to return an object of the same type as self.
--

Here I demonstrate two ways that these classes could be used to implement a 
hybrid formatter.

The first is a simple adaptation of the `PareML` formatter from 
`paraformatter.py`.  It shows how a custom style class could be defined.

The second is defines a `preformat` function, which converts the text block 
into a `WSList`, a list of style text objects.  The wrappable paragraphs are 
`Normal()`, the preformatted indented lines are `Pre()`. Blank lines are `Pre(' 
')`.

I've explored writing a `Hanging` class, which performs a hanging indent on 
list item sentences.

--
Added file: http://bugs.python.org/file36168/try_12806_4.py

___
Python tracker 

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



[issue17634] Win32: shutil.copy leaks file handles to child processes

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

PEP 446 supersedes PEP 433.

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

___
Python tracker 

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



[issue17634] Win32: shutil.copy leaks file handles to child processes

2014-07-30 Thread STINNER Victor

STINNER Victor added the comment:

The issue has been fixed in Python 3.4 with the PEP 446. I close this issue.

If you would like to enhance shutil.copyfile() by using CopyFile() on Windows, 
please open a new issue.

--
resolution:  -> fixed
status: open -> closed
versions:  -Python 2.7, Python 3.5

___
Python tracker 

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



[issue18069] Subprocess picks the wrong executable on Windows

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

Who is best placed to look at this, there's nobody active on the experts list 
for subprocess?

--
components: +Library (Lib) -Interpreter Core
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.3

___
Python tracker 

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



[issue13123] bdist_wininst uninstaller does not remove pycache directories

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

Just a gentle reminder.

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

___
Python tracker 

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



[issue14105] Breakpoints in debug lost if line is inserted; IDLE

2014-07-30 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 3.5 -Python 3.3

___
Python tracker 

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



[issue22110] enable extra compilation warnings

2014-07-30 Thread Charles-François Natali

New submission from Charles-François Natali:

The patch attached enables -Wsign-compare and -Wunreachable-code if supported 
by the compiler.
AFAICT, mixed sign comparison warning is automatically enabled by Microsoft's 
compiler, and is usually a good thing.
It does add some warnings though.

As for unreachable code, it's also usually a good thing, since it can be a 
source of bugs. Note that it's not enabled in debug mode, since in debug mode 
the code paths aren't the same.

--
components: Build
files: extra_warnings.diff
keywords: patch
messages: 224349
nosy: haypo, neologix, pitrou
priority: normal
severity: normal
status: open
title: enable extra compilation warnings
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file36169/extra_warnings.diff

___
Python tracker 

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



[issue14111] IDLE Debugger should handle interrupts

2014-07-30 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 3.5 -Python 3.3

___
Python tracker 

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



[issue13123] bdist_wininst uninstaller does not remove pycache directories

2014-07-30 Thread Paul Moore

Paul Moore added the comment:

I'm not sure how relevant this is any more, as pip is the preferred installer 
these days and it cleanly uninstalls projects. At least for my usage, I no 
longer use wininst installers at all. I won't close this myself, though, as the 
issue still exists. But I won't object if it is closed as "wontfix".

--

___
Python tracker 

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



[issue20844] SyntaxError: encoding problem: iso-8859-1 on Windows

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

I've tried to make the title more meaningful, feel free to change it if you can 
think of something better.

--
components: +Interpreter Core
nosy: +tim.golden, zach.ware
title: coding bug remains in 3.3.5rc2 -> SyntaxError: encoding problem: 
iso-8859-1 on Windows
type:  -> behavior
versions: +Python 3.5 -Python 3.3

___
Python tracker 

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



[issue12197] non-blocking SSL write fails if a partial write was issued

2014-07-30 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 3.5 -Python 3.3

___
Python tracker 

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



[issue19007] precise time.time() under Windows 8

2014-07-30 Thread Mark Lawrence

Changes by Mark Lawrence :


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

___
Python tracker 

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



[issue18402] Finding perl64

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

Can ths be closed as "not a bug"?

--
nosy: +BreamoreBoy -brian.curtin

___
Python tracker 

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



[issue9122] Problems with multiprocessing, Python embedding and Windows

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as "out of date"?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue22110] enable extra compilation warnings

2014-07-30 Thread Antoine Pitrou

Antoine Pitrou added the comment:

+1 from me.

--

___
Python tracker 

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



[issue18295] Possible integer overflow in PyCode_New()

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

Note this is referenced from #18407.

--
nosy: +BreamoreBoy
versions: +Python 3.5

___
Python tracker 

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



[issue18407] Fix compiler warnings in pythoncore for Win64

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we have the stage set to patch review please.

--
nosy: +BreamoreBoy -brian.curtin
versions: +Python 3.5

___
Python tracker 

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



[issue18477] fix_import (2to3 fixer) is not case-sensitive

2014-07-30 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we set the stage to patch review please.

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

___
Python tracker 

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



[issue19007] precise time.time() under Windows 8

2014-07-30 Thread STINNER Victor

STINNER Victor added the comment:

My patch for the issue #22043 replaces the _PyTime_timeval structure (10^-6 
second resolution, 1 us) with a _PyTime_timespec structure (10^-9 second 
resolution, 1 ns). It may help for this issue.

--

___
Python tracker 

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



[issue18477] fix_import (2to3 fixer) is not case-sensitive

2014-07-30 Thread Ezio Melotti

Changes by Ezio Melotti :


--
stage:  -> test needed

___
Python tracker 

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



[issue22110] enable extra compilation warnings

2014-07-30 Thread STINNER Victor

STINNER Victor added the comment:

The patch adds a a lot of new warnings. Would it be possible to fix them before 
applying the patch?

--

___
Python tracker 

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



  1   2   >