[issue17852] Built-in module _io can loose data from buffered files at exit

2013-04-28 Thread Charles-François Natali

Charles-François Natali added the comment:

> It used to be a consistently reliable behavior in Python 2 (and we made it so 
> in PyPy too), provided of course that the process exits normally; but it no 
> longer is in Python 3.  Well I can see the reasons for not flushing files, if 
> it's clearly documented somewhere as a change of behavior from Python 2.

When you say Python 2, I assume you mean CPython 2, right?
Because - AFAICT - files got flushed only by accident, not by design.
For example, I suspect that Jython doesn't flush files on exit (since
the JVM doesn't), and I guess IronPython neither.

> However I'm complaining about the current behavior: files are flushed *most 
> of the time*.

That's the problem with implementation-defined behavior ;-)

--

___
Python tracker 

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



[issue17838] Can't assign a different value for sys.stdin in IDLE

2013-04-28 Thread Roger Serwy

Roger Serwy added the comment:

I agree with Serhiy that the patch should be updated to better explain why the 
extra reference to stdin was being held. The attached patch provides that 
update in case anyone considers applying it in the future.

Terry, are you suggesting that the code should read like "sys.__stdin__ = 
sys.stdin" within MyHandler in Lib/idlelib/run.py ?

--
Added file: http://bugs.python.org/file30042/hold_stdin_rev1.patch

___
Python tracker 

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



[issue17859] improve error message for saving ints to file

2013-04-28 Thread anatoly techtonik

New submission from anatoly techtonik:

I needed to write some bytes to file and got this message.

>>> hex = open('hex', 'wb')
>>> for x in range(0, 0xff, 0x11):
...   hex.write(x)
...
Traceback (most recent call last):
  File "", line 2, in 
TypeError: 'int' does not support the buffer interface

The cause of the error is not that 'int' doesn't support some interface (which 
is strange already, because the function analyzes and writes int, not the int 
writes itself), but because it is impossible to know how many binary bytes the 
int type should take when written.

In Python 2 the solution is:
  ...
  hex.write(chr(x))

But in Python 3 this is again:
  TypeError: 'str' does not support the buffer interface

In Python 3 the solution is:
  ...
  hex.write(x.to_bytes(1, 'little'))

--
messages: 187968
nosy: techtonik
priority: normal
severity: normal
status: open
title: improve error message for saving ints to file
versions: Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

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



[issue17806] Add keyword args support to str/bytes.expandtabs()

2013-04-28 Thread Ezio Melotti

Ezio Melotti added the comment:

Without patch:
$ ./python -m timeit -s 'et = "a\tb\tc\td\te".expandtabs' 'et()'
100 loops, best of 3: 0.672 usec per loop
$ ./python -m timeit -s 'et = "a\tb\tc\td\te".expandtabs' 'et(4)'
100 loops, best of 3: 0.744 usec per loop
$ ./python -m timeit -s 'et = "a\tb\tc\td\te".expandtabs' 'et(8)'
100 loops, best of 3: 0.762 usec per loop

$ ./python -m timeit -s 'et = "a\tb\tc\td\te".expandtabs' 'et()'
100 loops, best of 3: 0.658 usec per loop
$ ./python -m timeit -s 'et = "a\tb\tc\td\te".expandtabs' 'et(4)'
100 loops, best of 3: 0.73 usec per loop
$ ./python -m timeit -s 'et = "a\tb\tc\td\te".expandtabs' 'et(8)'
100 loops, best of 3: 0.769 usec per loop
$ ./python -m timeit -s 'et = "a\tb\tc\td\te".expandtabs' 'et(tabsize=4)'
100 loops, best of 3: 1.84 usec per loop
$ ./python -m timeit -s 'et = "a\tb\tc\td\te".expandtabs' 'et(tabsize=8)'
100 loops, best of 3: 1.89 usec per loop

If "tabsize" is not used the performances seem the same, if it's used it's 2-3 
times slower.  I don't think expandtabs is used in performance-critical paths, 
but if it is the patch shouldn't affect it as long as people don't add 
"tabsize" to the call.

FTR the reason to add this is consistency (Python functions allow you to pass 
positional args as keywords too) and readability (s.expandtabs(3) might be read 
as "expand at most 3 tabs" or something else).

--

___
Python tracker 

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



[issue17859] improve error message for saving ints to file

2013-04-28 Thread Ezio Melotti

Ezio Melotti added the comment:

Maybe the error could be replaced with something like:
TypeError: write() requires an object that supports the buffer interface, not 
''

But that's a bit long and also not entirely accurate, because the type accepted 
by write depends on the type of the file (binary or text).  The first problem 
could be solved by using "requires a bytes-like object"[0], the second problem 
could be fixed by omitting the name of the function:
TypeError: a bytes-like object is required, not ''

[0]: #16518 has a discussion about the best term to describe "objects that 
support the buffer protocol"

--
nosy: +ezio.melotti

___
Python tracker 

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



[issue17857] sqlite modules doesn't build with 2.7.4 on Mac OS X 10.4

2013-04-28 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

On 28.04.2013 05:20, Ned Deily wrote:
> 
> Ned Deily added the comment:
> 
> Marc-Andre, can you elaborate on why you think Python 3 is not affected? The 
> changes for Issue17073 also added sqlite3_int64 to 3.2, 3.3, and default and, 
> for me on 10.4, _sqlite3.so currently fails to build in all three.  (I don't 
> think 3.2 is worth worrying about but if Georg does spin a brown bag 3.2.5 he 
> could cherry pick it.)

Oh, I just did a grep on the Python 3.3.0 code base and couldn't
find any hits. Was the issue you mentioned applied to the 3.3.1 dot
release ?

If so, then those new mentions will have to be fixed as well,
of course.

--

___
Python tracker 

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



[issue16518] add "buffer protocol" to glossary

2013-04-28 Thread Florent Xicluna

Changes by Florent Xicluna :


--
nosy: +flox

___
Python tracker 

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



[issue17825] Indentation.offset and SyntaxError.offset mismatch

2013-04-28 Thread Florent Xicluna

Changes by Florent Xicluna :


--
components: +Interpreter Core, Library (Lib)

___
Python tracker 

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



[issue17857] sqlite modules doesn't build with 2.7.4 on Mac OS X 10.4

2013-04-28 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue17857] sqlite modules doesn't build with 2.7.4 on Mac OS X 10.4

2013-04-28 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Patch for issue14572 was applied only to 2.7 and then I backported the bug back 
from 3.x.

--

___
Python tracker 

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



[issue17838] Can't assign a different value for sys.stdin in IDLE

2013-04-28 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Last patch LGTM.

With keeping a reference in sys.__stdin__ we will encounter same issue.

sys.stdin = None
sys.__stdin__ = None  # close!

--

___
Python tracker 

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



[issue17857] sqlite modules doesn't build with 2.7.4 on Mac OS X 10.4

2013-04-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 44fe1f5b07e3 by Serhiy Storchaka in branch '2.7':
Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,
http://hg.python.org/cpython/rev/44fe1f5b07e3

New changeset b677f656c0bf by Serhiy Storchaka in branch '3.3':
Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,
http://hg.python.org/cpython/rev/b677f656c0bf

New changeset 19015fc0c338 by Serhiy Storchaka in branch 'default':
Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,
http://hg.python.org/cpython/rev/19015fc0c338

--

___
Python tracker 

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



[issue14572] 2.7.3: sqlite module does not build on centos 5 and Mac OS X 10.4

2013-04-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 44fe1f5b07e3 by Serhiy Storchaka in branch '2.7':
Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,
http://hg.python.org/cpython/rev/44fe1f5b07e3

--

___
Python tracker 

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



[issue17073] Integer overflow in sqlite module

2013-04-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 44fe1f5b07e3 by Serhiy Storchaka in branch '2.7':
Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,
http://hg.python.org/cpython/rev/44fe1f5b07e3

--

___
Python tracker 

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



[issue17842] Add base64 module tests for a bytearray argument

2013-04-28 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue17853] Conflict between lexical scoping and name injection in __prepare__

2013-04-28 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
versions: +Python 3.4 -Python 3.2, Python 3.3

___
Python tracker 

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



[issue17842] Add base64 module tests for a bytearray argument

2013-04-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6e57d097ae56 by Serhiy Storchaka in branch '2.7':
Issue #17842. Added base64 module tests with bytearray arguments.
http://hg.python.org/cpython/rev/6e57d097ae56

New changeset 44edbea21640 by Serhiy Storchaka in branch '3.3':
Issue #17842. Added base64 module tests with bytearray arguments.
http://hg.python.org/cpython/rev/44edbea21640

New changeset f7f6c2ea4b14 by Serhiy Storchaka in branch 'default':
Issue #17842. Added base64 module tests with bytearray arguments.
http://hg.python.org/cpython/rev/f7f6c2ea4b14

--
nosy: +python-dev

___
Python tracker 

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



[issue17659] no way to determine First weekday (based on locale)

2013-04-28 Thread R. David Murray

R. David Murray added the comment:

Thanks for the patch.  We'll be interested in the results of your research, 
certainly.  Windows support would also be a question we'd probably want to 
consider before deciding whether or not to add this.

I've added MAL as nosy since I suspect he'll have thoughts about the API, as 
well as the appropriateness of the feature.

--
nosy: +lemburg
stage: needs patch -> patch review

___
Python tracker 

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



[issue12220] minidom xmlns not handling spaces in xmlns attribute value field

2013-04-28 Thread R. David Murray

R. David Murray added the comment:

Thanks for the patch.  It would be nice to have a test before we commit this.  
The tests should use assertRaisesRegex to look for something specific to this 
error...probably the word 'syntax'...in the error text.

On the other hand, if the spaces are technically legal, is calling it a syntax 
error appropriate?  Perhaps the message should instead say something like 
"spaces in URIs is not supported"?

--
nosy: +r.david.murray
versions: +Python 3.4 -Python 3.2

___
Python tracker 

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



[issue1727418] xmlrpclib waits indefinately

2013-04-28 Thread R. David Murray

R. David Murray added the comment:

Thanks for verifying this, Adam.

--
nosy: +r.david.murray
resolution:  -> out of date
stage: test needed -> 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



[issue17724] urllib -- add_handler method refactoring for clarity

2013-04-28 Thread R. David Murray

R. David Murray added the comment:

I presume you closed this bug yourself because you decided it probably wasn't 
worth applying it?  I'm inclined to agree.  Cleaning up the code would be nice, 
but since the existing code works fine, changing it *just* to clean it up 
probably isn't worth the code churn or the chance of introducing an unexpected 
new bug.  

If we were also fixing a bug while doing the rewrite, it would be a different 
story.  So I'll try to keep this patch in mind if we have occasion to fix 
anything in that code.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue17860] subprocess docs lack info how to use output result

2013-04-28 Thread anatoly techtonik

New submission from anatoly techtonik:

http://docs.python.org/3/library/subprocess.html

A common confusion is that result from subprocess calls in Python 3 is bytes, 
not string, and needs to be converted.

The problem is complicated because you need to know the encoding of 
input/output streams. This should be documented at least.

http://stackoverflow.com/questions/606191/convert-byte-array-to-python-string

--
assignee: docs@python
components: Documentation
messages: 187982
nosy: docs@python, techtonik
priority: normal
severity: normal
status: open
title: subprocess docs lack info how to use output result
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



[issue17860] subprocess docs lack info how to use output result

2013-04-28 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti, haypo
stage:  -> needs patch
type:  -> enhancement
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



[issue17853] Conflict between lexical scoping and name injection in __prepare__

2013-04-28 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Nick, care to review?

--
keywords: +patch
Added file: http://bugs.python.org/file30043/classderef.patch

___
Python tracker 

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



[issue17839] base64 module should use memoryview

2013-04-28 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch which allows bytes-like arguments in the base64 module. I just 
removed type checking if underlying function raises an exception with an 
appropriate message. I'm not sure about b32encode(), perhaps we can left an 
exception from memoryview().

--
Added file: http://bugs.python.org/file30044/base64_buffer_input.patch

___
Python tracker 

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



[issue17842] Add base64 module tests for a bytearray argument

2013-04-28 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Committed. Thank you for the patch.

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



[issue17861] put opcode information in one place

2013-04-28 Thread Benjamin Peterson

New submission from Benjamin Peterson:

Right now, opcode information is duplicated in Include/opcode.h and 
Lib/opcode.py. I should only have to update one manually and have the other one 
generated automatically. opcode.h should probably be generated by a script from 
opcode.py.

--
components: Interpreter Core
keywords: easy
messages: 187986
nosy: benjamin.peterson
priority: normal
severity: normal
stage: needs patch
status: open
title: put opcode information in one place
type: enhancement
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



[issue7152] urllib2.build_opener() skips ProxyHandler

2013-04-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f2472fb98457 by R David Murray in branch '3.3':
#7152: Clarify that ProxyHandler is added only if proxy settings are detected.
http://hg.python.org/cpython/rev/f2472fb98457

New changeset aca80409ecdd by R David Murray in branch 'default':
Merge #7152: Clarify that ProxyHandler is added only if proxy settings are 
detected.
http://hg.python.org/cpython/rev/aca80409ecdd

New changeset 27999a389742 by R David Murray in branch '2.7':
#7152: Clarify that ProxyHandler is added only if proxy settings are detected.
http://hg.python.org/cpython/rev/27999a389742

--
nosy: +python-dev

___
Python tracker 

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



[issue17853] Conflict between lexical scoping and name injection in __prepare__

2013-04-28 Thread Ethan Furman

Ethan Furman added the comment:

Thanks, Benjamin.  Looking at that patch I realize the fix was way beyond my 
current core-hacking skills.

--

___
Python tracker 

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



[issue17358] imp.load_module() leads to the improper caching of the 'file' argument

2013-04-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3dcc81c2eef5 by Brett Cannon in branch '3.3':
Issue #17358: imp.load_source() and load_compiled() should now return
http://hg.python.org/cpython/rev/3dcc81c2eef5

New changeset be6bbc9f0561 by Brett Cannon in branch 'default':
merge for issue #17358
http://hg.python.org/cpython/rev/be6bbc9f0561

--
nosy: +python-dev

___
Python tracker 

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



[issue17358] imp.load_module() leads to the improper caching of the 'file' argument

2013-04-28 Thread Brett Cannon

Brett Cannon added the comment:

I figured out why testing was difficult; the file is only read from if it's 
necessary. That means if you are trying to load source which has bytecode 
available which is legitimate it will simply skip over the source and read from 
the bytecode.

So in the end I just fixed it without a test since it's for a marginal case for 
a deprecated module. Plus the fix is rather simple and still passed the test 
suite.

--
resolution:  -> fixed
stage: test needed -> 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



[issue17659] no way to determine First weekday (based on locale)

2013-04-28 Thread Éric Araujo

Éric Araujo added the comment:

If I read the patch correctly, the code can return 0 if Monday is the first 
weekday as indicated by glibc, or as a fallback.  I think there should be a 
difference.

--

___
Python tracker 

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



[issue12220] minidom xmlns not handling spaces in xmlns attribute value field

2013-04-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

'unsupported syntax' would be more accurate, but I agree that saying what it is 
that is unsupported is even better.

--

___
Python tracker 

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



[issue7152] urllib2.build_opener() skips ProxyHandler

2013-04-28 Thread Éric Araujo

Éric Araujo added the comment:

Patch adds a mention of DataHandler, that code doesn’t have yet.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue17859] improve error message for saving ints to file

2013-04-28 Thread Éric Araujo

Éric Araujo added the comment:

I don’t understand that the first message says.

If one wants to call the write method of a file object opened in binary mode, 
one needs to pass bytes, as the doc surely explains.  The same error that is 
seen here with ints would be seen with any other objects.  A more practical way 
is to use print (with its file, sep and end parameters) which will do the 
conversion for you.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue17862] itertools.chunks(iterable, size, fill=None)

2013-04-28 Thread anatoly techtonik

New submission from anatoly techtonik:

The history:
2007 - http://bugs.python.org/issue1502
2009 - http://bugs.python.org/issue6021

I'd like to resurrect this proposal again, but name it:
  itertools.chunks(iterable, size, fill=None)

Two reasons.
1. practicality  - top itertools request on StackOverflow
http://stackoverflow.com/search?tab=votes&q=%5bpython%5d%20%2bitertools

2. performance
the time should be a constant for a fixed-length iterable regardless of a size 
of chunk, but in fact the time is proportional to the size of chunk

{{{
import timeit

print timeit.timeit(
  'grouper(3, "x"*40)', setup='from __main__ import grouper', 
number=1000
)
print timeit.timeit(
  'grouper(30, "x"*40)', setup='from __main__ import grouper', 
number=1000
)
}}}

1.52581005407
14.6219704599


Addressing odd length user stories from msg87745:
1. no exceptions - odd end is an easy check if you need it
2. fill-in value - provided
3. truncation - just don't set fill-in value
3.1. if you really need fill-in as None, then an itertools.TRUNCATE value can 
be used as a truncation parameter
4. partially filled-in tuple - not sure what that means

Raymond, your opinion is critical here. =)

--
components: Library (Lib)
messages: 187995
nosy: rhettinger, techtonik
priority: normal
severity: normal
status: open
title: itertools.chunks(iterable, size, fill=None)
versions: Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

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



[issue17860] subprocess docs lack info how to use output result

2013-04-28 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Actually stdin/stdout/stderr are string streams if universal_newline is True

--
nosy: +asvetlov

___
Python tracker 

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



[issue17853] Conflict between lexical scoping and name injection in __prepare__

2013-04-28 Thread Mark Dickinson

Mark Dickinson added the comment:

What's the purpose of the CLASS_FREE #definition?

--

___
Python tracker 

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



[issue17861] put opcode information in one place

2013-04-28 Thread Kushal Das

Kushal Das added the comment:

Here is a simple script which prints the opcode.h in console. We can redirect 
it as required.

--
nosy: +kushaldas
Added file: http://bugs.python.org/file30045/generate_opcode_h.py

___
Python tracker 

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



[issue17843] Lib/test/testbz2_bigmem.bz2 trigger virus warnings

2013-04-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b7bfedc8ee18 by Nadeem Vawda in branch '2.7':
Issue #17843: Remove bz2 test data that triggers antivirus warnings.
http://hg.python.org/cpython/rev/b7bfedc8ee18

--
nosy: +python-dev

___
Python tracker 

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



[issue17861] put opcode information in one place

2013-04-28 Thread Kushal Das

Kushal Das added the comment:

Second version of the script with the fix for HAVE_ARGUMENT

--
Added file: http://bugs.python.org/file30046/generate_opcode_h.py

___
Python tracker 

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



[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2013-04-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

With PEP343 accepted, we can apply changes more uniformly.

I think each of the changes listed should be separate issues with separate 
review, as most already are (msg149930). 

"Run a script without saving it first." I am sure this has been mentioned on at 
least 1 other issue, but I cannot find an issue devoted to this.

"The "PseudoStderrFile" in PyShell.py brings the shell forward if an error 
occurs." The PseudoFiles were updated last fall. Has this behavior been added?

--
nosy: +terry.reedy
versions: +Python 2.7, Python 3.3, Python 3.4 -Python 3.2

___
Python tracker 

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



[issue17843] Lib/test/testbz2_bigmem.bz2 trigger virus warnings

2013-04-28 Thread Christian Heimes

Christian Heimes added the comment:

Yes, you are right. Python 3.3.1 doesn't contain the file in question, just 
2.7.4 and 3.2.4. 

Could you update Misc/NEWS, too? The release notes should mention that a false 
positive virus warning was removed.

--

___
Python tracker 

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



[issue17843] Lib/test/testbz2_bigmem.bz2 trigger virus warnings

2013-04-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 529c4defbfd7 by Nadeem Vawda in branch '2.7':
Add missing NEWS entry for issue #17843.
http://hg.python.org/cpython/rev/529c4defbfd7

--

___
Python tracker 

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



[issue17858] Different documentation for identical methods

2013-04-28 Thread Andriy Mysyk

Andriy Mysyk added the comment:

Apologies.  I did not mean to include 17851 changes. Removed the changes, 
leaving out the comma after "block" in the attached patch.

--
Added file: http://bugs.python.org/file30047/issue17858.patch

___
Python tracker 

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



[issue17861] put opcode information in one place

2013-04-28 Thread Kushal Das

Kushal Das added the comment:

Third revision with fixed empty spaces at the end of the lines.

--
Added file: http://bugs.python.org/file30048/generate_opcode_h.py

___
Python tracker 

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



[issue17863] Bad sys.stdin assignment hands interpreter.

2013-04-28 Thread Terry J. Reedy

New submission from Terry J. Reedy:

This appears to be Python 3 specific. On 2.7.4 (Win7):
>>> import sys
>>> sys.stdin='abd'
>>>

With fresh 3.4 repository debug build, prompt never appears, ^C, ^D are 
ignored. Must close with window's [X] button. With fresh 3.3, get repeated 
[62312 refs] lines. One could guess that they are generated but suppressed in 
3.4.

There is a possibility that this is specific to debug builds; I cannot 
currently build or run one for 2.7. However, there is no problem with Idle 
running (on Windows) with 3.3/3.4 pythonw-d. (In other words, see same behavior 
as 2.7 above.)

--
messages: 188006
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Bad sys.stdin assignment hands interpreter.
type: behavior
versions: 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



[issue17853] Conflict between lexical scoping and name injection in __prepare__

2013-04-28 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
nosy: +barry

___
Python tracker 

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



[issue17843] Lib/test/testbz2_bigmem.bz2 trigger virus warnings

2013-04-28 Thread Nadeem Vawda

Nadeem Vawda added the comment:

OK, 2.7 is done.

Georg, what do we want to do for 3.2? I've attached a patch.

--
assignee: nadeem.vawda -> georg.brandl
keywords: +patch
Added file: http://bugs.python.org/file30049/bz2-viruswarning.diff

___
Python tracker 

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



[issue17853] Conflict between lexical scoping and name injection in __prepare__

2013-04-28 Thread Benjamin Peterson

Benjamin Peterson added the comment:

That's superflous.

--

___
Python tracker 

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



[issue17838] Can't assign a different value for sys.stdin in IDLE

2013-04-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Roger: yes. This solves immediate problem and makes Idle more like console 
interpreter. Same should be done for all three.

Serhiy: the sole and documented purpose of sys.__stdxyz__ is to serve as backup 
bindings for the three i/o streams, so rebinding them is senseless. I would be 
willing to say 'you get what you deserve if you do that'. But since console 
tolerates double rebinding, we can make Idle do so too. Again, same should be 
done for all three streams.

See attached patch. It seems to work, but someone please recheck for typos. Are 
we sure that binding streams to handler object cannot cause problems, such as 
during shutdown with atexit handlers?

--
Added file: http://bugs.python.org/file30050/Terry17838.diff

___
Python tracker 

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



[issue17642] IDLE add font resizing hot keys

2013-04-28 Thread Alejandro Rodas

Alejandro Rodas added the comment:

I have made a patch to zoom in and out with  and  
events, respectively. I'll upload it soon since the test suite is giving me an 
error in test_multiprocessing, even before writing the patch.

I have taken a look at ZoomFont.py of IdleX and it also has the option to reset 
the font size to its original value, but I don't know if this feature was 
wanted to be added too. However, ZoomFont controls the size of the LineNumber 
extension, while this patch only changes the font of the editview's text widget.

--
nosy: +alex.rodas

___
Python tracker 

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



[issue17864] IDLE won't run

2013-04-28 Thread Ben Read

New submission from Ben Read:

I am installing Python 3.31 on a Mac running OS 10.8.2 and have already 
installed ActiveTCL 8.5.13. When I try and launch IDLE, the icon appears on the 
dock for a second and then disappears and the application doesn't run. I have 
already installed both Python and Active TCL in the same way on two other Macs 
and it has run just fine, so I don't know why it's not running on this one. Is 
there anything specific that would cause this to happen?

Thanks,
Ben

--
components: IDLE
messages: 188011
nosy: Bozdog
priority: normal
severity: normal
status: open
title: IDLE won't run
type: crash
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



[issue17857] sqlite modules doesn't build with 2.7.4 on Mac OS X 10.4

2013-04-28 Thread Ned Deily

Ned Deily added the comment:

Fix verified on OS X 10.4 for 2.7, 3.3, and default.

--

___
Python tracker 

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



[issue17864] IDLE won't run

2013-04-28 Thread Ned Deily

Ned Deily added the comment:

How are you trying to launch IDLE? Also, use the Console.app (in 
/Applications/Utilites) to examine system.log to see if there are any error 
messages produced there when you attempt to launch IDLE.

--
nosy: +ned.deily

___
Python tracker 

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



[issue1722] Undocumented urllib functions

2013-04-28 Thread Nathan Housel

Nathan Housel added the comment:

This has been fixed in trunk, the split* methods have documentation and appear 
in the module docs. 

See:
>>> help('urllib')

--
nosy: +plasticgap

___
Python tracker 

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



[issue17843] Lib/test/testbz2_bigmem.bz2 trigger virus warnings

2013-04-28 Thread Georg Brandl

Georg Brandl added the comment:

Thanks, I've got it from here.

--
versions:  -Python 2.7, 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



[issue15535] Fix pickling efficiency of named tuples in 2.7.3

2013-04-28 Thread Georg Brandl

Changes by Georg Brandl :


--
versions: +Python 3.2

___
Python tracker 

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



[issue17860] subprocess docs lack info how to use output result

2013-04-28 Thread anatoly techtonik

anatoly techtonik added the comment:

>
>
> Actually stdin/stdout/stderr are string streams if universal_newline is
> True
>

I believe that makes the issue even worse. =)

--

___
Python tracker 

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



[issue17547] "checking whether gcc supports ParseTuple __format__... " erroneously returns yes with gcc 4.8

2013-04-28 Thread Georg Brandl

Changes by Georg Brandl :


--
versions: +Python 3.2

___
Python tracker 

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



[issue17192] libffi-3.0.13 import

2013-04-28 Thread Georg Brandl

Georg Brandl added the comment:

Greg?

--

___
Python tracker 

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



[issue17123] Add OCSP support to ssl module

2013-04-28 Thread Georg Brandl

Changes by Georg Brandl :


--
versions:  -Python 3.2, Python 3.3

___
Python tracker 

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



[issue17425] Update OpenSSL versions in Windows builds

2013-04-28 Thread Georg Brandl

Changes by Georg Brandl :


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



[issue17864] IDLE won't run

2013-04-28 Thread Ben Read

Ben Read added the comment:

Hi there,

I'm launching IDLE from Applications in Finder (double clicking the application 
file). 

I've tried doing this while Console is open and the response is:

28/04/2013 21:17:19.271 Dock[167]: no information back from LS about running 
process

Thanks,

Ben
On 28 Apr 2013, at 20:04, Ned Deily  wrote:

> 
> Ned Deily added the comment:
> 
> How are you trying to launch IDLE? Also, use the Console.app (in 
> /Applications/Utilites) to examine system.log to see if there are any error 
> messages produced there when you attempt to launch IDLE.
> 
> --
> nosy: +ned.deily
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue17642] IDLE add font resizing hot keys

2013-04-28 Thread Abhishek Kumar

Abhishek Kumar added the comment:

I have submitted a patch that is working fine on Windows and on Ubuntu. I have 
used ZoomFont.py of IdleX.

On pressing Ctrl+ or Ctrl- it changes the user configuration and updates the 
font of all open windows as there is a common user configuration for all 
windows. I have removed polling from CodeContext instead I set font of 
CodeContext on every font change.

As this is my first patch. Please review it and give your valuable feedback.

--
keywords: +patch
nosy: +Abhishek.Kumar
Added file: http://bugs.python.org/file30051/issue17642_patch2.diff

___
Python tracker 

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



[issue17425] Update OpenSSL versions in Windows builds

2013-04-28 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Please don't reopen issues. If there is a bug in the current setup, please 
submit a new reporting indicating what the problem is.

--

___
Python tracker 

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



[issue17864] IDLE won't run

2013-04-28 Thread Ned Deily

Ned Deily added the comment:

OK, assuming you are using a default install of Python 3.3.1, try opening a 
terminal window (Terminal.app) and launching IDLE from there by typing:

/usr/local/bin/python3.3 -c 'import sys;print(sys.version)'
/usr/local/bin/python3.3 -m idlelib

and report what messages you see there.

Also, are there any other messages with "com.apple.launchd.peruser" or 
"org.python.IDLE" immediately before that one?  You can use Console.app to see 
if there are any relevant crash reports under User Diagnostic Reports.  You 
could use Activity Monitor.app to see if there is already an IDLE or Python 
process running.  If you can, try logging -out and -in and/or rebooting.  And 
which Python 3.3.1 did you install: from the python.org 3.3.1 64-bit/32-bit 
installer, from the python.org 3.3.1 32-bit-only installer, or from somewhere 
else?

--

___
Python tracker 

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



[issue7152] urllib2.build_opener() skips ProxyHandler

2013-04-28 Thread R. David Murray

R. David Murray added the comment:

Thanks, Jessica.  I reworded it slightly, since the proxy setting can come from 
things other than environment variables on Windows and OSX.  Also found one 
other place it needed to be mentioned, and fixed up the punctuation on one of 
the pre-existing sentences.

And thanks for the catch on DataHandler, Éric.

--
nosy: +r.david.murray
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



[issue17818] aifc.Aifc_read/Aifc_write.getparams can return a namedtuple

2013-04-28 Thread Claudiu.Popa

Claudiu.Popa added the comment:

I've modified the patch according to your comments, thanks! Now the result of 
getparams() is picklable again.

--
Added file: http://bugs.python.org/file30052/aifc_3.patch

___
Python tracker 

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



[issue7152] urllib2.build_opener() skips ProxyHandler

2013-04-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5da7bb478dd9 by R David Murray in branch '2.7':
#7152: Remove incorrectly added reference to DataHandler.
http://hg.python.org/cpython/rev/5da7bb478dd9

New changeset 122d42d5268e by R David Murray in branch '3.3':
#7152: Remove incorrectly added reference to DataHandler.
http://hg.python.org/cpython/rev/122d42d5268e

--

___
Python tracker 

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



[issue17860] subprocess docs lack info how to use output result

2013-04-28 Thread R. David Murray

R. David Murray added the comment:

Anatoly, do you have a specific suggestion for improved wording?  This *is* 
documented in the subprocess documentation, in several appropriate places, 
including the fact that the appropriate encoding to use may need to be 
determined at the application level.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue17863] Bad sys.stdin assignment hands interpreter.

2013-04-28 Thread R. David Murray

R. David Murray added the comment:

Indeed, in both 3.3.0 non-debug and 3.4 tip debug, python starts consuming 100% 
of the CPU.  I'm guessing there is some subtlety involving the new IO system 
involved here.

Python 2.7 debug build acts as you indicate for your 2.7 non-debug build.

All my tests are on linux, and I had to kill -HUP the python process.  As you 
say, ctl-C (and ctl-D, not surprisingly) were ignored.

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

___
Python tracker 

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



[issue17859] improve error message for saving ints to file

2013-04-28 Thread R. David Murray

R. David Murray added the comment:

Éric, print doesn't help if one is writing binary data.  

What do you mean by not understanding the first message?  If you are agreeing 
that the first error message in Anatoly's initial post isn't clear, does Ezio's 
proposed change make it clearer?

--
nosy: +r.david.murray

___
Python tracker 

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



[issue17864] IDLE won't run

2013-04-28 Thread Ben Read

Ben Read added the comment:

In response to the first command:

3.3.1 (v3.3.1:d9893d13c628, Apr  6 2013, 11:07:11) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]

…and the second command:

Warning: unable to create user config directory
/Users/ben/.idlerc
 Check path and permissions.
 Exiting!

I've checked console and activity monitor and cannot see any further reference 
to IDLE. The message I sent previously was the only one shown in 'All Messages' 
after a marker I added to know where to start from. 

I downloaded Python 3.31 from the official site and selected the 64bit version. 
I ran the ActiveTCL 8.5.13 download first. 

Thanks,

Ben

On 28 Apr 2013, at 21:59, Ned Deily  wrote:

> 
> Ned Deily added the comment:
> 
> OK, assuming you are using a default install of Python 3.3.1, try opening a 
> terminal window (Terminal.app) and launching IDLE from there by typing:
> 
> /usr/local/bin/python3.3 -c 'import sys;print(sys.version)'
> /usr/local/bin/python3.3 -m idlelib
> 
> and report what messages you see there.
> 
> Also, are there any other messages with "com.apple.launchd.peruser" or 
> "org.python.IDLE" immediately before that one?  You can use Console.app to 
> see if there are any relevant crash reports under User Diagnostic Reports.  
> You could use Activity Monitor.app to see if there is already an IDLE or 
> Python process running.  If you can, try logging -out and -in and/or 
> rebooting.  And which Python 3.3.1 did you install: from the python.org 3.3.1 
> 64-bit/32-bit installer, from the python.org 3.3.1 32-bit-only installer, or 
> from somewhere else?
> 
> --
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue17864] IDLE won't run

2013-04-28 Thread Ned Deily

Ned Deily added the comment:

That's really odd.  It looks you have a permissions problem with your home 
directory. On startup, IDLE attempts to create the directory .idlerc in your 
home directory, /Users/ben, if it doesn't exist already.  If for some reason 
the directory creation fails, IDLE aborts.  Interestingly, if the directory 
exists but IDLE lacks write permission to create files in it, it does not abort 
but posts a warning message in a window.  Perhaps it could be a little more 
consistent about that.  But still, this appears to be avery unusual situation.  
I can't think of any reason why IDLE would be unable to create a directory 
unless you have some security system installed or some unusual access control 
list setting.  The most likely reason is just a plain old permission problem on 
your home directory.  Try this in a terminal session:

cd ~
ls -lde ~

You should see something similar to this:
drwxr-xr-x+ 38 nad  staff  2992 Apr 28 15:26 /Users/nad/
 0: group:everyone deny delete

if the permissions string is missing the "w" ("dr-xr-x"), that means you do not 
have write permission to your home directory and can't create new directories 
there.  In that case, 

mkdir ~/.idlerc

should fail.  (This is essentially what IDLE is trying to do.)

If you are missing write permission on your home directory, you *should* be 
able to fix it by doing:

chmod u+w ~

--

___
Python tracker 

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



[issue17642] IDLE add font resizing hot keys

2013-04-28 Thread Alejandro Rodas

Alejandro Rodas added the comment:

I have uploaded my patch as well, it doesn't make use of tkfont (just vanilla 
Tkinter methods) and it works both in Python 2.7 and 3.4 without the need of 
any import.

I think the main difference with Abhishek Kumar's version is that mine does not 
use idleConf to retrieve and set the font size. However, the original 
ZoomFont.py of IdleX does not use it. Is it really necessary?

--
Added file: http://bugs.python.org/file30053/ZoomInOut.patch

___
Python tracker 

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



[issue17642] IDLE add font resizing hot keys

2013-04-28 Thread Alejandro Rodas

Changes by Alejandro Rodas :


Removed file: http://bugs.python.org/file30053/ZoomInOut.patch

___
Python tracker 

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



[issue17642] IDLE add font resizing hot keys

2013-04-28 Thread Alejandro Rodas

Alejandro Rodas added the comment:

Sorry, I submitted a patch which only works on Windows. This one has been 
tested on Ubuntu too.

--

___
Python tracker 

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



[issue17863] Bad sys.stdin assignment hands interpreter.

2013-04-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

In searching for an existing issue about this, there seemed to be other 
edge-case stdin problems. I don't think that they were all usage errors. This 
problem was revealed by an accidental usage error that should have lain dormant 
until an exception was raised upon first use by input() (as happened in 2.7).

--

___
Python tracker 

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



[issue17865] PowerPC exponentiation and round() interaction

2013-04-28 Thread Ellen Wang

New submission from Ellen Wang:

This is only on a PowerPC, specifically a p2020, running Debian 7.0 wheezy, 
python 2.7.3.

Calling round() seems to corrupt something (in the floating point state?) that 
causes subsequent exponentiation (the ** operator) to be wrong:

Python 2.7.3 (default, Jan  2 2013, 16:38:11)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 2 ** -2
0.25
>>> round(1)
1.0
>>> 2 ** -2
0.1253019036571362

Cool.  Huh?

--
components: Library (Lib)
files: math.py
messages: 188033
nosy: squeakbat
priority: normal
severity: normal
status: open
title: PowerPC exponentiation and round() interaction
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file30054/math.py

___
Python tracker 

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



[issue17865] PowerPC exponentiation and round() interaction

2013-04-28 Thread Ellen Wang

Ellen Wang added the comment:

Here's an example that uses only math library functions and float literals, 
presumably with a simpler code path:

Python 2.7.3 (default, Jan  2 2013, 16:38:11)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> math.exp(-2.0)
0.1353352832366127
>>> math.ceil(1.0)
1.0
>>> math.exp(-2.0)
0.23902241864785234

By the way, the equivalent C program (using exp() and ceil()) on the same 
platform behaves correctly, so it's not an obvious libc or fpu problem.

--

___
Python tracker 

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



[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2013-04-28 Thread Eli Bendersky

Eli Bendersky added the comment:

Thanks for the heads up Chris. Since I'm a bit busy myself lately, it's fine to 
wait until you have time to complete the patch. I'll review it then.

--

___
Python tracker 

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



[issue17826] Setting a side_effect on mock from create_autospec doesn't work

2013-04-28 Thread Kushal Das

Kushal Das added the comment:

Version 2 of the patch, with typo fixed also one more addition test to check 
callable side effect in create_autospec.

--
Added file: http://bugs.python.org/file30055/issue17826_v2.patch

___
Python tracker 

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



[issue16631] tarfile.extractall() doesn't extract everything if .next() was used

2013-04-28 Thread anatoly techtonik

anatoly techtonik added the comment:

Ping.

--

___
Python tracker 

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