Lang added the comment:
# code reproduce bug
# KeyError in lib\multiprocessing\managers.py in incref
import multiprocessing as mp
from time import sleep
def func(queue):
pass
if __name__ == '__main__':
manager = mp.Manager()
pool = mp.Pool(1)
queue = manager.Que
Bernard Lang added the comment:
Thank you, David.
BTW, I sent a message on april 20 to d...@python.org about a bug in
the documentation regarding os.readlink(path)
on page http://docs.python.org/2/library/os.html
and proposing an alternative text.
I got no reply.
This was not long ago
Bernard Lang added the comment:
Reply to R.David.Murray
> See also issue 6095.
You are right. I goofed, this is the issue I meant to point to.
> $ ls ''
> ls: cannot access : No such file or directory
> So, the behavior is consistent with the shell.
This is a fair remar
New submission from Bernard Lang:
The empty path '' is considered as an acceptable path in os.path.join, and
works as a neutral prefix:
print os.path.join('','aaa') ===> aaa
which seems rather natural.
But it raises an exception when used as a parameter to
New submission from Lang Martin :
on line 765 of client/http.py, the client loops over the read method, sending
it's content to the web server. It appears as though the send method should
return at this point; instead it falls through and attempts to send the data
object through
New submission from Jared Lang :
Recursion within a thread on OSX can result in a crash by exceeding the systems
recursion limit. Recursion behaves as expected if not in thread, meaning it
throws a RunTimeError with the message "maximum recursion depth exceeded."
The crash is
New submission from Olemis Lang :
Often I have the contents to be written in a file at a given path that
I know as well. I recently tried to find a function in stdlib to do
that and to my surprise this is what I found :
- Such function exists
- It's `distutils.file_util.write_file`
IM
Olemis Lang added the comment:
> Quoting Antoine Pitrou ...
> I suppose 172.18.2.7:3128 is the address:port of the your proxy,
right?
Yes ...
> In which case, urllib seems to do the right thing. When talking to an
HTTP proxy, requests are of the form "GET http://site.com/path&
Olemis Lang added the comment:
Actually I am using a proxy hosted in some other machine (i.e. not my
PC ... sorry, I didnt mention :S ...) I «debugged» urllib and, when
branching at this point (see below ;) in URLopener.open_http :
{{{
#!python
# urllib,py
def open_http(self, url, data
Olemis Lang added the comment:
Ooops ... sorry, remove the print statement. The patch is as follows :
{{{
#!diff
--- /usr/lib/python2.5/urllib.py2008-07-31 13:40:40.0
-0500
+++ /media/urllib_unix.py 2009-01-26 09:48:54.0 -0500
@@ -270,6 +270,7 @@
def
New submission from Olemis Lang :
Hello ...
The first thing I have to say is that I searched the open issues and I
found nothing similar to what I am going to report hereinafter. If this
ticket is duplicate , I apologize ...
Yesterday I was testing how to access the wiki pages in a
Trac [1
New submission from Michael Lang <[EMAIL PROTECTED]>:
Hi,
i am trying to solve some problems we encounter, when locking files on a
NFS Storage using fcntl.
since this is a security related problem i just add some pseudo code
here that was used to create the problem
fh = os.open(
12 matches
Mail list logo