[issue11017] optparse: error: invalid integer value

2011-01-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think it’s good: optparse checks for a leading 0 and will use int(value, 8) in that case. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11017

[issue5305] imaplib should support international mailbox names

2011-01-27 Thread Hiroaki Kawai
Hiroaki Kawai hiroaki.ka...@gmail.com added the comment: twisted's code does not work good for \t, \r, \n, those characters must encoded in modified base64 form according to RFC 3501. -- nosy: +Hiroaki.Kawai ___ Python tracker rep...@bugs.python.org

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ[] does

2011-01-27 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: This bug may be based on same problem as Issue 6203. - My system locale is en_GB.UTF-8. - Given a latin1 text file, open()+ will fail with 'UnicodeDecodeError: 'utf8' codec can't decode byte 0xf6...' - Using

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ[] does

2011-01-27 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11022 ___ ___

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ[] does

2011-01-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: - Using locale.setlocale(..., ...) - Re-open causes same error, I/O layer codec has not been changed! Yes, this is the expected behaviour with the current code. TextIOWrapper uses indirectly locale.getpreferredencoding() to

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ[] does

2011-01-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This bug may be based on same problem as Issue 6203. Nope, both issues are different. Here you want that TextIOWrapper reads your current locale, and not your environment variables. Issue #6203 asks why LC_CTYPE is not C by

[issue6203] 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

2011-01-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: To add a little bit more analysis: posix.device_encoding requires that the LC_CTYPE is set. Setting it just in this function would not be possible, as setlocale is not thread-safe. open() does indirectly

[issue11008] logging.dictConfig not documented as new in version 2.7

2011-01-27 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: This also applies to Python 3.2 docs. I've made the changes - OK to checkin, Georg? (For 3.2, I mean) -- assignee: docs@python - vinay.sajip nosy: +georg.brandl, vinay.sajip versions: +Python 3.2

[issue4177] Crash in MIMEText on FreeBSD

2011-01-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Something is very wrong with our code too. I have dumped the text that's cousing the freeze and run it using the test case scripts. It worked slow, but worked. I retried test_MIMEText.tar.bz2 on FreeBSD 8.0 with 640 MB of memory:

[issue10952] Don't normalize module names to NFKC?

2011-01-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: It looks like there is nothing interesting to do here, so I close the issue (which is not a bug :-)). -- resolution: - invalid status: open - closed ___ Python tracker

[issue11023] pep 227 missing text

2011-01-27 Thread Alan Isaac
New submission from Alan Isaac alan.is...@gmail.com: In PEP 227 missing text is marked with XXX. Most of this is just calls for examples and elaboration. However under the Implementation section XXX marks a substantive question about the documentation. Fixing this may be low priority, but a

[issue5097] asyncore.dispatcher_with_send undocumented

2011-01-27 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I documented this some months ago: http://docs.python.org/library/asyncore.html#asyncore.dispatcher_with_send Being asynchat's push() method more convenient for such kind of task I expressively avoided to be too specific about

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-27 Thread Sebastian Spaeth
New submission from Sebastian Spaeth sebast...@sspaeth.de: imaplib's Time2Internaldate returns invalid (as localized) INTERNALDATE strings. Appending a message with such a time string leads to a: 19 BAD Command Argument Error. 11 (for MS Exchange IMAP servers) it returned 26-led-2011 18:23:44

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-27 Thread Sebastian Spaeth
Sebastian Spaeth sebast...@sspaeth.de added the comment: P.S. To replicate this in ipython: import locale, imaplib locale.setlocale(locale.LC_ALL,'de_CH.utf8') imaplib.Time2Internaldate(220254431) Out[1]: '24-Dez-1976 06:47:11 +0100' (Note the German 'Dez' rather than 'Dec') --

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ[] does

2011-01-27 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Anyway, I don't know understand why do you change your locale, because you know that your file encoding is Latin1. Why don't you use directly: open(filename, encoding='latin1')? Fortunately Issue 9124 is being solved soon due

[issue1191964] asynchronous Subprocess

2011-01-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1191964 ___

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-27 Thread Sebastian Spaeth
Sebastian Spaeth sebast...@sspaeth.de added the comment: CC'ing lavajoe as he seemed to be busy with some of imaplib's Date stuff the last couple of days. -- nosy: +lavajoe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11024

[issue11025] Distutils2 install command without setup.py or setup.cfg create an UNKNOWN-UNKNOWN.dist-info distribution

2011-01-27 Thread Boris FELD
New submission from Boris FELD lothiral...@gmail.com: Distutils2 install command don't display error if you try to launch it in a directory without setup.py nor setup.cfg files. It install an UNKNOWN-UNKNOWN.dist-info distribution in your site-package with all meta-data file set to UNKNOWN.

[issue10932] distutils.core.setup - data_files misbehaviour ?

2011-01-27 Thread Thorsten Simons
Thorsten Simons t...@snomis.de added the comment: Hi Éric, All, thank you for the directions you gave me! It's all about a call of os.path.basename() missing in sdist.py. Pls. see attached diff. Regards, Thorsten -- keywords: +patch Added file:

[issue11026] Distutils2 install command fail with python 2.5/2.7

2011-01-27 Thread Boris FELD
New submission from Boris FELD lothiral...@gmail.com: Distutils2 install command fail with both python 2.5 and python 2.7 while it works with python 2.6. $ python -V python 2.5.4 $ python -m distutils2.run install usage: run.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or:

[issue11026] Distutils2 install command fail with python 2.5/2.7

2011-01-27 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11026 ___ ___ Python-bugs-list

[issue11027] Allow spaces around section header in ConfigParser

2011-01-27 Thread Kunjesh Kaushik
New submission from Kunjesh Kaushik kunjesh.kaus...@gmail.com: It is often desirable to be able to write a section with spaces around the header, as in [ default ] instead of [default] for the sake of readability of configuration file. I am not sure if this is the standard format of

[issue11026] Distutils2 install command fail with python 2.5/2.7

2011-01-27 Thread Boris FELD
Boris FELD lothiral...@gmail.com added the comment: The new command for installation is install_dist, sorry. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11026

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-27 Thread Joe Peterson
Joe Peterson j...@skyrush.com added the comment: Sebastian, Yes, in fact Alexander Belopolsky (belopolsky) brought up the the locale issue for this very function in one of the other issue comments. The invert function, Internaldate2tuple(), actually does its own parsing using a regex match

[issue11025] Distutils2 install command without setup.py or setup.cfg create an UNKNOWN-UNKNOWN.dist-info distribution

2011-01-27 Thread Boris FELD
Boris FELD lothiral...@gmail.com added the comment: It also fails with python 2.5 and python 2.7 with install_dist command. -- versions: +Python 2.5, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11025

[issue11028] Implement the setup.py - setup.cfg in mkcfg

2011-01-27 Thread alain tty
New submission from alain tty alain...@gmail.com: It shall be interesting to simplify the building of the setup.cfg from an existing setup.py. A distutils2.mkcfg.load_existing_setup_script function already exists but it raises NotImplementedError. Since taking into account setuptools could be

[issue10680] argparse: titles and add_mutually_exclusive_group don't mix (even with workaround)

2011-01-27 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: I've added a unit test for this nested mutex scenario. The attached patch includes the original fix as well, as for some reason the patch by loewis wouldn't apply to my tree automatically. -- nosy: +gagern Added file:

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-27 Thread Sebastian Spaeth
Sebastian Spaeth sebast...@sspaeth.de added the comment: I think I found the issue he mentioned, however it was about the functions taking the local time (rather than UTC), which is fine. The problem is that Time2Internaldate is used for every .append() operation internally, producing invalid

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-27 Thread Joe Peterson
Joe Peterson j...@skyrush.com added the comment: Yes, that's serious, certainly. A patch should be fairly straightforward, given that part of the formatting logic is already there (for the TZ offset at the end). You just need to format the 6 values, and do a lookup for the month name. If

[issue6203] 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

2011-01-27 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6203 ___

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ[] does

2011-01-27 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11022 ___

[issue11029] Crash, 2.7.1, Tkinter and threads and line drawing

2011-01-27 Thread Scott M
New submission from Scott M scott.m...@comcast.net: Running on dual core Windows XP. The function should draw a parabolicish shape for each click on launch. But if you click Launch over and over, very fast, you get bizarre crashes instead: Python.exe has encoutered a problem, yadda.

[issue11029] Crash, 2.7.1, Tkinter and threads and line drawing

2011-01-27 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11029 ___ ___ Python-bugs-list

[issue11008] logging.dictConfig not documented as new in version 2.7

2011-01-27 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yes, please go ahead. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11008 ___ ___

[issue8914] Run clang's static analyzer

2011-01-27 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Turns out I was using pax wrong. =) Thought it automatically compressed new files; turns out it doesn't. Using the zx compressor it shrank the 70 MB file down, so ignore the Google Docs upload and just grab this. -- Added file:

[issue11017] optparse: error: invalid integer value

2011-01-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, it is certainly intentional, then. Whether it is good is a different story, but also a moot question since optparse has been replaced by argparse. -- ___ Python tracker

[issue8914] Run clang's static analyzer

2011-01-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: For the record, you don't have to use pax, recent GNU tar handles xz fine (use the -J option). -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8914

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-27 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray stage: - needs patch versions: +Python 2.7, Python 3.1, Python 3.2 -3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11024

[issue11027] Allow spaces around section header in ConfigParser

2011-01-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: A feature request can only go in to 3.3 at this point. ConfigParser has had a serious overhaul in 3.2, by the way. -- assignee: - lukasz.langa nosy: +lukasz.langa, r.david.murray versions: +Python 3.3 -Python 2.7

[issue11030] regrtest - allow for relative path with --coverdir

2011-01-27 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: Hi, following up msg127157 here's a patch to allow for relative path when using --coverdir. The current solution uses getcwd() but since CWD is replaced by a temporary location before calling main(), then the resulting dir is in an

[issue11013] Build of 2.7 svn fails in readline

2011-01-27 Thread Geoge R. Goffe
Geoge R. Goffe grgo...@yahoo.com added the comment: Brett, Here's the file you requested. Thanks for your help. George... -- status: pending - open Added file: http://bugs.python.org/file20552/readline.i.gz ___ Python tracker

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ[] does

2011-01-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Both cases indicate the users desire to change a specific locale setting and thus - of course - all the changes which that implies! So why should there be a difference? I don't think it's intentional. I would be +1 on changing to

[issue10999] os.chflags refers to stat constants, but the constants are not documented in the stat module

2011-01-27 Thread Michal Nowikowski
Changes by Michal Nowikowski godf...@gmail.com: -- nosy: +godfryd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10999 ___ ___ Python-bugs-list

[issue3982] support .format for bytes

2011-01-27 Thread Uoti Urpala
Uoti Urpala uoti.urp...@pp1.inet.fi added the comment: This kind of formatting is needed quite often when working on network protocols or file formats, and I think the replies here fail to address important issues. In general you can't encode after formatting, as that doesn't work with binary

[issue11027] Allow spaces around section header in ConfigParser

2011-01-27 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: There's a case to be made that the current regex is buggy. It already accepts whitespace around the header name but doesn't strip it. ISTM, this is undesirable: [ section header ] -- ' section header ' instead of

[issue11013] Build of 2.7 svn fails in readline

2011-01-27 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Martin actually asked for the file and deserves the thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11013 ___

[issue11008] logging.dictConfig not documented as new in version 2.7

2011-01-27 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix checked into py3k and release27-maint (r88214). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11008

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ

2011-01-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Both cases indicate the users desire to change a specific locale setting and thus - of course - all the changes which that implies! So why should there be a difference? I don't think it's intentional. I would be +1 on changing to

[issue11027] Allow spaces around section header in ConfigParser

2011-01-27 Thread Kunjesh Kaushik
Kunjesh Kaushik kunjesh.kaus...@gmail.com added the comment: Mr. Raymond has raised a valid point. On second thought, I think the submitted patch won't resolve the issue. import re r = re.compile(r'\[\s*(?Pheader[^]]+)\s*\]') # as in the patch r.match('[ section header ]').group('header')

[issue11013] Build of 2.7 svn fails in readline

2011-01-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: What is /usr/lsd/Linux? This seems broken. Please take a look at /usr/lsd/Linux/include/readline/history.h - it appears to be an empty file. Make sure you have a working copy of the readline header files installed, and make sure the build

[issue11013] Build of 2.7 svn fails in readline

2011-01-27 Thread Geoge R. Goffe
Geoge R. Goffe grgo...@yahoo.com added the comment: Martin, I'm looking at the file right now. history.h is a link to readline.h which has 6771 characters in it. George... goffe@goffeg bash-4.1 /usr/lsd };-) find . -name 'readline.h' -ls 205381    8 -r--r--r--   1 goffe    nonconf  

[issue11027] Allow spaces around section header in ConfigParser

2011-01-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, there's still a backward compatibility issue: if this is changed, currently working code may break. Maybe Lukasz or Fred will have a guess as to how likely that is, because I don't. -- nosy: +fdrake

[issue11013] Build of 2.7 svn fails in readline

2011-01-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm looking at the file right now. history.h is a link to readline.h Ah, that's wrong. It must be a separate file, entirely different from readline.h. -- ___ Python tracker

[issue11013] Build of 2.7 svn fails in readline

2011-01-27 Thread Geoge R. Goffe
Geoge R. Goffe grgo...@yahoo.com added the comment: Martin, I traced back to where that readline installation came from... It's the latest version from ftp.gnu.org + patches. George... It's not what you know that hurts you, It's what you know that ain't so. Wil Rogers --- On Thu, 1/27/11,

[issue11013] Build of 2.7 svn fails in readline

2011-01-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I traced back to where that readline installation came from... It's the latest version from ftp.gnu.org + patches. Did you mean to imply that you have now fixed your installation, or that you consider it correct? --

[issue11029] Crash, 2.7.1, Tkinter and threads and line drawing

2011-01-27 Thread Scott M
Scott M scott.m...@comcast.net added the comment: To make this more interesting, I'm trying to push for adoption of Python at a scripting tool where I work, and I uncovered this crasher in example code I was about to hand out, under the heading of look how easy Python is. For obvious reasons

[issue11027] Allow spaces around section header in ConfigParser

2011-01-27 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: I doubt anyone is looking for section names with leading or trailing whitespace. One approach to dealing with this is to provide and sectionxform similar to optionxform. If we're wrong and someone really is expecting leading or trailing

[issue10999] os.chflags refers to stat constants, but the constants are not documented in the stat module

2011-01-27 Thread Michal Nowikowski
Michal Nowikowski godf...@gmail.com added the comment: I have prepared a patch that: - documents flags for os.chflags function in stat module - adds links for these flags os module to stat module. -- components: +None keywords: +patch Added file:

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-27 Thread Joe Peterson
Joe Peterson j...@skyrush.com added the comment: OK, I attached a patch that should work. Note that this patch works for Python 2 and Python 3. As an aside, the str type is still returned as before (even in Python 3), and the _month_names list uses str. As has been discussed, it may be more

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-27 Thread Joe Peterson
Changes by Joe Peterson j...@skyrush.com: Removed file: http://bugs.python.org/file20556/imaplib_Time2Internaldate_locale_fix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11024 ___

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-27 Thread Joe Peterson
Changes by Joe Peterson j...@skyrush.com: Added file: http://bugs.python.org/file20557/imaplib_Time2Internaldate_locale_fix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11024 ___

[issue11013] Build of 2.7 svn fails in readline

2011-01-27 Thread Geoge R. Goffe
Geoge R. Goffe grgo...@yahoo.com added the comment: Martin, After the rebuild/reinstall of readline, readline.h is different than history.h... AND NOT A LINK. NO OTHER CHANGES. Same build script... I did NOT do svn up but this current build attempt succeeded. AND THE BEST PART... command

[issue11031] regrtest - --testdir, new command-line option to specify alternative test directory

2011-01-27 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: from msg127153 + msg127157 + msg127172 I prepared this patch to introduce a new cli option to regrtest.py, --testdir DIR, that allows to specify a different location for the directory containing the test files. along the way, I added a

[issue11013] Build of 2.7 svn fails in readline

2011-01-27 Thread Geoge R. Goffe
Geoge R. Goffe grgo...@yahoo.com added the comment: Martin, command line editing with 3.2 (I just did a svn co) works now as well... Regards and have a GREAT day, George... It's not what you know that hurts you, It's what you know that ain't so. Wil Rogers --- On Thu, 1/27/11, Martin v.

[issue10848] Move test.regrtest from getopt to argparse

2011-01-27 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: Removed file: http://bugs.python.org/file20541/issue10848-testdir-py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10848 ___

[issue11013] Build of 2.7 svn fails in readline

2011-01-27 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11013 ___

[issue10848] Move test.regrtest from getopt to argparse

2011-01-27 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: I've created two new issues (David, I think I've lost why I'd need 3 :) ) * issue11030 - finally allows to specify a relative dir with --coverdir * issue11031 - to expose --testdir in order to specify a different location of the directory

[issue11027] Allow spaces around section header in ConfigParser

2011-01-27 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Could just expand the docs to show examples of customizing behavior through monkey-patching or subclassing: class MyConfigParser(ConfigParser): SECTRE = re.compile(r'[\*(?Pheader[^]]+)\s*]' or:

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ

2011-01-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Set version to 3.3, I think that it is too late to change such critical code in Python 3.2. -- versions: +Python 3.3 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue10848] Move test.regrtest from getopt to argparse

2011-01-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I would say so, otherwise how are you going to run the tests you write :) As for the other issue...I hadn't counted one for --testdir, but making that a new issue was a good idea. So the other two I had in mind was for STDTESTS and

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ

2011-01-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: upon program startup, init LibC environment: setlocale(LC_ALL, ); Python 3 does something like that: Py_InitializeEx() calls setlocale(LC_CTYPE, ). But I (and others) consider that as a bug (see #6203 discussion): Python should

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ

2011-01-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Both cases indicate the users desire to change a specific locale setting and thus - of course - all the changes which that implies! So why should there be a difference? I don't think it's intentional. I would be +1 on changing to

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-27 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the comment: Cleaned up patch file. Removed non-related diffs and redundant updates. refcount_test decorator is still in there. -- Added file: http://bugs.python.org/file20561/issue10990.diff

[issue11032] _string: formatter_field_name_split() and formatter_parser doesn't check input type

2011-01-27 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: $ ./python Python 3.2rc1+ (unknown, Jan 18 2011, 00:55:20) import _string _string.formatter_field_name_split(1) python: Objects/stringlib/string_format.h:1347: formatter_field_name_split: Assertion

[issue10989] ssl.SSLContext(True).load_verify_locations(None, True) segfault

2011-01-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Here is a patch including a test. The test pass on regrtest with -R 3:3: (no reference leak). -- keywords: +patch Added file: http://bugs.python.org/file20563/ssl.patch ___ Python

[issue10989] ssl.SSLContext(True).load_verify_locations(None, True) segfault

2011-01-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks good to me. -- resolution: - accepted stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10989 ___

[issue11033] ElementTree.fromstring doesn't work with Unicode

2011-01-27 Thread Peter Cai
New submission from Peter Cai newpt...@gmail.com: xml.etree.ElementTree.fromstring doesn't work with Unicode string. See the code below: from xml.etree import ElementTree t = ElementTree.fromstring(u'doc诗/doc') Traceback (most recent call last): File stdin, line 1, in module File

[issue11032] _string: formatter_field_name_split() and formatter_parser doesn't check input type

2011-01-27 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I'll review this tomorrow. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11032 ___

[issue7175] Define a standard location and API for configuration files

2011-01-27 Thread Glyph Lefkowitz
Glyph Lefkowitz gl...@twistedmatrix.com added the comment: I agree with Michael Foord; my comment on issue 8404 http://bugs.python.org/issue8084#msg122935 may be of interest to anyone looking at this as well. -- ___ Python tracker

[issue11015] Bring test.support docs up to date

2011-01-27 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11015 ___ ___ Python-bugs-list

[issue11015] Bring test.support docs up to date

2011-01-27 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I don't know if it matters much, but there's a slight mismatch in the description of test.support.verbose. The documentation says it's a boolean, while it's 0 or 1 in reality. Can it just be changed to True/False in the code of test.support

[issue11029] Crash, 2.7.1, Tkinter and threads and line drawing

2011-01-27 Thread Christoph Gohlke
Christoph Gohlke cgoh...@uci.edu added the comment: Tkinter is not thread safe. You are changing UI elements from a thread that is not the main thread. Use a Queue as described at http://effbot.org/zone/tkinter-threads.htm. -- nosy: +cgohlke ___

[issue11015] Bring test.support docs up to date

2011-01-27 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Here's a patch fixing the 0/1 to True/False in a couple of places in test.support and test.regrtest I ran the test suite and it passes. A review is needed to commit. I'll keep working on the documentation itself in the meantime. --

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Attached is a patch that builds on Victor's patch, but takes the approach I discussed of maintaining backward compatibility (for the most part; see below). The test suite in this version is substantially unchanged. The major changes

[issue10992] tests failing when run under coverage

2011-01-27 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Attached is a patch against test_gc that shows what I think should be done for the tests failing because of refcounts. Basically I added a refcount_test decorator to test.support that skips a decorated test if it is not being run under CPython

[issue11015] Bring test.support docs up to date

2011-01-27 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Here's a patch to Doc/library/test.rst with additional several exported functions documented. These are the ones I found most important and clear. fcmp() is currently not documented (pending discussion in pydev). -- stage: needs patch

[issue10992] tests failing when run under coverage

2011-01-27 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Attached is a patch for test_descr. I suspect the __locals__ failures will all be the same; simply skip the test when a trace function is set. And thanks for identifying the cause of the failures, Kristian; helps me make sure I am not

[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-27 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: On a clean checkout of py3k, I try to open PCBuild/pcbuild.sln with my MSVC++ Express 2008. When opening, a message box pops saying: Solution folders are not supported in this version of the application. Solution folder Solution Items

[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-27 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I tried running make_buildinfo.exe manually from a VC command prompt, and I get an error for invoking subwcrev.exe: D:\eli\python-py3k-trunk\PCbuildmake_buildinfo.exe Debug Win32-temp-Debug C:\Program Files\TortoiseSVN\bin\subwcrev.exe ..

[issue11027] Allow spaces around section header in ConfigParser

2011-01-27 Thread Kunjesh Kaushik
Kunjesh Kaushik kunjesh.kaus...@gmail.com added the comment: I think we are dealing with two separate issues: a feature request for sectionxform kind of functionality desirable in a future release (3.3 maybe) and a behaviour issue in current releases (2.x and 3.x both). I suggest we split the