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

2009-03-26 Thread Vaibhav Mallya
Vaibhav Mallya added the comment: On second thought, it seems like it shouldn't make sense. This forces a destructive check. Suppose we do child.poll() and then child.recv() but it's legitimate data; that data will be removed from the queue even if we just wanted to check if the pipe was alive.

[issue5557] Byte-code compilation uses excessive memory

2009-03-26 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1551113] random.choice(setinstance) fails

2009-03-26 Thread Tim Peters
Changes by Tim Peters : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/opt

[issue1551113] random.choice(setinstance) fails

2009-03-26 Thread Tim Peters
Tim Peters 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 one of the elements

[issue1551113] random.choice(setinstance) fails

2009-03-26 Thread Tim Peters
Tim Peters 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 one of the elements

[issue4709] Mingw-w64 and python on windows x64

2009-03-26 Thread Cournapeau David
Cournapeau David added the comment: I think compiling python itself with it would be quite difficult - I have never attempted it. My 'scenario' is building extensions against the official python for amd64 on windows. The quickest way to test the patch would be as follows: - take a native toolc

[issue1551113] random.choice(setinstance) fails

2009-03-26 Thread Rob Renaud
Rob Renaud added the comment: I found this via google search when disappointed that random.choice raised an exception rather than returned a random item in the set. It's quite easy to implement random.choice for sets/dicts in O(1) expected time from the C implementation as long as the set/dict

[issue5528] Unable to launch IDLE on Windows

2009-03-26 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5214] Add KOI8-RU as a known encoding

2009-03-26 Thread STINNER Victor
STINNER Victor 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 include this charset in Pytho

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

2009-03-26 Thread STINNER Victor
STINNER Victor 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 updated doc. http://docs.python.org

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

2009-03-26 Thread STINNER Victor
STINNER Victor 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. Windows user who want to get t

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

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

[issue5016] FileIO.seekable() can return False

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file13429/fileio_seekable-trunk.patch ___ Python tracker ___ ___ Python-bugs-l

[issue5016] FileIO.seekable() can return False

2009-03-26 Thread STINNER Victor
STINNER Victor 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

[issue5035] Compilation --without-threads fails

2009-03-26 Thread STINNER Victor
STINNER Victor 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

[issue5035] Compilation --without-threads fails

2009-03-26 Thread STINNER Victor
STINNER Victor added the comment: Updated and completed patch for _sqlite module (python trunk). -- Added file: http://bugs.python.org/file13431/_sqlite_nothread-2.patch ___ Python tracker _

[issue5035] Compilation --without-threads fails

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file12839/_sqlite_nothread.patch ___ Python tracker ___ ___ Python-bugs-list m

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

2009-03-26 Thread Brad Miller
Brad Miller added the comment: On Thu, Mar 26, 2009 at 4:29 PM, Barry A. Warsaw wrote: > > Barry A. Warsaw 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['con

[issue5035] Compilation --without-threads fails

2009-03-26 Thread STINNER Victor
STINNER Victor 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 _

[issue5016] FileIO.seekable() can return False

2009-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: You can use io.open() instead of open()... -- ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2009-03-26 Thread Christian Heimes
Christian Heimes 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 _

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

2009-03-26 Thread Christian Heimes
Christian Heimes 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 I already said I

[issue5016] FileIO.seekable() can return False

2009-03-26 Thread STINNER Victor
STINNER Victor 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 has no seekable() method :-/

[issue5016] FileIO.seekable() can return False

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file12848/fileio_seekable.patch ___ Python tracker ___ ___ Python-bugs-list ma

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

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file11979/pylong_asscaleddouble.patch ___ Python tracker ___ ___ Python-bugs-l

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

2009-03-26 Thread STINNER Victor
STINNER Victor added the comment: I created a decicated issue for my last unrelated patch: #5576: Don't use PyLong_SHIFT with _PyLong_AsScaledDouble() -- ___ Python tracker ___ _

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

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2009-03-26 Thread STINNER Victor
New submission from STINNER Victor : _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 of 2. It avoids complex code

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

2009-03-26 Thread STINNER Victor
STINNER Victor 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 -- ___ Python track

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

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file11980/pylong_shift.patch ___ Python tracker ___ ___ Python-bugs-list maili

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

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file11981/bench_int.py ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file11977/pylong_optimize.patch ___ Python tracker ___ ___ Python-bugs-list ma

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

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file13369/pylong_macros-2.patch ___ Python tracker ___ ___ Python-bugs-list ma

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

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file11975/pylong_macros.patch ___ Python tracker ___ ___ Python-bugs-list mail

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

2009-03-26 Thread STINNER Victor
STINNER Victor 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 representation. I don't u

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

2009-03-26 Thread STINNER Victor
STINNER Victor 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 version of the script attach

[issue4985] Idle hangs when given a nonexistent filename.

2009-03-26 Thread Guilherme Polo
Guilherme Polo 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 do this to work n

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

2009-03-26 Thread STINNER Victor
STINNER Victor 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: assert isinstance(int(De

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

2009-03-26 Thread Roumen Petrov
Roumen Petrov 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. -- __

[issue5391] mmap: read_byte/write_byte and object type

2009-03-26 Thread STINNER Victor
STINNER Victor 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 issue #5499 ;-) I prefer to

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

2009-03-26 Thread Dan Mahn
Dan Mahn 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 used to represent a se

[issue5188] telnetlib process_rawq buffer handling is confused

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue5314] http client error

2009-03-26 Thread Jeremy Hylton
Jeremy Hylton 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 specify the encodin

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

2009-03-26 Thread Jack Diederich
Jack Diederich 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 sys/types.h with an

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

2009-03-26 Thread Jeremy Hylton
Jeremy Hylton added the comment: Makes sense to me. Committed revision 70625. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ _

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

2009-03-26 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- assignee: -> jhylton nosy: +jhylton resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list

[issue4889] difflib

2009-03-26 Thread Jack Diederich
Jack Diederich added the comment: closing, Garbriel's explanation is sufficient. -- nosy: +jackdied resolution: -> invalid status: open -> closed ___ Python tracker ___

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

2009-03-26 Thread Barry A. Warsaw
Barry A. Warsaw 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 of mimetools.Mess

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

2009-03-26 Thread Jack Diederich
Jack Diederich 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 ___ Python tracker

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

2009-03-26 Thread Jack Diederich
Jack Diederich 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 ___ P

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

2009-03-26 Thread Collin Winter
New submission from Collin Winter : 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 dependencies statically

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

2009-03-26 Thread Jeremy Hylton
Jeremy Hylton 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? -- ___

[issue2123] ctypes pointer not always keeping target alive

2009-03-26 Thread Thomas Heller
Thomas Heller added the comment: I accept this as a bug; however I don't have time now to work on it. -- ___ Python tracker ___ ___ Py

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

2009-03-26 Thread Jeremy Hylton
Jeremy Hylton added the comment: No deep thought was given to the HTTPMessage API. Here's the extent of the discussion that I can find. I've changed the names, but you can find the full discussion at http://bugs.python.org/issue2848 A: mimetools.Message is compatible with email.message.Messag

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

2009-03-26 Thread Jeremy Hylton
Jeremy Hylton 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 with, you encoded b'\xa0

[issue5572] distutils ignores the LIBS configure env var

2009-03-26 Thread Roumen Petrov
Roumen Petrov 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. -- ___ P

[issue5572] distutils ignores the LIBS configure env var

2009-03-26 Thread Collin Winter
Collin Winter 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 added the comment: issue 5060 address this -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2009-03-26 Thread Jesse Noller
Changes by Jesse Noller : -- assignee: georg.brandl -> jnoller nosy: -georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing

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

2009-03-26 Thread Vaibhav Mallya
New submission from Vaibhav Mallya : 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 appear in the mult

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

2009-03-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Second patch applied in r70617. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

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

2009-03-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Renamed to skipTest in r60616. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue4709] Mingw-w64 and python on windows x64

2009-03-26 Thread Martin v. Löwis
Martin v. Löwis 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 __

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

2009-03-26 Thread Benjamin Peterson
Benjamin Peterson 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 _

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

2009-03-26 Thread Jack Diederich
Jack Diederich 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

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

2009-03-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2009/3/26 Jesse Noller : > 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. -- ___ Python tracker

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

2009-03-26 Thread Jesse Noller
Changes by Jesse Noller : -- assignee: georg.brandl -> jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

2009-03-26 Thread Vaibhav Mallya
Changes by Vaibhav Mallya : -- nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

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

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

2009-03-26 Thread Vaibhav Mallya
New submission from Vaibhav Mallya : 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) >>> parent

[issue5188] telnetlib process_rawq buffer handling is confused

2009-03-26 Thread Jack Diederich
Jack Diederich added the comment: I assigned this to me. I'll be sprinting on telnetlib. -- assignee: -> jackdied nosy: +jackdied ___ Python tracker ___ ___

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

2009-03-26 Thread Jesse Noller
Jesse Noller added the comment: See also: http://svn.python.org/view?view=rev&revision=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

[issue5387] mmap.move crashes by integer overflow

2009-03-26 Thread Jack Diederich
Jack Diederich 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: http://bugs.python.org/file13423/issue_53

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

2009-03-26 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> jnoller nosy: +jnoller priority: -> high ___ Python tracker ___ ___ Python-bugs-list m

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

2009-03-26 Thread Vaibhav Mallya
Vaibhav Mallya 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

[issue5572] distutils ignores the LIBS configure env var

2009-03-26 Thread Collin Winter
New submission from Collin Winter : 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 attached patch remed

[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 : 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 here: http://twis

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

2009-03-26 Thread Allister MacLeod
New submission from Allister MacLeod : 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() Bus error

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

2009-03-26 Thread Yogendra Mohan
New submission from Yogendra Mohan : 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 self.top=Toplevel(master=self.parent)

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

2009-03-26 Thread STINNER Victor
STINNER Victor 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

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

2009-03-26 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file13377/append_bom.patch ___ Python tracker ___ ___ Python-bugs-list mailing

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

2009-03-26 Thread STINNER Victor
STINNER Victor 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 optimisation), but only fix s

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

2009-03-26 Thread Jim Olson
Changes by Jim Olson : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2009-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le jeudi 26 mars 2009 à 17:26 +, STINNER Victor a écrit : > STINNER Victor 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, bu

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

2009-03-26 Thread Marek Kubica
Marek Kubica 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 a function in any orde

[issue5528] Unable to launch IDLE on Windows

2009-03-26 Thread Chris
Chris 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 From: Amaury For

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

2009-03-26 Thread Jim Olson
New submission from Jim Olson : 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 in Python 2.6.1 f

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

2009-03-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sounds like what you're really looking for is a version of partial() that lets you bind positional arguments in any position. Something like: partial(operator.mod, (1,2)) that pre-binds 2 to argument position 1. Changing the language to match the existin

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

2009-03-26 Thread STINNER Victor
STINNER Victor 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 will yield a big > decreas

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

2009-03-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r70610. -- nosy: +benjamin.peterson resolution: accepted -> fixed status: open -> closed ___ Python tracker ___

[issue1080387] Making IDLE Themes and Keys Config more Robust

2009-03-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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. issue2665 was fixed by no

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

2009-03-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2009-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: As for the C version of the patch: - I'm not sure why you make self->ok handling more complicated than it was - encodefunc should not be forced to NULL, otherwise it will yield a big decrease in write() performance -- __

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

2009-03-26 Thread Jack Diederich
Jack Diederich 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 guaranteed to be at th

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

2009-03-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The patch seems good. -- nosy: +amaury.forgeotdarc resolution: -> accepted stage: test needed -> commit review ___ Python tracker ___ ___

[issue5528] Unable to launch IDLE on Windows

2009-03-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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

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

2009-03-26 Thread Marek Kubica
New submission from Marek Kubica : 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 partial functions with non-

[issue1497532] C API to retain GIL during Python Callback

2009-03-26 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1497532] C API to retain GIL during Python Callback

2009-03-26 Thread Martin Gfeller Martin Gfeller
Martin Gfeller Martin Gfeller 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 could result

[issue5560] help() no longer reports module docstrings

2009-03-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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: http://patches.ubuntu.com/by-release/extracted/ubuntu/p/python3.0/3.0~b3+20080915-0ubuntu1/deb-locations.dpatch Th

  1   2   >