[issue7216] low performance of zipfile readline()

2009-10-27 Thread Volker Siepmann
New submission from Volker Siepmann : 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

[issue7217] IDLE Subprocess Startup Error

2009-10-27 Thread ali
New submission from ali : 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 p

[issue7217] IDLE Subprocess Startup Error

2009-10-27 Thread ali
ali 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 ___ _

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

2009-10-27 Thread Willi Richert
Changes by Willi Richert : Removed file: http://bugs.python.org/file15207/setobject_get.patch ___ Python tracker ___ ___ Python-bugs-list maili

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

2009-10-27 Thread Willi Richert
Changes by Willi Richert : Added file: http://bugs.python.org/file15211/setobject_get.patch ___ Python tracker ___ ___ Python-bugs-list mailing

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

2009-10-27 Thread Willi Richert
Willi Richert added the comment: added tests for get() to test_set.py -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue7218] test_site failure under Windows

2009-10-27 Thread Antoine Pitrou
New submission from Antoine Pitrou : This fails quite reliably on Windows buildbots: == FAIL: test_getsitepackages (test.test_site.HelperFunctionsTests) -- Trac

[issue7117] Backport py3k float repr to trunk

2009-10-27 Thread Eric Smith
Eric Smith added the comment: r75743: Fix cPickle.c to use PyOS_string_to_double. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue7117] Backport py3k float repr to trunk

2009-10-27 Thread Eric Smith
Eric Smith added the comment: r75745: Fix stropmodule.c to use PyOS_string_to_double. -- ___ Python tracker ___ ___ Python-bugs-list m

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

2009-10-27 Thread Michael Foord
Michael Foord 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 th

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

2009-10-27 Thread Michael Foord
Michael Foord added the comment: Sorry - meant to create a new issue. -- nosy: +tarek resolution: -> accepted status: open -> closed ___ Python tracker ___ _

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

[issue7220] python -m no longer executes packages directly

2009-10-27 Thread Martijn Ras
New submission from Martijn Ras : 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 . In Python 2.6 this results in the following error: /usr/bin/python: is a package and cannot be directly executed

[issue7071] distutils and IronPython compatibility

2009-10-27 Thread R. David Murray
Changes by R. David Murray : -- 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

[issue7055] Automatic test___all__

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Finally backported to 2.6 (r75751) and 3.1 (r75752). -- ___ Python tracker ___ ___ Python-bugs-list

[issue7084] printing a list releases the GIL carelessly

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Backported to 2.6 in r75750. -- resolution: accepted -> fixed status: pending -> closed ___ Python tracker ___ _

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

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Backported to 2.6 in r75749. -- resolution: accepted -> fixed status: pending -> closed ___ Python tracker ___ __

[issue7194] test_thread is flaky

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Backported to 2.6 in r75748. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___

[issue5833] readline update

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Now backported to py3k in r75747. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue7220] python -m no longer executes packages directly

2009-10-27 Thread Benjamin Peterson
Benjamin Peterson 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

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

2009-10-27 Thread Michael Broghton
Michael Broghton added the comment: This is against release31-maint, if it matters. -- keywords: +patch Added file: http://bugs.python.org/file15212/kevent.patch ___ Python tracker _

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

2009-10-27 Thread Mark Dickinson
Mark Dickinson added the comment: logb fix applied to release26-maint in r75804. -- ___ Python tracker ___ ___ Python-bugs-list mailin

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

2009-10-27 Thread Mark Dickinson
Mark Dickinson added the comment: Merged to release26-maint in r75805. -- status: open -> closed ___ Python tracker ___ ___ Python-bug

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

2009-10-27 Thread Mark Dickinson
Mark Dickinson added the comment: Updated release26-maint to new test-suite in r75806. -- ___ Python tracker ___ ___ Python-bugs-list

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

2009-10-27 Thread Mark Dickinson
Mark Dickinson added the comment: Looks like this was merged to release26-maint by Georg in r75790. Thanks, Georg! -- status: open -> closed ___ Python tracker ___

[issue7205] bz2file deadlock

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r75818 (trunk), r75819 (2.6), r75820 (py3k), r75821 (3.1). Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker _

[issue5596] memory leaks in py3k

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou 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

[issue7210] Proposed Syntax Checks in Test Suite

2009-10-27 Thread Chuck Rhode
Chuck Rhode added the comment: Yet another patch file -- Added file: http://bugs.python.org/file15213/test_grammar.patch ___ Python tracker ___ __

[issue7221] DispatcherWithSendTests_UsePoll with test_asyncore does nothing

2009-10-27 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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:

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

2009-10-27 Thread Mark Dickinson
Mark Dickinson added the comment: Merged to release26-maint in r75822. -- status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue7117] Backport py3k float repr to trunk

2009-10-27 Thread Eric Smith
Eric Smith added the comment: r75824: Fix ast.c to use PyOS_string_to_double. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2009-10-27 Thread Jason R. Coombs
Jason R. Coombs 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 ___

[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 : Removed file: http://bugs.python.org/file15208/windows symlink draft 13.patch ___ Python tracker ___ ___ Python

[issue5596] memory leaks in py3k

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: test_asyncore and test_httpservers should now be fixed. -- ___ Python tracker ___ ___ Python-bugs-li

[issue7117] Backport py3k float repr to trunk

2009-10-27 Thread Eric Smith
Eric Smith added the comment: r75846: Fix marshal.c to use PyOS_string_to_double. -- ___ Python tracker ___ ___ Python-bugs-list maili

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

2009-10-27 Thread Florian Mayer
Florian Mayer added the comment: I dare to disagree on this being an adequate fix. Request to reopen. -- ___ Python tracker ___ ___ Py

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

2009-10-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2009/10/27 Florian Mayer : > > Florian Mayer added the comment: > > I dare to disagree on this being an adequate fix. Request to reopen. What would you prefer? -- ___ Python tracker

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

2009-10-27 Thread Rajesh S R
Rajesh S R 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 missi

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

2009-10-27 Thread Florian Mayer
Florian Mayer 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. --

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

2009-10-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2009/10/27 Florian Mayer : > > Florian Mayer 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. -- ___

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

2009-10-27 Thread Florian Mayer
Florian Mayer added the comment: When could this possibly be wrong, if I may ask? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue7222] thread reaping is imperfect

2009-10-27 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 tr

[issue7218] test_site failure under Windows

2009-10-27 Thread Tarek Ziadé
Tarek Ziadé added the comment: fixed in r75871, r75873 thanks -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue7222] thread reaping is imperfect

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou 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

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

2009-10-27 Thread Tarek Ziadé
Tarek Ziadé 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 sa

[issue7222] thread reaping is imperfect

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou 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 ___

[issue7223] Simplify and improve Thread.join()

2009-10-27 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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)

[issue7058] Add some test execution environment protection to regrtest

2009-10-27 Thread R. David Murray
R. David Murray 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

[issue7223] Simplify and improve Thread.join()

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: (I meant not enough, of course) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue7223] Simplify and improve Thread.join()

2009-10-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: This patch relies on ref counting behavior, an unfortunate side-effect for other implementations. -- nosy: +benjamin.peterson ___ Python tracker

[issue7223] Simplify and improve Thread.join()

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed. Let's consider it closed then. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___

[issue7222] thread reaping is imperfect

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here's a new patch with tests. -- Added file: http://bugs.python.org/file15217/threading_setup2.patch ___ Python tracker ___ ___

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

2009-10-27 Thread R. David Murray
R. David Murray added the comment: Fixed in 2.6 in r75897. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

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

[issue7224] One obvious way to do interning

2009-10-27 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : 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

[issue7045] utf-8 encoding error

2009-10-27 Thread Benjamin Peterson
Benjamin Peterson 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 _

[issue7225] fwrite() compiler warnings

2009-10-27 Thread Benjamin Peterson
New submission from Benjamin Peterson : gcc 4.3.2 is currently coughing up warnings like this: Objects/object.c: In function 'internal_print': Objects/object.c:301

[issue7224] One obvious way to do interning

2009-10-27 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger versions: +Python 2.7, Python 3.2 ___ Python tracker ___ _

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

2009-10-27 Thread Mitchell Model
New submission from Mitchell Model : 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,

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

2009-10-27 Thread Alexander Belopolsky
Alexander Belopolsky 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(ent

[issue5872] New C API for declaring Python types

2009-10-27 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2009-10-27 Thread David Lyon
New submission from David Lyon : 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 scrip

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

2009-10-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- versions: -Python 2.4, Python 2.5, Python 2.6, Python 3.0, Python 3.1 ___ Python tracker ___ ___ Pytho

[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-10-27 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : Hello. There is following sentence in Modules/_io/bufferedio.c, PyErr_Format(PyExc_IOError, "Raw stream returned invalid position %" PY_PRIdOFF, (PY_OFF_T_COMPAT)n); and PY_PRIdOFF == "lld" when sizeof(off_t) == s

[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-10-27 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I believe r75728 and r75879 are related. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue4750] tarfile keeps excessive dir structure in compressed files

2009-10-27 Thread Tarek Ziadé
Tarek Ziadé added the comment: Lars, is this still accurate ? -- nosy: +tarek versions: +Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker ___ ___