[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-15 Thread Ned Deily

Ned Deily added the comment:

LGTM.  The patch does prevent the crash in IDLE which is certainly an 
improvement until such time as someone investigates having Tk/tkinter fully 
support non-BMP characters.

--

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



[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-02-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

0 and None must be different.

--
nosy: +serhiy.storchaka

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



[issue5308] cannot marshal objects with more than 2**31 elements

2013-02-15 Thread Serhiy Storchaka

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


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue13555] cPickle MemoryError when loading large file (while pickle works)

2013-02-15 Thread Serhiy Storchaka

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


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue16991] Add OrderedDict written in C

2013-02-15 Thread Eric Snow

Eric Snow added the comment:

Are there any objections to this unittest cleanup patch?  I'd like to commit it 
separately prior to anything that will go in for the C OrderedDict.

--
Added file: http://bugs.python.org/file29077/cleanup-test-collections.diff

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



[issue17208] add note/warning about daemon threads

2013-02-15 Thread Antoine Pitrou

New submission from Antoine Pitrou:

People are generally not aware of the properties of daemon threads.
I suggest to add a note such as the following:

« Daemon threads are abruptly stopped at shutdown. Their resources (such as 
open files, database transactions, etc.) may not be released properly. If you 
want your threads to stop gracefully, make them non-daemonic and use a suitable 
signalling mechanism such as an Event. »

--
assignee: docs@python
components: Documentation
messages: 182133
nosy: docs@python, pitrou, sbt
priority: normal
severity: normal
status: open
title: add note/warning about daemon threads
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

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



[issue16991] Add OrderedDict written in C

2013-02-15 Thread Eric Snow

Eric Snow added the comment:

Incidently, I'm just about done with the OrdereDict patch.  I'm attaching the 
current one.  At present it passes the unit tests, but I have two 
memory-related issues and a number of open questions (that I don't think are 
critical).

The patch has the unittest cleanup merged in just so it will show up in 
reviewboard.

--
Added file: http://bugs.python.org/file29078/odict.diff

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



[issue16991] Add OrderedDict written in C

2013-02-15 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


Removed file: http://bugs.python.org/file28839/cleanup-test-collections.diff

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



[issue16991] Add OrderedDict written in C

2013-02-15 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


Removed file: http://bugs.python.org/file28956/odict.diff

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



[issue17208] add note/warning about daemon threads

2013-02-15 Thread Tim Golden

Tim Golden added the comment:

+1 This is essentially the answer to the naive user's question:

Why would anyone *not* use daemon threads given that they're less
hassle to manage?

--
nosy: +tim.golden

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



[issue979407] urllib2 digest auth totally broken

2013-02-15 Thread Michele Orrù

Michele Orrù added the comment:

Isn't this issue fixed and tested on Lib/test/test_urllib2.py:1304?

--
nosy: +maker

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



[issue17209] get_wch() doesn't handle KeyboardInterrupt

2013-02-15 Thread raymontag

New submission from raymontag:

If I've initialized a window in curses, try to get a single character with 
get_wch() and press Ctrl+C, the program crashes even if I handle 
KeyboardInterrupt. Here's a code example.

import curses

scr = curses.initscr()
try:
char = scr.get_wch()
except KeyboardInterrupt:
pass

With getch() instead of get_wch() it works though.

--
components: Library (Lib)
messages: 182137
nosy: raymontag
priority: normal
severity: normal
status: open
title: get_wch() doesn't handle KeyboardInterrupt
versions: Python 3.3

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



[issue17209] get_wch() doesn't handle KeyboardInterrupt

2013-02-15 Thread raymontag

Changes by raymontag kkoe...@posteo.de:


--
type:  - crash

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



[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-02-15 Thread Christian Heimes

Christian Heimes added the comment:

+1 for a keyword argument

I also have to add a limit to GzipDecodedResponse().

Python 2.6 and 3.1 are not affected by the issue. The problematic code was 
added in 2.7 and 3.2.

--

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



[issue17201] Use allowZip64=True by default

2013-02-15 Thread Ramchandra Apte

Ramchandra Apte added the comment:

LGTM.

--
nosy: +Ramchandra.Apte

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



[issue17210] documentation of PyUnicode_Format() states wrong argument type requirements

2013-02-15 Thread Stefan Behnel

New submission from Stefan Behnel:

The current documentation says:


PyObject* PyUnicode_Format(PyObject *format, PyObject *args)
Return value: New reference.

Return a new string object from format and args; this is analogous to 
format % args. The args argument must be a tuple.


According to the implementation, however, args can be a tuple, a unicode 
string, or an arbitrary mapping, i.e. everything that Python's % operator 
allows for strings as well.

--
assignee: docs@python
components: Documentation
messages: 182140
nosy: docs@python, scoder
priority: normal
severity: normal
status: open
title: documentation of PyUnicode_Format() states wrong argument type 
requirements
type: behavior
versions: Python 2.6, Python 2.7, Python 3.2, Python 3.3, Python 3.4

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



[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-15 Thread Ramchandra Apte

Ramchandra Apte added the comment:

@Ned Deily
Tk, at least on my system, doesn't render Unicode characters, even within BMP 
correctly but the characters are kept (cut-and-paste works correctly)
What you mean by support.

--
nosy: +Ramchandra.Apte

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



[issue17179] Incorrect use of type function in types.new_class

2013-02-15 Thread Ramchandra Apte

Ramchandra Apte added the comment:

@Daniel Urban
Me too.

--
nosy: +Ramchandra.Apte

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



[issue17179] Incorrect use of type function in types.new_class

2013-02-15 Thread Ramchandra Apte

Changes by Ramchandra Apte maniandra...@gmail.com:


--
type:  - behavior

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



[issue17211] pkgutil.iter_modules and walk_packages should return a namedtuple

2013-02-15 Thread Ramchandra Apte

New submission from Ramchandra Apte:

Will attach a patch soon.

--
components: Library (Lib)
messages: 182143
nosy: Ramchandra.Apte
priority: normal
severity: normal
status: open
title: pkgutil.iter_modules and walk_packages should return a namedtuple
type: enhancement
versions: Python 3.3, Python 3.4

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



[issue17211] pkgutil.iter_modules and walk_packages should return a namedtuple

2013-02-15 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
versions:  -Python 3.3

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



[issue17211] pkgutil.iter_modules and walk_packages should return a namedtuple

2013-02-15 Thread Antoine Pitrou

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


--
nosy: +brett.cannon, ncoghlan

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



[issue7145] UTF-16 BOM is not written by socket.makefile (but is expected by read)

2013-02-15 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Indeed, I would suggest won't fix.

--
resolution:  - wont fix
status: pending - closed

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



[issue16991] Add OrderedDict written in C

2013-02-15 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Why did you copy test_collections.py instead of just creating a new file?

--

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



[issue6426] imaplib.IMAP4 command illegal in this state is unhelpful error message

2013-02-15 Thread R. David Murray

R. David Murray added the comment:

The issue 1605192 fix was applied to 2.7.

--
nosy: +r.david.murray
resolution:  - duplicate
stage: needs patch - committed/rejected
status: open - closed
superseder:  - Make Imap Error more helpful

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



[issue6497] Support for digital Cinema/film DPX and Kodak Cineon image file formats in imghdr module

2013-02-15 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


Removed file: http://bugs.python.org/file14520/unnamed

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



[issue16991] Add OrderedDict written in C

2013-02-15 Thread Eric Snow

Eric Snow added the comment:

 Why did you copy test_collections.py instead of just creating
 a new file?

To preserve the history of changes to the bulk of the code in 
test_ordereddict.py.

--

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



[issue17163] Fix test discovery for test_file.py

2013-02-15 Thread Roundup Robot

New submission from Roundup Robot:

New changeset 9b3c5085b4a4 by Ezio Melotti in branch '3.3':
#17163: test_file now works with unittest test discovery.  Patch by Zachary 
Ware.
http://hg.python.org/cpython/rev/9b3c5085b4a4

New changeset f289e40b3d70 by Ezio Melotti in branch 'default':
#17163: merge with 3.3.
http://hg.python.org/cpython/rev/f289e40b3d70

--
nosy: +python-dev

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



[issue17163] Fix test discovery for test_file.py

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the patch!

--
assignee:  - ezio.melotti
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue17167] python man page contains $Date$ in page footer

2013-02-15 Thread Ezio Melotti

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


--
keywords: +easy
nosy: +ezio.melotti
type:  - behavior

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



[issue16525] wave file module does not support 32bit float format

2013-02-15 Thread Harvey Ormston

Harvey Ormston added the comment:

I see that this issue applies to Python 3.4. Nevertheless, I am now using the 
submitted patch (http://bugs.python.org/file28122/wave_float_issue16525.patch) 
with Python 2.7.

I find that the patched module fails when calling getwavformat(), becuase the 
_wavformat attribute is not set.

I attach wave_read_issue16525.patch, which properly sets the _wavformat 
attribute and allows getwavformat() to succeed.

Apologies if I have not followed the proper process here. I found this patch a 
while ago while looking for a solution to the limitations in the standard wave 
module and, upon using the patch, identified this potential issue which I have 
attampted to fix. I thought it would be best to share that fix.

--
nosy: +harveyormston
Added file: http://bugs.python.org/file29079/wave_read_issue16525.patch

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



[issue17178] In all.__doc__ and any.__doc__ need to clarify the behaviour with an empty iterable like in documentation

2013-02-15 Thread Éric Araujo

Éric Araujo added the comment:

If someone wants to write the patch for this, feel free to ask (here or on the 
core-mentorship friendly mailing list) if you need help finding the right C 
file or anything else.

--
components: +Interpreter Core -Documentation
keywords: +easy
nosy: +eric.araujo
stage:  - needs patch
versions: +Python 2.7, Python 3.2, Python 3.4

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



[issue17177] Document/deprecate imp

2013-02-15 Thread Éric Araujo

Éric Araujo added the comment:

I’ve always perceived imp as an implementation detail of the import system that 
people were sometimes forced to use to get to some things.  Now that we have 
importlib, deprecating (with a nice long compatibility-with-warnings period) 
sounds good.

Would checking with the other VMs be a good idea?

--
nosy: +eric.araujo

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



[issue17167] python man page contains $Date$ in page footer

2013-02-15 Thread Éric Araujo

Éric Araujo added the comment:

Agreed with Ned, this sounds like a job for the release script to me.

I think we avoid manual edition of dates in the HTML docs thanks to Sphinx; we 
could generate the man page with Sphinx too (if there were enough advantages 
than just this issue).

--
nosy: +eric.araujo

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



[issue979407] urllib2 digest auth totally broken

2013-02-15 Thread Senthil Kumaran

Senthil Kumaran added the comment:

let me check that.

--

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



[issue17177] Document/deprecate imp

2013-02-15 Thread Brett Cannon

Brett Cannon added the comment:

Checking with the other VMs wouldn't benefit anyone. They still have to 
implement whatever is necessary from _imp in order for importlib to work. 
Otherwise it's just another stdlib module.

--

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



[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-02-15 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue17178] In all.__doc__ and any.__doc__ need to clarify the behaviour with an empty iterable like in documentation

2013-02-15 Thread Ankur Ankan

Ankur Ankan added the comment:

I am a beginner and want to write the patch for this issue, so please help me 
find the right C file.
Thanks.

--
nosy: +Ankur.Ankan

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



[issue17178] In all.__doc__ and any.__doc__ need to clarify the behaviour with an empty iterable like in documentation

2013-02-15 Thread Ankur Ankan

Ankur Ankan added the comment:

I guess I have found it. It's bltinmodule.c .

--

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



[issue17143] trace.py uses _warn without importing it

2013-02-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3f8b5fcbf07e by Ezio Melotti in branch '3.3':
#17143: fix a missing import in the trace module.  Initial patch by Berker 
Peksag.
http://hg.python.org/cpython/rev/3f8b5fcbf07e

New changeset 46e9f668aea9 by Ezio Melotti in branch 'default':
#17143: merge with 3.3.
http://hg.python.org/cpython/rev/46e9f668aea9

--
nosy: +python-dev

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



[issue17143] trace.py uses _warn without importing it

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the report and the patch!

I changed a couple of things:
1) test_deprecated_usage was printing the usage on stderr while running the 
tests -- I changed it to use a StringIO and added a minimal test to check that 
the usage is actually written;
2) there was an unnecessary import warnings that I removed;

FTR this bug was introduced in f1604371240a.

--
assignee:  - ezio.melotti
nosy: +flox
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue17172] Add turtledemo to IDLE menu

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

I left a comment in rietveld.

 I hope the File menu is the right place for this.

I think that's the best place where to put it.

 I had to move the code in Lib/turtledemo.py after if __name__ ==... into 
 main().

Why?

 Should this be added to Lib/idlelib/NEWS.txt ?

Yes.

--
nosy: +ezio.melotti

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



[issue17143] trace.py uses _warn without importing it

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

The windows buildbots are failing with the following error:
ERROR: test_deprecated_find_strings (test.test_trace.TestDeprecatedMethods)
--
Traceback (most recent call last):
  File C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_trace.py, 
line 401, in test_deprecated_find_strings
trace.find_strings(fd.name)
  File C:\buildbot.python.org\3.x.kloth-win64\build\lib\trace.py, line 850, 
in find_strings
return _find_strings(filename, encoding=None)
  File C:\buildbot.python.org\3.x.kloth-win64\build\lib\trace.py, line 422, 
in _find_strings
with open(filename, encoding=encoding) as f:
PermissionError: [Errno 13] Permission denied: 
'c:\\users\\buildbot\\appdata\\local\\temp\\tmp_08yph'

See:
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.3/builds/491/steps/test/logs/stdio
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/1473/steps/test/logs/stdio

The problem seems to be related to the use of NamedTemporaryFile in 
test_deprecated_find_strings, but doesn't seem to affect 
test_deprecated_find_executable_linenos.

There's also a warning for test_ignored:
test_ignored (test.test_trace.Test_Ignore) ... Not printing coverage data for 
'c:\\users\\buildbot\\appdata\\local\\temp\\tmpwrqs7_': [Errno 13] Permission 
denied: 'c:\\users\\buildbot\\appdata\\local\\temp\\tmpwrqs7_'

This was probably here already, but went unnoticed because it doesn't cause 
failures and it's probably printed in verbose mode only.

--
status: closed - open

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



[issue17175] update PEP 430

2013-02-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f306777e0b6d by Ezio Melotti in branch 'default':
#17175: remove outdated paragraph about issue #8040 from PEP 430.  Patch by 
Tshepang Lekhonkhobe.
http://hg.python.org/peps/rev/f306777e0b6d

--
nosy: +python-dev

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



[issue8040] documentation pages should link to other versions of the same page

2013-02-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f306777e0b6d by Ezio Melotti in branch 'default':
#17175: remove outdated paragraph about issue #8040 from PEP 430.  Patch by 
Tshepang Lekhonkhobe.
http://hg.python.org/peps/rev/f306777e0b6d

--

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



[issue17175] update PEP 430

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the patch!

--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
type:  - enhancement

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



[issue17177] Document/deprecate imp

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

 Basically I need to figure out what imp's role is supposed to be in the face 
 of importlib.

If it's not even clear for you, even if you eventually figure that out, having 
two import-related modules is likely to be confusing for users.
OTOH deprecating/removing imp would affect the somewhat popular imp.reload(), 
that has already been moved for Python 3, and will now be moved again (this 
also means that the -3 warnings on 2.7 will no longer be valid).

--
nosy: +ezio.melotti
type:  - enhancement

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



[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The characters tk can render depends on the font you tell it to use. On my 
Windows IDLE, I have Options Font Face set to Lucida Sans Unicode, though I am 
not sure what has the widest coverage. This page
https://www.microsoft.com/typography/fonts/font.aspx?FMID=1263
only mentions West Asian, but I seem to get more than that.

--

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



[issue17208] add note/warning about daemon threads

2013-02-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e63c4bc81d9f by Antoine Pitrou in branch '2.7':
Issue #17208: add a note about the termination behaviour of daemon threads.
http://hg.python.org/cpython/rev/e63c4bc81d9f

--
nosy: +python-dev

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



[issue17177] Document/deprecate imp

2013-02-15 Thread Brett Cannon

Brett Cannon added the comment:

I would probably document the deprecation but otherwise leave it alone at the 
module level. Considering I only documented imp.find_module() and 
.load_module() as documented thanks to their funky interfaces making nearly 
impossible to do a direct translation I don't see how I can justify raising a 
DeprecationWarning for the whole thing.

But it's gone in Python 4. =)

--

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



[issue17208] add note/warning about daemon threads

2013-02-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8753a3be4a3c by Antoine Pitrou in branch '3.2':
Issue #17208: add a note about the termination behaviour of daemon threads.
http://hg.python.org/cpython/rev/8753a3be4a3c

New changeset 917ae89e59ce by Antoine Pitrou in branch '3.3':
Issue #17208: add a note about the termination behaviour of daemon threads.
http://hg.python.org/cpython/rev/917ae89e59ce

New changeset 8b85f10b5341 by Antoine Pitrou in branch 'default':
Issue #17208: add a note about the termination behaviour of daemon threads.
http://hg.python.org/cpython/rev/8b85f10b5341

--

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



[issue17208] add note/warning about daemon threads

2013-02-15 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Committed.

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue17178] Clarify empty iterable result in any/all.__doc__, as in manual

2013-02-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Titles should fit in the box if possible, and this can ;-).

--
nosy: +terry.reedy
title: In all.__doc__ and any.__doc__ need to clarify the behaviour with an 
empty iterable like in documentation - Clarify empty iterable result in 
any/all.__doc__, as in manual

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



[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

The font used shouldn't affect the errors.  Usually if a glyph is missing in 
the current font, either a placeholder (usually a box) is showed instead or the 
missing glyph is taken from another font (if possible).

If you still want to do some tests, you can take a look at 
http://en.wikipedia.org/wiki/List_of_Unicode_fonts#Unicode_fonts

--

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



[issue17177] Document/deprecate imp

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

If you move them to importlib and just leave an alias in imp, you should still 
add a DeprecationWarning IMHO, even if you plan to remove them in Python 4.

--

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



[issue17176] Document imp.NullImporter is NOT used anymore by import

2013-02-15 Thread Ezio Melotti

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


--
keywords: +easy
nosy: +ezio.melotti
type:  - enhancement

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



[issue17178] Clarify empty iterable result in any/all.__doc__, as in manual

2013-02-15 Thread Ankur Ankan

Changes by Ankur Ankan ankuran...@gmail.com:


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

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



[issue17184] re.VERBOSE doesn't respect whitespace in '( ?Pfoo...)'

2013-02-15 Thread Ezio Melotti

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


--
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - re.VERBOSE whitespace behavior not completely documented
versions: +Python 3.2, Python 3.3, Python 3.4

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



[issue15606] re.VERBOSE whitespace behavior not completely documented

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

See also #17184.

--

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



[issue17178] Clarify empty iterable result in any/all.__doc__, as in manual

2013-02-15 Thread Ankur Ankan

Changes by Ankur Ankan ankuran...@gmail.com:


Removed file: http://bugs.python.org/file29080/patch.diff

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



[issue17179] Incorrect use of type function in types.new_class

2013-02-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

As far as I know, currently, the only valid 'keyword' argument for a class 
statement is 'metaclass' and that is so advanced that it is not mentioned in 
*8.7. Class definitions* but only in the linked section *3.3.3. Customizing 
class creation*. The types.newclass doc also only mentions 'metaclass' as a 
possible keyword. (Maybe it should currently say that that is the only 
possibility, but perhaps the window was being left open for possible additions 
in the future.) So I agree that passing anything else is a bug and should 
raise. If so, this issue should be closed.

--
nosy: +terry.reedy

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



[issue17188] Document 'from None' in raise statement doc.

2013-02-15 Thread Ezio Melotti

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


--
keywords: +easy
nosy: +benjamin.peterson, ezio.melotti
type:  - enhancement

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



[issue17178] Clarify empty iterable result in any/all.__doc__, as in manual

2013-02-15 Thread Ankur Ankan

Changes by Ankur Ankan ankuran...@gmail.com:


Added file: http://bugs.python.org/file29081/patch.diff

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



[issue17193] Use binary prefixes

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

+1

I left some comments on Rietveld.
The SI standard says that there should be a space between the value and the 
unit, and I agree that while a no-break space would be better, a regular space 
is still better than no space at all.
Applying this on 3.3 and default is fine too.

--
nosy: +ezio.melotti

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



[issue17178] Clarify empty iterable result in any/all.__doc__, as in manual

2013-02-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0f7eec78569c by Ezio Melotti in branch '2.7':
#17178: update any()/all() docstrings to document their behavior with empty 
iterables.  Patch by Ankur Ankan.
http://hg.python.org/cpython/rev/0f7eec78569c

New changeset 1d4849f9e37d by Ezio Melotti in branch '3.2':
#17178: update any()/all() docstrings to document their behavior with empty 
iterables.  Patch by Ankur Ankan.
http://hg.python.org/cpython/rev/1d4849f9e37d

New changeset 34cfe145b286 by Ezio Melotti in branch '3.3':
#17178: merge with 3.2.
http://hg.python.org/cpython/rev/34cfe145b286

New changeset 168efd87e051 by Ezio Melotti in branch 'default':
#17178: merge with 3.3.
http://hg.python.org/cpython/rev/168efd87e051

--
nosy: +python-dev

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



[issue17178] Clarify empty iterable result in any/all.__doc__, as in manual

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the patch!

--
assignee: docs@python - ezio.melotti
components: +Documentation -Interpreter Core
nosy: +ezio.melotti
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue17183] Small enhancements to Lib/_markupbase.py

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

We should add some benchmarks to see if there is any difference between the two 
forms.

--

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



[issue17202] Add .bat line to .hgeol

2013-02-15 Thread Ezio Melotti

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


--
nosy: +djc, ezio.melotti, loewis
stage:  - patch review
type:  - behavior

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



[issue17209] get_wch() doesn't handle KeyboardInterrupt

2013-02-15 Thread Ned Deily

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


--
nosy: +haypo

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



[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-15 Thread Ned Deily

Ned Deily added the comment:

Also, there are differences in behavior among the various flavors of Tk.  I 
know of at least four main flavors in use by current Python builds:  Unix 
X11-based Tk 8.5, Windows Tk 8.5, OS X Cocoa Tk 8.5, OS X Carbon Tk 8.4.  Some 
third-party distributors are starting to supply Tk 8.6, in its various flavors, 
now that 8.6 has been released. Each flavor has various build options and 
features to fit in with its host o/s environment.  This makes testing tkinter 
issues *interesting*.

--

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



[issue17202] Add .bat line to .hgeol

2013-02-15 Thread Dirkjan Ochtman

Changes by Dirkjan Ochtman dirk...@ochtman.nl:


--
nosy: +georg.brandl, pitrou

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



[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Tkinter is not compatible with Tcl/Tk 8.6 yet (issue16809).

--

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



[issue17202] Add .bat line to .hgeol

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

**.bat used to be there, but it was removed in 1762d79eab65.

I have a very faint memory of some discussion about bat files and EOLs, but the 
best I could find was:
http://mail.python.org/pipermail/python-dev/2012-May/119220.html
http://mail.python.org/pipermail/python-dev/2012-May/119225.html

This seems to suggest that CRLF shouldn't be necessary.

There's also an older discussion about adding CRLF for make.bat here (the 
discussion is actually somewhat unrelated, but back then adding these entries 
sounded like a good idea): 
http://mail.python.org/pipermail/python-committers/2011-May/001685.html

--

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



[issue17183] Small enhancements to Lib/_markupbase.py

2013-02-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

'Enhancement' issues are for visible behavior additions (or occasionally, 
changes). This is intended to be an invisible small speedup, hence it is a 
'performance' issue, and gets a different title.

As explained in #17170, the change will not be a speedup if the substring being 
looked for is usually not there. The reason is the .find lookup and function 
call versus the direct syntax. Even if it is faster, I strongly doubt it would 
be hardly noticeable in the context of this function, which itself is a small 
piece of parsing an entire document, and it is against our policy to make such 
micro-optimizations in working code.

The complete block in question Lib/_markupbase.py, 254:7 is

  rawdata = self.rawdata
  if '' in rawdata[j:]:
return rawdata.find(, j) + 1
  return -1

[Ugh. Localizing rawdata negates some of whatever advantage is gained from the 
double scan.]

If I were to rewrite it, I would replace it with

  try:
return self.rawdata.index(, j) + 1
  except ValueError:
return -1

as better style, and a better example for readers, regardless of micro speed 
differences. But style-only changes in working code is also against our policy. 
So I would be closing this if Ezio had not grabbed it ;-).

--
nosy: +terry.reedy

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



[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-15 Thread Ned Deily

Ned Deily added the comment:

Serhiy, I'm aware of that; regardless, Tk 8.6 is starting to be used out in the 
field with tkinter.

--

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



[issue17187] Python segfaults from improperly formed and called function

2013-02-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
nosy: +terry.reedy

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



[issue17183] Small enhancements to Lib/_markupbase.py

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

I would still do a benchmark, for these reasons:
1) IIRC rawdata might be the whole document (or at least everything that has 
not been parsed yet);
2) the '' is very likely to be found;

This situation is fairly different from the one presented in #17170, where the 
strings are shorts and the character is not present in the majority of the 
strings.

Profiling and improving html.parser (and hence _markupbase) was already on my 
todo list (even if admittedly not anywhere near the top :), so writing a 
benchmark for it might be useful for further enhancements too.

(Note: HTMLParser is already fairly fast, parsing ~1.3MB/s according to 
http://www.crummy.com/2012/02/06/0, but I've never done anything to make it 
even faster, so there might still be room for improvements.)

--
type: enhancement - performance

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



[issue17193] Use binary prefixes

2013-02-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I agree that we should contribute to ending the confusion. Searching KiB, MiB, 
GiB (with Google) gives a Wikipedia article as first or second hit, so the 
meanings of the abbreviations and terms are easily discoverable.

--
nosy: +terry.reedy

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



[issue17202] Add .bat line to .hgeol

2013-02-15 Thread Zachary Ware

Zachary Ware added the comment:

 This seems to suggest that CRLF shouldn't be necessary.

It's not necessary on .bat files without labels, but those with labels are 
subject to the (Windows) bug described in my first message and link.

Adding an entry specifically for Doc/make.bat and any other batch scripts with 
labels would be fine as well.

--

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



[issue17212] os.path.isfile() in Python 3.3 sometimes fails

2013-02-15 Thread G. Poore

New submission from G. Poore:

os.path.isfile() sometimes incorrectly reports that a file does not exist under 
Python 3.3 (only tested under Windows).  This may be encoding related.  The 
issue only appears under a very particular set of circumstances; see comments 
in the attached script.  The attached script demonstrates the issue by testing 
for an arbitrary file x.txt (you will need to create a file with that name for 
the test script to work).

--
components: Library (Lib)
files: os-path-issue-3-3.py
messages: 182188
nosy: gpoore
priority: normal
severity: normal
status: open
title: os.path.isfile() in Python 3.3 sometimes fails
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file29082/os-path-issue-3-3.py

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



[issue16041] poplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes

Christian Heimes added the comment:

RFC 1939 says:

   Responses in the POP3 consist of a status indicator and a keyword
   possibly followed by additional information.  All responses are
   terminated by a CRLF pair.  Responses may be up to 512 characters
   long, including the terminating CRLF.

It doesn't say anything about the length of a line in a multi-line response. 
It's reasonable to belief that 512 octets are valid, too. We could quadruple 
the limit to 2048 in order to be safe.

--

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



[issue16040] nntplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes

Christian Heimes added the comment:

RFC 3977 specifies:

  Command lines MUST NOT exceed 512 octets, which includes
  the terminating CRLF pair.

However NNTP also have multi-line data blocks. The RFC says nothing about the 
maximum length of a data line. We may need two limits here, one for command 
lines (2048 perhaps) and one much larger for data lines (a couple of MB?).

Can somebody check other implementations?

--
stage:  - needs patch

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



[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2013-02-15 Thread Lars Buitinck

Lars Buitinck added the comment:

I'm sorry, I really don't understand this refcounts.dat file and I'm not going 
to hack it further. Does the patch as it currently stands solve the issue with 
CallMethod and CallFunction, or not? (It has the changes to the docs.)

--

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



[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2013-02-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Since switching from a simple custom cache to the generalized lru cache made a 
major slowdown, I think the change should be reverted. A dict + either 
occasional clearing or a circular queue and a first-in, first-out discipline is 
quite sufficient. There is no need for the extra complexity of a last-used, 
first out discipline.

--
nosy: +terry.reedy

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



[issue16039] imaplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes

Christian Heimes added the comment:

RFC 3501 and 2060 (IMAP 4rev1) don't specify a line length


RFC 2683 says:

  A client should limit the length of the command lines it
  generates to approximately 1000 octets.

  For its part, a server should allow for a command line of at
  least 8000 octets.

Some config files and code have values between 2k and 64k, usually around 8k to 
10k, e.g.

 UW and Panda IMAP have a limit of 10,000 octets which is far
 more than what anything is ever likely to use.

--

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



[issue16037] httplib: header parsing is not delimited

2013-02-15 Thread Christian Heimes

Christian Heimes added the comment:

CVE-2013-1752  Unbound readline() DoS vulnerabilities in Python stdlib

--

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



[issue16038] ftplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes

Christian Heimes added the comment:

CVE-2013-1752  Unbound readline() DoS vulnerabilities in Python stdlib

--

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



[issue16039] imaplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes

Christian Heimes added the comment:

CVE-2013-1752  Unbound readline() DoS vulnerabilities in Python stdlib

--

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



[issue16040] nntplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes

Christian Heimes added the comment:

CVE-2013-1752  Unbound readline() DoS vulnerabilities in Python stdlib

--

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



[issue16041] poplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes

Christian Heimes added the comment:

CVE-2013-1752  Unbound readline() DoS vulnerabilities in Python stdlib

--

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



[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2013-02-15 Thread Ezio Melotti

Ezio Melotti added the comment:

For 3.4 #14373 might solve the issue.

--

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



[issue16042] smtplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes

Christian Heimes added the comment:

RFC 2821 says:

   command line
  The maximum total length of a command line including the command
  word and the CRLF is 512 characters.  SMTP extensions may be
  used to increase this limit.

   reply line
  The maximum total length of a reply line including the reply code
  and the CRLF is 512 characters.  More information may be
  conveyed through multiple-line replies.

   text line
  The maximum total length of a text line including the CRLF is
  1000 characters (not counting the leading dot duplicated for
  transparency).  This number may be increased by the use of SMTP
  Service Extensions.

I suggest a response limit of 2048 octets (that is four times the max limit) to 
be on the safe side for a bugfix release.

--

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



[issue16042] smtplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes

Christian Heimes added the comment:

CVE-2013-1752  Unbound readline() DoS vulnerabilities in Python stdlib

--

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



[issue16042] smtplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes

Christian Heimes added the comment:

Oh, next time I should read my own patch and responses first ... ;)

--

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



[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-02-15 Thread Christian Heimes

Christian Heimes added the comment:

CVE-2013-1753 gzip bomb and unbound read DoS vulnerabilities in Python's xmlrpc 
library

--

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



[issue12226] use HTTPS by default for uploading packages to pypi

2013-02-15 Thread Christian Heimes

Christian Heimes added the comment:

CVE-2013-1754  Man-in-the-middle vulnerability in package upload feature of 
Python's distutils

--
nosy: +christian.heimes

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



[issue14373] C implementation of functools.lru_cache

2013-02-15 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea

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



[issue17192] libffi-3.0.12 import

2013-02-15 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

However internal copy of expat was updated in 2.7 and 3.2 branches about 2 
weeks ago (issue #14340).

--

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



[issue17206] Py_XDECREF() expands its argument multiple times

2013-02-15 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea

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



[issue1285086] urllib.quote is too slow

2013-02-15 Thread Senthil Kumaran

Senthil Kumaran added the comment:

 Serhiy Storchaka added the comment:

 + append = res.append

 And then use 'append'?

 This speed up unquote_to_bytes by 15%.

Thanks for the response. In fact, writing the whole _hextobyte
verbatim would further increase the speed, but that would be huge
dis-advantage in terms of space occupied by that dict in the code. I
am +1 with the patch, please go ahead with committing it.

--

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



  1   2   >