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

2008-01-29 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: Will do. -- components: +Library (Lib) resolution: -> accepted __ Tracker <[EMAIL PROTECTED]> __ ___ Python-

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

2008-01-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: For 2.6, they should be omitted from rational.py. The code that is there is not the code that is run -- that impairs its value as a demo module. __ Tracker <[EMAIL PROTECTED]> _

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

2008-01-29 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: I can't find the __round__, __ceil__, and __floor__ methods in int, long, and float. I left them in Rational on purpose, thinking that there might be a module that provided the new behaviors for 2.6 code, but you're probably right that these should be rolled bac

[issue1948] Cant open python gui using VISTA

2008-01-29 Thread Martin v. Löwis
Martin v. Löwis added the comment: Make explorer show all hidden files, then don't search for it, but directly navigate to .idlerc; note the leading dot. Please understand that this tracker is not a means you to request help, but for you to provide help, by reporting bugs. If you seek help, use

[issue1960] test_gdbm.py converted to unittest

2008-01-29 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola': Added file: http://bugs.python.org/file9323/test_gdbm.py __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing li

[issue1960] test_gdbm.py converted to unittest

2008-01-29 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Updated version in attachment. Changes: - Added "if self.g is not None: self.g.close()" clause in tearDown. - Used "test.test_support.unlink(filename)" instead of the try/except statement. - Added tests for the flag clause in the open() statement by trying a

[issue1969] split and rsplit in bytearray are inconsistent

2008-01-29 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, that looks like a bug. -- keywords: +easy nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> __ ___ Pyth

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-29 Thread Antoine Pitrou
New submission from Antoine Pitrou: Currently the PyUnicode type uses a function call and several lookups per character to detect whitespace and linebreaks. This slows down considerably the split(), rsplit() and splitlines() methods. Since the overwhelming majority of whitespace and linebreaks ar

[issue1969] split and rsplit in bytearray are inconsistent

2008-01-29 Thread Antoine Pitrou
New submission from Antoine Pitrou: In the bytearray type, the split and rsplit methods use a different definition of what is a whitespace character. split_whitespace calls ISSPACE(), while rsplit_whitespace calls Py_UNICODE_ISSPACE(). The latter is probably an error since it is also inconsistent

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

2008-01-29 Thread Raymond Hettinger
New submission from Raymond Hettinger: The Py2.6 code has __round__, __ceil__, and __floor__ methods still in several objects (int, longs, float, Rational) but they are not invoked by anything. For example, round(Rational(22,7)) does not use the Rational.__round__ code and round(22) does not us

[issue1967] Backport dictviews to 2.6

2008-01-29 Thread Thomas Wouters
New submission from Thomas Wouters: Patch to backport dictviews to trunk. Consists of some trickery: - new 'viewkeys', 'viewvalues' and 'viewitems' methods of dicts, returning exactly what 'keys', 'values' and 'items' return in 3.0: three new types defined in dictobject.c - a future import (di

[issue400622] Just a test

2008-01-29 Thread Martin v. Löwis
Martin v. Löwis added the comment: This message links to msg32826 -- nosy: +loewis Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list

[issue1943] improved allocation of PyUnicode objects

2008-01-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: FWIW, I tried using the freelist scheme introduced in my patch without making PyUnicode a PyVarObject and, although it's better than the standard version, it's still not as good as the PyVarObject version. Would you be interested in that patch? _

[issue1750076] Python 2.5+ skips while statements in debuggers

2008-01-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Here is an attempt to correct the problem, with unit tests. I removed half of the trick marked by a "XXX(nnorwitz)", by adding an attribute to "struct instr" (this attribute is a bitfield and does not increase the memory usage). FOR_ITER is no more special

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

2008-01-29 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I can reproduce the crash from a pure C program, so this library seems buggy. Posting a report in http://forums.oracle.com/forums/thread.jspa?threadID=611821 __ Tracker <[EMAIL PROTECTED]> _

[issue606733] Docstring formatter.

2008-01-29 Thread Raghuram Devarakonda
Changes by Raghuram Devarakonda: -- resolution: -> rejected status: open -> closed Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list

[issue1577] shutil.move() does not use os.rename() if dst is a directory

2008-01-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, if we really wanted to be complete in the unit tests, we should also test the case where either src or dst is a symlink to a directory. But it's still much better than originally - there was hardly any unit test for shutil.move(). ___

[issue1577] shutil.move() does not use os.rename() if dst is a directory

2008-01-29 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: We are back to square 1 :-). Your patch incorporates Facundo's suggestion which is 'rename(src_file, dst_dir/`basename src_file`). It is not clear to me from rereading the earlier comments whether Guido rejected this approach or not. I would personally pref

[issue1935] test_descr.py converted to unittest

2008-01-29 Thread Brett Cannon
Brett Cannon added the comment: On Jan 29, 2008 12:24 PM, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: > > Amaury Forgeot d'Arc added the comment: > > Did he misunderstand the last comment in this post of yours? > http://code.google.com/p/google-highly-open-participation-psf/issues/detail?id=2

[issue1397] py3k-pep3137: failing unit test test_bsddb

2008-01-29 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

[issue1935] test_descr.py converted to unittest

2008-01-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Did he misunderstand the last comment in this post of yours? http://code.google.com/p/google-highly-open-participation-psf/issues/detail?id=291#c24 __ Tracker <[EMAIL PROTECTED]> __

[issue1750076] Python 2.5+ skips while statements in debuggers

2008-01-29 Thread Georgij Kondratjev
Changes by Georgij Kondratjev: -- nosy: +orivej _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1935] test_descr.py converted to unittest

2008-01-29 Thread Brett Cannon
Brett Cannon added the comment: On Jan 29, 2008 3:11 AM, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: > > Amaury Forgeot d'Arc added the comment: > > On the contrary, Jeff's version is better in many aspects. > I happily withdraw my submission. > > Just a question: why were the docstrings remo

[issue1965] Move trunc() to math module

2008-01-29 Thread Jeffrey Yasskin
Changes by Jeffrey Yasskin: -- resolution: -> accepted __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue1966] infinite loop in httplib

2008-01-29 Thread Mike Klaas
New submission from Mike Klaas: There are a small number of sites that do not send the trailing \r\n when using chunked transfer encoding (say 1 in 500,000). This unfortunately, causes httplib to go into an infinite loop. Fixed by checking for EOF (3 line patch) -- components: Librar

[issue1965] Move trunc() to math module

2008-01-29 Thread Raymond Hettinger
New submission from Raymond Hettinger: http://mail.python.org/pipermail/python-dev/2008-January/076626.html Also, the docstring doesn't seem correct or clear. -- assignee: jyasskin components: Extension Modules messages: 61823 nosy: jyasskin, rhettinger severity: normal status: open tit

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

2008-01-29 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

[issue1954] SocketServer.ForkingMixIn creates a zombie

2008-01-29 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: -> wont fix status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing l

[issue1961] possible error with json format for sphinx

2008-01-29 Thread Georg Brandl
Georg Brandl added the comment: Please run a make clean (or just remove the build/html/searchindex.json file) and this should go away. -- nosy: +georg.brandl resolution: -> works for me status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue1595] Probable extra semicolon in Py_LeaveRecursiveCall macro

2008-01-29 Thread Georgij Kondratjev
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1685] linecache .updatecache fails on utf8 encoded files

2008-01-29 Thread Georgij Kondratjev
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1964] Slight adjustment to sphinx print-media stylesheet

2008-01-29 Thread Tim Golden
New submission from Tim Golden: My previous patch to the print stylesheet used by Sphinx was a little overenthusiastic and resulted in the right edge of the text truncating on some printers. This version reverts a part of that and gives a useful result on the printers I've tried. Patch attached

[issue780024] Makefile.pre.in ignores CPPFLAGS from environment

2008-01-29 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: The latest Makefile.pre.in does have this change (@CPPFLAGS@ is appended). -- nosy: +draghuram resolution: -> fixed status: open -> closed versions: +Python 2.6 -Python 2.3 Tracker <[EMAIL PROTECTED]>

[issue1962] ctypes feature request: Automatic type conversion of input arguments to C functions

2008-01-29 Thread Christian Heimes
Christian Heimes added the comment: Feature request -> RFE (request for enhancement) -- assignee: -> theller nosy: +theller, tiran priority: -> normal type: behavior -> rfe versions: +Python 2.6 -Python 2.5 __ Tracker <[EMAIL PROTECTED]>

[issue1946] re.search hangs on this

2008-01-29 Thread Georgij Kondratjev
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1297193] Search is to long with regex like ^(.+|dontmatch)*$

2008-01-29 Thread Georgij Kondratjev
Changes by Georgij Kondratjev: -- nosy: +orivej _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1963] marshal module is leaking references

2008-01-29 Thread Christian Heimes
New submission from Christian Heimes: Hello Raymond! Your changes have introduced a ref leak: test_marshal leaked [32, 32, 32, 32] references, sum=128 -- assignee: rhettinger messages: 61818 nosy: rhettinger, tiran priority: high severity: normal status: open title: marshal module is l

[issue1577] shutil.move() does not use os.rename() if dst is a directory

2008-01-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hi Raghuram, I'm confused, because I can't reproduce it either. I'm afraid I had drunk too much or too little coffee when typing that. Perhaps the patch's semantics should be reconsidered then... What do you think? __ Tracker <[E

[issue1935] test_descr.py converted to unittest

2008-01-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: On the contrary, Jeff's version is better in many aspects. I happily withdraw my submission. Just a question: why were the docstrings removed? -- resolution: -> duplicate __ Tracker <[EMAIL PROTECTED]>

[issue1962] ctypes feature request: Automatic type conversion of input arguments to C functions

2008-01-29 Thread mattbaas
New submission from mattbaas: This is rather a feature request instead of a bug report. Below is the mail I posted to the ctypes-users mailing list. In short: When ctypes checks input argument types using the "argtypes" attribute, it would be useful if it would try to convert the input value