[issue7742] please avoid 'which' in Modules/ld_so_aix

2010-01-19 Thread Brian Curtin
Changes by Brian Curtin : -- components: +None keywords: +needs review priority: -> normal stage: -> patch review type: -> behavior versions: +Python 2.7 ___ Python tracker ___

[issue7712] Add a context manager to change cwd in test.test_support

2010-01-19 Thread Florent Xicluna
Florent Xicluna added the comment: Different approach, after some other talks with Ezio and David. Now the directory is changed before running any test. The developer can assume that the current directory if always writable. It makes the tests easier to write, and repeatable. Additionally, TES

[issue7742] please avoid 'which' in Modules/ld_so_aix

2010-01-19 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Uhm, as I read the patch again, there's room for improvement of pywhich(): it likely fails with CC=/full/path/to/cc -- ___ Python tracker ___

[issue7742] please avoid 'which' in Modules/ld_so_aix

2010-01-19 Thread Michael Haubenwallner
New submission from Michael Haubenwallner : In Modules/ld_so_aix there is `which $CC` to search for the full compiler's path. Unfortunately, /usr/bin/which on AIX is a csh-script and thus ~/.cshrc gets sourced before doing the path search. Now, when the user does set some PATH in ~/.cshrc, `w

[issue7739] time.strftime may hung while trying to open /etc/localtime but does not release GIL

2010-01-19 Thread Doron Tal
Doron Tal added the comment: We didn't prove this point yet, currently it's merely circumstantial. The application calls strftime few dozen times each second from different threads. We spot the stall using another two threads, the first takes a time stamp before calling a python function and res

[issue7736] os.listdir hangs since opendir() and closedir() do not release GIL

2010-01-19 Thread Brian Curtin
Changes by Brian Curtin : -- keywords: +needs review nosy: +brian.curtin priority: -> normal stage: -> patch review versions: +Python 3.2 ___ Python tracker ___

[issue7736] os.listdir hangs since opendir() and closedir() do not release GIL

2010-01-19 Thread Nikolaus Rath
Changes by Nikolaus Rath : -- title: ctypes freezes/deadlocks process -> os.listdir hangs since opendir() and closedir() do not release GIL ___ Python tracker ___ ___

[issue7736] ctypes freezes/deadlocks process

2010-01-19 Thread Nikolaus Rath
Nikolaus Rath added the comment: Wow, great! Thanks for looking into this. How did you manage to get the backtrace? As I said, on my system gdb -p just hangs with when attaching. I'm changing the component, since it seems that it's the os module that's at fault and not ctypes. -- com

[issue7736] ctypes freezes/deadlocks process

2010-01-19 Thread Marcin Bachry
Marcin Bachry added the comment: Here's the backtrace: #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 #1 0x7fcd0234a6e8 in PyThread_acquire_lock (lock=0x183f3f0, waitflag=128) at Python/thread_pthread.h:349 #2 0x7fcd02311fa4 in PyEval_RestoreThread (tstate=0x

[issue7739] time.strftime may hung while trying to open /etc/localtime but does not release GIL

2010-01-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'd also be curious why it takes a second to open /etc/localtime. That sounds like a bug in the C library, or a mismanaged system. -- nosy: +loewis ___ Python tracker ___

[issue5684] test_zipfile writes in its test directory

2010-01-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti keywords: +needs review priority: low -> normal stage: needs patch -> patch review versions: +Python 3.2 ___ Python tracker ___

[issue5684] test_zipfile writes in its test directory

2010-01-19 Thread Florent Xicluna
Florent Xicluna added the comment: Patch using the proposed context manager (#7712). -- keywords: +patch nosy: +flox Added file: http://bugs.python.org/file15952/issue5684_test_zipfile.diff ___ Python tracker _

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: IMO we could just catch the WindowsError, and skip the test if its winerror attribute is 1314 (=ERROR_PRIVILEGE_NOT_HELD). -- ___ Python tracker _

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-19 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-19 Thread Jason R. Coombs
Jason R. Coombs added the comment: I'm currently struggling with determining if the host process has the appropriate privileges. I'm stuck in that I've enumerated the privileges for an admin account, but the SeCreateSymbolicLink privilege is not present. I guess it's inherited. If you have an

[issue4194] default subprocess.Popen buffer size

2010-01-19 Thread Skip Montanaro
Skip Montanaro added the comment: Looks good to me: tmp% python3.1 popentest.py time with os.popen : 0.035565 time with subprocess.Popen : 0.031796 tmp% python3.2 popentest.py time with os.popen : 0.03501 time with subprocess.Popen : 0.031168 tmp% python3.1 Python 3.1.1+ (release31-maint:77

[issue7712] Add a context manager to change cwd in test.test_support

2010-01-19 Thread Ezio Melotti
Ezio Melotti added the comment: The patch looks good, I'd just move _test_cwd inside the function and drop the [:-3] from TESTFN, but apart from that it's OK. I also agree that functools.wraps should be added. To summarize the discussion we had on #python-dev: 1) the context manager should al

[issue7712] Add a context manager to change cwd in test.test_support

2010-01-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: with_writable_cwd should probably use functools.wraps. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue7712] Add a context manager to change cwd in test.test_support

2010-01-19 Thread Florent Xicluna
Florent Xicluna added the comment: Changed, after review from Ezio and other developpers. -- Added file: http://bugs.python.org/file15951/temp_cwd_decorator_v2.diff ___ Python tracker __

[issue7712] Add a context manager to change cwd in test.test_support

2010-01-19 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15907/temp_cwd_decorator.diff ___ Python tracker ___ ___ Python-bugs-list

[issue7741] Allow multiple statements in code.InteractiveConsole.push

2010-01-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Here is how to test this manually: from code import InteractiveConsole c = InteractiveConsole() s = "if True:\n print 1\nprint 2" c.push(s) #fails c.push(s, "exec") #succeeds -- ___ Python tracker

[issue7741] Allow multiple statements in code.InteractiveConsole.push

2010-01-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Note, there are no regression tests for the code module. -- ___ Python tracker ___ ___ Pytho

[issue7741] Allow multiple statements in code.InteractiveConsole.push

2010-01-19 Thread Brian Curtin
Changes by Brian Curtin : -- keywords: +needs review priority: -> normal stage: -> test needed ___ Python tracker ___ ___ Python-bugs

[issue7741] Allow multiple statements in code.InteractiveConsole.push

2010-01-19 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : The code.InteractiveConsole() is useful to emulate a python console. However, any code currently "push"ed to it must be single statements. This is because it passes the ´single´ symbol mode to the underlying compile function. This patch allows the

[issue7738] IDLE hang when tooltip comes up in Linux

2010-01-19 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin priority: -> normal stage: -> test needed versions: +Python 2.7, Python 3.2 -Python 2.5 ___ Python tracker ___ _

[issue7739] time.strftime may hung while trying to open /etc/localtime but does not release GIL

2010-01-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: You might want to investigate which C library call opens this file, and propose a patch to release the GIL before doing that call. As far as I can tell, Python itself does not open /etc/localtime in any place. -- nosy: +pitrou ___

[issue7740] was spam

2010-01-19 Thread Florent Xicluna
Changes by Florent Xicluna : -- title: Complete your registration to Jython tracker -- key9LzwsWHYNjTaULhZpojHxtdciVg1jFYL -> was spam ___ Python tracker ___

[issue7740] Complete your registration to Jython tracker -- key9LzwsWHYNjTaULhZpojHxtdciVg1jFYL

2010-01-19 Thread Florent Xicluna
Changes by Florent Xicluna : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue4194] default subprocess.Popen buffer size

2010-01-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can someone check if this still applies to Python 3.1/3.2? By the way, I see no reason not to buffer at least the subprocess's stdout and stderr streams. -- versions: -Python 2.4, Python 2.5, Python 2.6, Python 3.0 ___

[issue7740] Complete your registration to Jython tracker -- key9LzwsWHYNjTaULhZpojHxtdciVg1jFYL

2010-01-19 Thread Gerald Thaler
New submission from Gerald Thaler : - Original Message - From: "Jython tracker" To: Sent: Tuesday, January 19, 2010 1:23 PM Subject: Complete your registration to Jython tracker -- key9LzwsWHYNjTaULhZpojHxtdciVg1jFYL To complete your registration of the user "geraldth" with Jython t

[issue7723] sqlite only accept buffer() for BLOB objects (input/output)

2010-01-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hello Gerhard, > As far as I can see, the Python 3 definition of the old "buffer" > interface is "anything that I can apply memoryview to". Roughly, yes. > When returning BLOBs, the sqlite3 module now returns bytes objects. I > think this could be changed to

[issue7723] sqlite only accept buffer() for BLOB objects (input/output)

2010-01-19 Thread Gerhard Häring
Gerhard Häring added the comment: As far as I can see the docs for Python 3.x need to be adjusted. In particular http://docs.python.org/3.1/library/sqlite3.html#sqlite-and-python-types buffer should then there probably be replaced by memoryview. As far as I can see, the Python 3 definition of

[issue4194] default subprocess.Popen buffer size

2010-01-19 Thread Thomas Guettler
Changes by Thomas Guettler : -- nosy: +guettli ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue7739] time.strftime may hung while trying to open /etc/localtime but does not release GIL

2010-01-19 Thread Doron Tal
New submission from Doron Tal : I've encountered a hung of python process for more than a second. It appears that the stall happens due to time.strftime call, which internally opens a file ('/etc/localtime'). I think it is best if the GIL would have been released to allow other threads to cont

[issue7738] IDLE hang when tooltip comes up in Linux

2010-01-19 Thread Kent Yip
New submission from Kent Yip : IDLE will hang when a tooltip shows in a Linux system (Ubuntu). do this: t = (1,2,3) len(t) it will hang after the closing ')', when you press return nothing will happen or when you press any keys, it won't show up. However, you can work around this hangup by

[issue7472] email.encoders.encode_7or8bit(): typo "iso-2202". "iso-2022" is correct.

2010-01-19 Thread Yukihiro Nakadaira
Yukihiro Nakadaira added the comment: > In other words, I think the correct thing to do is to delete that if test. I think so too. > Do you have a case where the code produces incorrect behavior that your patch > turns into correct behavior? No, I don't. I just found a typo. The code for "