[issue1301] Bad assertion in _tkinter.c

2007-10-18 Thread Brett Cannon
Brett Cannon added the comment: Patch is inlined in a comment. -- keywords: +patch nosy: +brett.cannon __ Tracker <[EMAIL PROTECTED]> __ ___ Pyt

[issue1301] Bad assertion in _tkinter.c

2007-10-18 Thread Stephen P. Schaefer
New submission from Stephen P. Schaefer: The following fails with python 2.5 as built by Fedora 7: t2.py: import sys, Tkinter Tkinter.Button(text=u"").pack( ) Tkinter.mainloop( ) $ python t2.py python: ./Modules/_tkinter.c:941: AsObj: Assertion `size < size * sizeof(Tcl_UniChar)' failed. Aborte

[issue1631171] implement warnings module in C

2007-10-18 Thread Brett Cannon
Brett Cannon added the comment: Regression test suite now passes. =) Had to add the support for when warnings.showwarning() is set and a bug in PyErr_WarnExplicit() where a NULL value for the module name was not being allowed. Couple things still left to implement. One is the second output li

[issue1281] typo in documentation - lib ref section 14.3.3.4

2007-10-18 Thread Georg Brandl
Georg Brandl added the comment: In fact, the error is not a typo, but a glitch in latex2html's handling of "--". It's already corrected in the 2.5 branch and needs no correction in later branches. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed

[issue1290] xml.dom.minidom not able to handle utf-8 data

2007-10-18 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: I forgot to show dom.py source. marvin:cpython$ cat dom.py import xml.dom.minidom as dom data = open('testdata.txt','r').read() mydom = dom.parseString(data) mydom.firstChild.childNodes __ Tracker <[EMAIL PROTECTED]>

[issue1290] xml.dom.minidom not able to handle utf-8 data

2007-10-18 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: When I run the code in a script, I don't get the error. *** marvin:cpython$ python Python 2.5 (r25:51908, Jan 24 2007, 12:48:15) [GCC 4.1.0 (SUSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> impo

[issue1299] distutils.sysconfig is not cross-platform compatible

2007-10-18 Thread Martin v. Löwis
Martin v. Löwis added the comment: Would you like to work on a patch? -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list ma

[issue1297] pyconfig.h not compatible with MS VC++ Express Edition

2007-10-18 Thread Martin v. Löwis
Martin v. Löwis added the comment: What version of VC++ Express are you specifically referring to? -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]> __ __

[issue1281] typo in documentation - lib ref section 14.3.3.4

2007-10-18 Thread Ben Sherman
Ben Sherman added the comment: There were typos in my original bug report - the typo in the documentation is still a bug. Ugh, someone must have brewed decaf. -- title: type in docutmentation - lib ref section 14.3.3.4 -> typo in documentation - lib ref section 14.3.3.4 __

[issue1295] logging records cache the result of formatException()

2007-10-18 Thread Thomas Heller
Thomas Heller added the comment: I think that a warning or an example in the docs would be nice, but I have no time to make a patch for that. -- resolution: -> wont fix status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue1295] logging records cache the result of formatException()

2007-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: I think so. On 10/18/07, Thomas Heller <[EMAIL PROTECTED]> wrote: > > Thomas Heller added the comment: > > > > This is tough. On the one hand you are right that different classes that > > > have different formatException() methods aren't treated correctly; on

[issue1295] logging records cache the result of formatException()

2007-10-18 Thread Thomas Heller
Thomas Heller added the comment: > > This is tough. On the one hand you are right that different classes that > > have different formatException() methods aren't treated correctly; on > > the other hand I think the caching is important for other cases where > > there are multiple loggers all usin

[issue1298] Support for z/OS and EBCDIC.

2007-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: How important is z/OS? I'm very skeptical of the viability of any OS that uses an encoding that is not a superset of ASCII. -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> ___

[issue1300] subprocess.list2cmdline doesn't do pipe symbols

2007-10-18 Thread Andrew Moise
New submission from Andrew Moise: I expected subprocess.list2cmdline() to convert my list of arguments into a command line which results in behavior equivalent to the Unix exec() functions -- that is, that I can safely pass arbitrary characters to it and it'll make it such that those characters a

[issue1299] distutils.sysconfig is not cross-platform compatible

2007-10-18 Thread Nick
New submission from Nick: I'm using scons (www.scons.org) and Python's distutils.sysconfig to determine the correct compiler flags automatically to embed Python into my C++ application. I discovered that distuils.sysconfig is not fully implemented on Windows. Using distutils.sysconfg.get_config

[issue1297] pyconfig.h not compatible with MS VC++ Express Edition

2007-10-18 Thread Nick
New submission from Nick: pyconfig.h checks for _MSC_VER and based on its value decides to include . MS VC++ Express reports _MSC_VER to be 1400 but does _NOT_ have the file basetsd.h. So when including Python.h with the Microsoft VC Express compiler, pyconfig.h will try to include the non exis

[issue1295] logging records cache the result of formatException()

2007-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: This is tough. On the one hand you are right that different classes that have different formatException() methods aren't treated correctly; on the other hand I think the caching is important for other cases where there are multiple loggers all using the default

[issue1294] Management of KeyboardInterrupt in cmd.py

2007-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Would you mind submitting a patch instead of a whole new file? -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> __ __

[issue1291] test_resource fails on recent linux systems (

2007-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Patch please? -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsu

[issue1296] optparse's OptionGroup not described

2007-10-18 Thread Paul Melis
Paul Melis added the comment: It seems it got edited out when the documentation was overhauled for optik 1.5, in r37468 __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1296] optparse's OptionGroup not described

2007-10-18 Thread Paul Melis
New submission from Paul Melis: The current 2.5 documentation does not seem to describe the OptionGroup feature of the optparse module. In 2003 there was a patch submitted that added a section on OptionGroup ( http://bugs.python.org/issue697941). The issue entry mentions it was accepted, but the

[issue1295] logging records cache the result of formatException()

2007-10-18 Thread Thomas Heller
New submission from Thomas Heller: I needed two logging handlers in my application, one notifiying the user of errors, the other writing errors to a logfile. So I created a custom subclass of logging.Formatter and redefined the formatException() method that returned a summary of the exception li

[issue1294] Management of KeyboardInterrupt in cmd.py

2007-10-18 Thread BULOT
New submission from BULOT: According to me, the Ctrl-C is not managed correctly in cmd.py. Ctrl-C generates a a KeyboardInterrupt exceptions, and only EOFError is managed. I propose to manage KeyboardInterrupt on line 130: print 'are you sure you want to exit? y/n'

[issue1293] Trailing slash in sys.path cause import failure

2007-10-18 Thread Guillaume Girard
New submission from Guillaume Girard: On win32, the following code: import sys sys.path.append('../bar/') import bar where the file bar.py is present in ../bar/ will return an import error "No module named bar". Remove the trailing slash and the bar.py is imported correctly. The problem is iden

[issue1292] libffi needs an update to support mips64, arm and armeabi on linux

2007-10-18 Thread Matthias Klose
New submission from Matthias Klose: libffi needs an update to support mips64, arm and armeabi on linux; the current bits are all available in GCC trunk. as an alternative, those systems should be default to --with-system-ffi, unless this is xplicitely disabled. -- assignee: theller compo

[issue1291] test_resource fails on recent linux systems (

2007-10-18 Thread Matthias Klose
Matthias Klose added the comment: $ python Lib/test/test_resource.py True Traceback (most recent call last): File "Lib/test/test_resource.py", line 42, in f.close() IOError: [Errno 27] File too large __ Tracker <[EMAIL PROTECTED]>

[issue1291] test_resource fails on recent linux systems (

2007-10-18 Thread Matthias Klose
New submission from Matthias Klose: The test_resource test fails at least on all non x86 linux systems; the test case notes: # Now check to see what happens when the RLIMIT_FSIZE is small. Some # versions of Python were terminated by an uncaught SIGXFSZ, but # pythonrun.c has been fixed to igno