[issue14386] Expose dictproxy as a public type

2012-03-29 Thread poq

poq p...@gmx.com added the comment:

It is exposed as types.DictProxyType in Python 2...

--
nosy: +poq

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



[issue14433] Python 3 interpreter crash with memoryview and os.fdopen

2012-03-29 Thread Alexis Daboville

Alexis Daboville alexis.dabovi...@gmail.com added the comment:

 And ctlD isn't how you shut down the interpreter on Windows, is it?

No ctrlZ + enter is the equivalent (ctrlD does nothing under Windows, 
except printing ^D).

And in a cmd window it just print another prompt (that's strange that it 
doesn't exit by the way...).

Also, I was thinking about the issue, is it normal to have this crash when we 
close directly the fd 0, whereas if I do sys.stdin.close() (which has 
sys.stdin.fileno() == 0) the Python shell continues to work properly?

--

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



[issue14433] Python 3 interpreter crash with memoryview and os.fdopen

2012-03-29 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

sys.stdin and others are created with closefd=False, so close() has no 
effect.  Try os.close(0) instead...

--
nosy: +amaury.forgeotdarc

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



[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

It sounds like we just need to fix the TestCase inheritance, like we did in 
test_queue.

We should also look more carefully at the threading setup/cleanup.  At some 
point I think we changed the best-practice idiom to be independent of regrtest, 
but we probably didn't change all the tests.  I'm not sure, though.

--

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



[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Kristján Valur Jónsson

New submission from Kristján Valur Jónsson krist...@ccpgames.com:

floatobject.c has its own block allocator.  This appears to be ancient, from 
before the time when obmalloc.c was invented.
This patch removes this allocator and puts an upper limit on the freelist of 
floats.  The purpose of this is to reduce memory fragmentation, since blocks 
used for floats cannot be used for anything else in python.  These blocks tend 
to stay around for a long time, it is sufficient for one float from each of the 
1k blocks to be alive to keep that block present in memory forever.

It is the presence of the fast freelist that is the performance enhancer here, 
not the fast block allocator.

--
components: Interpreter Core
files: nofreelist.patch
keywords: patch
messages: 157016
nosy: krisvale
priority: normal
severity: normal
status: open
title: Remove special block allocation from floatobject.c
type: enhancement
versions: Python 3.3
Added file: http://bugs.python.org/file25061/nofreelist.patch

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



[issue14433] Python 3 interpreter crash on windows when stdin closed

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

OK, let's reopen this for someone to investigate that Windows crash.

--
resolution: invalid - 
stage: committed/rejected - needs patch
status: closed - open
title: Python 3 interpreter crash with memoryview and os.fdopen - Python 3 
interpreter crash on windows when stdin closed

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



[issue14433] Python 3 interpreter crash on windows when stdin closed in Python shell

2012-03-29 Thread R. David Murray

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


--
title: Python 3 interpreter crash on windows when stdin closed - Python 3 
interpreter crash on windows when stdin closed in Python shell

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



[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

One way to exclude base classes from being loaded as tests is to have the base 
class *not* inherit from TestCase (just from object) - and use it as a mixin 
class for the actual TestCases. 

This isn't particularly elegant (but works fine). A better way of supporting 
this in unittest would be a reasonable request (a not_a_test class decorator 
or similar perhaps).

--

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



[issue14436] SocketHandler sends obejcts while they cannot be unpickled on receiver's side

2012-03-29 Thread Zbigniew Kacprzak

New submission from Zbigniew Kacprzak zbik...@gmail.com:

I decided to use SocketHandler in multi-processes application.
Log server, sending data, logging simple strings - works fine.

The problem is with own classes (or external libraries).
Looks like SocketHandler creates pickles that cannot be unpickled then on 
receiver's side (it does not contain my own classes in PYTHONPATH).

The issue happens only when I use recommened way of passing parameters:

class LibInfo( object ):
  Library info taken from xml
  def __init__(self, libName=None, xmlName=None, packName=None):
self.libName = libName
self.xmlName = xmlName
self.packName = packName

  def __repr__(self):
return L=%s X=%s P=%s % (self.libName,self.xmlName,self.packName)

myObj = LibInfo(1, 2, 3)
logging.info(Simple data: %s, myObj)

Traceback (most recent call last):
  File /opt/python2.7/logging/handlers.py, line 563, in emit
s = self.makePickle(record)
  File /opt/python2.7/logging/handlers.py, line 533, in makePickle
s = cPickle.dumps(record.__dict__, 1)
PicklingError: Can't pickle class 'LibInfo': attribute lookup LibInfo failed


# these two lines work properly:
logging.info(Simple data: %s, str(myObj) )
logging.info(Simple data: %s % myObj)


This would be not that critical: I could convert all passed parameters to 
strings. The issue is with external libraries. That I cannot control.

I think SocketHandler should make record with all parameters resolved to final 
string.

--
components: Library (Lib)
messages: 157019
nosy: Zbigniew.Kacprzak
priority: normal
severity: normal
status: open
title: SocketHandler sends obejcts while they cannot be unpickled on receiver's 
side
type: behavior
versions: Python 2.7

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



[issue14434] Tutorial link in help() in Python3 points to Python2 tutorial

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

It should be easy enough to patch this to use

   http://docs.python.org/major.minor/tutorial

I think that is probably a good idea, but the doc folks should sign off on it.

--
keywords: +easy
nosy: +r.david.murray
title: Tutorial link in help() in 3.2.2 - Tutorial link in help() in 
Python3 points to Python2 tutorial
versions: +Python 2.7, Python 3.3

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



[issue14426] date format problem in Cookie/http.cookies

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Thanks for the patch.

However, the RFC is one thing, but what happens in the real world?  Cookies are 
very messy in the real world, and we cannot just assume that the RFC version 
works.

--
nosy: +r.david.murray

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



[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Matt Joiner

Matt Joiner anacro...@gmail.com added the comment:

I'm working on a patch using TestCase a la test_queue. Perhaps we should create 
an issue for a base class test case decorator or something to that effect?

--

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



[issue14433] Python 3 interpreter crash on windows when stdin closed in Python shell

2012-03-29 Thread Alexis Daboville

Alexis Daboville alexis.dabovi...@gmail.com added the comment:

@Amaury: ok thanks, I never heard of this argument before.

I tried to reproduce the crash in the Python shell embedded in IDLE and there's 
no crash (same version 3.2.2, Windows 7): http://i.imgur.com/ayT96.png

--

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



[issue14437] _io build fails on cygwin

2012-03-29 Thread Alexey Luchko

New submission from Alexey Luchko l...@ank-sia.com:

$ make
...
gcc -shared -Wl,--enable-auto-image-base 
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/bufferedio.o 
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/bytesio.o 
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/fileio.o 
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/iobase.o 
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/_iomodule.o 
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/stringio.o 
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/textio.o 
-L/usr/local/lib -L. -lpython2.7 -o build/lib.cygwin-1.7.11-i686-2.7/_io.dll
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/bufferedio.o: In 
function `_set_BlockingIOError':
/Python-2.7.3rc2/Modules/_io/bufferedio.c:579: undefined reference to 
`__imp__PyExc_BlockingIOError'
/Python-2.7.3rc2/Modules/_io/bufferedio.c:579: undefined reference to 
`__imp__PyExc_BlockingIOError'
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/bufferedio.o: In 
function `_buffered_check_blocking_error':
/Python-2.7.3rc2/Modules/_io/bufferedio.c:595: undefined reference to 
`__imp__PyExc_BlockingIOError'
collect2: ld returned 1 exit status 


CYGWIN_NT-6.1-WOW64 ... 1.7.11(0.260/5/3) 2012-02-24 14:05 i686 Cygwin
gcc version 4.5.3 (GCC)

--
components: Extension Modules
messages: 157024
nosy: luch
priority: normal
severity: normal
status: open
title: _io build fails on cygwin
type: compile error
versions: Python 2.7

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



[issue14437] _io build fails on cygwin

2012-03-29 Thread Alexey Luchko

Alexey Luchko l...@ank-sia.com added the comment:

The error got building Python 2.7.2  2.7.3rc2

--

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



[issue14438] _cursesmodule build fails on cygwin

2012-03-29 Thread Alexey Luchko

New submission from Alexey Luchko l...@ank-sia.com:

$ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/ ./configure
$ make 
...
building '_curses' extension
gcc -fno-strict-aliasing -I/usr/include/ncursesw/ -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -I. -IInclude -I./Include -I/usr/include/ncursesw/ 
-I/Python-2.7.3rc2/Include -I/Python-2.7.3rc2 -c 
/Python-2.7.3rc2/Modules/_cursesmodule.c -o 
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_cursesmodule.o
/Python-2.7.3rc2/Modules/_cursesmodule.c: In function ‘PyCursesWindow_EchoChar’:
/Python-2.7.3rc2/Modules/_cursesmodule.c:810:18: error: dereferencing pointer 
to incomplete type
/Python-2.7.3rc2/Modules/_cursesmodule.c: In function 
‘PyCursesWindow_NoOutRefresh’:
/Python-2.7.3rc2/Modules/_cursesmodule.c:1238:22: error: dereferencing pointer 
to incomplete type
/Python-2.7.3rc2/Modules/_cursesmodule.c: In function ‘PyCursesWindow_Refresh’:
/Python-2.7.3rc2/Modules/_cursesmodule.c:1381:22: error: dereferencing pointer 
to incomplete type
/Python-2.7.3rc2/Modules/_cursesmodule.c: In function ‘PyCursesWindow_SubWin’:
/Python-2.7.3rc2/Modules/_cursesmodule.c:1448:18: error: dereferencing pointer 
to incomplete type
/Python-2.7.3rc2/Modules/_cursesmodule.c: In function ‘PyCursesWindow_Refresh’:
/Python-2.7.3rc2/Modules/_cursesmodule.c:1412:1: warning: control reaches end 
of non-void function
/Python-2.7.3rc2/Modules/_cursesmodule.c: In function 
‘PyCursesWindow_NoOutRefresh’:
/Python-2.7.3rc2/Modules/_cursesmodule.c:1270:1: warning: control reaches end 
of non-void function
/Python-2.7.3rc2/Modules/_cursesmodule.c: In function ‘PyCursesWindow_EchoChar’:
/Python-2.7.3rc2/Modules/_cursesmodule.c:817:1: warning: control reaches end of 
non-void function

CYGWIN_NT-6.1-WOW64 ... 1.7.11(0.260/5/3) 2012-02-24 14:05 i686 Cygwin
gcc version 4.5.3 (GCC) 

Python 2.7.2  2.7.3rc2

--
components: Extension Modules
messages: 157026
nosy: luch
priority: normal
severity: normal
status: open
title: _cursesmodule build fails on cygwin
type: compile error
versions: Python 2.7

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



[issue14416] syslog missing constants

2012-03-29 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 04c19ac9734a by R David Murray in branch '3.2':
#14416: add missing LOG_SYSLOG facility to syslog docs.
http://hg.python.org/cpython/rev/04c19ac9734a

New changeset c40e5120a9b1 by R David Murray in branch '2.7':
#14416: add missing LOG_SYSLOG facility to syslog docs.
http://hg.python.org/cpython/rev/c40e5120a9b1

--
nosy: +python-dev

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



[issue14416] syslog missing constants

2012-03-29 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 91bafdf7d7a4 by R David Murray in branch 'default':
Merge #14416: add missing LOG_SYSLOG facility to syslog docs.
http://hg.python.org/cpython/rev/91bafdf7d7a4

--

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



[issue14437] _io build fails on cygwin

2012-03-29 Thread Alexey Luchko

Alexey Luchko l...@ank-sia.com added the comment:

Checked solution by David Robinow
http://mail.python.org/pipermail/python-list/2012-March/1290038.html

It works.  Diff follows: 
--- Modules/_io/_iomodule.h.orig2012-03-16 03:26:36.0 +0200
+++ Modules/_io/_iomodule.h 2012-03-29 13:54:07.094187600 +0300
@@ -72,7 +72,7 @@
 PyObject *filename; /* Not used, but part of the IOError object */
 Py_ssize_t written;
 } PyBlockingIOErrorObject;
-PyAPI_DATA(PyObject *) PyExc_BlockingIOError;
+PyObject * PyExc_BlockingIOError;

 /*
  * Offset type for positioning.


--

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



[issue14386] Expose dictproxy as a public type

2012-03-29 Thread STINNER Victor

STINNER Victor victor.stin...@gmail.com added the comment:

It is exposed as types.DictProxyType in Python 2...

Yes, but the purpose of the issue is to enable its constructor. You cannot 
instanciate a DictProxy in Python 2:

 import types
 types.DictProxyType
type 'dictproxy'
 types.DictProxyType({})
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: cannot create 'dictproxy' instances

--

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



[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Yes, feel free to create an issue for that. If you provide a patch for it (with 
tests) I'll review it. 

The decorator itself can be applied to both TestCase and FunctionTestCase in 
unittest as well. One implementation would be to apply a private attribute to 
classes and the loader can be taught to ignore any classes that have that 
attribute in their __dict__ - i.e. not inherited.

--

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



[issue14416] syslog missing constants

2012-03-29 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset dc8e61044055 by R David Murray in branch 'default':
#14416: conditionally add LOG_AUTHPRIV facility and LOG_ODELAY to syslog.
http://hg.python.org/cpython/rev/dc8e61044055

--

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



[issue14416] syslog missing constants

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Thanks, Federico, and welcome to the ACKS file.

It looks like you are planning to contribute more, so if you haven't already 
done so could you please submit a contributor agreement?

  http://www.python.org/psf/contrib/contrib-form/

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

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



[issue14386] Expose dictproxy as a public type

2012-03-29 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue14439] RunModule(): display the traceback on failure

2012-03-29 Thread STINNER Victor

New submission from STINNER Victor victor.stin...@gmail.com:

python -m module calls the C RunModule() function. If this function fails, 
the traceback is not displayed and so it is difficult to understand why the 
problem is.

I propose to display the traceback when this function fails, as it is already 
done on runpy._run_module_as_main() failure.

--
components: Library (Lib)
files: runmodule.patch
keywords: patch
messages: 157034
nosy: haypo
priority: normal
severity: normal
status: open
title: RunModule(): display the traceback on failure
versions: Python 3.3
Added file: http://bugs.python.org/file25062/runmodule.patch

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



[issue14437] _io build fails on cygwin

2012-03-29 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

The proposed patch is correct; no extension module should use PyAPI_ for its 
own symbols.

--
nosy: +amaury.forgeotdarc

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



[issue14436] SocketHandler sends obejcts while they cannot be unpickled on receiver's side

2012-03-29 Thread R. David Murray

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


--
nosy: +vinay.sajip

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



[issue14386] Expose dictproxy as a public type

2012-03-29 Thread STINNER Victor

STINNER Victor victor.stin...@gmail.com added the comment:

Patch version 4, it is ready for a review. Summary of the patch:

 - expose the internal dict_proxy() type (used for __dict__ of user classes) as 
types.MappingViewType (it was exposed a types.DictProxyType in Python 2)
 - repr(types.MappingViewType) returns 'mappingview(...)' instead of 
'dict_proxy(...)'
 - implement mappingview.__new__()
 - mappingview constructors (mappingview.__new__() and PyDictProxy_New) rejects 
sequences
 - Keep PyDictProxy_New() and PyDictProxy_Type names for backward compatibility
 - mappingview_contains() calls PySequence_Contains() for types other than dict 
(instead of PyDict_Contains)
 - Write a doc and a lot of tests
 - Rename the internal dict attribute to mapping (this change may be 
reverted if it impacts backward compatibility)

I added the new tests to test_descr. Is test_types a better place for these 
types (the type is exposed in the types module, but implemented in 
descrobject.c)? I leaved the object implementation in descrobject.c to not have 
to add a new short file and to keep the Mercurial history. The file does still 
contain this funny comment:

/* This has no reason to be in this file except that adding new files is a
   bit of a pain */

MappingViewType constructor accepts any mapping: dict, collections.ChainMap, 
... Sequences are rejected: tuple, list, dict_view, etc.

--
Added file: http://bugs.python.org/file25063/mappingview-4.patch

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



[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Not particularly elegant?  Why not?  I find marking tests that should be 
executed by having them (and only them) inherit from TestCase to fit my sense 
of what is Pythonic, while having a hidden please-ignore-me attribute doesn't.

--

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



[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Because you then have classes that inherit from object calling methods that 
clearly don't exist (until you subclass them *and* TestCase). It looks weird 
and also means the classes can't be tested in isolation.

With a class decorator the code would *look* straightforward, and the hidden 
attribute is just an implementation detail.

--

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



[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Hmm.  OK, I guess we can just disagree on what looks straightforward, and since 
you are the maintainer of unittest you win :)  But unless somebody pronounces, 
I'll probably keep using the mixin pattern for my own modules.

--

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



[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

I guess I'm not really done talking about this, though my bow to you as 
maintainer still stands.

The mixin tests *can't* be run in isolation, that's the whole point.  Otherwise 
you could just let unittest run them, and wouldn't need to mark them as 
not-really-a-TestCase.  The typical mixin test class uses attributes that don't 
exist except on the concrete TestCases, so I'm not sure why calling methods 
that don't exist on the mixin is any worse :)

--

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



[issue14409] IDLE: not executing commands from shell, error with default keybinding for Return

2012-03-29 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

I agree with Roger's patch. 
But I'm pretty sure Ankit had another problem just because IDLE shell works for 
everyone without that patch.

--

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



[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

It still looks weird to see code calling methods that obviously don't exist, 
and with no indication *at the call site* where they come from. Making it 
clearer with naming would help: TestThingMixin or similar.

There are classes like this in the unittest test suite, and I was very confused 
by them initially until I found where and how they were used. It is obviously 
*not* a pattern that is widely known for test base classes, as we have this 
problem of it not being done even in the standard library tests.

In contrast I think code similar to the following would be clear and readable 
without knowing about multiple inheritance and the mixin trick:

@test_base_class
class SomeTestBase(TestCase):
...

--

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



[issue14440] Close background process if IDLE closes abnormally.

2012-03-29 Thread Andrew Svetlov

New submission from Andrew Svetlov andrew.svet...@gmail.com:

Now if IDLE was ran from console and then terminated by Ctrl-\ or kill signal 
— background process keep living forever.

That process have to stop itself if there are no frontend IDLE.

--
assignee: asvetlov
messages: 157043
nosy: asvetlov
priority: normal
severity: normal
stage: needs patch
status: open
title: Close background process if IDLE closes abnormally.
versions: Python 3.3

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



[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Besides which, the mixin pattern won't *stop* working if we provide this extra 
functionality - it would just be an alternative for those (like myself) who 
think it impedes code readability. :-)

At this point we're off topic for the *specific issue*, and I'm fine with our 
own standard library tests moving to use mixins to support standard unittest 
invocation. I would suggest the base test cases include Mixin in their name to 
make it clear how they should be used.

--

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



[issue14440] Close background process if IDLE closes abnormally.

2012-03-29 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
components: +IDLE

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



[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

The convention in the stdlib is to name the mixin classes TestXXXBase.  
Granted, a lot of those inherit from TestCase.  I have no objection to calling 
them Mixin instead, I'm just pointing out that there is an existing convention.

(As an aside, when I first ran into the Base pattern it was in a file where the 
Base did subclass TestCase, and it took me forever to figure out that the Base 
test wasn't actually getting run.  So a decorator is definitely superior to 
listing the test cases that actually run elsewhere in the file!)

--

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



[issue13744] raw byte strings are described in a confusing way

2012-03-29 Thread Joseph Chadwick

Joseph Chadwick josephholyhe...@gmail.com added the comment:

The attached replaces the text for the documentation in 2.4.1 between the 
lexical definitions table and the escape sequence table. The only change is the 
following addition to the paragraph on string and byte literals prefixed by 'r' 
or 'R':

When a byte literal is prefixed with both 'r' or 'R' and 'b' or 'B', the b must 
precede the r, as in: 'Br', 'bR', or 'BR' and not 'Rb', 'rB', or 'RB'.

--
nosy: +j.chadwick
type:  - enhancement
Added file: http://bugs.python.org/file25064/stringByteLiteralBR.docx

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



[issue13744] raw byte strings are described in a confusing way

2012-03-29 Thread Joseph Chadwick

Joseph Chadwick josephholyhe...@gmail.com added the comment:

I uploaded before making the final save, so the first document is incomplete.

(that's embarrassing)

--
Added file: http://bugs.python.org/file25065/stringByteLiteralBR.docx

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



[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Walter Cheuk

New submission from Walter Cheuk wwych...@gmail.com:

Please add new directives for decimal-number month, day and hour that have 
neither leading zero nor leading space. Currently %m, %d and %I are used, but 
they have leading zeroes and are not suitable for some languages such as 
Chinese. GNOME provides %e and %l for day and hour, but they have leading space 
instead and are not good enough also.

--
messages: 157048
nosy: wwycheuk
priority: normal
severity: normal
status: open
title: Add new date/time directives to strftime()
type: enhancement

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



[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

We pretty much follow the posix standard on strftime.  I doubt that we would 
introduce non-standard specifiers.  Are there any in widespread use for your 
use case?

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

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



[issue13744] raw byte strings are described in a confusing way

2012-03-29 Thread Martin v . Löwis

Changes by Martin v. Löwis mar...@v.loewis.de:


Removed file: http://bugs.python.org/file25064/stringByteLiteralBR.docx

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



[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Walter Cheuk

Walter Cheuk wwych...@gmail.com added the comment:

Yes, this is standard in all Chinese locales, including China, Taiwan, Hong 
Kong, Macau and Singapore.

--

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



[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

I'm asking if there are specific % codes commonly used for this case.  (Even if 
there are there is no guarantee we are going to add them, but it makes it 
possible to make a case for it.)

--

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



[issue14442] test_smtplib.py lacks import errno

2012-03-29 Thread Pino Toscano

New submission from Pino Toscano toscano.p...@tiscali.it:

In Lib/test/test_smtplib.py, there's a try ... except which checks the errno of 
the IOError exception; though, the errno module is not imported, eventually 
causing
| NameError: global name 'errno' is not defined
in such case.

--
components: Tests
messages: 157052
nosy: pino
priority: normal
severity: normal
status: open
title: test_smtplib.py lacks import errno
versions: Python 3.3

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



[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Matt Joiner

Matt Joiner anacro...@gmail.com added the comment:

It could in fact be necessary, if the inheritance cannot be juggled to  give 
the right MRO. Fortunately this is not the case, I should have a patch using 
TestCase inheritance for discovery tomorrow.

--

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



[issue14409] IDLE: not executing commands from shell, error with default keybinding for Return

2012-03-29 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

IDLE contains keyboard configuration in config-keys.def (Mac, Windows, UNIX) 
and in configHandler.py. 

GetCoreKeys contains the keyBindings dict which has fall-back values in case 
the given key set is missing values (a warning is printed). Ankit's screenshot 
contains these warning messages.

GetKeyBinding is a helper function that splits a string containing multiple key 
bindings. Read the commented header in config-keys.def to see why this is so. 

The fall-back values in keyBindings do not pass through the GetKeyBinding 
function, and thus Key-Return Key-KP_enter does not get split.

Everyone else uses IDLE's prepackaged key bindings as a starting point for 
creating custom key maps. The key maps from config-keys.def already passed 
through GetKeyBinding. This is why Return works for everyone else.

--

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



[issue14433] Python 3 interpreter crash on windows when stdin closed in Python shell

2012-03-29 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

The crash occurs in the my_fgets implementation, namely when the CRT performs 
its (standards-violating) parameter validation. The attached patch works around 
this CRT bug (as has been done in other places already).

--
keywords: +patch
nosy: +loewis
Added file: http://bugs.python.org/file25066/msvc.diff

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



[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Walter Cheuk

Walter Cheuk wwych...@gmail.com added the comment:

Usually %m, %d and %I are used instead, but the result is not satisfactory.

--

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



[issue13608] remove born-deprecated PyUnicode_AsUnicodeAndSize

2012-03-29 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I fail to see the issue. Even though the function is born-deprecated, there are 
valid use cases for it, even for new code (see 
http://www.python.org/dev/peps/pep-0393/#deprecations-removals-and-incompatibilities).

Closing the issue as invalid.

--
nosy: +loewis
resolution:  - invalid
status: open - closed

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



[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

It turns out that there is standard way to do this (well, a de-facto standard, 
anyway).  glibc (and apparently others) support 'modifiers', of which the '-' 
modifier will suppress 0 padding.  Furthermore, since we pass the format string 
through to glibc, Python *already* supports this on glibc based platforms, 
though it isn't documented:

   t.strftime(%m)
  '03'
   t.strftime(%-m)
  '3'

--
resolution:  - out of date
stage:  - committed/rejected
status: open - closed

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



[issue14409] IDLE: not executing commands from shell, error with default keybinding for Return

2012-03-29 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 26b2407c644e by Andrew Svetlov in branch '3.2':
Issue #14409: IDLE doesn't not execute commands from shell with default 
keybinding for Return.
http://hg.python.org/cpython/rev/26b2407c644e

--
nosy: +python-dev

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



[issue14437] _io build fails on cygwin

2012-03-29 Thread Antoine Pitrou

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


--
stage:  - commit review
versions: +Python 3.2, Python 3.3

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



[issue14439] RunModule(): display the traceback on failure

2012-03-29 Thread Antoine Pitrou

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


--
nosy: +ncoghlan

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



[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

One thing: PyFloat_ClearFreeList() is supposed to return the number of objects 
previously in the freelist, not zero.
Also, perhaps 10 is a bit on the small side for the number of objects kept on 
the freelist. 100 instead? Or do you think that's too large?

--
nosy: +pitrou

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



[issue14417] dict RuntimeError workaround

2012-03-29 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 I must admit to being concerned by the possible impact of this change as well.

So am I.

--
nosy: +pitrou

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



[issue14442] test_smtplib.py lacks import errno

2012-03-29 Thread Antoine Pitrou

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


--
keywords: +easy
nosy: +giampaolo.rodola, r.david.murray
stage:  - needs patch

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



[issue14442] test_smtplib.py lacks import errno

2012-03-29 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 9c2b710da3c7 by Ross Lagerwall in branch 'default':
Issue #14442: Add missing errno import in test_smtplib.
http://hg.python.org/cpython/rev/9c2b710da3c7

--
nosy: +python-dev

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



[issue14406] Race condition in concurrent.futures

2012-03-29 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Could your patch also include a proper test case in 
Lib/test/test_concurrent_futures.py ?

--

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



[issue14442] test_smtplib.py lacks import errno

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Thanks Ross.  I don't think this is worth a news item, even though the bug was 
shipped in an alpha.  If someone disagrees please add one.

--
stage: needs patch - committed/rejected
status: open - closed
type:  - behavior

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



[issue14443] Distutils test failure

2012-03-29 Thread Ross Lagerwall

New submission from Ross Lagerwall rosslagerw...@gmail.com:

On an up to date Fedora 16:

== CPython 3.3.0a1+ (default:d528b2d2+, Mar 29 2012, 18:04:26) [GCC 4.6.3 
20120306 (Red Hat 4.6.3-2)]
==   Linux-3.3.0-4.fc16.x86_64-x86_64-with-fedora-16-Verne little-endian
==   /home/ross/src/cpythondev/temp/build/test_python_21786
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, 
dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, 
verbose=0, bytes_warning=0, quiet=0, hash_randomization=1)
[1/1] test_distutils
test_byte_compile (distutils.tests.test_install_lib.InstallLibTestCase) ... ok
test_dont_write_bytecode (distutils.tests.test_install_lib.InstallLibTestCase) 
... ok
test_finalize_options (distutils.tests.test_install_lib.InstallLibTestCase) ... 
ok
test_get_inputs (distutils.tests.test_install_lib.InstallLibTestCase) ... ok
test_get_outputs (distutils.tests.test_install_lib.InstallLibTestCase) ... ok
test_no_compiler (distutils.tests.test_msvc9compiler.msvc9compilerTestCase) ... 
skipped 'These tests are only for win32'
test_reg_class (distutils.tests.test_msvc9compiler.msvc9compilerTestCase) ... 
skipped 'These tests are only for win32'
test_remove_entire_manifest 
(distutils.tests.test_msvc9compiler.msvc9compilerTestCase) ... skipped 'These 
tests are only for win32'
test_remove_visual_c_ref 
(distutils.tests.test_msvc9compiler.msvc9compilerTestCase) ... skipped 'These 
tests are only for win32'
test_nt_quote_args (distutils.tests.test_spawn.SpawnTestCase) ... ok
test_spawn (distutils.tests.test_spawn.SpawnTestCase) ... ok
test_announce (distutils.tests.test_dist.DistributionTestCase) ... ok
test_command_packages_cmdline (distutils.tests.test_dist.DistributionTestCase) 
... ok
test_command_packages_configfile 
(distutils.tests.test_dist.DistributionTestCase) ... ok
test_command_packages_unspecified 
(distutils.tests.test_dist.DistributionTestCase) ... ok
test_empty_options (distutils.tests.test_dist.DistributionTestCase) ... ok
test_finalize_options (distutils.tests.test_dist.DistributionTestCase) ... ok
test_get_command_packages (distutils.tests.test_dist.DistributionTestCase) ... 
ok
test_classifier (distutils.tests.test_dist.MetadataTestCase) ... ok
test_custom_pydistutils (distutils.tests.test_dist.MetadataTestCase) ... ok
test_download_url (distutils.tests.test_dist.MetadataTestCase) ... ok
test_fix_help_options (distutils.tests.test_dist.MetadataTestCase) ... ok
test_long_description (distutils.tests.test_dist.MetadataTestCase) ... ok
test_obsoletes (distutils.tests.test_dist.MetadataTestCase) ... ok
test_obsoletes_illegal (distutils.tests.test_dist.MetadataTestCase) ... ok
test_provides (distutils.tests.test_dist.MetadataTestCase) ... ok
test_provides_illegal (distutils.tests.test_dist.MetadataTestCase) ... ok
test_requires (distutils.tests.test_dist.MetadataTestCase) ... ok
test_requires_illegal (distutils.tests.test_dist.MetadataTestCase) ... ok
test_show_help (distutils.tests.test_dist.MetadataTestCase) ... ok
test_simple_metadata (distutils.tests.test_dist.MetadataTestCase) ... ok
test_simple_run (distutils.tests.test_install_headers.InstallHeadersTestCase) 
... ok
test_finalize_options (distutils.tests.test_upload.uploadTestCase) ... ok
test_saved_password (distutils.tests.test_upload.uploadTestCase) ... ok
test_server_empty_registration (distutils.tests.test_upload.uploadTestCase) ... 
ok
test_server_registration (distutils.tests.test_upload.uploadTestCase) ... ok
test_upload (distutils.tests.test_upload.uploadTestCase) ... ok
test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase) ... ok
test_check_extensions_list (distutils.tests.test_build_ext.BuildExtTestCase) 
... ok
test_compiler_option (distutils.tests.test_build_ext.BuildExtTestCase) ... ok
test_deployment_target_default 
(distutils.tests.test_build_ext.BuildExtTestCase) ... skipped 'test only 
relevant for MacOSX'
test_deployment_target_higher_ok 
(distutils.tests.test_build_ext.BuildExtTestCase) ... skipped 'test only 
relevant for MacOSX'
test_deployment_target_too_low 
(distutils.tests.test_build_ext.BuildExtTestCase) ... skipped 'test only 
relevant for MacOSX'
test_ext_fullpath (distutils.tests.test_build_ext.BuildExtTestCase) ... ok
test_finalize_options (distutils.tests.test_build_ext.BuildExtTestCase) ... ok
test_get_outputs (distutils.tests.test_build_ext.BuildExtTestCase) ... ok
test_get_source_files (distutils.tests.test_build_ext.BuildExtTestCase) ... ok
test_optional_extension (distutils.tests.test_build_ext.BuildExtTestCase) ... ok
test_solaris_enable_shared (distutils.tests.test_build_ext.BuildExtTestCase) 
... ok
test_user_site (distutils.tests.test_build_ext.BuildExtTestCase) ... ok
test_build (distutils.tests.test_build_scripts.BuildScriptsTestCase) ... ok
test_default_settings (distutils.tests.test_build_scripts.BuildScriptsTestCase) 
... ok
test_version_int (distutils.tests.test_build_scripts.BuildScriptsTestCase) ... 
ok
test_debug_mode 

[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Jason R. Coombs

New submission from Jason R. Coombs jar...@jaraco.com:

Summary of this thread: 
http://mail.python.org/pipermail/python-dev/2012-March/118233.html

When upgrading a host from Python 2.6.7 to 2.6.8 or from 2.7.2 to 2.7.3, 
virtualenvs will no longer work if they attempt to use os.urandom. I have not 
yet investigated whether this affects Python 3.1 or 3.2.

On a related note, it appears that downgrading (taking a virtualenv created on 
Python 2.7.3 and deploying it to a host with 2.7.2) results in a similar error 
where _socket cannot be imported.

Based on the discussion, I've drafted some release notes (and Carl has edited 
them) to be included with the appropriate releases to help inform those this 
issue might impact.

http://piratepad.net/PAZ3CEq9CZ

I humbly request that these notes be included in the releases.

--
messages: 157066
nosy: barry, benjamin.peterson, carljm, georg.brandl, jason.coombs
priority: release blocker
severity: normal
status: open
title: Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)
type: behavior
versions: Python 2.6, Python 2.7, Python 3.2, Python 3.3

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



[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Jason R. Coombs

Changes by Jason R. Coombs jar...@jaraco.com:


--
versions: +Python 3.1 -Python 3.3

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



[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

3.1 and 3.2 are affected as well.

--

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



[issue14409] IDLE: not executing commands from shell, error with default keybinding for Return

2012-03-29 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 87ada87057a2 by Andrew Svetlov in branch '2.7':
Backport of Issue #14409 to 2.7
http://hg.python.org/cpython/rev/87ada87057a2

--

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



[issue14409] IDLE: not executing commands from shell, error with default keybinding for Return

2012-03-29 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Roger, now your solution is completely clean for me.

I pushed your patch to 2.7, 3.2 and 3.3 branches.

Thank you.

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

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



[issue14409] IDLE: not executing commands from shell, error with default keybinding for Return

2012-03-29 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
versions: +Python 3.2

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



[issue14445] Providing more fine-grained control over assert statements

2012-03-29 Thread Max

New submission from Max maxmo...@gmail.com:

Currently -O optimizer flag disables assert statements.

I want to ask that more fine-grained control is offered to users over the 
assert statements. In many cases, it would be nice to have the option of 
keeping asserts in release code, while still performing optimizations (if any 
are offered in the future). It can be achieved by removing the disable 
assertions feature of the -O flag, and instead adding a new flag that does 
nothing but disables asserts.

--
messages: 157070
nosy: max
priority: normal
severity: normal
status: open
title: Providing more fine-grained control over assert statements
type: enhancement
versions: Python 3.4

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



[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Yes, it is supposed to, but no one is actually looking at that value.  It was 
used in debugging information during PyFloat_Fini() which is no longer relevant 
if this block information is removed.

Sure, 100 or 10 does not matter, I see 100 being used in some other freelists.

Also, I wasn't able to see any negative benefits of this using pybench.

Here's a thought:  I think using the linked list approach using Py_TYPE() is 
rather neat.  Other freelists are mostly implemented using static arrays of 
pointers.  Any thoughts on this?  We could unify the approach taken.

--

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



[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 Yes, it is supposed to, but no one is actually looking at that value.
 It was used in debugging information during PyFloat_Fini() which is no
 longer relevant if this block information is removed.

Still, let's honour the API rather than break it.

 Here's a thought:  I think using the linked list approach using
 Py_TYPE() is rather neat.  Other freelists are mostly implemented
 using static arrays of pointers.  Any thoughts on this?  We could
 unify the approach taken.

I don't have any preference either way, but I see little point in
unifying the approach, since no common code is shared.

--

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



[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Correction:  The number returned was the number of floats in existence, not the 
size of the freelist.  Do you think I should add a counter to support that 
functionality?  I´d rather change it to be the size of the old freelist, 
similar to PyTuple_ClearFreeList().

--

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



[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 Do you think I should add a counter to support that functionality?  I
 ´d rather change it to be the size of the old freelist, similar to
 PyTuple_ClearFreeList().

It should be the size of the old freelist, indeed.

--

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



[issue14445] Providing more fine-grained control over assert statements

2012-03-29 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

This should be discussed on python-dev 
(http://mail.python.org/mailman/listinfo/python-dev) or python-ideas 
(http://mail.python.org/mailman/listinfo/python-ideas).

--
nosy: +pitrou

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



[issue14443] Distutils test failure

2012-03-29 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

The output of running rpmbuild from bash:

$ rpmbuild
RPM version 4.9.1.2
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL

Usage: rpmbuild [-v?] [-bp] [-bc] [-bi] [-bl] [-ba] [-bb] [-bs] [-tp]
[-tc] [-ti] [-ta] [-tb] [-ts] [--rebuild] [--recompile]
[--buildroot=DIRECTORY] [--clean] [--nobuild] [--nodeps]
[--nodirtokens] [--rmsource] [--rmspec] [--short-circuit]
[--target=CPU-VENDOR-OS] [-D|--define 'MACRO EXPR'] [-E|--eval 'EXPR']
[--macros=FILE:...] [--nodigest] [--nosignature]
[--rcfile=FILE:...] [-r|--root ROOT] [--dbpath=DIRECTORY]
[--querytags] [--showrc] [--quiet] [-v|--verbose] [--version]
[-?|--help] [--usage] [--with=option] [--without=option]
[--buildpolicy=policy] [--sign]


--

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



[issue14442] test_smtplib.py lacks import errno

2012-03-29 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

 Thanks Ross.  I don't think this is worth a news item, even though the
 bug was shipped in an alpha.  If someone disagrees please add one.

I did add it to the [Tests] section in 9c2b710da3c7. Hardly worth it, but ...

--
nosy: +rosslagerwall

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



[issue14442] test_smtplib.py lacks import errno

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Ah, woops, I *thought* I'd looked at the diff, but obviously I didn't.  Sigh.

--

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



[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Carl Meyer

Carl Meyer c...@dirtcircle.com added the comment:

Alternatively, the conditional definition of urandom in os.py (removed in 
http://hg.python.org/cpython/rev/a0f43f4481e0#l7.1) could be reintroduced, 
allowing the new stdlib to be used with older interpreters. (Thanks to Dave 
Malcolm for pointing this out.) This seems like perhaps a reasonable concession 
to backwards compatibility for a bugfix release.

--

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



[issue14417] dict RuntimeError workaround

2012-03-29 Thread Guido van Rossum

Guido van Rossum gu...@python.org added the comment:

On Thu, Mar 29, 2012 at 9:12 AM, Antoine Pitrou rep...@bugs.python.org wrote:

 Antoine Pitrou pit...@free.fr added the comment:

 I must admit to being concerned by the possible impact of this change as 
 well.

 So am I.

I think it's time to bring this up in python-dev .

--

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



[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

On Mar 29, 2012, at 06:25 PM, Carl Meyer wrote:


Carl Meyer c...@dirtcircle.com added the comment:

Alternatively, the conditional definition of urandom in os.py (removed in
http://hg.python.org/cpython/rev/a0f43f4481e0#l7.1) could be reintroduced,
allowing the new stdlib to be used with older interpreters. (Thanks to Dave
Malcolm for pointing this out.) This seems like perhaps a reasonable
concession to backwards compatibility for a bugfix release.

Seems reasonable to me too.  I support making this change in 2.6.8.  I won't
personally have time to do that for the next week or so, so if someone else is
applying this to the other stable versions, I hereby give permission to apply
this to the 2.6 branch.

--

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



[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-29 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Updated patch. Warning type is DeprecationWarning, docs mentioned that.

--
Added file: http://bugs.python.org/file25067/issue3035.diff

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



[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-29 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
stage:  - patch review

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



[issue14386] Expose dictproxy as a public type

2012-03-29 Thread Guido van Rossum

Guido van Rossum gu...@python.org added the comment:

I'd like to bikeshed a little on the name. I think it should be
MappingProxy. (We don't use view much but the place where we do use
it, for keys/values/items views, is very different I think. Also
collections.abc already defines MappingView as the base class for
KeysView and friends.)

Also make sure there's no way for someone who has access to the proxy
to get to the underlying mapping; preventing that access is the
explicit purpose of the original dict_proxy type. You might even add a
comment to this effect to the code, so someone doesn't accidentally
add it in the future. Perhaps in the proxy_methods structure or in the
type structure just before tp_members.

--

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



[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Eric V. Smith

Eric V. Smith e...@trueblade.com added the comment:

Can we change this to a documentation bug? I was unaware of the use of '-', and 
I think most other people are, too.

Although having just checked, it doesn't work under Windows :(. So maybe we 
shouldn't document it.

Thinking out loud: I've often thought we should write our own 
strptime/strftime. I think cross-platform consistency here would be a win.

--
nosy: +eric.smith

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



[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

I think there may even be an issue for that, but with the currently broken 
issue search I'm not sure.  Issue 3173 *might* be what I'm thinking of (thanks, 
google).

And yes, the fact that stuff like this is not cross-platform is why it isn't 
documented, and why I said on glibc based platforms :)  (I think there is a 
doc note about additional directives possibly being defined by the platform.)

--

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



[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Eric V. Smith

Eric V. Smith e...@trueblade.com added the comment:

Heh. You're correct about 3173. And I'm even nosy on that issue!

--

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



[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I'm not so sure that it is desirable to make it compatible. It is ultimately 
virtualenv's fault to use the 2.7.3 library with a 2.7.2 binary. If we get 
this to work, people will still not gain the hash randomization. IOW, they 
get the library update, but not the interpreter update fixing the security 
issue. They will then find that if they create a new virtualenv, their code may 
suddenly break because of the hash randomization.

Ideally, virtualenv would have arranged to incorporate an upgrade to the 
executable automatically. Given that it doesn't, the failure mode sounds ok to 
me.

--
nosy: +loewis

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



[issue14436] SocketHandler sends obejcts while they cannot be unpickled on receiver's side

2012-03-29 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset eda0ae0d2c68 by Vinay Sajip in branch '2.7':
Closes #14436: Convert msg + args to string before pickling.
http://hg.python.org/cpython/rev/eda0ae0d2c68

New changeset cd8347e15f62 by Vinay Sajip in branch '3.2':
Closes #14436: Convert msg + args to string before pickling.
http://hg.python.org/cpython/rev/cd8347e15f62

New changeset 86a1f92c66b3 by Vinay Sajip in branch 'default':
Closes #14436: merged fix from 3.2.
http://hg.python.org/cpython/rev/86a1f92c66b3

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Raymond is suggesting removal in 3.4, and given that we are doing it I don't 
see any reason to wait for 3.5, either, so you probably want to update the 
warning messages to say 3.4 instead of 3.5.  Otherwise it looks good to me.

Ezio suggested adding a test that fails if we don't do the deprecation in 3.4 
(that is, when the feature release number changes, the test starts failing).  
And/or you can open a new 3.4-only issue remove deprecated tkinter functions 
and mark it as a release blocker.

--

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



[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

Martin makes a good point, but I see it somewhat differently.

virtualenv and its users have always accepted the risk of running an old 
interpreter against a different standard library (of the same minor version). 
So the risk of not receiving the security patch in the interpreter is 
well-known.

The risk they have not (previously) accepted (afaik) is that an interpreter of 
one patch version will not be compatible with the standard library of another 
patch version.

I could very well be wrong about the latter.

While I think we all agree that this is not a bug in Python, per se, the more 
practical matter is that this issue is likely to cause substantial trouble in 
practice, perhaps an unprecedented experience. I would hate for all the hard 
work that was put into this security fix to be tainted by cries of trouble 
caused by the fix (however unjustified). Providing backward-compatibility for 
virtualenv would avoid that risk and would not expose the users of virtualenv 
to any more risk than they've previously accepted.

For that reason, I'm +1 on the compatibility patch(es).

--

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



[issue14446] Remove deprecated tkinter functions

2012-03-29 Thread Andrew Svetlov

New submission from Andrew Svetlov andrew.svet...@gmail.com:

We need to remove deprecated tkinter.AtEnd and family in 3.4

--
assignee: asvetlov
components: Tkinter
keywords: easy
messages: 157091
nosy: asvetlov, r.david.murray
priority: release blocker
severity: normal
status: open
title: Remove deprecated tkinter functions
versions: Python 3.4

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



[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-29 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Thank you, David.

I've updated the patch.

I think making new test for check is easy but Issue14446 is good enough.
Running stupid test doesn't make sense for this case.

--
Added file: http://bugs.python.org/file25068/issue3035.diff

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



[issue14417] dict RuntimeError workaround

2012-03-29 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue14447] marshal.load() reads entire remaining file instead of just next value

2012-03-29 Thread Matt Chaput

New submission from Matt Chaput m...@whoosh.ca:

In Python 3.2, if you write several values to a file with multiple calls to 
marshal.dump(), and then try to read them back, the first marshal.load() 
returns the first value, but reads to the end of the file, so subsequent calls 
to marshal.load() raise an EOFError.

E.g.:

  import marshal
  f = open(test, wb)
  marshal.dump((hello, 1), f)
  marshal.dump((there, 2), f)
  marshal.dump((friend, 3), f)
  f.close()
  f = open(test, rb)
  print(marshal.load(f))  # ('hello', 1)
  print(marshal.load(f))  # ERROR

This page seems to indicate this was also a bug in Python 3.1: 
http://www.velocityreviews.com/forums/t728526-python-3-1-2-and-marshal.html

--
components: IO
messages: 157093
nosy: mattchaput
priority: normal
severity: normal
status: open
title: marshal.load() reads entire remaining file instead of just next value
type: behavior
versions: Python 3.1, Python 3.2

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



[issue14409] IDLE: not executing commands from shell, error with default keybinding for Return

2012-03-29 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

(Thanks for the expanded analysis, Roger. I missed the implication of the title 
update you made.)

--

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



[issue11437] IDLE crash on startup with typo in config-keys.cfg

2012-03-29 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Roger, can you help me?

What steps should I do to reproduce the issue? Pushing config from 
George.Dhoore into ~/.idlerc does nothing. IDLE starts fine as usual.

--

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



[issue14447] marshal.load() reads entire remaining file instead of just next value

2012-03-29 Thread Daniel Swanson

Daniel Swanson popcorn.tomato.d...@gmail.com added the comment:

You are correct.
I got:
Python 3.1.2 (release31-maint, Dec  9 2011, 20:50:50) 
[GCC 4.4.5] on linux2
Type help, copyright, credits or license for more information.
 import marshall
Traceback (most recent call last):
  File stdin, line 1, in module
ImportError: No module named marshall
 import marshal
 f = open(test, wb)
 marshal.dump((hello, 1), f)
20
 marshal.dump((there, 2), f)
20
 marshal.dump((friend, 3), f)
21
 f.close()
 f = open(test, rb)
 print(marshal.load(f))
('hello', 1)
 print(marshal.load(f))
Traceback (most recent call last):
  File stdin, line 1, in module
EOFError: EOF read where object expected


--
nosy: +weirdink13

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



[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Running the python interpreter against a different version of the stdlib is 
completely unsupported, and I'm surprised it hasn't broken more. I'm rejecting 
any shims for it for 2.7 and 3.1.

--

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



[issue11437] IDLE crash on startup with typo in config-keys.cfg

2012-03-29 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

Andrew, after placing config-keys.cfg into .idlerc, launch IDLE and change the 
key map to Xip's keyset. You'll get a traceback on the terminal when you click 
ok.

--

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



[issue14447] marshal.load() reads entire remaining file instead of just next value

2012-03-29 Thread Daniel Swanson

Daniel Swanson popcorn.tomato.d...@gmail.com added the comment:

The previous test was on linux mint 10 (Julia) with python 3.1.2
here is the same test on windows XP with python 3.2.2

Python 3.2.2 (default, Sep  4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)] on 
win32
Type copyright, credits or license() for more information.
 import marshal
 f = open('t', 'wb')
 marshal.dump(('skd', 1), f)
18
 marshal.dump(('slkd', 2), f)
19
 marshal.dump('lkdss', 3), f)
SyntaxError: invalid syntax
 marshal.dump(('lskda', 3), f)
20
 f.close()
 f = open('t', 'rb')
 print(marshal.load(f))
('skd', 1)
 print(marshal.load(f))
('slkd', 2)
 print(marshal.load(f))
('lskda', 3)
 print(marshal.load(f))
Traceback (most recent call last):
  File pyshell#11, line 1, in module
print(marshal.load(f))
EOFError: EOF read where object expected
 

As you can see, this problem appearently does not apply to 3.2.2

--
versions:  -Python 3.2

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



  1   2   >