[issue31092] multiprocessing.Manager() race condition

2017-09-22 Thread Lang
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

[issue17545] os.listdir and os.path.join inconsistent on empty path

2013-04-25 Thread Bernard Lang
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

[issue17545] os.listdir and os.path.join inconsistent on empty path

2013-03-26 Thread Bernard Lang
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

[issue17545] os.listdir and os.path.join inconsistent on empty path

2013-03-25 Thread Bernard Lang
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

[issue12860] http client attempts to send a readable object twice

2011-08-30 Thread Lang Martin
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

[issue9670] Exceed Recursion Limit in Thread

2010-08-24 Thread Jared Lang
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

[issue8604] Alias for distutils.file_util.write_file in e.g. shutils

2010-05-03 Thread Olemis Lang
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

[issue5072] urllib.open sends full URL after GET command instead of local path

2009-01-27 Thread Olemis Lang
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&

[issue5072] urllib.open sends full URL after GET command instead of local path

2009-01-27 Thread Olemis Lang
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

[issue5072] urllib.open sends full URL after GET command instead of local path

2009-01-26 Thread Olemis Lang
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

[issue5072] urllib.open sends full URL after GET command instead of local path

2009-01-26 Thread Olemis Lang
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

[issue2853] *** glibc detected *** python: double free or corruption

2008-05-14 Thread Michael Lang
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(&#x