[issue6131] test_modulefinder leaks when run after test_distutils

2009-05-28 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I can reproduce refleaks with only test_distutils now. E:\python-dev\py3k\Lib\test>py3k regrtest.py -R3:2: test_distutils test_distutils beginning 5 repetitions 12345 . test_distutils leaked [280, 280] references, sum=560 1 test failed: test_distutil

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: r73005 and r73006 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

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

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

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

2009-05-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: If this is to go into Py3.1, it needs to happen quickly. -- nosy: +rhettinger ___ Python tracker ___

[issue5150] IDLE to support reindent.py

2009-05-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Backported in r73001 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

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

2009-05-28 Thread Sashi
Sashi added the comment: Have not tried it on 2.6 - Will update when I get a chance to build 2.6 -- ___ Python tracker ___ ___ Python-

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

2009-05-28 Thread R. David Murray
R. David Murray added the comment: 2.5 is in security-fix-only mode. Is this problem reproducible with 2.6? -- nosy: +r.david.murray ___ Python tracker ___ _

[issue5150] IDLE to support reindent.py

2009-05-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Applied in r72999. Will backport to 2.7. -- assignee: kbk -> rhettinger resolution: -> accepted ___ Python tracker ___

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

2009-05-28 Thread Sashi
New submission from Sashi : 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 is not intended,

[issue5596] memory leaks in 3.1

2009-05-28 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue5150] IDLE to support reindent.py

2009-05-28 Thread Roger Serwy
Roger Serwy 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 _

[issue6139] Typo in email.base64mime

2009-05-28 Thread R. David Murray
Changes by R. David Murray : -- components: +Library (Lib) priority: -> normal stage: -> test needed type: -> behavior versions: +Python 3.0 ___ Python tracker ___

[issue6139] Typo in email.base64mime

2009-05-28 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : 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: http://bugs.python.org/file1410

[issue6132] Implement the GIL with critical sections in Windows

2009-05-28 Thread Phillip Sitbon
Phillip Sitbon 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 supplying the code for testing purp

[issue6132] Implement the GIL with critical sections in Windows

2009-05-28 Thread Kevin Watters
Changes by Kevin Watters : -- nosy: +kevinwatters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2009-05-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: #3675 is a similar issue, too bad nothing could be done to solve it... -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker ___ ___

[issue6136] Make logging configuration files easier to use

2009-05-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +vsajip priority: -> normal versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-b

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

2009-05-28 Thread Alex
Alex added the comment: Fully functional. -- Added file: http://bugs.python.org/file14106/python_const_fold.diff ___ Python tracker ___ __

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

2009-05-28 Thread R. David Murray
R. David Murray 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, or the error message

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

2009-05-28 Thread Raymond Hettinger
Raymond Hettinger 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 some risk of being complicating

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

2009-05-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: -1. const.attr is not necessarily a constant. Indeed, "".join is *not* a constant. Furthermore, using this approach will lead to an endless series of types to be added to marshalling, which is bad. For example, I believe that current patch breaks on "".__class

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

2009-05-28 Thread R. David Murray
R. David Murray added the comment: I can see that 'self.home' is '~' when that error message is generated, but I can't figure out where self.home gets set. Any clues you can give me? -- ___ Python tracker

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

2009-05-28 Thread Tarek Ziadé
Tarek Ziadé added the comment: Ok. I confirm it works fine on a standard debian as well -- ___ Python tracker ___ ___ Python-bugs-lis

[issue6132] Implement the GIL with critical sections in Windows

2009-05-28 Thread Martin v . Löwis
Martin v. Löwis 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 slap on a criticia

[issue6012] enhance getargs O& to accept cleanup function

2009-05-28 Thread Benjamin Peterson
Benjamin Peterson 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. -- nosy: +benjamin.pet

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

2009-05-28 Thread R. David Murray
R. David Murray 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 ___

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

2009-05-28 Thread Tarek Ziadé
Tarek Ziadé added the comment: works for me under MacOS X, I am trying now under debian -- ___ Python tracker ___ ___ Python-bugs-list

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

2009-05-28 Thread R. David Murray
New submission from R. David Murray : 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 "s,@EXENAME@,/usr/local/bin/python2.7," < .

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

2009-05-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the patch. Applied in r72994. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

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

2009-05-28 Thread Alex
Alex 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 why. Could it have to

[issue5259] smtplib is broken in Python3

2009-05-28 Thread R. David Murray
Changes by R. David Murray : -- stage: test needed -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue5259] smtplib is broken in Python3

2009-05-28 Thread R. David Murray
R. David Murray 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 ___ ___

[issue4040] ignored exceptions in generators (regression?)

2009-05-28 Thread Doug Hellmann
Changes by Doug Hellmann : -- nosy: +doughellmann ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2009-05-28 Thread Niu Zhenyong
Changes by Niu Zhenyong : -- nosy: +nzymail ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue6048] make distutils use the tarinfo command

2009-05-28 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r72981 and r72984 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1182143] making builtin exceptions more informative

2009-05-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

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

2009-05-28 Thread John Szakmeister
John Szakmeister 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 trunk with my system.

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

2009-05-28 Thread Matthias Kievernagel
New submission from Matthias Kievernagel : 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: http://bugs.python.org/iss

[issue6131] test_modulefinder leaks when run after test_distutils

2009-05-28 Thread Tarek Ziadé
Tarek Ziadé added the comment: If I remove distutils.tests.test_config , the leak dissapears. I don't understand why yet. -- ___ Python tracker ___

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

2009-05-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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

[issue6136] Make logging configuration files easier to use

2009-05-28 Thread Geoffrey Bache
New submission from Geoffrey Bache : 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 whether they're needed or not.

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

2009-05-28 Thread Mark Summerfield
New submission from Mark Summerfield : 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 to no avail.