[issue5560] help() no longer reports module docstrings

2009-03-26 Thread Senthil
Changes by Senthil orsent...@gmail.com: Removed file: http://bugs.python.org/file13418/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5560 ___ ___

[issue5560] help() no longer reports module docstrings

2009-03-26 Thread Senthil
Senthil orsent...@gmail.com added the comment: This is issue is FIXED in the trunk code. Please ignore my previous comment. The problem area is in between line 350-352 in the Python 3.0:pydoc.py module. 348 docloc = os.environ.get(PYTHONDOCS, 349

[issue4709] Mingw-w64 and python on windows x64

2009-03-26 Thread Cournapeau David
Cournapeau David da...@ar.media.kyoto-u.ac.jp added the comment: Is there any change to see this integrated soon ? The patch is only a couple of lines long, thanks -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709

[issue5566] Minor error in document of PyLong_AsSsize_t

2009-03-26 Thread Haoyu Bai
New submission from Haoyu Bai divine...@gmail.com: In 2.6 and 2.7 development document, PyLong_AsSsize_t is said New in version 2.5. It is not correct because I checked Python 2.5.4 and there's only _PyLong_AsSsize_t(). You can check it here:

[issue5560] help() no longer reports module docstrings

2009-03-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The code you show was never part of the python project; But I found that it can come from a customized version for some Linux distributions:

[issue1497532] C API to retain GIL during Python Callback

2009-03-26 Thread Martin Gfeller Martin Gfeller
Martin Gfeller Martin Gfeller g...@comit.ch added the comment: Lukas, I'm afraid to admit you're right :-;. Assuming that the Python code called under the not release the GIL regime would not do anything that could be potentially blocking is probably dangerous and

[issue1497532] C API to retain GIL during Python Callback

2009-03-26 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1497532 ___ ___

[issue5567] Operators in operator module don't work with keyword arguments

2009-03-26 Thread Marek Kubica
New submission from Marek Kubica ma...@xivilization.net: When calling operators from the ``operator``-module, they refuse to accept keyword arguments: operator.add(a=1, b=2) TypeError: add() takes no keyword arguments Operators with keyword arguments are important when one wants to create

[issue5528] Unable to launch IDLE on Windows

2009-03-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Do you happen to have a TCL_LIBRARY environment variable? If yes, I suggest to remove it. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue5126] Space character returns false from isprintable() method

2009-03-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The patch seems good. -- nosy: +amaury.forgeotdarc resolution: - accepted stage: test needed - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5126

[issue5516] equality not symmetric for subclasses of datetime.date and datetime.datetime

2009-03-26 Thread Jack Diederich
Jack Diederich jackd...@gmail.com added the comment: +1 Patch and tests work for me. Uploaded a patch that is identical except the file paths are fixed. Was the old behavior stable across compilers anyway? It memcmpared two different structs and IIRC only the first item of each struct is

[issue5567] Operators in operator module don't work with keyword arguments

2009-03-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5567 ___ ___ Python-bugs-list mailing

[issue1080387] Making IDLE Themes and Keys Config more Robust

2009-03-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This issue seems identical to issue2665: IDLE prints a lot of warnings, and this can block the program after some amount of text, probably on the first flush() because stderr is not connected to anything when pythonw.exe is used.

[issue5126] Space character returns false from isprintable() method

2009-03-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r70610. -- nosy: +benjamin.peterson resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5126

[issue5006] Duplicate UTF-16 BOM if a file is open in append mode

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: - I'm not sure why you make self-ok handling more complicated than it was tell() requires self-ok=1. I choosed to reset self-ok to zero on error, but it's maybe useless. - encodefunc should not be forced to NULL, otherwise it

[issue5568] self.writer.closed() extraneous parens in BufferedRWPair of io module

2009-03-26 Thread Jim Olson
New submission from Jim Olson jimo...@gmail.com: import io # Corrected a typo in Python261/Lib/io.py at line 1167 # return self.writer.closed() == return self.writer.closed # in #@property #def closed(self): #return self.writer.closed #also: shouldn't ascii strings still work

[issue5528] Unable to launch IDLE on Windows

2009-03-26 Thread Chris
Chris chrisa...@yahoo.com added the comment: Amaury,    That worked, the variable was for IBMTools, so I am a little concerned that some other program may have issues.  If I do have problems, I will just add the variable back.    Thanks for getting back to me. - Chris - Original Message

[issue5567] Operators in operator module don't work with keyword arguments

2009-03-26 Thread Marek Kubica
Marek Kubica ma...@xivilization.net added the comment: Well, some Schemes have an CURRYR variant which creates partial functions with positional arguments from the right but the current solution with partial accepting keywords is way more flexible since I can pre-set any arguments I like in such

[issue5006] Duplicate UTF-16 BOM if a file is open in append mode

2009-03-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le jeudi 26 mars 2009 à 17:26 +, STINNER Victor a écrit : STINNER Victor victor.stin...@haypocalc.com added the comment: - I'm not sure why you make self-ok handling more complicated than it was tell() requires self-ok=1. I choosed to

[issue5568] self.writer.closed() extraneous parens in BufferedRWPair of io module

2009-03-26 Thread Jim Olson
Changes by Jim Olson jimo...@gmail.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5568 ___ ___ Python-bugs-list

[issue5006] Duplicate UTF-16 BOM if a file is open in append mode

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Faster patch! - add fast encoder for UTF-32, UTF-32-LE and UTF-32-BE (copy/paste of utf16 functions) - move utf-8 before utf-16-* because utf8 more popular than utf16 :-p - don't set self-encodefunc=NULL (loose all the encoder

[issue5006] Duplicate UTF-16 BOM if a file is open in append mode

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file13377/append_bom.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5006 ___

[issue5006] Duplicate UTF-16 BOM if a file is open in append mode

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Hum, it's a detail, but is it a good idea to keep the reference the int(0)? Or would it be better to release it at exit? -- ___ Python tracker rep...@bugs.python.org

[issue5569] Issue in transparency in top level tk window(python) on MAC

2009-03-26 Thread Yogendra Mohan
New submission from Yogendra Mohan yogendra_mo...@oxyent-medical.com: Hello All, OS - MAC 10.5.1 Python 2.5.1 Tk - 8.5.6 I am using the wm_attributes for transparency of top level window. But unable to do the same. The Tk wm attributes command takes option arguments

[issue5570] Bus error when calling .poll() on a closed Connection from multiprocessing.Pipe()

2009-03-26 Thread Allister MacLeod
New submission from Allister MacLeod allister.macl...@gmail.com: Python 2.6.1 (r261:67515, Mar 26 2009, 14:44:39) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2 Type help, copyright, credits or license for more information. from multiprocessing import Pipe a, b = Pipe() a.close() a.poll()

[issue5571] new TestCase.skip method causes all tests to skip under trial (Twisted's test runner)

2009-03-26 Thread Glyph Lefkowitz
New submission from Glyph Lefkowitz gl...@divmod.com: c.f. this Twisted ticket: http://twistedmatrix.com/trac/ticket/3703 Twisted's test tool has an extended TestCase which uses the 'skip' attribute, on both tests and methods, to determine whether to skip them. You can see the implementation

[issue5572] distutils ignores the LIBS configure env var

2009-03-26 Thread Collin Winter
New submission from Collin Winter coll...@gmail.com: If you pass LIBS to ./configure (as in LIBS=-lgcov ./configure), distutils ignores this when building extension modules, which breaks when using certain gcc options which require certain libraries (I'm thinking of -fprofile-generate). The

[issue5570] Bus error when calling .poll() on a closed Connection from multiprocessing.Pipe()

2009-03-26 Thread Vaibhav Mallya
Vaibhav Mallya mally...@umich.edu added the comment: Python 2.6.1 (r261:67515, Mar 22 2009, 05:39:39) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu4)] on linux2 Type help, copyright, credits or license for more information. from multiprocessing import Pipe a, b = Pipe() a.close() a.poll() Segmentation

[issue5570] Bus error when calling .poll() on a closed Connection from multiprocessing.Pipe()

2009-03-26 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - jnoller nosy: +jnoller priority: - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5570 ___

[issue5387] mmap.move crashes by integer overflow

2009-03-26 Thread Jack Diederich
Jack Diederich jackd...@gmail.com added the comment: Here is a more verbose patch. It checks to see if the first two arguments stand-alone as well. It also updates NEWS and ACKs and adds some assertRaises for various bounds checks. -- nosy: +jackdied Added file:

[issue5570] Bus error when calling .poll() on a closed Connection from multiprocessing.Pipe()

2009-03-26 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: See also: http://svn.python.org/view?view=revrevision=68768 http://bugs.python.org/issue3311 This was checked into trunk, I don't know if it was merged to 2.6.1 -- ___ Python tracker

[issue5188] telnetlib process_rawq buffer handling is confused

2009-03-26 Thread Jack Diederich
Jack Diederich jackd...@gmail.com added the comment: I assigned this to me. I'll be sprinting on telnetlib. -- assignee: - jackdied nosy: +jackdied ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5188

[issue5573] multiprocessing Pipe poll() and recv() semantics.

2009-03-26 Thread Vaibhav Mallya
New submission from Vaibhav Mallya mally...@umich.edu: Python 2.6.1 (r261:67515, Mar 22 2009, 05:39:39) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu4)] on linux2 Type help, copyright, credits or license for more information. from multiprocessing import Pipe parent, child = Pipe() parent.send(1)

[issue5570] Bus error when calling .poll() on a closed Connection from multiprocessing.Pipe()

2009-03-26 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: OS/X, Python Trunk: from multiprocessing import Pipe a, b = Pipe() a.close() a.poll() Traceback (most recent call last): File stdin, line 1, in module IOError: handle out of range in select() 2.6.1 Does not have the fix (I can segfault

[issue5573] multiprocessing Pipe poll() and recv() semantics.

2009-03-26 Thread Vaibhav Mallya
Changes by Vaibhav Mallya mally...@umich.edu: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5573 ___ ___ Python-bugs-list

[issue5573] multiprocessing Pipe poll() and recv() semantics.

2009-03-26 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- assignee: georg.brandl - jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5573 ___ ___

[issue5570] Bus error when calling .poll() on a closed Connection from multiprocessing.Pipe()

2009-03-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2009/3/26 Jesse Noller rep...@bugs.python.org: 2.6.1 Does not have the fix (I can segfault it here too). Ben, are we planning a 2.6.2? Yes, I think around 3.1's release, but you'll have to ask Barry for sure. --

[issue5148] gzip.open breaks with 'U' flag

2009-03-26 Thread Jack Diederich
Jack Diederich jackd...@gmail.com added the comment: Unfortunately universal newlines are more complicated than replace() can handle. See io.py, you may be able to use one of those classes to the the universal new line handling on the cheap (or at least easy). -- nosy: +jackdied

[issue4242] Classify language vs. impl-detail tests, step 1

2009-03-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Ok, I applied part of Armin's patch in r70615 modified to work with unittest's new test skipping ability. I think I will apply the test_descr part later. -- ___ Python tracker

[issue4709] Mingw-w64 and python on windows x64

2009-03-26 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you please provide some setup instructions for mingw-w64? What URLs should I install in what order, so that I can compile Python? -- ___ Python tracker rep...@bugs.python.org

[issue5571] new TestCase.skip method causes all tests to skip under trial (Twisted's test runner)

2009-03-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Renamed to skipTest in r60616. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5571 ___

[issue4242] Classify language vs. impl-detail tests, step 1

2009-03-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Second patch applied in r70617. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4242

[issue5574] multiprocessing queues.py doesn't include JoinableQueue in its __all__ list

2009-03-26 Thread Vaibhav Mallya
New submission from Vaibhav Mallya mally...@umich.edu: Should __all__ = ['Queue', 'SimpleQueue'] in queues.py have JoinableQueue as part of the list as well? Also, multiprocessing's __init__.py does not appear to have SimpleQueue as part of its __all__ - is this expected? SimpleQueue does not

[issue5574] multiprocessing queues.py doesn't include JoinableQueue in its __all__ list

2009-03-26 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- assignee: georg.brandl - jnoller nosy: -georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5574 ___

[issue5572] distutils ignores the LIBS configure env var

2009-03-26 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: issue 5060 address this -- nosy: +rpetrov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5572 ___

[issue5572] distutils ignores the LIBS configure env var

2009-03-26 Thread Collin Winter
Collin Winter coll...@gmail.com added the comment: The patch attached to issue 5060 seems very tightly focused on a problem with gcc FDO. This is a more general patch that solves the problem of distutils ignoring LIBS. -- ___ Python tracker

[issue5572] distutils ignores the LIBS configure env var

2009-03-26 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: The LIBS contain all module dependent libraries, libpython is linked with LIBS, modules are linked with libpython. May be I miss something but I could not found why distutils has to use LIBS to link a module. --

[issue5468] urlencode does not handle bytes, and could easily handle alternate encodings

2009-03-26 Thread Jeremy Hylton
Jeremy Hylton jer...@alum.mit.edu added the comment: I'm not sure I understand the part of the code that deals with binary strings. I agree the current behavior is odd. RFC 2396 says that non-ascii characters must be encoded as utf-8 and then percent escaped. In the test case you started

[issue2123] ctypes pointer not always keeping target alive

2009-03-26 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: I accept this as a bug; however I don't have time now to work on it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2123 ___

[issue4773] HTTPMessage not documented and has inconsistent API across 2.6/3.0

2009-03-26 Thread Jeremy Hylton
Jeremy Hylton jer...@alum.mit.edu added the comment: A plausible solution is to pick some core set of functionality that we think people need and document that API. We can modify one or both of the current implementations to include that functionality. What do we need? --

[issue5575] Add env vars for controlling building sqlite, hashlib and ssl

2009-03-26 Thread Collin Winter
New submission from Collin Winter coll...@gmail.com: This patch adds SSL_ROOT, SQLITE_INC and SQLITE_LIB environment variables used to inject additional libraries/headers for building the sqlite, hashlib and ssl modules. We've found this very useful for building these modules against their

[issue5131] pprint doesn't know how to print a set or a defaultdict

2009-03-26 Thread Jack Diederich
Jack Diederich jackd...@gmail.com added the comment: sets and frozensets have already been updated to format like lists. This patch formats defaultdicts like dicts. -- keywords: +patch nosy: +jackdied Added file: http://bugs.python.org/file13425/issue_5131.patch

[issue5028] tokenize.generate_tokens doesn't always return logical line

2009-03-26 Thread Jack Diederich
Jack Diederich jackd...@gmail.com added the comment: +1 for a docbug. The last item is always the physical line and not the logical line. Some other examples: if True and \ False: pass if (True and False): pass -- nosy: +jackdied ___

[issue4773] HTTPMessage not documented and has inconsistent API across 2.6/3.0

2009-03-26 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I propose that you only document the getitem header access API. I.e. the thing that info() gives you can be used to access the message headers via message['content-type']. That's an API common to both rfc822.Messages (the ultimate base class

[issue4889] difflib

2009-03-26 Thread Jack Diederich
Jack Diederich jackd...@gmail.com added the comment: closing, Garbriel's explanation is sufficient. -- nosy: +jackdied resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4889

[issue5418] urllib.response.addinfourl does not support __exit__

2009-03-26 Thread Jeremy Hylton
Changes by Jeremy Hylton jer...@alum.mit.edu: -- assignee: - jhylton nosy: +jhylton resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5418 ___

[issue5418] urllib.response.addinfourl does not support __exit__

2009-03-26 Thread Jeremy Hylton
Jeremy Hylton jer...@alum.mit.edu added the comment: Makes sense to me. Committed revision 70625. -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5418

[issue3266] Python-2.5.2/Modules/mmapmodule.c:915: error: `O_RDWR' undeclared

2009-03-26 Thread Jack Diederich
Jack Diederich jackd...@gmail.com added the comment: survey of other modules that use O_RDRW The following include sys/type.h and fcntl.h unconditionally: bsdmodule.c, dbmmoudle.c, _fileio.c posixmodule.c includes them after doing an #ifdef check mmapmodule.c currently (2.7 trunk) includes

[issue5314] http client error

2009-03-26 Thread Jeremy Hylton
Jeremy Hylton jer...@alum.mit.edu added the comment: I'm not sure what to do here. I guess changing to utf-8 is safe insofar as the current code only accepts ascii, so the only code that breaks will be code that depends on the encode() call raising an exception. It seems like the client out to

[issue5188] telnetlib process_rawq buffer handling is confused

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: -haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5188 ___ ___

[issue5468] urlencode does not handle bytes, and could easily handle alternate encodings

2009-03-26 Thread Dan Mahn
Dan Mahn dan.m...@digidescorp.com added the comment: Hello. Thanks for the feedback. With regards to RFC 2396, I see this: http://www.ietf.org/rfc/rfc2396.txt There is a second translation for some resources: the sequence of octets defined by a component of the URI is subsequently

[issue5391] mmap: read_byte/write_byte and object type

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: martin However, your list of alternatives is incomplete: we martin *could* also change the c code to accept and produce martin int - then mmapmodule would not need to change at all. That's extactly the idea that I proposed in

[issue5545] multiprocessing: switch to autoconf detection of platform values

2009-03-26 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: AC_CHECK_FUNC* check for function . AC_CHECK_DECL check for declaration . The check for functions sem_xxx() is incorrect in proposed patch. It has to check for function. I didn't review next part of the patch. --

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The general machinery for implementing the built-in int function should check any result of type long to see if it fits in an int, and convert if so. Attached patch try to convert long to int, and so it fix the intial problem:

[issue4985] Idle hangs when given a nonexistent filename.

2009-03-26 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: I tried it here but it didn't hang. But I did notice the editor window was created and then disappeared, differently from what happens in python-trunk. I don't believe creating new files is a good solution, idle on python-trunk doesn't need to

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I added the two benchmark tools to my own public SVN: http://haypo.hachoir.org/trac/browser/misc/bench_int.py (improved version of the script attached to issue #4294) http://haypo.hachoir.org/trac/browser/misc/pidigits.py (improved

[issue4294] Macros for PyLong: sign, number of digits, fits in an int

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I think PyLong_SIGN and PyLong_EQUALS_ZERO should go in Include/longobject.h, not Include/longintrepr.h Yeah, it's better for 3rd party modules. PyLong_NDIGITS should stay in longintrepr.h, though, since it's dependent on the

[issue4294] Macros for PyLong: sign, number of digits, fits in an int

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file11975/pylong_macros.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4294 ___

[issue4294] Macros for PyLong: sign, number of digits, fits in an int

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file13369/pylong_macros-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4294 ___

[issue4294] Macros for PyLong: sign, number of digits, fits in an int

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file11977/pylong_optimize.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4294 ___

[issue4294] Macros for PyLong: sign, number of digits, fits in an int

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file11981/bench_int.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4294 ___

[issue4294] Macros for PyLong: sign, number of digits, fits in an int

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I removed my optimization patches: there were useless (no or low speedup). I also removed bench_int.py: I moved it to my own public SVN: http://haypo.hachoir.org/trac/browser/misc/bench_int.py --

[issue5576] Don't use PyLong_SHIFT with _PyLong_AsScaledDouble()

2009-03-26 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: _PyLong_AsScaledDouble() writes the exponent in a int which have to be multiplied by PyLong_SHIFT to give the power of 2. I proposed to multiply the exponent by PyLong_SHIFT in _PyLong_AsScaledDouble() to directly get the power

[issue5576] Don't use PyLong_SHIFT with _PyLong_AsScaledDouble()

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5576 ___ ___

[issue4294] Macros for PyLong: sign, number of digits, fits in an int

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I created a decicated issue for my last unrelated patch: #5576: Don't use PyLong_SHIFT with _PyLong_AsScaledDouble() -- ___ Python tracker rep...@bugs.python.org

[issue4294] Macros for PyLong: sign, number of digits, fits in an int

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file11979/pylong_asscaleddouble.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4294 ___

[issue5016] FileIO.seekable() can return False

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file12848/fileio_seekable.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5016 ___

[issue5016] FileIO.seekable() can return False

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Needs backport to trunk and 2.6, if someone is interested. I'm interrested by a backport at least in trunk. I updated the patch to trunk: - test directly _file._FileIO() instead of using open() because in Python trunk, a file

[issue5545] multiprocessing: switch to autoconf detection of platform values

2009-03-26 Thread Christian Heimes
Christian Heimes li...@cheimes.de added the comment: Dear Roumen, please do my a favor and stop throwing in random ideas and accusations. I appreciate any help but your replies don't help at all. They are just causing frustration on either side. I know about AC_CHECK_DECL and AC_CHECK_FUNC. As

[issue5545] multiprocessing: switch to autoconf detection of platform values

2009-03-26 Thread Christian Heimes
Christian Heimes li...@cheimes.de added the comment: Jesse, have fun with svn+ssh://python...@svn.python.org/python/branches/multiprocessing-autoconf during the sprint. -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org

[issue5016] FileIO.seekable() can return False

2009-03-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You can use io.open() instead of open()... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5016 ___

[issue5035] Compilation --without-threads fails

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Python trunk is still broken --without-threads. The multiprocessing issue (#3807) is now closed, so can someone review (or apply?) my patches? -- ___ Python tracker

[issue4773] HTTPMessage not documented and has inconsistent API across 2.6/3.0

2009-03-26 Thread Brad Miller
Brad Miller bonel...@gmail.com added the comment: On Thu, Mar 26, 2009 at 4:29 PM, Barry A. Warsaw rep...@bugs.python.orgwrote: Barry A. Warsaw ba...@python.org added the comment: I propose that you only document the getitem header access API. I.e. the thing that info() gives you can be

[issue5035] Compilation --without-threads fails

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file12839/_sqlite_nothread.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5035 ___

[issue5035] Compilation --without-threads fails

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: New patch _tkinter_nothread.patch: fix gcc warnings in _tkinter. -- Added file: http://bugs.python.org/file13432/_tkinter_nothread.patch ___ Python tracker rep...@bugs.python.org

[issue5016] FileIO.seekable() can return False

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: You can use io.open() instead of open()... Alright, it's much easier with io.open() :-) -- Added file: http://bugs.python.org/file13433/fileio_seekable-trunk-2.patch ___ Python tracker

[issue5016] FileIO.seekable() can return False

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file13429/fileio_seekable-trunk.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5016 ___

[issue4629] getopt should not accept no_argument that ends with '='

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Updated patch with a regression test. -- Added file: http://bugs.python.org/file13434/getopt-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4629

[issue5110] Printing Unicode chars from the interpreter in a non-UTF8 terminal raises an error (Py3)

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: martin IIUC, this patch breaks PEP3138, martin so it clearly must be rejected. After reading the PEP3138, it's clear that this issue is not bug, and that we can not accept any patch fixing the issue without breaking the PEP.

[issue5145] struct.calcsize('cd') returns 16 instead of 9

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Sorry, but I don't see this issue as a bug because it's related to memory alignment as explained in the documentation. I choose to close this issue. If you think that the documentation should be improved, please suggest an

[issue5214] Add KOI8-RU as a known encoding

2009-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @lemburg: I can't comment on the status of the standard. I would assume that like most 8 bit encodings that these are falling away and being replaced by Unicode. Can I close this issue? Or do we have enough KOI8-RU users to

[issue5528] Unable to launch IDLE on Windows

2009-03-26 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5528 ___

[issue1551113] random.choice(setinstance) fails

2009-03-26 Thread Tim Peters
Tim Peters tim.pet...@gmail.com added the comment: The CPython set/dict implementation does not guarantee minimal constant density, so quite easy doesn't apply in reality. For example, a set that once contained a million elements may still contain a million /slots/ for elements after all but

[issue1551113] random.choice(setinstance) fails

2009-03-26 Thread Tim Peters
Tim Peters tim.pet...@gmail.com added the comment: The CPython set/dict implementation does not guarantee minimal constant density, so quite easy doesn't apply in reality. For example, a set that once contained a million elements may still contain a million /slots/ for elements after all but

[issue1551113] random.choice(setinstance) fails

2009-03-26 Thread Tim Peters
Changes by Tim Peters tim.pet...@gmail.com: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1551113 ___ ___ Python-bugs-list mailing list

[issue5557] Byte-code compilation uses excessive memory

2009-03-26 Thread Collin Winter
Changes by Collin Winter coll...@gmail.com: -- nosy: +collinwinter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5557 ___ ___ Python-bugs-list