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
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
helmut added the comment:
All reproducers confirmed that their _cursessomething.so is linked against
libncursesw.so.5.
--
___
Python tracker
<http://bugs.python.org/issue18
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) #
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
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.
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
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 "
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
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
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
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
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
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
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
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
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
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
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)]
19 matches
Mail list logo