[issue1014230] optparse: parser.remove_option("-h") inconsistency

2008-01-30 Thread Ralf Schmitt
Ralf Schmitt added the comment: this test program work with python 2.4 and 2.5: import optparse p1=optparse.OptionParser() p2=optparse.OptionParser() p1.remove_option('-h') p2.remove_option('-h') This issue should be closed. -- nosy: +schmir _ Track

[issue1545463] New-style classes fail to cleanup attributes

2008-01-30 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The problem still exists in 2.5.1. The explanations given so far are not correct. With x.py as before (see attached): >>> import sys, gc, x creating X('new') creating X('old') >>> del x,sys.modules['x'] deleting X('old') >>> gc.collect() deleting X('new'

[issue1979] Make Decimal comparisons with NaN less arbitrary

2008-01-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM, you're now moving far beyond the spec into territory that isn't covered by tests or standards. Is this necessary? -- nosy: +rhettinger __ Tracker <[EMAIL PROTECTED]> _

[issue1979] Make Decimal comparisons with NaN less arbitrary

2008-01-30 Thread Mark Dickinson
New submission from Mark Dickinson: For Python 3.0 the decimal module got rich comparisons. Those comparisons have somewhat unconventional behavior with respect to NaNs, as seen below: <, <= and == comparisons involving NaNs always return False, while >, >= and != comparisons always return

[issue1978] Python(2.5.1) will be crashed when i use _ssl module in multi-threads environment in linux.

2008-01-30 Thread Bill Janssen
Bill Janssen added the comment: Thanks for the patch. I'm of two minds about this. It may well be an appropriate patch for 2.5.2 -- I seem to recall having to do something much like this in the new SSL module -- but it patches the old SSL code which we are replacing for 2.6. And I'd recommend

[issue1905] PythonLauncher not working correctly on OS X 10.5/Leopad

2008-01-30 Thread Mark Dickinson
Mark Dickinson added the comment: I can reproduce this in the trunk, on OS X 10.5.1/Intel: after a ./configure --enable-framework && make && sudo make altinstall ctrl-clicking on a simple python file on the Desktop and selecting OpenWith -> PythonLauncher fails to run the script and gives es

[issue1967] Backport dictviews to 2.6

2008-01-30 Thread Thomas Wouters
Thomas Wouters added the comment: After talking to Guido, got rid of the future import magic in favour of just providing 'viewkeys', 'viewitems' and 'viewvalues' methods of dicts. This makes efficient 2.6-and-3.0 dict-using code possibly by making 2to3 translate the view-methods directly to keys/

[issue1967] Backport dictviews to 2.6

2008-01-30 Thread Thomas Wouters
Changes by Thomas Wouters: Removed file: http://bugs.python.org/file9320/dictviews_backport.diff __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list

[issue1978] Python(2.5.1) will be crashed when i use _ssl module in multi-threads environment in linux.

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: -> janssen components: +Extension Modules -None keywords: +patch nosy: +janssen priority: -> high __ Tracker <[EMAIL PROTECTED]> __

[issue1978] Python(2.5.1) will be crashed when i use _ssl module in multi-threads environment in linux.

2008-01-30 Thread [EMAIL PROTECTED]
New submission from [EMAIL PROTECTED]: Python-2.5.1 will be crashed when i use _ssl module in multi-threads environment in linux. the sample code looks as below(A https server is running on host which ip is "192.168.5.151" and many certificates and keys in PEM format are in the directory "./ce

[issue1234] semaphore errors on AIX 5.2

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Fixed in r60464 (trunk) and r60465 (25) -- resolution: accepted -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue1234] semaphore errors on AIX 5.2

2008-01-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Christian, could you apply this patch ? It needs a working autoconf 2.61 installation which I currently don't have. The patch itself, does the trick, so should go in. Thanks. -- assignee: lemburg -> tiran __ Tracker

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2008-01-30 Thread Raymond Hettinger
Changes by Raymond Hettinger: -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2008-01-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Checked-in rev 60453. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1977] Python reinitialization test

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Martin v. Löwis wrote: > Martin v. Löwis added the comment: > > I'm not sure what the purpose of this test is. When would it pass, when > would it fail? I don't think it is a bug if a > Py_Initialize()/Py_Finalize() cycle loses references. Today my attempts t

[issue1977] Python reinitialization test

2008-01-30 Thread Martin v. Löwis
Martin v. Löwis added the comment: I'm not sure what the purpose of this test is. When would it pass, when would it fail? I don't think it is a bug if a Py_Initialize()/Py_Finalize() cycle loses references. -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]>

[issue1966] infinite loop in httplib

2008-01-30 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- versions: -Python 2.3, Python 2.4 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscri

[issue1966] infinite loop in httplib

2008-01-30 Thread Mike Klaas
Mike Klaas added the comment: I wouldn't advocate that it go in to 2.3/2.4. The only security issue is a possible DoS, but I think that is unlikely. There is already an "attack vector" for python code using (timeout-less) httplib by simply returning the response very slowly (1byte/sec). ___

[issue1977] Python reinitialization test

2008-01-30 Thread Christian Heimes
New submission from Christian Heimes: The patch adds a new test and a new executable. The executable calls Py_Initialze() and Py_Finalize() multiple times in a row. The test also shows that Python looses about 35 references in each round. $ ./test_reinit round 1 [7751 refs] round 2 [7797 refs] r

[issue799104] CPPFLAGS should not be aded to ldshard command

2008-01-30 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: For the record, the latest Lib/distutils/sysconfig.py still seems to have this behaviour (please correct me if I am wrong). I am closing this as there is no activity for quite some time. -- nosy: +draghuram resolution: -> wont fix status: open ->

[issue1976] pybsddb leak in using cursors

2008-01-30 Thread Jesús Cea Avión
Changes by Jesús Cea Avión: -- severity: normal -> major type: -> resource usage __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing

[issue1976] pybsddb leak in using cursors

2008-01-30 Thread Jesús Cea Avión
New submission from Jesús Cea Avión: Iterating a cursor over a database seems to leak memory. See http://sourceforge.net/mailarchive/forum.php?thread_name=4797B7D0.8060701%40gmail.com&forum_name=pybsddb-users -- components: Extension Modules messages: 61871 nosy: jcea severity: normal st

[issue1966] infinite loop in httplib

2008-01-30 Thread Jesús Cea Avión
Changes by Jesús Cea Avión: -- nosy: +jcea __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1975] signals in thread problem

2008-01-30 Thread Andriy Pylypenko
New submission from Andriy Pylypenko: Hello, This issue is actually a follow up of issue 960406. The patch applied there brought in a problem at least under FreeBSD. The problem is extremely annoying so I made an effort to uncover the source of it. Here is an example code that shows the problem

[issue756914] SSL support for poplib

2008-01-30 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: no activity. Please do reopen if the offer still stands. -- nosy: +draghuram resolution: -> out of date status: open -> closed Tracker <[EMAIL PROTECTED]> _

[issue600362] relocate cgi.parse_qs() into urlparse

2008-01-30 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: I know that Senthil has been working on consolidating url related functionalities so I am adding him to the list. -- nosy: +draghuram, orsenthil versions: +Python 2.6, Python 3.0 Tracker <[EMAIL PROTECTED]>

[issue1943] improved allocation of PyUnicode objects

2008-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: After some more tests I must qualify what I said. The freelist patch is an improvement in some situations. In others it does not really have any impact. On the other hand, the PyVarObject version handles memory-bound cases dramatically better, see below. With a

[issue1745035] DoS smtpd vulnerability

2008-01-30 Thread Jesús Cea Avión
Changes by Jesús Cea Avión: -- nosy: +jcea _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2008-01-30 Thread Chris Withers
New submission from Chris Withers: Somewhere in email.MIMEText.MIMEText.as_string (I'm not sure where) long subject headers are folded using a newline followed by a tab: >>> from email.MIMEText import MIMEText >>> m = MIMEText('foo') >>> m['Subject']='AA '*40 >>> m.as_string() 'Content-Type: tex

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Thanks again! Applied in r60442 -- resolution: accepted -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Antoine Pitrou
Changes by Antoine Pitrou: Added file: http://bugs.python.org/file9331/bytestest.patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing li

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, that "import functools" at top of the file certainly can be removed... __ Tracker <[EMAIL PROTECTED]> __ ___ Pytho

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, here is a patch using type2test instead :) Added file: http://bugs.python.org/file9330/bytestest.patch __ Tracker <[EMAIL PROTECTED]> __ _

[issue1943] improved allocation of PyUnicode objects

2008-01-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Yes, definitely. Some comments on style in your first patch: * please use unicode->length instead of the macro LENGTH you added * indents in unicodeobject.c are 4 spaces * line length should stay below 80 __ Tracker <[EMA

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: I've applied the patch to the trunk in r60440. It will be merged into 3.0 soonish. Thanks for your work Keep it going! :) -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue1973] bytes.fromhex('') raises SystemError

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Thanks! :) Fixed in r60439 -- keywords: +patch nosy: +tiran priority: -> normal resolution: -> fixed status: open -> closed type: -> crash __ Tracker <[EMAIL PROTECTED]> __

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Good idea but could you please use typ2test instead of a decorator? It involves too much magic. -- keywords: +patch nosy: +tiran priority: -> normal resolution: -> accepted type: -> rfe __ Tracker <[EMAIL PROTECTED]>

[issue1973] bytes.fromhex('') raises SystemError

2008-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. Unittest should be covered by removing the test_bytes workaround mentioned in #1972 :) Added file: http://bugs.python.org/file9329/fromhex.patch __ Tracker <[EMAIL PROTECTED]> _

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ok, thanks. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: > Please make those stables static... > > In general, everything that's not needed outside an object file should > be made static to avoid naming conflicts. For static symbols, there's no > need to prefix them with any "Py" indicator. The ascii whitespace ta

[issue1973] bytes.fromhex('') raises SystemError

2008-01-30 Thread Antoine Pitrou
New submission from Antoine Pitrou: >>> bytearray.fromhex('') bytearray(b'') >>> bytes.fromhex('') Traceback (most recent call last): File "", line 1, in SystemError: Objects/stringobject.c:3131: bad argument to internal function -- components: Interpreter Core messages: 61855 nosy: p

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Antoine Pitrou
New submission from Antoine Pitrou: Currently some tests in test_bytes.py only test bytearray, others only test bytes. Here is a patch to try to make test coverage more extensive. You'll notice there is a small hack in test_fromhex, that's because bytes.fromhex is buggy, I'll open a separate bug

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Please make those stables static... In general, everything that's not needed outside an object file should be made static to avoid naming conflicts. For static symbols, there's no need to prefix them with any "Py" indicator. ___

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: Removed file: http://bugs.python.org/file9326/trunk_unispace.patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list m

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Sorry, this patch doesn't contain my current work. Added file: http://bugs.python.org/file9327/trunk_unispace.patch __ Tracker <[EMAIL PROTECTED]> __ __

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: I agree! The new patch applies cleanly to the trunk. I've fixed some white spaces and renamed the tables to _Py_ascii_ Added file: http://bugs.python.org/file9326/trunk_unispace.patch __ Tracker <[EMAIL PROTECTED]>

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: This should also be backported to Py2.6. -- versions: +Python 2.6 __ Tracker <[EMAIL PROTECTED]> __ ___ Py

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Nice patch ! -- nosy: +lemburg __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubs

[issue1964] Slight adjustment to sphinx print-media stylesheet

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: -> georg.brandl keywords: +patch nosy: +georg.brandl priority: -> normal type: -> rfe __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1685] linecache .updatecache fails on utf8 encoded files

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +easy, patch priority: -> high type: -> behavior __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-l

[issue1966] infinite loop in httplib

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: I'm not sure if the patch can get into 2.3 and 2.4. It's up to Martin to decide. -- assignee: -> loewis keywords: +easy, patch nosy: +loewis, tiran priority: -> high __ Tracker <[EMAIL PROTECTED]>

[issue1965] Move trunc() to math module

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: -- priority: -> high __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1391] Adds the .compact() method to bsddb db.DB objects

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: -- priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1967] Backport dictviews to 2.6

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: -- priority: -> normal type: -> rfe __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscr

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Sounds interesting and good! -- keywords: +patch nosy: +tiran priority: -> normal type: -> rfe __ Tracker <[EMAIL PROTECTED]> __ _

[issue1969] split and rsplit in bytearray are inconsistent

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Fixed in r60437 with unit test. Thanks for the report! -- nosy: +tiran resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue1968] Unused number magic methods leaked into Py2.6

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: -- priority: -> high type: -> behavior __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsub

[issue1953] Compact int and float freelists

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: I've moved the methods back to the sys module and added API docs for the C and Python code. -- title: gc.compact_freelists -> Compact int and float freelists Added file: http://bugs.python.org/file9325/trunk_compact_freelist2.patch ___

[issue1971] ctypes exposing the pep 3118 buffer interface

2008-01-30 Thread Thomas Heller
New submission from Thomas Heller: The attached patch against py3k makes ctypes expose the pep 3118 buffer interface. The code is also available in the py3k-ctypes-pep3118 branch. -- components: Extension Modules files: ctypes-pep3118.patch keywords: patch messages: 61844 nosy: theller p