[issue1221] email.Utils.parseaddr("a(WRONG)@b")

2007-09-30 Thread helmut
New submission from helmut: >>> email.Utils.parseaddr("a(WRONG)@b") ('WRONG WRONG', '[EMAIL PROTECTED]') I believe this is wrong. -- components: Library (Lib) messages: 56199 nosy: helmut severity: normal status: open title: email.Utils.parseadd

[issue18118] curses utf8 output broken

2013-06-02 Thread helmut
New submission from helmut: Consider the test case below. <<< #!/usr/bin/python # -*- encoding: utf8 -*- import curses def wrapped(screen): screen.addstr(0, 0, "ä") screen.addstr(0, 1, "ö") screen.addstr(0, 2, "ü") screen.getch() if __n

[issue18118] curses utf8 output broken in Python2

2013-06-02 Thread helmut
helmut added the comment: All reproducers confirmed that their _cursessomething.so is linked against libncursesw.so.5. -- ___ Python tracker <http://bugs.python.org/issue18

[issue18118] curses utf8 output broken in Python2

2013-06-02 Thread helmut
helmut added the comment: > I suppose that screen.addstr(0, 0, u"äöü".encode("utf-8")) works. It works as in "the output looks as the one expected". Long lines with utf8 characters will make it break again though. screen.addstr(0, 0, "äöü" * 20) #

[issue2947] subprocess (Replacing popen) - add a warning / hint

2008-05-22 Thread Helmut Jarausch
New submission from Helmut Jarausch <[EMAIL PROTECTED]>: Background: I (as many others, too) have used the following code in the past ARC='MyDumpFile' tar_inp= os.popen('/bin/tar cjf '+ARC+' -T -','w') tar_exit_code= tar_inp.close() if

[issue3131] 2to3 can't find fixes_dir

2008-06-20 Thread Helmut Jarausch
Helmut Jarausch <[EMAIL PROTECTED]> added the comment: The suggested fix succeeds but then the next problem occurs Traceback (most recent call last): File "/usr/local/bin/2to3", line 6, in sys.exit(refactor.main(fixers)) File "/usr/local/lib/python3.0/lib2to3/refactor.

[issue3131] 2to3 can't find fixes_dir

2008-06-21 Thread Helmut Jarausch
Helmut Jarausch <[EMAIL PROTECTED]> added the comment: This patch seems to work, but when invoked it tries to write to /usr/local/lib/python3.0/lib2to3 ( I get root: Writing failed:[Errno 13] Permission denied: '/usr/local/lib/ python3.0/lib2to3/PatternGrammar3.0.0.beta.1.pickle

[issue3187] os.walk - strange bug

2008-06-24 Thread Helmut Jarausch
New submission from Helmut Jarausch <[EMAIL PROTECTED]>: The script below produces 1664 lines of output before it bails out with Traceback (most recent call last): File "WalkBug.py", line 5, in for Dir, SubDirs, Files in os.walk('/home/jarausch') : File "

[issue3187] os.walk - strange bug

2008-06-24 Thread Helmut Jarausch
Helmut Jarausch <[EMAIL PROTECTED]> added the comment: >> Could you tell us what this 1665th line should be? >> Maybe the 1665th directory has something special (a filename with >> >> spaces or non-ascii chars...) Yes, the next directory contains a filename wit

[issue3835] tkinter goes into an infinite loop (pydoc.gui)

2008-09-11 Thread Helmut Jarausch
New submission from Helmut Jarausch <[EMAIL PROTECTED]>: With version 3.0 (SVN 66386) import pydoc pydoc.gui() gives >>> Exception in thread Thread-1: Traceback (most recent call last): File "/usr/local/lib/python3.0/threading.py", line 507, in _bootstrap_inner

[issue3835] tkinter goes into an infinite loop (pydoc.gui)

2008-09-15 Thread Helmut Jarausch
Helmut Jarausch <[EMAIL PROTECTED]> added the comment: I'm using Tcl/Tk 8.5.4 here print(":::") print(_flatten((self._w, cmd)) + self._options(cnf)) produces: ::: ('.3073836300', 'configure', '-yscrollcommand', '3

[issue3835] tkinter goes into an infinite loop (pydoc.gui)

2008-09-17 Thread Helmut Jarausch
Helmut Jarausch <[EMAIL PROTECTED]> added the comment: Many thanks, that solved the problem. Since the cause of the problem wasn't easy to find out (for me, at least) would be possible to check at import time if Tcl/Tk has been configured with threads enabl

[issue3187] os.listdir can return byte strings

2008-09-18 Thread Helmut Jarausch
Helmut Jarausch <[EMAIL PROTECTED]> added the comment: Hi, is this assumed to be fixed in 3.0rc1 ? with SVN 66506 (3.0rc1+) for dirname, subdirs, files in os.walk(bytes(Top,'iso-8859-1')) : still gives an error here: for dirname, subdirs, files in os.walk(bytes

[issue3896] idle should be installed as idle3.0

2008-09-18 Thread Helmut Jarausch
New submission from Helmut Jarausch <[EMAIL PROTECTED]>: Python-3.0rc1+ still installs idle as 'idle' and will therefore overwrite an installed idle of version 2.5.x It should be installed as 'idle3.0' conforming to 'python3.0' -- components: In

[issue15763] email non-ASCII characters in TO or FROM field doesn't work

2012-08-22 Thread Helmut Jarausch
New submission from Helmut Jarausch: Trying to generate an email with Latin-1 characters in the TO or FROM field either produces an exception or produces strange values in the generated email: Using Python 3.2.3+ (3.2:481f5d9ef577+, Aug 8 2012, 10:00:28) #!/usr/bin/python3 #-*- coding

[issue16541] tk_setPalette doesn't accept keyword parameters

2012-11-23 Thread Helmut Jarausch
New submission from Helmut Jarausch: import tkinter as Tk root= Tk.Tk() root.tk_setPalette(background = 'AntiqueWhite1', foreground = 'blue') but python-3.3:0+ (3.3:27cb1a3d57c8+) gives Traceback (most recent call last): File "Matr_Select.py", line 174, in

[issue16811] email.message.Message flatten dies of list index out of range

2012-12-29 Thread Helmut Jarausch
New submission from Helmut Jarausch: The following code triggers the bug: #!/usr/bin/python3.3 #-*- coding: latin1 -*- from email.message import Message from email import policy from email.parser import FeedParser Parser= FeedParser(policy=policy.SMTP) Parser.feed('From jarau...@igpm

[issue17266] Idle + tcl 8.6.0 Can't convert '_tkinter.Tcl_Obj' object to str implicitly

2013-02-21 Thread Helmut Jarausch
New submission from Helmut Jarausch: I have tcl/tk 8.6.0 installed here. Both Python versions below are build from source. I'm using LANG=en_US.iso88591 here if that matters. When opening a file in Idle with python-3.3.1 revision: c08bcf5302ec or python-3.4.0a0 (default:3a110a506d35

[issue17413] format_exception() breaks on exception tuples from trace function

2013-03-14 Thread Helmut Jarausch
Helmut Jarausch added the comment: The problem is caused by the new format_exception in Python's traceback.py file. It reads def format_exception(etype, value, tb, limit=None, chain=True): list = [] if chain: values = _iter_chain(value, tb) else: values = [(value, tb)]