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
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
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
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
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
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.
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
___
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
--
___
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
___
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
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
___
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
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+
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
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1578269
___
___
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
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
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
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
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
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
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
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
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
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
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
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.
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
28 matches
Mail list logo