[issue13429] provide __file__ to extension init function

2011-12-25 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: Any comments on the last patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13429 ___

[issue13639] UnicodeDecodeError when creating tar.gz with unicode name

2011-12-25 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: I think we should wrap this up as soon as possible, because it has already absorbed too much of our time. The issue we discuss here is a tiny glitch triggered by a corner-case. My original idea was to fix it in a minimal sort of way that is

[issue13639] UnicodeDecodeError when creating tar.gz with unicode name

2011-12-25 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I also feel (1) or (3) is best for this issue. If there is a _better_ implementation, it should be reserved for a separate improvement to Python 3.2+. I lean slightly toward (3) because it would support filenames with Unicode characters

[issue6028] Interpreter aborts when chaining an infinite number of exceptions

2011-12-25 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: FWIW, I concur with Antoine on this one. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6028 ___

[issue13033] Add shutil.chowntree

2011-12-25 Thread Tigger Level-5
Tigger Level-5 a.wild.tig...@gmail.com added the comment: Hi Éric, Apologies for the late response, attached is the patch. Let me know if I need any changes or anything else. Best, Tigger On Sat, Nov 5, 2011 at 11:01 AM, Éric Araujo rep...@bugs.python.org wrote: Éric Araujo

[issue11638] python setup.py sdist --formats tar* crashes if version is unicode

2011-12-25 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- keywords: +patch Added file: http://bugs.python.org/file24092/774933cf7775.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11638 ___

[issue13662] os.listdir bug

2011-12-25 Thread wang
New submission from wang zev...@gmail.com: when I use os.list the return value is like this: ['some.xml', '\ufeff9158.xml'] but the file name have not the '\ufeff'. because this problem the script can't runing. -- messages: 150252 nosy: guxianminer priority: normal severity: normal

[issue11638] python setup.py sdist --formats tar* crashes if version is unicode

2011-12-25 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Thanks to Lars for suggesting the fix, replacing 'w|gz' with 'w:gz'. I attempted this change in the latest revision of my fork (774933cf7775.diff). While this change does address the issue if a unicode string is passed which can be encoded

[issue13662] os.listdir bug

2011-12-25 Thread wang
wang zev...@gmail.com added the comment: only I double click the script file generate this problem. in IDE not this problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13662 ___

[issue13662] os.listdir bug

2011-12-25 Thread wang
wang zev...@gmail.com added the comment: I mean in IDLE can run ok. the '\ufeff' is still have. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13662 ___

[issue13662] os.listdir bug

2011-12-25 Thread wang
wang zev...@gmail.com added the comment: I mean in IDLE can run ok. the '\ufeff' is still have. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13662 ___

[issue13662] os.listdir bug

2011-12-25 Thread wang
Changes by wang zev...@gmail.com: -- components: +Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13662 ___ ___ Python-bugs-list mailing

[issue13662] os.listdir bug

2011-12-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: U+FFEF is a Unicode ZERO WIDTH NO-BREAK SPACE / BYTE ORDER MARK. I'm not sure what is it doing in the file name but this doesn't seem a bug in os.listdir. -- nosy: +ezio.melotti resolution: - invalid stage: - committed/rejected

[issue13662] os.listdir bug

2011-12-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: s/U+FFEF/U+FEFF/ See also http://unicode.org/faq/utf_bom.html#bom1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13662 ___

[issue13639] UnicodeDecodeError when creating tar.gz with unicode name

2011-12-25 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: As I understand the patched code, it only fixes the issue for unicode names that can be latin-1 encoded and that other unicode names will raise the same exception with 'latin-1' (or equivalent) substituted for 'ascii'. So it is easy for me to

[issue13639] UnicodeDecodeError when creating tar.gz with unicode name

2011-12-25 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I just took a look as the 3.2 tarfile code and see that it always (because self.name is always unicode) does the same encoding, with 'replace', referencing RFC1952. Although there are a few other differences, they appear inconsequential, so