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

2010-01-19 Thread Yukihiro Nakadaira
Yukihiro Nakadaira yukihiro.nakada...@gmail.com 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

[issue7738] IDLE hang when tooltip comes up in Linux

2010-01-19 Thread Kent Yip
New submission from Kent Yip yes...@gmail.com: 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

[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 doron.tal.l...@gmail.com: 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

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

2010-01-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2010-01-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[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 krist...@ccpgames.com: The code.InteractiveConsole() is useful to emulate a python console. However, any code currently pushed to it must be single statements. This is because it passes the ´single´ symbol mode to the underlying compile function.

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

2010-01-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Note, there are no regression tests for the code module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7741 ___

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

2010-01-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com 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 -- ___

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

2010-01-19 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: Removed file: http://bugs.python.org/file15907/temp_cwd_decorator.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7712 ___

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

2010-01-19 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr 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 rep...@bugs.python.org

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

2010-01-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: with_writable_cwd should probably use functools.wraps. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7712 ___

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

2010-01-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

[issue4194] default subprocess.Popen buffer size

2010-01-19 Thread Skip Montanaro
Skip Montanaro s...@pobox.com 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+

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

2010-01-19 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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

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

2010-01-19 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___ ___

[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 amaur...@gmail.com 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 rep...@bugs.python.org

[issue5684] test_zipfile writes in its test directory

2010-01-19 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr 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 rep...@bugs.python.org

[issue5684] test_zipfile writes in its test directory

2010-01-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti keywords: +needs review priority: low - normal stage: needs patch - patch review versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[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 mar...@v.loewis.de 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 rep...@bugs.python.org

[issue7736] ctypes freezes/deadlocks process

2010-01-19 Thread Marcin Bachry
Marcin Bachry hegel...@gmail.com 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

[issue7736] ctypes freezes/deadlocks process

2010-01-19 Thread Nikolaus Rath
Nikolaus Rath nikol...@rath.org 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

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

2010-01-19 Thread Nikolaus Rath
Changes by Nikolaus Rath nikol...@rath.org: -- title: ctypes freezes/deadlocks process - os.listdir hangs since opendir() and closedir() do not release GIL ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7736

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

2010-01-19 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- keywords: +needs review nosy: +brian.curtin priority: - normal stage: - patch review versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7736

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

2010-01-19 Thread Doron Tal
Doron Tal doron.tal.l...@gmail.com 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

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

2010-01-19 Thread Michael Haubenwallner
New submission from Michael Haubenwallner michael.haubenwall...@salomon.at: 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

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

2010-01-19 Thread Michael Haubenwallner
Michael Haubenwallner michael.haubenwall...@salomon.at 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 rep...@bugs.python.org

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

2010-01-19 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr 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.

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

2010-01-19 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- components: +None keywords: +needs review priority: - normal stage: - patch review type: - behavior versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7742