[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Verified Bus Error with code snippet in python 2.7 and 3.1 trunks r73552, e.g.: (gdb) where #0 0x925f6f30 in strlen () #1 0x0005ea10 in PyString_FromString (str=0x0) at Objects/stringobject.c:125 #2 0x003c1710 in PyCursesWindow_GetKey

[issue4388] test_cmd_line fails on MacOS X

2009-06-25 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4388 ___ ___ Python-bugs-list mailing

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Trundle's original patch against r73301 still works currently, but I made a minor tweak and rediff'd. The attached patch is against 2.7 - r73552. I added knp usage to the NetBSD #ifdef region so a) the compiler doesn't complain about unused

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Changes by Jerry Chen je...@3rdengine.com: Removed file: http://bugs.python.org/file14362/issue6243-py2.7-cursesmodule.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6243 ___

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Sorry -- bad patch, uploading correct one. -- Added file: http://bugs.python.org/file14363/issue6243-py2.7-cursesmodule.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6243

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Another patch for the same code change but against the 3.1 branch. -- versions: +Python 3.0, Python 3.1 Added file: http://bugs.python.org/file14364/issue6243-py3.1-cursesmodule.diff ___ Python

[issue5166] ElementTree and minidom don't prevent creation of not well-formed XML

2009-06-25 Thread Denis S. Otkidach
Denis S. Otkidach denis.otkid...@gmail.com added the comment: Every blog engine I've even seen so far pass through comments from untrusted users to RSS/Atom feeds without proper validation causing broken XML in feeds. Sure, this is a bug in web applications, but DOM manipulation packages should

[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-25 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Because I'm a unix weenie, and zip files feel like an intrusion from the Windows world. I expect source tarballs to be, well, tarballs. I don't say zip shouldn't be the default, I just noted that I personally would find that distasteful. ;)

[issue6331] Add unicode script info to the unicode database

2009-06-25 Thread Walter Dörwald
Walter Dörwald wal...@livinglogic.de added the comment: I was comparing apples and oranges: The 229 entries for the trunk where for an UCS2 build (the patched version was UCS4), with UCS4 there are 317 entries for the trunk. size unicodedata.o gives: __TEXT __DATA __OBJC others dec hex

[issue6334] 3.0/3.1: Bad bug in range() computation (or possible Integer problem)

2009-06-25 Thread Markus F.X.J. Oberhumer
Markus F.X.J. Oberhumer mar...@oberhumer.com added the comment: Many thanks for your quick fix! ~Markus -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6334 ___

[issue5230] pydoc reports misleading failure if target module raises an ImportError

2009-06-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Applied to 2.7 in r73529 and 2.6 in r73530. Leaving ticket open until I can apply it to 3.1 and 3.2. Thanks for your help, Lucas. -- resolution: - fixed stage: patch review - committed/rejected versions: -Python 2.6, Python

[issue6341] io.path.ismount gives local variable 'p' referenced before assignment error on Windows versions (ntpath.py)

2009-06-25 Thread Georgios Moralis
New submission from Georgios Moralis g.mwra...@gmail.com: It returns with the following error: UnboundLocalError: local variable 'p' referenced before assignment Example causing this: --- CODE FOLLOWS --- import os def show_cwd_list(): alpha = os.listdir(os.getcwd()) for dirnm in

[issue6342] io.path.ismount gives local variable 'p' referenced before assignment error on Windows versions (ntpath.py)

2009-06-25 Thread Georgios Moralis
New submission from Georgios Moralis g.mwra...@gmail.com: It returns with the following error: UnboundLocalError: local variable 'p' referenced before assignment Example causing this: --- CODE FOLLOWS --- import os def show_cwd_list(): alpha = os.listdir(os.getcwd()) for dirnm in

[issue6342] io.path.ismount gives local variable 'p' referenced before assignment error on Windows versions (ntpath.py)

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Duplicate of http://bugs.python.org/issue5595 Fixed in r70676 -- nosy: +jcsalterego ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6342 ___

[issue6341] io.path.ismount gives local variable 'p' referenced before assignment error on Windows versions (ntpath.py)

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Duplicate of http://bugs.python.org/issue5595 Fixed in r70676 -- nosy: +jcsalterego ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6341 ___

[issue6342] io.path.ismount gives local variable 'p' referenced before assignment error on Windows versions (ntpath.py)

2009-06-25 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- dependencies: +Wrong dump of floats resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6342 ___

[issue6341] io.path.ismount gives local variable 'p' referenced before assignment error on Windows versions (ntpath.py)

2009-06-25 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6341 ___

[issue6342] io.path.ismount gives local variable 'p' referenced before assignment error on Windows versions (ntpath.py)

2009-06-25 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- dependencies: +os.path.ismount (ntpath) gives UnboundLocalError for any input -Wrong dump of floats ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6342

[issue6315] locale._build_localename(locale.getdefaultlocale()) returns 'C.mac-roman'

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Also seeing this was resolved by Issue6202. Python 3.1rc2+ (py3k:73552, Jun 24 2009, 23:11:23) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin Type help, copyright, credits or license for more information. import locale

[issue6315] locale._build_localename(locale.getdefaultlocale()) returns 'C.mac-roman'

2009-06-25 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Obsolete default file encoding mac-roman on OS X, not influenced by locale env variables ___ Python

[issue6339] Some functional errors in turtle.py documentation (missing links)

2009-06-25 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: georg.brandl - r.david.murray nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6339 ___

[issue6339] Some functional errors in turtle.py documentation (missing links)

2009-06-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Fixed in r73555. Thanks. -- resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6339

[issue6340] replace tdemo_chaos.py

2009-06-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Looks good to me (runs like the old one under both 2.7 and 3.1). Do you want to do the commit or would you like me to? I think a demo program is in the same class as a doc fix, so I don't see any problem with committing it to 3.1 right

[issue6340] replace tdemo_chaos.py

2009-06-25 Thread Gregor Lingl
Gregor Lingl gregorli...@users.sourceforge.net added the comment: So do I. I'd like to ask you to do the commit. And I'd also like to suggest that - in the first three comment-lines of the script - you replace Datei:by File: Autor:by Author: Datum:

[issue6343] TimedRotatingFileHandler permission denied rename failure on Windows

2009-06-25 Thread Dale Nagata
Changes by Dale Nagata nag...@telus.net: Removed file: http://bugs.python.org/file14365/testlog.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6343 ___

[issue6343] TimedRotatingFileHandler permission denied rename failure on Windows

2009-06-25 Thread Dale Nagata
Changes by Dale Nagata nag...@telus.net: Added file: http://bugs.python.org/file14366/testlog.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6343 ___

[issue6343] TimedRotatingFileHandler permission denied rename failure on Windows

2009-06-25 Thread Dale Nagata
New submission from Dale Nagata nag...@telus.net: Traceback (most recent call last): File C:\python24\lib\logging\handlers.py, line 74, in emit self.doRollover() File C:\python24\lib\logging\handlers.py, line 271, in doRollover os.rename(self.baseFilename, dfn) OSError: [Errno 13]

[issue6340] replace tdemo_chaos.py

2009-06-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Done in r73557 and r73558. -- stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6340

[issue6344] mmap.read() crashes when passed a negative argument

2009-06-25 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc amaur...@gmail.com: mmap.read() crashes when passed a negative count: def test_read_negative(self): f = open(TESTFN, 'w+') f.write(ABCDE\0abcde) f.flush() mf = mmap.mmap(f.fileno(), 0)

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2009-06-25 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: effbot, do you have an opinion about the latest patch? It'd be nice to not have to delay the release for this. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org

[issue2016] Crash when modifying the **kwargs passed to a function.

2009-06-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Fixed in trunk with r73564. I performed performance tests: differences with pybench were negligible (1%), but a specially crafted case like: kw = dict(a=1, b=2, c=3) for x in xrange(self.rounds): f(**kw) showed an

[issue6344] mmap.read() crashes when passed a negative argument

2009-06-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I don't know what mf.read(-1) should do I'm not sure neither. I think the problem is that mmap uses size_t as length, but uses Py_ssize_t for PyArg_ParseTuple. (PyArg_ParseTuple doesn't support size_t) I think this discrepancy

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2009-06-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I disagree with this report being classified as release-critical - it is *not* a regression over 3.0 (i.e. 3.0 already behaved in the same way). That it is a regression relative to 2.x should not make it release-critical - we can still fix

[issue6345] extra characters displayed when writing to sys.stdout.buffer

2009-06-25 Thread Mark Tolonen
Mark Tolonen metol...@hotmail.com added the comment: Sorry, msg.replace('Issue ','Issue 4571'). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6345 ___

[issue6345] extra characters displayed when writing to sys.stdout.buffer

2009-06-25 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This is because write() is returning the number of characters it wrote and that is displayed at the prompt. -- nosy: +benjamin.peterson resolution: - works for me status: open - closed ___