[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-05-28 Thread Mark Summerfield
New submission from Mark Summerfield m...@qtrac.eu: When I start a process with subprocess.Popen() and pipe the stdin and stdout, it always seems to use the local 8-bit encoding. I tried setting process.stdin.encoding = utf8 and the same for stdout (where process is the subprocess object), but

[issue6136] Make logging configuration files easier to use

2009-05-28 Thread Geoffrey Bache
New submission from Geoffrey Bache gjb1...@users.sourceforge.net: Recently tried to use the logging configuration file format as understood by logging.config.fileConfig() and found it very unwieldy for normal usage. I feel it needs to scale down better. Some thoughts: a) It creates handlers

[issue6073] threading.Timer and gtk.main are not compatible

2009-05-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: When using gtk and threads, it's necessary to call gtk.gdk.threads_init() -- nosy: +amaury.forgeotdarc resolution: - works for me status: open - closed ___ Python tracker

[issue6131] test_modulefinder leaks when run after test_distutils

2009-05-28 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: If I remove distutils.tests.test_config , the leak dissapears. I don't understand why yet. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6131

[issue6137] Pickle migration: Should pickle map copy_reg to copyreg?

2009-05-28 Thread Matthias Kievernagel
New submission from Matthias Kievernagel mkie...@web.de: Hello, while porting something to Python 3.1a1 I found out that Python 3 cannot load most Python 2 pickles of any protocol because copy_reg has been renamed to copyreg. Found this comment by Skip Montanaro in related issue:

[issue3425] posixmodule.c always using res = utime(path, NULL)

2009-05-28 Thread John Szakmeister
John Szakmeister j...@szakmeister.net added the comment: It seems reasonable to prefer utimes() over utime() in all cases, when utimes() is available, since utime() is considered obsolete. I've attached a patch with the required change and ran all the tests. There are some tests failing on

[issue1182143] making builtin exceptions more informative

2009-05-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1182143 ___ ___

[issue6048] make distutils use the tarinfo command

2009-05-28 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r72981 and r72984 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6048 ___

[issue5814] SocketServer: TypeError: waitpid() takes no keyword arguments

2009-05-28 Thread Niu Zhenyong
Changes by Niu Zhenyong nzym...@gmail.com: -- nosy: +nzymail ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5814 ___ ___ Python-bugs-list mailing

[issue4040] ignored exceptions in generators (regression?)

2009-05-28 Thread Doug Hellmann
Changes by Doug Hellmann doug.hellm...@gmail.com: -- nosy: +doughellmann ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4040 ___ ___

[issue5259] smtplib is broken in Python3

2009-05-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: LOGIN and CRAM-MD5 login are fixed in r72990 (3.1) and r72991 (3.0). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5259

[issue5259] smtplib is broken in Python3

2009-05-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: test needed - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5259 ___

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-28 Thread Alex
Alex alex.gay...@gmail.com added the comment: Optimization now works in the shell fine, and marshal.loads(marshal.dumps(''.join)) works fine in the shell. However when I try to run the tests the import of collections.namedtuple causes the ValueError bad marshal data to appear, and I don't know

[issue6134] 2to3 tests fail on Windows due to line endings

2009-05-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Thanks for the patch. Applied in r72994. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6134

[issue6138] ./configure; make install fails in setup.py step

2009-05-28 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: With current trunk, after a make distclean; ./configure; make install sequence, I get the following error: [...] # Substitution happens here, as the completely-expanded BINDIR # is not available in configure sed -e

[issue6138] ./configure; make install fails in setup.py step

2009-05-28 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: works for me under MacOS X, I am trying now under debian -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6138 ___

[issue6138] ./configure; make install fails in setup.py step

2009-05-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Benjamin can't reproduce it either. Must be something weird in my environment, so I'm lowering the priority. -- priority: release blocker - normal ___ Python tracker rep...@bugs.python.org

[issue6012] enhance getargs O to accept cleanup function

2009-05-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Patch review: - It needs docs and tests. - In addcleanup_convert, Py_FatalError calls abort, so there isn't really a point of returning -1; - Also in the function, you need to call destr() in the case that PyList_Append fails. --

[issue6132] Implement the GIL with critical sections in Windows

2009-05-28 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Obviously we can't just slap on a critical section and call it done, unless nobody cares about changing what threading.Lock does. This isn't obvious to me. I do care about what threading.Lock does, but still fail to see why we can't just

[issue6138] ./configure; make install fails in setup.py step

2009-05-28 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Ok. I confirm it works fine on a standard debian as well -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6138 ___

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-28 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I would like to see the current patch finished and recorded here for reference. But I agree with Martin that changing marshal is a can of worms. The peepholer is intended to be conservative and should avoid anything that has

[issue6138] './configure; make install' fails in setup.py step if .pydistutils.cfg specifies 'home'

2009-05-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I figured it out. It turns out that a while back I created a .pydistutils.cfg file and put home in there. There is a bug here, of some sort. Either the .pydistutils.cfg file's install clause should override the default --prefix somehow,

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-28 Thread Alex
Alex alex.gay...@gmail.com added the comment: Fully functional. -- Added file: http://bugs.python.org/file14106/python_const_fold.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6133 ___

[issue6136] Make logging configuration files easier to use

2009-05-28 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +vsajip priority: - normal versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6136 ___

[issue6137] Pickle migration: Should pickle map copy_reg to copyreg?

2009-05-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: #3675 is a similar issue, too bad nothing could be done to solve it... -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6137

[issue6132] Implement the GIL with critical sections in Windows

2009-05-28 Thread Kevin Watters
Changes by Kevin Watters kevinwatt...@gmail.com: -- nosy: +kevinwatters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6132 ___ ___

[issue6132] Implement the GIL with critical sections in Windows

2009-05-28 Thread Phillip Sitbon
Phillip Sitbon phillip.sitbon+python-...@gmail.com added the comment: I'm not competent to review Windows-specific stuff, but some style notes: - your indentation is inconsistent with the original file (you should use tabs) - please don't use any C++-style comments Thanks- I was only

[issue6139] Typo in email.base64mime

2009-05-28 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: I think I found typo in Lib/email/base64mime.py -- files: fix_typo.patch keywords: patch messages: 88489 nosy: ocean-city severity: normal status: open title: Typo in email.base64mime versions: Python 3.1 Added file:

[issue6139] Typo in email.base64mime

2009-05-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- components: +Library (Lib) priority: - normal stage: - test needed type: - behavior versions: +Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6139

[issue5150] IDLE to support reindent.py

2009-05-28 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Here's an extension that adds rstrip() to the Format menu. -- nosy: +serwy Added file: http://bugs.python.org/file14108/RstripExtension.py ___ Python tracker rep...@bugs.python.org

[issue5596] memory leaks in 3.1

2009-05-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5596 ___ ___

[issue6140] configure error: shadow.h: present but cannot be compiled

2009-05-28 Thread Sashi
New submission from Sashi sa...@voltage.com: Got the following error while building Python 2.5.2 on HP-UX 11.11 bash-3.2$ uname -a HP-UX hpux B.11.11 U 9000/785 2010988722 unlimited-user license configure: WARNING: By default, distutils will build C++ extension modules with g++. If this

[issue5150] IDLE to support reindent.py

2009-05-28 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Applied in r72999. Will backport to 2.7. -- assignee: kbk - rhettinger resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5150

[issue6140] configure error: shadow.h: present but cannot be compiled

2009-05-28 Thread Sashi
Sashi sa...@voltage.com added the comment: Have not tried it on 2.6 - Will update when I get a chance to build 2.6 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6140 ___

[issue5150] IDLE to support reindent.py

2009-05-28 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Backported in r73001 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5150 ___

[issue6095] os.curdir as the default argument for os.listdir

2009-05-28 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: If this is to go into Py3.1, it needs to happen quickly. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6095

[issue818059] os.listdir on empty strings. Inconsistent behaviour.

2009-05-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Superseded by #5913. -- resolution: - duplicate status: open - closed superseder: - On Windows os.listdir('') - cwd and os.listdir(u'') - C:\ ___ Python tracker rep...@bugs.python.org

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-28 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: r73005 and r73006 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5982 ___