[issue16096] Get rid of dangerous integer overflow tricks

2012-10-06 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2012-10-06 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue16059] Serialize MD5 computation-state and resume later

2012-10-06 Thread Gregory P. Smith

Gregory P. Smith added the comment:

Unless someone supplies a patch that works inter-operably across all platforms 
using public APIs in openssl and with the internals of all of python's builtin 
non-openssl hash functions including unitests for all of the above... This 
isn't going to be implemented in the stdlib.

--
assignee:  -> gregory.p.smith
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue8489] Support UTF8SMTP as part of RFC 5336 in smtlib

2012-10-06 Thread R. David Murray

R. David Murray added the comment:

Woops, did not mean to close the issue.

--
status: closed -> open
title: Support UTF8SMTP as part of RFC 5336 -> Support UTF8SMTP as part of RFC 
5336 in smtlib

___
Python tracker 

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



[issue8489] Support UTF8SMTP as part of RFC 5336

2012-10-06 Thread R. David Murray

Changes by R. David Murray :


--
components: +email
stage:  -> needs patch
status: open -> closed

___
Python tracker 

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



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-06 Thread Ned Deily

Ned Deily added the comment:

While there isn't a fix available for Tk yet, there is now a viable workaround. 
 It turns out that ActiveState does make the last couple of their Community 
Edition ActiveTcl releases available if you know where to look for them.  So 
I've updated the information on http://www.python.org/getit/mac/tcltk/ to 
provide a link to the older 8.5.11.1 release (currently available at 
http://downloads.activestate.com/ActiveTcl/releases/8.5.11.1/) which does not 
have this problem.

--

___
Python tracker 

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



[issue16152] Trailing whitespace makes tokenize.generate_tokens pathological

2012-10-06 Thread Ned Batchelder

Ned Batchelder added the comment:

Updated with new (better) patch, for v2.7 and v3.3.  They are the same except 
for the test.

--

___
Python tracker 

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



[issue16152] Trailing whitespace makes tokenize.generate_tokens pathological

2012-10-06 Thread Ned Batchelder

Changes by Ned Batchelder :


Added file: http://bugs.python.org/file27467/bug16152_v27.patch

___
Python tracker 

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



[issue16152] Trailing whitespace makes tokenize.generate_tokens pathological

2012-10-06 Thread Ned Batchelder

Changes by Ned Batchelder :


Added file: http://bugs.python.org/file27466/bug16152_v33.patch

___
Python tracker 

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



[issue16152] Trailing whitespace makes tokenize.generate_tokens pathological

2012-10-06 Thread Ned Batchelder

Changes by Ned Batchelder :


Removed file: http://bugs.python.org/file27459/bug16152.patch

___
Python tracker 

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



[issue16156] Crash every time I copy or paste any code in IDLE

2012-10-06 Thread Christian Heimes

Changes by Christian Heimes :


--
status: open -> closed

___
Python tracker 

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



[issue16156] Crash every time I copy or paste any code in IDLE

2012-10-06 Thread Christian Heimes

Christian Heimes added the comment:

Raymond, I'm closing this bug as duplicate of #15853. Please follow the other 
ticket to get new information.

--
resolution:  -> duplicate

___
Python tracker 

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



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-06 Thread Christian Heimes

Christian Heimes added the comment:

Ned, do you have any new information on this crasher? More people are having 
issues with TCL on Mac, e.g. #16156.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue16156] Crash every time I copy or paste any code in IDLE

2012-10-06 Thread Roger Serwy

Roger Serwy added the comment:

> Also crashes every time I try and access preferences in IDLE as well. 

See issue15853.

--
nosy: +ned.deily, serwy

___
Python tracker 

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



[issue16156] Crash every time I copy or paste any code in IDLE

2012-10-06 Thread Raymond Costantini

Raymond Costantini added the comment:

Also crashes every time I try and access preferences in IDLE as well. 

Begin forwarded message:

> From: "Costantini, MD, MBA Raymond" 
> Subject: Re: [issue16156] Crash every time I copy or paste any code in IDLE
> Date: October 6, 2012 5:05:55 PM PDT
> To: Python tracker 
> 
> Downloaded and installed this twice, with no help on the issue. Still crashes 
> every time.
> 
> 
> On Oct 6, 2012, at 5:04 PM, Christian Heimes  wrote:
> 
>> 
>> Christian Heimes added the comment:
>> 
>> There are known issues with TCL on Mac. Does 
>> http://www.python.org/download/mac/tcltk/ help with your issue?
>> 
>> --
>> nosy: +christian.heimes
>> versions: +Python 3.2 -Python 3.5
>> 
>> ___
>> Python tracker 
>> 
>> ___
>

--

___
Python tracker 

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



[issue16156] Crash every time I copy or paste any code in IDLE

2012-10-06 Thread Raymond Costantini

Raymond Costantini added the comment:

Downloaded and installed this twice, with no help on the issue. Still crashes 
every time.

On Oct 6, 2012, at 5:04 PM, Christian Heimes  wrote:

> 
> Christian Heimes added the comment:
> 
> There are known issues with TCL on Mac. Does 
> http://www.python.org/download/mac/tcltk/ help with your issue?
> 
> --
> nosy: +christian.heimes
> versions: +Python 3.2 -Python 3.5
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue16156] Crash every time I copy or paste any code in IDLE

2012-10-06 Thread Christian Heimes

Christian Heimes added the comment:

There are known issues with TCL on Mac. Does 
http://www.python.org/download/mac/tcltk/ help with your issue?

--
nosy: +christian.heimes
versions: +Python 3.2 -Python 3.5

___
Python tracker 

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



[issue16156] Crash every time I copy or paste any code in IDLE

2012-10-06 Thread Raymond Costantini

New submission from Raymond Costantini:

Process: Python [20738]
Path:/Applications/Python 3.2/IDLE.app/Contents/MacOS/Python
Identifier:  org.python.IDLE
Version: 3.2.3 (3.2.3)
Code Type:   X86-64 (Native)
Parent Process:  launchd [239]
User ID: 501

Date/Time:   2012-10-06 16:56:07.254 -0700
OS Version:  Mac OS X 10.8.2 (12C60)
Report Version:  10

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   Tk  0x00010138a12a TkpMakeWindow + 306
1   Tk  0x00010130482f Tk_MakeWindowExist + 
130
2   Tk  0x0001012e2ed9 TkClipInit + 129
3   Tk  0x0001012e2f77 Tk_ClipboardClear + 
43
4   Tk  0x0001012e35fe Tk_ClipboardObjCmd + 
996
5   Tcl 0x0001011dd8ad TclEvalObjvInternal 
+ 782
6   Tcl 0x000101216e51 TclExecuteByteCode + 
4488
7   Tcl 0x000101250c16 TclObjInterpProcCore 
+ 1001
8   Tcl 0x0001011dd8ad TclEvalObjvInternal 
+ 782
9   Tcl 0x0001011de4bf TclEvalEx + 2183
10  Tcl 0x0001011de88f Tcl_EvalEx + 26
11  Tk  0x0001012e1c7d Tk_BindEvent + 4994
12  Tk  0x0001012e4eac TkBindEventProc + 342
13  Tk  0x0001012eb7bb Tk_HandleEvent + 1431
14  Tk  0x0001012e01b8 Tk_EventObjCmd + 4666
15  Tcl 0x0001011dd8ad TclEvalObjvInternal 
+ 782
16  Tcl 0x0001011dea9f Tcl_EvalObjv + 66
17  _tkinter.so 0x0001011c268e Tkapp_Call + 190
18  org.python.python   0x0001000b4034 PyEval_EvalFrameEx + 
29204
19  org.python.python   0x0001000b4ffa PyEval_EvalCodeEx + 
1770
20  org.python.python   0x0001000b4167 PyEval_EvalFrameEx + 
29511
21  org.python.python   0x0001000b4321 PyEval_EvalFrameEx + 
29953
22  org.python.python   0x0001000b4ffa PyEval_EvalCodeEx + 
1770
23  org.python.python   0x000100039d0a function_call + 186
24  org.python.python   0x0001c828 PyObject_Call + 104
25  org.python.python   0x0001000af2ae PyEval_EvalFrameEx + 
9358
26  org.python.python   0x0001000b4ffa PyEval_EvalCodeEx + 
1770
27  org.python.python   0x000100039d0a function_call + 186
28  org.python.python   0x0001c828 PyObject_Call + 104
29  org.python.python   0x0001000261aa method_call + 138
30  org.python.python   0x0001c828 PyObject_Call + 104
31  org.python.python   0x0001000ab5e7 
PyEval_CallObjectWithKeywords + 87
32  _tkinter.so 0x0001011c09c8 PythonCmd + 456
33  Tcl 0x0001011da53b 
TclInvokeStringCommand + 105
34  Tcl 0x0001011dd8ad TclEvalObjvInternal 
+ 782
35  Tcl 0x000101216e51 TclExecuteByteCode + 
4488
36  Tcl 0x00010121de3b Tcl_ExprObj + 705
37  Tcl 0x0001011da159 Tcl_ExprBooleanObj + 
35
38  Tcl 0x0001011ea61f Tcl_IfObjCmd + 123
39  Tcl 0x0001011dd8ad TclEvalObjvInternal 
+ 782
40  Tcl 0x0001011de4bf TclEvalEx + 2183
41  Tcl 0x0001011de88f Tcl_EvalEx + 26
42  Tk  0x0001012e1c7d Tk_BindEvent + 4994
43  Tk  0x0001012e4eac TkBindEventProc + 342
44  Tk  0x0001012eb7bb Tk_HandleEvent + 1431
45  Tk  0x0001012eb88c WindowEventProc + 92
46  Tcl 0x00010124312f Tcl_ServiceEvent + 
147
47  Tcl 0x00010124329f Tcl_ServiceAll + 163
48  Tcl 0x000101276ace 
UpdateWaitingListAndServiceEvents + 255
49  com.apple.CoreFoundation0x7fff8f0b89b7 
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
50  com.apple.CoreFoundation0x7fff8f0b8921 
__CFRunLoopDoObservers + 369
51  com.apple.CoreFoundation0x7fff8f093e51 __CFRunLoopRun + 929
52  com.apple.CoreFoundation0x7fff8f0936b2 CFRunLoopRunSpec

[issue16059] Serialize MD5 computation-state and resume later

2012-10-06 Thread Christian Heimes

Christian Heimes added the comment:

I don't think it's possible to serialize an crypto hash object like MD5. The 
internal states of those objects are opaque data structures. There is no way 
official way to access the data structures in a platform independent way.

It *might* be possible to hack something for our own implementation of md5 but 
definitely not for OpenSSL's implementation.

--
nosy: +christian.heimes, gregory.p.smith

___
Python tracker 

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



[issue9216] FIPS support for hashlib

2012-10-06 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy: +christian.heimes
versions: +Python 3.4

___
Python tracker 

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



[issue8489] Support UTF8SMTP as part of RFC 5336

2012-10-06 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +barry, r.david.murray

___
Python tracker 

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



[issue9146] Segfault in hashlib in OpenSSL FIPS mode using non-FIPS-compliant hashes, if "ssl" imported before "hashlib"

2012-10-06 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy: +christian.heimes

___
Python tracker 

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



[issue4818] Patch for thread-support in md5module.c

2012-10-06 Thread Christian Heimes

Changes by Christian Heimes :


--
components: +Extension Modules
nosy: +christian.heimes
stage:  -> patch review
type:  -> performance
versions: +Python 3.4

___
Python tracker 

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



[issue8489] Support UTF8SMTP as part of RFC 5336

2012-10-06 Thread Christian Heimes

Christian Heimes added the comment:

I've changed the topic and set the version to 3.4.

--
components: +Library (Lib)
keywords: +easy
nosy: +christian.heimes, ezio.melotti
title: smtplib.SMTP.login() breaks with unicode input -> Support UTF8SMTP as 
part of RFC 5336
type: crash -> enhancement
versions: +Python 3.4 -Python 2.6

___
Python tracker 

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



[issue14322] More test coverage for hmac

2012-10-06 Thread Christian Heimes

Christian Heimes added the comment:

IIRC we also need a signed contributor agreement in order to commit your patch.

--
nosy: +christian.heimes
versions: +Python 3.4

___
Python tracker 

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



[issue8998] add crypto routines to stdlib

2012-10-06 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy: +christian.heimes
versions: +Python 3.4 -Python 3.3

___
Python tracker 

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



[issue14955] hmac.secure_compare() is not time-independent for unicode strings

2012-10-06 Thread Christian Heimes

Christian Heimes added the comment:

Python 3.3 contains a secure and working implementation for bytes. unicode 
isn't supported unless both sides contains ASCII text only.

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

___
Python tracker 

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



[issue16063] HMAC trans_5C is a string, causing a TypeError

2012-10-06 Thread Christian Heimes

Christian Heimes added the comment:

That's to be expected. HMAC and all cryptographic hashing algorithms work with 
bytes only. Text (unicode) is neither specified by the standards nor supported. 
You have to convert your text to bytes with some encoding (e.g. ASCII or UTF-8).

--
components: +Library (Lib) -None
nosy: +christian.heimes
resolution:  -> wont fix
status: open -> pending

___
Python tracker 

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



[issue7330] PyUnicode_FromFormat: implement width and precision for %s, %S, %R, %V, %U, %A

2012-10-06 Thread STINNER Victor

STINNER Victor added the comment:

I read again this old issue. I still think that it would be better to truncate 
to a number of *bytes* for "%s" format (and %V format when the first argument 
is NULL) to mimic printf(). The "replace" error handler of the UTF-8 decoder 
handles truncated string correctly. So I should update my patch.

--

___
Python tracker 

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



[issue16153] PyUnicode_FromFormatV() must fail if the format string is invalid

2012-10-06 Thread STINNER Victor

STINNER Victor added the comment:

Hum, my patch is incomplete: "%.s" is not seen as an invalid format.

--

___
Python tracker 

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



[issue12986] Using getrandbits() in uuid.uuid4() is faster and more readable

2012-10-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ok, let's reject the issue then.

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

___
Python tracker 

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



[issue12986] Using getrandbits() in uuid.uuid4() is faster and more readable

2012-10-06 Thread Christian Heimes

Christian Heimes added the comment:

If somebody is going to implement uuid based on the random module that somebody 
must take care of fork. Currently the PRGN in random isn't reseeded during 
fork(). This would lead to 100% collisions. The tempfile module contains a 
workaround for the issue.

I'm -1, see #15206.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue7330] PyUnicode_FromFormat: implement width and precision for %s, %S, %R, %V, %U, %A

2012-10-06 Thread STINNER Victor

STINNER Victor added the comment:

I rewrote PyUnicode_FromFormatV() to use a single step instead of four: see 
issue #16147. So it's now simpler to fix this issue. Here is a new patch to 
implement width and precision modifiers for %s, %A, %R, %S and %U formats.

--
Added file: http://bugs.python.org/file27465/unicode_fromformat_precision.patch

___
Python tracker 

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



[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2012-10-06 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Upload version which check if _tkinter module was destroyed (for example, if it 
was call from daemon thread runing Tk app when main thread is exiting with 
interpreter finalization).

--
Added file: http://bugs.python.org/file27464/_tkinter_pep3121-384_v4.patch

___
Python tracker 

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



[issue9957] SpooledTemporayFile.truncate should take size parameter

2012-10-06 Thread R. David Murray

R. David Murray added the comment:

I have made the doc changes.

--
nosy: +r.david.murray
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue9957] SpooledTemporayFile.truncate should take size parameter

2012-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 63c3a3f28b42 by R David Murray in branch '2.7':
#9957: document that SpooledTemporaryFile.truncate does not take size arg
http://hg.python.org/cpython/rev/63c3a3f28b42

New changeset 145480af0d78 by R David Murray in branch '3.2':
#9957: document that SpooledTemporaryFile.truncate does not take size arg
http://hg.python.org/cpython/rev/145480af0d78

New changeset 76feae02f48f by R David Murray in branch '3.3':
#9957: document that SpooledTemporaryFile.truncate now accepts a size arg
http://hg.python.org/cpython/rev/76feae02f48f

New changeset c7840999b65d by R David Murray in branch 'default':
merge #9957: document that SpooledTemporaryFile.truncate now accepts a size arg
http://hg.python.org/cpython/rev/c7840999b65d

--

___
Python tracker 

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



[issue16155] Some minor doc fixes in Doc/faq

2012-10-06 Thread Ravi Sinha

New submission from Ravi Sinha:

- help(fn) which in the REPL leads to a new pager/ display - seems to be 
difficult to test with doctest - it does not seem to pick the whitespace in the 
docs and does not match - Doc/faq/general.rst
- os.path.isdir returns True or False, not 0 or 1 as in the docs, but I 
didn't know if I should change that - Doc/faq/windows.rst

--
assignee: docs@python
components: Documentation
files: doc_faq.patch
keywords: patch
messages: 172254
nosy: Ravi.Sinha, chris.jerdonek, docs@python, r.david.murray, terry.reedy
priority: normal
severity: normal
status: open
title: Some minor doc fixes in Doc/faq
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file27463/doc_faq.patch

___
Python tracker 

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



[issue16154] Some minor doc fixes in Doc/library

2012-10-06 Thread Ravi Sinha

New submission from Ravi Sinha:

- Doc/library/math.rst - fsum will pass if 'from math import fsum' is done 
before it, but I've left such issues for now since there seems to be a debate 
about how to go about that
- some seem unfixable too - e.g. Doc/library/filecmp.rst - 'dir1' and 
'dir2' do not exist, and so the print_diff_files() fails, but there seems to be 
no reason to fix this; the same for Doc/library/imghdr.rst - there is no 
/tmp/bass.gif, so it fails
- some fail for inexplicable reasons - Doc/library/string.rst - the 
table of numbers does not match, though it is exactly the same. No idea why.

--
assignee: docs@python
components: Documentation
files: doc_lib.patch
keywords: patch
messages: 172253
nosy: Ravi.Sinha, chris.jerdonek, docs@python, r.david.murray, terry.reedy
priority: normal
severity: normal
status: open
title: Some minor doc fixes in Doc/library
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file27462/doc_lib.patch

___
Python tracker 

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



[issue16147] Rewrite PyUnicode_FromFormatV() to use the _PyUnicodeWriter API

2012-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e16ec3b468d1 by Victor Stinner in branch 'default':
Issue #16147: PyUnicode_FromFormatV() doesn't need anymore to allocate a buffer
http://hg.python.org/cpython/rev/e16ec3b468d1

--

___
Python tracker 

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



[issue16153] PyUnicode_FromFormatV() must fail if the format string is invalid

2012-10-06 Thread STINNER Victor

STINNER Victor added the comment:

The full test suite pass with the patch, so hopefully, CPython doesn't rely on 
this bug :-)

--

___
Python tracker 

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



[issue16153] PyUnicode_FromFormatV() must fail if the format string is invalid

2012-10-06 Thread STINNER Victor

New submission from STINNER Victor:

If the format string is invalid, PyUnicode_FromFormatV() formats the valid 
arguments and then copies the raw format string. Errors are silently ignored.

I propose to raise a ValueError if the format string is invalid. This change 
may "break" existing applications, but I hope that nobody relies on this "bug" 
:-)

Attached patch implements my proposition.

--
files: invalid_format.patch
keywords: patch
messages: 172250
nosy: haypo
priority: normal
severity: normal
status: open
title: PyUnicode_FromFormatV() must fail if the format string is invalid
versions: Python 3.4
Added file: http://bugs.python.org/file27461/invalid_format.patch

___
Python tracker 

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



[issue16135] Removal of OS/2 support

2012-10-06 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

distutils is not an external project.

--
nosy: +Arfrever
resolution: fixed -> 
stage: committed/rejected -> 
status: closed -> open

___
Python tracker 

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



[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2012-10-06 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Update patch to support TKINTER_PROTECT_LOADTK option.

--
Added file: http://bugs.python.org/file27460/_tkinter_pep3121-384_v3.patch

___
Python tracker 

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



[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2012-10-06 Thread Andrew Svetlov

Changes by Andrew Svetlov :


--
stage:  -> patch review

___
Python tracker 

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



[issue16147] Rewrite PyUnicode_FromFormatV() to use the _PyUnicodeWriter API

2012-10-06 Thread STINNER Victor

Changes by STINNER Victor :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue16147] Rewrite PyUnicode_FromFormatV() to use the _PyUnicodeWriter API

2012-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b4bee17625e1 by Victor Stinner in branch 'default':
Issue #16147: Rewrite PyUnicode_FromFormatV() to use _PyUnicodeWriter API
http://hg.python.org/cpython/rev/b4bee17625e1

New changeset d1369daeb9ec by Victor Stinner in branch 'default':
Issue #16147: PyUnicode_FromFormatV() now detects integer overflow when parsing
http://hg.python.org/cpython/rev/d1369daeb9ec

New changeset 5e319fdab563 by Victor Stinner in branch 'default':
Issue #16147: PyUnicode_FromFormatV() now raises an error if the argument of
http://hg.python.org/cpython/rev/5e319fdab563

--
nosy: +python-dev

___
Python tracker 

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



[issue16152] Trailing whitespace makes tokenize.generate_tokens pathological

2012-10-06 Thread Ned Batchelder

Ned Batchelder added the comment:

Here's a patch for 3.3.

I would like to also fix 2.7...

--
keywords: +patch
Added file: http://bugs.python.org/file27459/bug16152.patch

___
Python tracker 

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



[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2012-10-06 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Submit patch which store own state into module state.
Still not finished yet: need to add checks for "ready state" in every access to 
fields of module state structure.

--
assignee:  -> asvetlov
Added file: http://bugs.python.org/file27458/_tkinter_pep3121-384_v2.patch

___
Python tracker 

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



[issue16152] Trailing whitespace makes tokenize.generate_tokens pathological

2012-10-06 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue16152] Trailing whitespace makes tokenize.generate_tokens pathological

2012-10-06 Thread Ned Batchelder

New submission from Ned Batchelder:

When tokenizing with tokenize.generate_tokens, if the code ends with whitespace 
(no newline), the tokenizer produces an ERRORTOKEN for each space.  
Additionally, the regex that fails to find tokens in those spaces is linear in 
the number of spaces, so the overall performance is O(n**2).

I found this while tokenizing code samples uploaded to a public web site.  One 
sample for some reason ended with 40,000 spaces, which was taking two hours to 
tokenize.

Demonstration:

{{{
import token
import tokenize

try:
from cStringIO import StringIO
except:
from io import StringIO

code = "@"+" "*1
code_reader = StringIO(code).readline

for num, (ttyp, ttok, _, _, _) in 
enumerate(tokenize.generate_tokens(code_reader)):
print("%5d %15s %r" % (num, token.tok_name[ttyp], ttok))
}}}

--
components: Library (Lib)
messages: 172244
nosy: nedbat
priority: normal
severity: normal
stage: patch review
status: open
title: Trailing whitespace makes tokenize.generate_tokens pathological
versions: Python 2.7, Python 3.3

___
Python tracker 

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



[issue15111] Wrong ImportError message with importlib

2012-10-06 Thread Yury Selivanov

Yury Selivanov added the comment:

Brett, can we patch 3.3 too? (in 3.3.1 version?)

--

___
Python tracker 

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



[issue14667] No IDLE

2012-10-06 Thread James Lu

Changes by James Lu :


--
resolution:  -> works for me

___
Python tracker 

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



[issue14667] No IDLE

2012-10-06 Thread James Lu

Changes by James Lu :


--
status: pending -> closed

___
Python tracker 

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



[issue16147] Rewrite PyUnicode_FromFormatV() to use the _PyUnicodeWriter API

2012-10-06 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +eric.smith

___
Python tracker 

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



[issue16136] Removal of VMS support

2012-10-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

(correction: Python 2 is already supposed to work on VMS)

--

___
Python tracker 

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



[issue16136] Removal of VMS support

2012-10-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

If they ported Python 2 on VMS, even though Python 2 is already supposed to 
work on Python 2, it means our compatibility code is broken.

--
nosy: +pitrou

___
Python tracker 

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



[issue16136] Removal of VMS support

2012-10-06 Thread STINNER Victor

STINNER Victor added the comment:

I'm in contact with Sysgroup, a french company which ported Python 2 on VMS.

--

___
Python tracker 

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



[issue16148] Implement PEP 424

2012-10-06 Thread Alex Gaynor

Alex Gaynor added the comment:

Ah, thank you very much, sorry about that.

--

___
Python tracker 

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



[issue16151] Deferred KeyboardInterrupt in interactive mode

2012-10-06 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Here are some strange behavior I see (on Linux).

Run Python in interactive mode. Press . Message "Display all XXX 
possibilities? (y or n)" showed. Press , then . Prompt showed. Enter 
any text (or none) and press . KeyboardInterrupt exception raised.

In Python 2.7:
Traceback (most recent call last):
  File "/usr/lib/python2.7/encodings/utf_8.py", line 15, in decode
def decode(input, errors='strict'):
KeyboardInterrupt

In Python 3.x:
Traceback (most recent call last):
  File "", line 1, in 
KeyboardInterrupt

In Python 2.6 exception not raised.

It does not lead to any detrimental consequences (entered text saved in history 
and can be restored), but it looks very strange. Possibly for this must be some 
bug.

--
components: Interpreter Core
messages: 172238
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Deferred KeyboardInterrupt in interactive mode
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

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



[issue16144] misleading sentence in reference/import

2012-10-06 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.3

___
Python tracker 

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



[issue10968] threading.Timer should be a class so that it can be derived

2012-10-06 Thread R. David Murray

R. David Murray added the comment:

I have now committed (a revised version of) the doc changes.

Like I said in the commit message, it is unfortunate that the underscore names 
were not kept as aliases and that RLock wasn't also converted to a class, but 
it is too late to fix that in 3.3.  If someone wants to do RLock in 3.4 they 
should open a new issue.

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

___
Python tracker 

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



[issue10968] threading.Timer should be a class so that it can be derived

2012-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 98499371ca53 by R David Murray in branch '3.3':
#10968: commit threading doc changes and corresponding whatsnew entry.
http://hg.python.org/cpython/rev/98499371ca53

New changeset ad435964fc9c by R David Murray in branch 'default':
merge #10968: commit threading doc changes and corresponding whatsnew entry.
http://hg.python.org/cpython/rev/ad435964fc9c

--

___
Python tracker 

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



[issue14174] argparse.REMAINDER fails to parse remainder correctly

2012-10-06 Thread Idan Kamara

Idan Kamara added the comment:

Unfortunately parse_known_args is buggy too: http://bugs.python.org/issue16142

--

___
Python tracker 

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



[issue14668] Document the path option in the Windows installer

2012-10-06 Thread Brian Curtin

Changes by Brian Curtin :


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

___
Python tracker 

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



[issue15837] Added test to test_random.py testing Random.shuffle

2012-10-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I am not sure that None as default should be documented. It's implementation 
details (as third "int" argument) and can be silently changed in future 
versions.

--

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-06 Thread Georg Brandl

Georg Brandl added the comment:

3.3.1 will not be too long: maybe 4 weeks from now.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue14174] argparse.REMAINDER fails to parse remainder correctly

2012-10-06 Thread Jason R. Coombs

Jason R. Coombs added the comment:

I also ran into this problem. I put together this script to reproduce the issue:

import argparse

parser = argparse.ArgumentParser()
parser.add_argument('app')
parser.add_argument('--config')
parser.add_argument('app_args', nargs=argparse.REMAINDER)
args = parser.parse_args(['app', '--config', 'bar'])
print vars(args)
# actual: {'app': 'app', 'app_args': ['--config', 'bar'], 'config': None}
# expected: {'app': 'app', 'app_args': [], 'config': 'bar'}

I'll try using parse_known_args instead.

--
nosy: +jason.coombs

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-06 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
components: +Extension Modules
priority: normal -> release blocker

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-06 Thread Roger Binns

Roger Binns added the comment:

Roughly how long will it be before Python 3.3.1 comes out?  This issue means my 
users will get garbage or crashes, so I'll need to work around it if it will be 
quite a while till 3.3.1.

--

___
Python tracker 

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



[issue16149] "Decimal(2) != float(2)" documentation bug

2012-10-06 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
versions:  -Python 2.7

___
Python tracker 

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



[issue8478] tokenize.untokenize first token missing failure case

2012-10-06 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2012-10-06 Thread Andrew Svetlov

Andrew Svetlov added the comment:

I'm trying to make patch following myself recommendations.
Looks good but not finished yet. Will publish it after all work done.

--

___
Python tracker 

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



[issue16096] Get rid of dangerous integer overflow tricks

2012-10-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

In issue14700 were fixed two actual bugs. The fix was not be backported to 
older 
versions (and this changes included in patches for this issue). I think it is 
better to reopen issue14700 for backporting fixes to 2.7 and 3.2?

--

___
Python tracker 

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-06 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue16096] Get rid of dangerous integer overflow tricks

2012-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 906ae6485cb8 by Mark Dickinson in branch '3.3':
Issue #16096: Fix signed overflow in Objects/longobject.c.  Thanks Serhiy 
Storchaka.
http://hg.python.org/cpython/rev/906ae6485cb8

New changeset b728aac3bdb3 by Mark Dickinson in branch 'default':
Issue #16096: port fix from 3.3
http://hg.python.org/cpython/rev/b728aac3bdb3

--

___
Python tracker 

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



[issue16096] Get rid of dangerous integer overflow tricks

2012-10-06 Thread Mark Dickinson

Mark Dickinson added the comment:

Whoops.  I take it back about the Objects/longobject.c bit.  Fixing ...

--

___
Python tracker 

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



[issue16149] "Decimal(2) != float(2)" documentation bug

2012-10-06 Thread Georg Brandl

Georg Brandl added the comment:

Planted to 3.2 in 1dc66e654806.  Turns out the offending paragraph wasn't in 
2.7.

--

___
Python tracker 

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



[issue16149] "Decimal(2) != float(2)" documentation bug

2012-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1dc66e654806 by Georg Brandl in branch '3.2':
Closes #16149: remove now-false statement about the inability to compare 
Decimal and float objects.
http://hg.python.org/cpython/rev/1dc66e654806

--
status: open -> closed

___
Python tracker 

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



[issue16096] Get rid of dangerous integer overflow tricks

2012-10-06 Thread Mark Dickinson

Mark Dickinson added the comment:

Applied the 3.3 patch to 3.3 and default, with some minor changes:

 - revert the Objects/longobject.c changes, since they don't depend
   on signed overflow

 - fix the second change in Objects/tupleobject.c so that the overflow check 
happens before the multiplication rather than after.

--

___
Python tracker 

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



[issue16096] Get rid of dangerous integer overflow tricks

2012-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 152d85b2da3a by Mark Dickinson in branch '3.3':
Issue #16096: Fix several occurrences of potential signed integer overflow.  
Thanks Serhiy Storchaka.
http://hg.python.org/cpython/rev/152d85b2da3a

New changeset faae99459b43 by Mark Dickinson in branch 'default':
Issue #16096: Merge fixes from 3.3.
http://hg.python.org/cpython/rev/faae99459b43

--
nosy: +python-dev

___
Python tracker 

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



[issue16150] Implement generator interface in itertools.chain.

2012-10-06 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2012-10-06 Thread Robin Schreiber

Robin Schreiber added the comment:

Before I submitted this patch, I used to have these variables inside the 
modulestate, which caused severe problems. I do not know the exact reason, but 
my guess is that these variables have to be globally available for every thread 
(tcl variables are used for thread synchronization arent they?). As the 
modulestate may change depending on the thread, one can no longer guarantee 
that every thread within the process is operating on the same variable. This 
might not be nessecary, however as I mentioned, the naive approach of putting 
the variables inside the modulestate did not work out for me.

--

___
Python tracker 

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



[issue16096] Get rid of dangerous integer overflow tricks

2012-10-06 Thread Mark Dickinson

Mark Dickinson added the comment:

Serhiy, I don't understand what you're getting at.  Can you explain?

--

___
Python tracker 

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



[issue16106] antigravity tests

2012-10-06 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo

___
Python tracker 

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



[issue16096] Get rid of dangerous integer overflow tricks

2012-10-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> unless they can be shown to cause actual bugs.

See issue14700.

--

___
Python tracker 

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



[issue16096] Get rid of dangerous integer overflow tricks

2012-10-06 Thread Mark Dickinson

Mark Dickinson added the comment:

> It's becouse 3.3 already contains some fixes which was not be backported
> to older versions.

Yes, exactly!  That's what I meant when I said:

"So far, I've been fixing these overflow bugs only in the development branches"

There were lots of integer overflow occurrences like these found by John Regehr 
in issue 9530.  I chose to fix those only in the current development branch, 
which was 3.3 at the time.  Since we've made an effort to clean up 3.3 in that 
respect, I think it's worth finishing that job off by applying your patch both 
to 3.3 and 3.4.

--

___
Python tracker 

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



[issue16096] Get rid of dangerous integer overflow tricks

2012-10-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> especially since the 3.3 patch is smaller than the others.

It's becouse 3.3 already contains some fixes which was not be backported to 
older versions.

--

___
Python tracker 

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



[issue15186] Support os.walk(dir_fd=)

2012-10-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Should this issue be closed?

--

___
Python tracker 

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



[issue12986] Using getrandbits() in uuid.uuid4() is faster and more readable

2012-10-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I suggest to reject this proposal because of a deterioration in security.

--

___
Python tracker 

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



[issue16096] Get rid of dangerous integer overflow tricks

2012-10-06 Thread Mark Dickinson

Mark Dickinson added the comment:

> It's maybe safer (and simpler) to not touch such code in Python
> older than 3.4.

So far, I've been fixing these overflow bugs only in the development branches, 
unless they can be shown to cause actual bugs.  That said, I think it's 
probably okay to apply these for 3.3 as well as 3.4, especially since the 3.3 
patch is smaller than the others.  I'll review and apply.

--
assignee:  -> mark.dickinson

___
Python tracker 

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



[issue16025] Minor corrections to the zipfile documentation

2012-10-06 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
stage: patch review -> committed/rejected

___
Python tracker 

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



[issue16025] Minor corrections to the zipfile documentation

2012-10-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you, Andrew.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2012-10-06 Thread Andrew Svetlov

Andrew Svetlov added the comment:

I would to have all module state inside _tkinterstate structure.
static variables like tcl_lock, tcl_state, quitMainLoop, errorInCmd etc should 
be moved into _tkinterstate also.

--

___
Python tracker 

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



[issue3022] mailbox module, two small fixes

2012-10-06 Thread R. David Murray

Changes by R. David Murray :


--
components: +email
nosy: +barry, petri.lehtinen

___
Python tracker 

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



[issue16025] Minor corrections to the zipfile documentation

2012-10-06 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Done in 674fa8d211f2, 5665806908c4 and c9695a0b0923. Sorry.

--

___
Python tracker 

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



[issue16025] Minor corrections to the zipfile documentation

2012-10-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Andrew, please revert the test_subprocess changes.

--
nosy: +pitrou

___
Python tracker 

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



[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2012-10-06 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Update patch conforming to current _tkinter code.

--
Added file: http://bugs.python.org/file27457/_tkinter_pep3121-384_v1.patch

___
Python tracker 

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



[issue11643] Use |version| instead of X.Y in the doc

2012-10-06 Thread Éric Araujo

Éric Araujo added the comment:

After reviewing the patch I think that this change would not actually improve 
things.  What do you think?  (Thanks for the patch nonetheless :)*

--

___
Python tracker 

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



[issue16148] Implement PEP 424

2012-10-06 Thread Christian Heimes

Christian Heimes added the comment:

I've taken care of the issue in f56a49e74178 and 895f9fddb8e3.

--
nosy: +christian.heimes
resolution:  -> fixed
stage:  -> committed/rejected

___
Python tracker 

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



[issue5815] locale.getdefaultlocale() missing corner case

2012-10-06 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
versions: +Python 3.4

___
Python tracker 

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



  1   2   >