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

2009-06-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for Py3.1.1 -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2009-06-25 Thread Benjamin Peterson
Benjamin Peterson 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 ___ Python tracker

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

2009-06-25 Thread Mark Tolonen
Mark Tolonen added the comment: Sorry, msg.replace('Issue ','Issue 4571'). -- ___ Python tracker ___ ___ Python-bugs-list mailing

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

2009-06-25 Thread Mark Tolonen
New submission from Mark Tolonen : According to Issue , sys.stdout.buffer is the binary stream underlying stdout. I see the following behavior on 3.0.1 and 3.1rc2 when writing to a console window: Python 3.1rc2 (r31rc2:73414, Jun 13 2009, 16:43:15) [MSC v.1500 32 bit (Intel)] on win32 Ty

[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 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 such regressions in 3

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

2009-06-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 should be fixed. If mmap sho

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

2009-06-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 improvement of 21%! Will b

[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 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 ___

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

2009-06-25 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc : 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) self.assertEqual(mf.read(2), "AB")#

[issue6340] replace tdemo_chaos.py

2009-06-25 Thread R. David Murray
R. David Murray added the comment: Done in r73557 and r73558. -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue6343] TimedRotatingFileHandler permission denied rename failure on Windows

2009-06-25 Thread Dale Nagata
Changes by Dale Nagata : Added file: http://bugs.python.org/file14366/testlog.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue6343] TimedRotatingFileHandler permission denied rename failure on Windows

2009-06-25 Thread Dale Nagata
Changes by Dale Nagata : Removed file: http://bugs.python.org/file14365/testlog.py ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue6340] replace tdemo_chaos.py

2009-06-25 Thread Gregor Lingl
Gregor Lingl 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: 24. 6. 2009by Date: 2009-06

[issue6343] TimedRotatingFileHandler permission denied rename failure on Windows

2009-06-25 Thread Dale Nagata
New submission from Dale Nagata : 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] Permission deni

[issue6340] replace tdemo_chaos.py

2009-06-25 Thread R. David Murray
R. David Murray 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 away. -- nosy:

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

2009-06-25 Thread R. David Murray
R. David Murray added the comment: Fixed in r73555. Thanks. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker _

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

2009-06-25 Thread R. David Murray
Changes by R. David Murray : -- assignee: georg.brandl -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-l

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

2009-06-25 Thread R. David Murray
Changes by R. David Murray : -- 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 tracker

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

2009-06-25 Thread Jerry Chen
Jerry Chen 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 >>> locale._build_localename(loca

[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 : -- dependencies: +os.path.ismount (ntpath) gives UnboundLocalError for any input -Wrong dump of floats ___ Python tracker ___ __

[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 : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[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 : -- dependencies: +Wrong dump of floats resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___

[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 added the comment: Duplicate of http://bugs.python.org/issue5595 Fixed in r70676 -- nosy: +jcsalterego ___ Python tracker ___

[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 added the comment: Duplicate of http://bugs.python.org/issue5595 Fixed in r70676 -- nosy: +jcsalterego ___ Python tracker ___

[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 : 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 alpha[:]: if o

[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 : 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 alpha[:]: if o

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

2009-06-25 Thread R. David Murray
R. David Murray 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 2.7 _

[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 added the comment: Many thanks for your quick fix! ~Markus -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue6331] Add unicode script info to the unicode database

2009-06-25 Thread Walter Dörwald
Walter Dörwald 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 13622 587057 0

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

2009-06-25 Thread Georg Brandl
Georg Brandl 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. ;) Agreed :) --

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

2009-06-25 Thread Denis S. Otkidach
Denis S. Otkidach 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 prevent from creation bro