[issue7216] low performance of zipfile readline()

2009-10-27 Thread Volker Siepmann

New submission from Volker Siepmann newsgro...@vsiep.de:

The readline() function in zipfile (in ZipExtFile) reads chunks of max
100 bytes (zipfile.py, line 525) into the linebuffer. A file of 500
MBytes therefore yields 5 million chunks.
Changing the value 100 to 1 bytes boosts performance by magnitudes,
while it only requires 10k of memory.

My fix in zipfile.py, line 525:

buf = self.read(min(size, 1)) # was 100 before

Best regards / Volker Siepmann

--
components: Library (Lib)
messages: 94545
nosy: volker_siepmann
severity: normal
status: open
title: low performance of zipfile readline()
type: behavior
versions: Python 2.6

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



[issue7217] IDLE Subprocess Startup Error

2009-10-27 Thread ali

New submission from ali mr.da...@gmail.com:

Hi

After trying to install another IDE for python (Eric4.3.8 and sciTE201)
I'm not able to launch IDLE directly anymore. (I not sure if this is
really relevant)

I can right click on the .py files and choose edit with IDLE and
everything works fine.

Also, I can run python under cmd without any problem.

But when I try to open IDLE using start menu icon, this error massage
appears:

Subprocess Startup Error
IDLE's subprocess didn't make connection. either idle can't start a
subprocess or personal firewall software is blocking the connection.

I tried to disable my anti-virus and windows firewall (I don't use any
other firewalls), but the problem still exists.

I uninstalled python 2.6.2 and then installed python 3.1.1. IDLE worked
fine but I had a little problem with the new syntax in python 3 so I
installed python 2.6.4 and guess what, the same error message again!

When I try to run IDLE from cmd this error message is displayed:

hi
Traceback (most recent call last):
  File string, line 1, in module
  File C:\Python26\lib\idlelib\run.py, line 13, in module
import RemoteDebugger
  File C:\Python26\lib\idlelib\RemoteDebugger.py, line 24, in module
import rpc
  File C:\Python26\lib\idlelib\rpc.py, line 120, in module
request_queue = Queue.Queue(0)
TypeError: __init__() takes exactly 1 argument (2 given)

Can anyone help?
Thanks in advance

--
components: IDLE
messages: 94546
nosy: mr.dalba
severity: normal
status: open
title: IDLE Subprocess Startup Error
type: crash
versions: Python 2.6

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



[issue7217] IDLE Subprocess Startup Error

2009-10-27 Thread ali

ali mr.da...@gmail.com added the comment:

I'm using windows vista  x64
I've tried restarting my computer and manually deleting files but didn't
help.

--

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



[issue7212] Retrieve an arbitrary element from a set without removing it

2009-10-27 Thread Willi Richert

Changes by Willi Richert w.rich...@gmx.net:


Removed file: http://bugs.python.org/file15207/setobject_get.patch

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



[issue7212] Retrieve an arbitrary element from a set without removing it

2009-10-27 Thread Willi Richert

Changes by Willi Richert w.rich...@gmx.net:


Added file: http://bugs.python.org/file15211/setobject_get.patch

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



[issue7212] Retrieve an arbitrary element from a set without removing it

2009-10-27 Thread Willi Richert

Willi Richert w.rich...@gmx.net added the comment:

added tests for get() to test_set.py

--

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



[issue7218] test_site failure under Windows

2009-10-27 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

This fails quite reliably on Windows buildbots:

==
FAIL: test_getsitepackages (test.test_site.HelperFunctionsTests)
--
Traceback (most recent call last):
  File
E:\cygwin\home\db3l\buildarea\trunk.bolen-windows\build\lib\test\test_site.py,
line 173, in test_getsitepackages
self.assertEquals(dirs[1], wanted)
AssertionError: 'xoxo\\lib\\site-packages' != 'xoxo\\Lib\\site-packages'

--
assignee: tarek
components: Tests
messages: 94549
nosy: pitrou, tarek
priority: high
severity: normal
status: open
title: test_site failure under Windows
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

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



[issue7117] Backport py3k float repr to trunk

2009-10-27 Thread Eric Smith

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

r75743: Fix cPickle.c to use PyOS_string_to_double.

--

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



[issue7117] Backport py3k float repr to trunk

2009-10-27 Thread Eric Smith

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

r75745: Fix stropmodule.c to use PyOS_string_to_double.

--

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



[issue7071] Unhelpful error message when a distutils package install fails due to a permissions error

2009-10-27 Thread Michael Foord

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

This problem showed up when installing a package with IronPython, where
the site-packages folder requires admin privileges to write to (which
*should* be true with CPython Windows but isn't).

If you perform a 'python setup.py install' without admin privileges the
install fails (as it should) but with a very cryptic error message:

C:\compile\test\foo-1.0C:\Program Files\IronPython 2.6\ipy.exe
setup.py install
running install
running build
running build_py
creating build
creating build\lib
copying foo.py - build\lib
running install_lib
copying build\lib\foo.py - C:\Program Files\IronPython
2.6\Lib\site-packages
error: C:\Program Files\IronPython 2.6\Lib\site-packages\foo.py: None

--
nosy:  -DinoV, brian.curtin, tarek
resolution: accepted - 
status: closed - open
title: distutils and IronPython compatibility - Unhelpful error message when a 
distutils package install fails due to a permissions error

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



[issue7071] Unhelpful error message when a distutils package install fails due to a permissions error

2009-10-27 Thread Michael Foord

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

Sorry - meant to create a new issue.

--
nosy: +tarek
resolution:  - accepted
status: open - closed

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



[issue7219] Unhelpful error message when a distutils package install fails due to a permissions error

2009-10-27 Thread Michael Foord

New submission from Michael Foord mich...@voidspace.org.uk:

This problem showed up when installing a package with IronPython, where
the site-packages folder requires admin privileges to write to (which
*should* be true with CPython Windows but isn't).

If you perform a 'python setup.py install' without admin privileges the
install fails (as it should) but with a very cryptic error message:

C:\compile\test\foo-1.0C:\Program Files\IronPython 2.6\ipy.exe
setup.py install
running install
running build
running build_py
creating build
creating build\lib
copying foo.py - build\lib
running install_lib
copying build\lib\foo.py - C:\Program Files\IronPython
2.6\Lib\site-packages
error: C:\Program Files\IronPython 2.6\Lib\site-packages\foo.py: None

--
assignee: tarek
keywords: 26backport
messages: 94554
nosy: michael.foord, tarek
priority: normal
severity: normal
stage: needs patch
status: open
title: Unhelpful error message when a distutils package install fails due to a 
permissions error
type: behavior
versions: Python 2.6, Python 2.7, Python 3.2

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



[issue7220] python -m no longer executes packages directly

2009-10-27 Thread Martijn Ras

New submission from Martijn Ras martijn@gmail.com:

Heya Folks,

I've just started moving some of my projects from Python 2.5 to Python 2.6.

I used to start some of these packages using python -m packagename.

In Python 2.6 this results in the following error:

/usr/bin/python: packagename is a package and cannot be directly executed

I got everything running again, by using the following command:

python -m packagename.__init__

This strikes me as awkward, since every package should still have the
__init__.py file. Can this be fixed so running python -m packagename
will once more be equal to python -m packagename.__init__?

Mazzel,

Martijn.

--
components: None
messages: 94555
nosy: Martijn
severity: normal
status: open
title: python -m no longer executes packages directly
versions: Python 2.6

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



[issue7071] distutils and IronPython compatibility

2009-10-27 Thread R. David Murray

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


--
nosy: +DinoV, brian.curtin
title: Unhelpful error message when a distutils package install fails due to a 
permissions error - distutils and IronPython compatibility

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



[issue7055] Automatic test___all__

2009-10-27 Thread Antoine Pitrou

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

Finally backported to 2.6 (r75751) and 3.1 (r75752).

--

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



[issue7084] printing a list releases the GIL carelessly

2009-10-27 Thread Antoine Pitrou

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

Backported to 2.6 in r75750.

--
resolution: accepted - fixed
status: pending - closed

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



[issue1722344] Thread shutdown exception in Thread.notify()

2009-10-27 Thread Antoine Pitrou

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

Backported to 2.6 in r75749.

--
resolution: accepted - fixed
status: pending - closed

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



[issue7194] test_thread is flaky

2009-10-27 Thread Antoine Pitrou

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

Backported to 2.6 in r75748.

--
resolution: accepted - fixed
status: open - closed

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



[issue5833] readline update

2009-10-27 Thread Antoine Pitrou

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

Now backported to py3k in r75747.

--

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



[issue7220] python -m no longer executes packages directly

2009-10-27 Thread Benjamin Peterson

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

This was purposely removed in 2.6 and reworked in 2.7 and 3.1.

--
nosy: +benjamin.peterson
resolution:  - invalid
status: open - closed

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



[issue7211] select module - kevent ident field 64 bit issue

2009-10-27 Thread Michael Broghton

Michael Broghton mbrough...@advanis.ca added the comment:

This is against release31-maint, if it matters.

--
keywords: +patch
Added file: http://bugs.python.org/file15212/kevent.patch

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



[issue7048] decimal.py: logb: round the result if it is greater than prec

2009-10-27 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

logb fix applied to release26-maint in r75804.

--

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



[issue7078] struct help in the interpreter does not explain about the fmt option

2009-10-27 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Merged to release26-maint in r75805.

--
status: open - closed

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



[issue7048] decimal.py: logb: round the result if it is greater than prec

2009-10-27 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Updated release26-maint to new test-suite in r75806.

--

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



[issue7051] 'g'/'G' format docs need a little more explanation

2009-10-27 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Looks like this was merged to release26-maint by Georg in r75790.  Thanks, 
Georg!

--
status: open - closed

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



[issue7205] bz2file deadlock

2009-10-27 Thread Antoine Pitrou

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

Fixed in r75818 (trunk), r75819 (2.6), r75820 (py3k), r75821 (3.1). Thanks!

--
resolution:  - fixed
status: open - closed

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



[issue5596] memory leaks in py3k

2009-10-27 Thread Antoine Pitrou

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

With r75820:

test_asyncore leaked [153, -152] references, sum=1
test_distutils leaked [0, 2] references, sum=2
test_httpservers leaked [0, 259] references, sum=259
test_pipes leaked [23, 0] references, sum=23
test_threaded_import leaked [1, 0] references, sum=1
test_tokenize leaked [0, 291] references, sum=291
test_urllib leaked [6, 4] references, sum=10
test_uuid leaked [6, 6] references, sum=12
test_zipimport_support leaked [748, 0] references, sum=748
test_zipfile leaked [2, 0] references, sum=2

--

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



[issue7210] Proposed Syntax Checks in Test Suite

2009-10-27 Thread Chuck Rhode

Chuck Rhode crh...@lacusveris.com added the comment:

Yet another patch file

--
Added file: http://bugs.python.org/file15213/test_grammar.patch

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



[issue7221] DispatcherWithSendTests_UsePoll with test_asyncore does nothing

2009-10-27 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

It changes the class variable `usepoll` from its parent to True, but
that variable isn't used anywhere.

--
assignee: facundobatista
components: Library (Lib), Tests
messages: 94570
nosy: alanmcintyre, facundobatista, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: DispatcherWithSendTests_UsePoll with test_asyncore does nothing
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

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



[issue7099] Decimal.is_normal should return True even for numbers with exponent Emax

2009-10-27 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Merged to release26-maint in r75822.

--
status: open - closed

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



[issue7117] Backport py3k float repr to trunk

2009-10-27 Thread Eric Smith

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

r75824: Fix ast.c to use PyOS_string_to_double.

--

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



[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-10-27 Thread Jason R. Coombs

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

This latest patch (14) makes one minor change over the previous -
updates the documentation to include Availability: Windows for readlink.

--
Added file: http://bugs.python.org/file15214/windows symlink draft 14.patch

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



[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-10-27 Thread Jason R. Coombs

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


Removed file: http://bugs.python.org/file15208/windows symlink draft 13.patch

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



[issue5596] memory leaks in py3k

2009-10-27 Thread Antoine Pitrou

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

test_asyncore and test_httpservers should now be fixed.

--

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



[issue7117] Backport py3k float repr to trunk

2009-10-27 Thread Eric Smith

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

r75846: Fix marshal.c to use PyOS_string_to_double.

--

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



[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-27 Thread Florian Mayer

Florian Mayer florma...@aim.com added the comment:

I dare to disagree on this being an adequate fix. Request to reopen.

--

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



[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-27 Thread Benjamin Peterson

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

2009/10/27 Florian Mayer rep...@bugs.python.org:

 Florian Mayer florma...@aim.com added the comment:

 I dare to disagree on this being an adequate fix. Request to reopen.

What would you prefer?

--

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



[issue5430] imaplib: must not replace LF or CR by CRLF in literals

2009-10-27 Thread Rajesh S R

Rajesh S R srrajesh1...@gmail.com added the comment:

Am quite new here; just searching hard to contribute, would like to
patch this, if I can go ahead.

Don't we need to patch the original imaplib code also?

just remove the line:
self.literal = MapCRLF.sub(CRLF, message)
and have:
self.literal = message
Or am I missing something completely?

--
nosy: +rajeshsr

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



[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-27 Thread Florian Mayer

Florian Mayer florma...@aim.com added the comment:

At least converting

map(None, a, b, ...)

to

map(lambda *xs: xs, a, b, ...)

I can understand if you prefer not to add the itertools.zip_longest
workaround, although that would be the correct translation, of course.

--

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



[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-27 Thread Benjamin Peterson

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

2009/10/27 Florian Mayer rep...@bugs.python.org:

 Florian Mayer florma...@aim.com added the comment:

 At least converting

 map(None, a, b, ...)

 to

 map(lambda *xs: xs, a, b, ...)

Well, since that's not always correct, we should not translate to it.

--

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



[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-27 Thread Florian Mayer

Florian Mayer florma...@aim.com added the comment:

When could this possibly be wrong, if I may ask?

--

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



[issue7222] thread reaping is imperfect

2009-10-27 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

Thread reaping in test_support is imperfect because, even when a thread
has a disappeared from _active and _limbo, the Thread object might still
be hanging somewhere in memory (leaving its last instants). This problem
manifests itself when trying to fix the transient refleaks in
test_socketserver.

One solution I've found is to add a _count() method to the thread
module, which returns the number of running threads from the point of
view of the C extension. When _count() is decremented, we can be sure
the Python method has finished running and the Thread object is not
hanging around.

--
components: Tests
files: threading_setup.patch
keywords: patch
messages: 94582
nosy: nnorwitz, pitrou, r.david.murray
priority: normal
severity: normal
stage: patch review
status: open
title: thread reaping is imperfect
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file15215/threading_setup.patch

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



[issue7218] test_site failure under Windows

2009-10-27 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

fixed in r75871, r75873

thanks

--
resolution:  - fixed
status: open - closed

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



[issue7222] thread reaping is imperfect

2009-10-27 Thread Antoine Pitrou

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

Thinking about it, another possibility is to strengthen Thread.join(),
so that it waits for the actual end of the thread, not a small instant
before.

--

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



[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2009-10-27 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

I've simplified the tests so they just check that [.]pydistutils.cfg is
taken or not taken, depending if the option is used.

I've also made sure the option is just looked in the global options,
because the patch was implying that a command local option with the same
name could work.

Done in r75893 and r75895.

Thanks a lot Paul !

--
resolution: accepted - fixed
status: open - closed

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



[issue7222] thread reaping is imperfect

2009-10-27 Thread Antoine Pitrou

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

Forget the last message. While improving Thread.join() can be good, it
still doesn't guarantee that all references have been released.

--

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



[issue7223] Simplify and improve Thread.join()

2009-10-27 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

This patch improves and simplifies Thread.join() by making sure that the
__bootstrap() method is finished before join() returns. While it does
improve the resource deallocation behaviour, it is still enough for
solving all refleak detection hazards (see #7222).

--
components: Library (Lib)
files: join.patch
keywords: patch
messages: 94587
nosy: gregory.p.smith, jyasskin, pitrou
priority: low
severity: normal
stage: patch review
status: open
title: Simplify and improve Thread.join()
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file15216/join.patch

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



[issue7058] Add some test execution environment protection to regrtest

2009-10-27 Thread R. David Murray

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

Enhanced patch applied in r75400, and further enhanced by Nick Coghlan
in r75456, r75457, and r75466.  Ported to py3k by Nick in r75493, with a
little cleanup in r75504.

--
status: open - closed

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



[issue7223] Simplify and improve Thread.join()

2009-10-27 Thread Antoine Pitrou

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

(I meant not enough, of course)

--

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



[issue7223] Simplify and improve Thread.join()

2009-10-27 Thread Benjamin Peterson

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

This patch relies on ref counting behavior, an unfortunate side-effect
for other implementations.

--
nosy: +benjamin.peterson

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



[issue7223] Simplify and improve Thread.join()

2009-10-27 Thread Antoine Pitrou

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

Indeed. Let's consider it closed then.

--
resolution:  - rejected
status: open - closed

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



[issue7222] thread reaping is imperfect

2009-10-27 Thread Antoine Pitrou

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

Here's a new patch with tests.

--
Added file: http://bugs.python.org/file15217/threading_setup2.patch

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



[issue7082] Patch for get_filename in email.message when content-disposition is missing

2009-10-27 Thread R. David Murray

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

Fixed in 2.6 in r75897.

--
status: open - closed

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



[issue7208] Getpass echo's password to screen on 2.6, but not on 2.5 or 3.1

2009-10-27 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Just to give credit where credit is due: see #4 here

http://mail.python.org/pipermail/python-dev/2003-December/040579.html

--
nosy: +belopolsky

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



[issue7224] One obvious way to do interning

2009-10-27 Thread Alexander Belopolsky

New submission from Alexander Belopolsky belopol...@users.sourceforge.net:

Attached patch implements python-ideas proposal to return added or 
existing element from set.add().  See 
http://mail.python.org/pipermail/python-ideas/2009-October/006491.html .

In addition this patch contains a reimplementation of issue1507011 using 
new behavior of set_add.

The two changes are independent an I would submit them separately if I 
was more optimistic that any would be accepted. :-)

This submission is mostly for the benefit of users with applications 
that create huge number of interned strings.  Since the patch saves 8 
bytes for each interned string, such application can see appreciable 
memory savings.

I don't have such application and my tests show no difference between 
patched and stock python.  (For a data point, on start up stock python 
creates about 2,000 interned strings.)

My own motivation for writing this patch was the same as for issue1507011: the 
code that uses a set to store interned strings is more  
straightforward than code that uses a dict that stores strings twice, 
both as key and value.

--
components: Interpreter Core
files: set-add.diff
keywords: patch
messages: 94595
nosy: belopolsky
severity: normal
status: open
title: One obvious way to do interning
type: feature request
Added file: http://bugs.python.org/file15218/set-add.diff

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



[issue7045] utf-8 encoding error

2009-10-27 Thread Benjamin Peterson

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

This is a duplicate of #3297, and Adam's patch there fixes it.

--
nosy: +benjamin.peterson
resolution:  - duplicate
status: open - closed
superseder:  - Python interpreter uses Unicode surrogate pairs only before the 
pyc is created

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



[issue7225] fwrite() compiler warnings

2009-10-27 Thread Benjamin Peterson

New submission from Benjamin Peterson benja...@python.org:

gcc 4.3.2 is currently coughing up warnings like this:

Objects/object.c: In function 'internal_print':
   

Objects/object.c:301: warning: ignoring return value of 'fwrite',
declared with attribute warn_unused_result 
  
Objects/object.c:310: warning: ignoring return value of 'fwrite',
declared with attribute warn_unused_result 
  
Python/marshal.c: In function 'w_string':  
  
  
Python/marshal.c:97: warning: ignoring return value of 'fwrite',
declared with attribute warn_unused_result 
   
./Modules/signalmodule.c: In function 'signal_handler':
   

./Modules/signalmodule.c:182: warning: ignoring return value of 'write',
declared with attribute warn_unused_result

--
components: Build
messages: 94597
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: fwrite() compiler warnings
type: compile error
versions: Python 2.7, Python 3.2

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



[issue7224] One obvious way to do interning

2009-10-27 Thread Raymond Hettinger

Changes by Raymond Hettinger rhettin...@users.sourceforge.net:


--
assignee:  - rhettinger
nosy: +rhettinger
versions: +Python 2.7, Python 3.2

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



[issue7226] IDLE right-clicks don't work on Mac OS 10.5

2009-10-27 Thread Mitchell Model

New submission from Mitchell Model m...@acm.org:

I'm sure this has been reported before, by I can't find it. Right button
clicks do nothing on Mac OS X -- they don't go to the line of a
traceback, and in debug mode they don't pop up the breakpoint menu.

--
assignee: ronaldoussoren
components: IDLE, Macintosh
messages: 94598
nosy: MLModel, ronaldoussoren
severity: normal
status: open
title: IDLE right-clicks don't work on Mac OS 10.5
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2

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



[issue7212] Retrieve an arbitrary element from a set without removing it

2009-10-27 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Any reason you don't want to call set_next from set_get?

I would say

static PyObject *
set_get(PySetObject *so)
{
register Py_ssize_t pos = 0;
register setentry *entry;
if (set_next(so, pos, entry)) {
  Py_INCREF(entry-key);
  return entry-key;
}
/* set appropriate error */
return NULL;
}

BTW, what your patch is supposed to do on set().get()?
}

--
nosy: +belopolsky

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



[issue5872] New C API for declaring Python types

2009-10-27 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


--
nosy: +belopolsky

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



[issue7227] Shell Support for installation of Python Packages (.EGG)

2009-10-27 Thread David Lyon

New submission from David Lyon david.l...@preisshare.net:

Under Windows, it would be very handy to have shell support for
installing .EGG packages.

To implement this would require the addition of some registry keys into
the cpython installation to associate the .EGG extension as being a
python package.

Then a new script would be assigned to process the .EGG file if called
from explorer.

This would provide the user with the ability to easily install packages
from web sites such as pypi.

--
components: Demos and Tools, Installation, Windows
messages: 94600
nosy: djlyon
severity: normal
status: open
title: Shell Support for installation of Python Packages (.EGG)
type: feature request
versions: Python 2.4, Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 
3.1, Python 3.2

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