[issue2601] [regression] reading from a urllib2 file descriptor happens byte-at-a-time

2008-04-15 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: me and amk are talking about the commit that introduced this bug (which was meant as a fix for another bug). neal seems to think that this commit is the fix to this bug itself. and gregory, you are now confused :) hope it'

[issue2122] mmap.flush does not check for errors on windows

2008-04-16 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: now this insanity is even documented with svn revision 62359 (http://hgpy.de/py/trunk/rev/442252bce780) __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2576] httplib read() very slow due to lack of socket buffer

2008-04-16 Thread Ralf Schmitt
Changes by Ralf Schmitt <[EMAIL PROTECTED]>: -- nosy: +schmir __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2576> __ ___ Python-bugs-list mailing

[issue2122] mmap.flush does not check for errors on windows

2008-04-16 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: I thought about this too, but I don't know of a way to provoke an error. (Other than passing in illegal values, but the code tries to catch those. And btw, raises an Exception on windows :) One could currently pass in a negative val

[issue2643] mmap_object_dealloc does not call FlushViewOfFile on windows

2008-04-16 Thread Ralf Schmitt
New submission from Ralf Schmitt <[EMAIL PROTECTED]>: on unix it does call msync however. here is the relevant part from mmapmodule.c: static void mmap_object_dealloc(mmap_object *m_obj) { #ifdef MS_WINDOWS if (m_obj->data != NULL) UnmapViewOfFile (m_

[issue2644] errors from msync ignored in mmap_object_dealloc

2008-04-16 Thread Ralf Schmitt
New submission from Ralf Schmitt <[EMAIL PROTECTED]>: mmapmodule.c's mmap_object_dealloc calls msync without checking for an error. -- messages: 65553 nosy: schmir severity: normal status: open title: errors from msync ignored in mmap_object_dealloc type: behavior versions:

[issue2643] mmap_object_dealloc does not call FlushViewOfFile on windows

2008-04-16 Thread Ralf Schmitt
Changes by Ralf Schmitt <[EMAIL PROTECTED]>: -- type: -> behavior versions: +Python 2.6 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2643> __ ___

[issue2643] mmap_object_dealloc does not call FlushViewOfFile on windows

2008-04-16 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: The close method does not call msync or FlushViewOfFile. I find this a bit strange cause explicitly closing the mmap will not flush changes but relying on the garbage collector will flush changes. __ T

[issue2632] performance problem in socket._fileobject.read

2008-04-18 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: However it should be fixed in release25-maint. Can anyone install curt's patch? It does what the original fix intended to do. __ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2014] xmlrpclib cannot send datetime objects with dates before 1900

2008-04-18 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: guido says it's ok to fix the issue in xmlrpclib only: http://mail.python.org/pipermail/python-dev/2008-April/078396.html I'm also attaching a dummy.diff in order to have a patch keyword... If someone is willing to commit thi

[issue2014] xmlrpclib cannot send datetime objects with dates before 1900

2008-04-20 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: Skip, thanks for handling this. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2014> __ ___ Python-bugs

[issue2623] Patch: xmlrpclib client ignores datetime tzinfo when creating iso8601 dates

2008-04-20 Thread Ralf Schmitt
Changes by Ralf Schmitt <[EMAIL PROTECTED]>: -- nosy: +schmir __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2623> __ ___ Python-bugs-list mailing

[issue2632] performance problem in socket._fileobject.read

2008-04-21 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: (I think the twisted issue your talking about is: http://twistedmatrix.com/trac/ticket/1079) Your patch still contains this code: recv_size = min(rbufsize, left) data = self._sock.recv(recv_size) T

[issue1767370] Make xmlrpc use HTTP/1.1 and keepalive

2008-04-23 Thread Ralf Schmitt
Changes by Ralf Schmitt <[EMAIL PROTECTED]>: -- nosy: +schmir _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1767370> _ ___ Python-bugs

[issue2703] SimpleXMLRPCDispatcher.__init__ is not python2.4-backward-compatible

2008-04-28 Thread Ralf Schmitt
Changes by Ralf Schmitt <[EMAIL PROTECTED]>: -- nosy: +schmir __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2703> __ ___ Python-bugs-list mailin

[issue2632] performance problem in socket._fileobject.read

2008-05-05 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: I have a case which triggers the assert in readline: File "build/bdist.linux-x86_64/egg/setuptools/command/develop.py", line 27, in run File "build/bdist.linux-x86_64/egg/setuptools/command/develop.py", line 102,

[issue2632] performance problem in socket._fileobject.read

2008-05-06 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: the above easy_install now works for me. thanks. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2632> __ _

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Ralf Schmitt
New submission from Ralf Schmitt <[EMAIL PROTECTED]>: sys.flags is missing bytes_warning: Python 2.6a2+ (trunk, May 8 2008, 12:09:50) [GCC 4.2.3 (Debian 4.2.3-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. &

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: brett, I added you to the nosy list, as you seem to have committed this in r62303 (http://hgpy.de/py/trunk/rev/ac1ae32a476c) -- nosy: +brett.cannon __ Tracker <[EMAIL PROTECTED]> <http://

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: sure, I even removed the whole source tree: ~/pydev/trunk/ ./python [EMAIL PROTECTED] ok Python 2.6a3+ (trunk, May 8 2008, 21:52:39) [GCC 4.2.3 (Debian 4.2.3-3)] on linux2 Type "help&q

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: why not use sizeof? you'll probably run into this again.. __ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: btw, I guess that sentinel entry in that array could also be removed? __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: ok brett, I see in IRC you're doing lot's of commits currently. sorry for bothering you. I'll maybe try myself, it's a minor issue anyway... __ Tracker <[EMAIL PROTECTED]> &

[issue2789] Comparsion datetime objects with None

2008-05-09 Thread Ralf Schmitt
Changes by Ralf Schmitt <[EMAIL PROTECTED]>: -- nosy: +schmir __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2789> __ ___ Python-bugs-list mailin

[issue4122] undefined reference to _Py_ascii_whitespace

2008-10-14 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: I hope someone else can test this, as I don't feel like setting up a windows build environment... ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue4122] undefined reference to _Py_ascii_whitespace

2008-10-14 Thread Ralf Schmitt
New submission from Ralf Schmitt <[EMAIL PROTECTED]>: unicodeobject.h contains the following code: extern const unsigned char _Py_ascii_whitespace[]; #define Py_UNICODE_ISSPACE(ch) \ ((ch) < 128U ? _Py_ascii_whitespace[(ch)] : _PyUnicode_IsWhitespace(ch)) When linking a mod

[issue4434] Embedding into a shared library fails

2008-11-26 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: ubuntu comes with a static libpython.a which you can also link against. Linking the c modules against the shared python library would make that static library pretty much useless... -- nosy: +

[issue4434] Embedding into a shared library fails

2008-11-27 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: Yes, there is no purpose in linking with a static library when the dynamically loaded modules still depend on the shared library. And yes, the dynamically loaded libraries should declare their dependencies. My point is they do *not* dep

[issue4434] Embedding into a shared library fails

2008-11-27 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: Linking with the static library really works. You have to link with '-Xlinker -export-dynamic' however on linux in order to make the symbols from the static library visible. (just in case if I ha

[issue4434] Embedding into a shared library fails

2008-11-28 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: no john, linking with the static library really works. the resulting executable does not depend on the shared library and it is possible to import the e.g. the time module. ___ Python tracker &

[issue13719] bdist_msi upload fails

2012-02-01 Thread Ralf Schmitt
Ralf Schmitt added the comment: It's a bug in bdist_msi not in the upload command. You can check that distribution.dist_files point to valid files after running the command. -- ___ Python tracker <http://bugs.python.org/is

[issue4709] Mingw-w64 and python on windows x64

2012-02-06 Thread Ralf Schmitt
Ralf Schmitt added the comment: Marting, this issue is about building python extensions with mingw-w64 not about building python itself. -- ___ Python tracker <http://bugs.python.org/issue4

[issue4709] Mingw-w64 and python on windows x64

2012-02-06 Thread Ralf Schmitt
Ralf Schmitt added the comment: There's no need to discuss or even run configure scripts. Martin, please reread the OPs original message. It's easy enough to reason about the issue instead of trying to reproduce it. -- ___ Python trac

[issue13965] Windows 64-bit installer actually installing a 32-bit version

2012-02-08 Thread Ralf Schmitt
Ralf Schmitt added the comment: struct.calcsize("P")==8 will tell you if you're running a 64bit python or not. -- nosy: +schmir ___ Python tracker <http://bugs.pyt

[issue13965] Windows 64-bit installer actually installing a 32-bit version

2012-02-08 Thread Ralf Schmitt
Ralf Schmitt added the comment: according to the documentation platform.architecture() may not work on OS X. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13719] bdist_msi upload fails

2012-02-08 Thread Ralf Schmitt
Ralf Schmitt added the comment: there's a workaround in http://pypi.python.org/pypi/xdistutils#the-bdist-msi-fixed-command -- ___ Python tracker <http://bugs.python.org/is

[issue14001] Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request

2012-02-13 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue14001> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2012-02-13 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue6085> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14040] Deprecate some of the module file formats

2012-02-17 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue14040> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13719] bdist_msi upload fails

2012-03-04 Thread Ralf Schmitt
Ralf Schmitt added the comment: sorry, I'm currently short on time and don't use windows at the moment. bdist_msi runs without user interaction. just let the buildbots test it. -- ___ Python tracker <http://bugs.python.o

[issue18071] _osx_support compiler_fixup

2013-07-28 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue18071> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18580] distutils compilers are unicode strings on OS X since Python 2.7.4

2013-07-28 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue18580> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14406] Race condition in concurrent.futures

2012-08-20 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue14406> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14406] Race condition in concurrent.futures

2012-08-20 Thread Ralf Schmitt
Ralf Schmitt added the comment: I think having a lock here is unnecessary. The following code should work: def _decrement_pending_calls(self): if self.num_pending_calls == len(self.finished_futures): self.event.set() (well, maybe the method should also be renamed then

[issue15758] 500x speed up for Popen.communicate() on Windows

2012-08-22 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue15758> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15723] Python breaks OS' append guarantee on file writes

2012-08-24 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue15723> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-18 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue15896> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16043] xmlrpc: gzip_decode has unlimited read()

2012-09-25 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue16043> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: Sorry, if I haven't been clear enough. This happens on windows when compiling extensions with "g++ -std=gnu++0x ..." -- status: pending -> open ___ Python tracker <http://bugs.

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-10-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: they are noticeable! If the sock.connect fails with the IPv4 address, it will then try to connect to an IPv6 address (which fails with an TypeError then). The original error is hidden! -- ___ Python tracker <h

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: yes, mingw. it may have some problems and this is one of them! -- ___ Python tracker <http://bugs.python.org/issue11566> ___ ___

[issue16202] sys.path[0] security issues

2012-10-11 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue16202> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-10-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: The fact is I have disabled IPv6 with python's --disable-ipv6 switch. If you think that this switch shouldn't be supported anymore, either remove it or document it as obsolete. Telling me to disable IPv6 in my system configuration is just arrogant.

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-10-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: Why do you think I'm disabling IPv6 because I have a "system level problem"? I am not recompiling python to workaround system level problems. And I don't recompile any other program. The problem is in python, it can be fixed with a one

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-10-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: The OPs description is pretty clear. There's no good reason to ask for IPv6 addresses if IPv6 is disabled. The create_connection will try them all, and if connections to IPv4 addresses fail, you'll end up with a

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-10-12 Thread Ralf Schmitt
Ralf Schmitt added the comment: It's not quite true what I wrote. Actually you get a "error: getsockaddrarg: bad family" error. But regardless of the error, there just is no need to ask for IPv6 addresses! -- ___ Python

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-10-12 Thread Ralf Schmitt
Ralf Schmitt added the comment: The switch disables support for IPv6 sockets, and since IPv6 support is disabled, there is no need to try to lookup IPv6 addresses in create_connection. They just cannot be used afterwards. I didn't request that the switch disables any code that somehow

[issue16208] getaddrinfo returns wrong results if IPv6 is disabled

2012-10-12 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: schmir priority: normal severity: normal status: open title: getaddrinfo returns wrong results if IPv6 is disabled ___ Python tracker <http://bugs.python.org/issue16

[issue16208] getaddrinfo returns wrong results if IPv6 is disabled

2012-10-12 Thread Ralf Schmitt
New submission from Ralf Schmitt: I'm running the following code on python 2.7.3 on a 64 bit linux. import socket print "has_ipv6", socket.has_ipv6 res = socket.getaddrinfo("python.org", 80, socket.AF_INET6, socket.SOCK_STREAM) print "python.org is", res Wit

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-10-12 Thread Ralf Schmitt
Ralf Schmitt added the comment: btw lookups do not work if python is configured with --disable-ipv6, see http://bugs.python.org/issue16208 -- ___ Python tracker <http://bugs.python.org/issue7

[issue16208] getaddrinfo returns wrong results if IPv6 is disabled

2012-10-12 Thread Ralf Schmitt
Ralf Schmitt added the comment: Thanks for looking at this. loewis told me in http://bugs.python.org/issue7735#msg172726 the following: """The switch --disable-ipv6 is supported and works as intended. It is not the intention of the switch to disable lookups. Instead, it d

[issue16284] concurrent.futures ThreadPoolExecutor keeps unnecessary references to worker functions.

2012-10-19 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue16284> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2012-11-14 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue16472> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16689] stdout stderr redirection mess

2012-12-30 Thread Ralf Schmitt
Ralf Schmitt added the comment: flushing stdout may help before writing to stderr (or at least when writing a traceback). see http://utcc.utoronto.ca/~cks/space/blog/programming/HowToWriteToStderr for a discussion. I don't think it's unreasonable to implement that in p

[issue7735] socket.create_connection() creates IPv6 DNS requests even when built with --disable-ipv6

2012-12-31 Thread Ralf Schmitt
Ralf Schmitt added the comment: Daniel is pretty much spot on, thanks for that! Regarding the use case: I disabled IPv6 system wide when building packages via gentoo's USE flag. I didn't do anything in order to configure IPv6 or remove it. My local network interface having a local li

[issue16208] getaddrinfo returns wrong results if IPv6 is disabled

2013-01-01 Thread Ralf Schmitt
Ralf Schmitt added the comment: socket getaddrinfo returns garbage: >>> socket.getaddrinfo("python.org", 80) [(2, 1, 6, '', ('82.94.164.162', 80)), (2, 2, 17, '', ('82.94.164.162', 80)), (2, 3, 0, '', ('82.94.164.162&#

[issue16836] configure script disables support for IPv6 on a system where IPv6 is disabled

2013-01-01 Thread Ralf Schmitt
New submission from Ralf Schmitt: The configure script uses a runtime check to determine if IPv6 is working. If IPv6 is disabled system-wide via a kernel option on linux, the resulting python interpreter is compiled as if "--disable-ipv6" had been passed to the configure script. T

[issue16208] getaddrinfo returns wrong results if IPv6 is disabled

2013-01-01 Thread Ralf Schmitt
Ralf Schmitt added the comment: Given the fact that the bytes object is rather surprising and probaby useless for the caller I wouldn't call this a "correct result". (sorry, I lost too much time on this issue, I had to put anoth

[issue16208] getaddrinfo returns wrong results if IPv6 is disabled

2013-01-01 Thread Ralf Schmitt
Ralf Schmitt added the comment: The TypeError error happened when using gevent. I've already written in that other issue that this information was wrong and I get a "bad family" error. Sorry, about that. But this also demonstrates my point here. The Type error was raised exact

[issue13719] bdist_msi upload fails

2013-01-01 Thread Ralf Schmitt
Ralf Schmitt added the comment: AFAIK pypi.python.org disallows uploads of .msi files. That means I've lost interest in this issue. Feel free to close it. -- ___ Python tracker <http://bugs.python.org/is

[issue16836] configure script disables support for IPv6 on a system where IPv6 is disabled

2013-01-03 Thread Ralf Schmitt
Ralf Schmitt added the comment: > Would you want to provide a patch for this? No, sorry. -- ___ Python tracker <http://bugs.python.org/issue16836> ___ ___ Py

[issue16208] getaddrinfo returns wrong results if IPv6 is disabled

2013-01-24 Thread Ralf Schmitt
Ralf Schmitt added the comment: Marc, I think you'll have to bring this up on the mailing list if you want to have anything changed. The developers on the nosy list have already closed this as "wont fix". They don't care anymore. -- __

[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-02-01 Thread Ralf Schmitt
Ralf Schmitt added the comment: does anyone know if the same issue has been fixed in the tarfile module? -- ___ Python tracker <http://bugs.python.org/issue6

[issue17102] tarfile extract can write files outside the destination path

2013-02-01 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue17102> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6972] zipfile.ZipFile

2009-09-22 Thread Ralf Schmitt
New submission from Ralf Schmitt : ZipFile.extractall happily overwrites any file on the filesystem. One can put files with a name like "//etc/password" in a zip file and extractall will overwrite /etc/password (with sufficient rights). The docs say: ZipFile.extractall([path[, mem

[issue6972] zipfile.ZipFile overwrites files outside destination path

2009-09-22 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- title: zipfile.ZipFile -> zipfile.ZipFile overwrites files outside destination path ___ Python tracker <http://bugs.python.org/iss

[issue4833] Explicit directories for zipfiles

2009-09-23 Thread Ralf Schmitt
Ralf Schmitt added the comment: it looks like this is fixed in 2.6.2. I'm attaching a zipfile which cannot be extracted in 2.6.1 Running python -c 'import zipfile; zipfile.ZipFile("test.zip").extractall()' in 2.6.2 however works. but you should not do that any

[issue6972] zipfile.ZipFile overwrites files outside destination path

2009-09-29 Thread Ralf Schmitt
Ralf Schmitt added the comment: I think this should clearly be fixed in the code. The current code tries to handle absolute paths by removing the first slash (unfortunately not the second), so it looks like it tries to be safe and only write to the destination directory. That should be the

[issue6972] zipfile.ZipFile overwrites files outside destination path

2009-09-29 Thread Ralf Schmitt
Ralf Schmitt added the comment: The documentation should also mention that it's unsafe to use this method in python <= 2.6.2. 2.6.2 is also unsafe. -- ___ Python tracker <http://bugs.python.or

[issue6972] zipfile.ZipFile overwrites files outside destination path

2009-09-30 Thread Ralf Schmitt
Ralf Schmitt added the comment: Adding a warning to the documentation is wrong. The intention of the code clearly is to only create files in the destination directory (or why remove the first slash then?) and that is also the impression I get from reading the documentation

[issue6972] zipfile.ZipFile overwrites files outside destination path

2009-10-01 Thread Ralf Schmitt
Ralf Schmitt added the comment: I'd rather have an extractall version which just throws a RuntimeError than one which overwrites any file with any content on my filesystem if I'm trying to unzip a zip file. Then I at least know that I have to write my own version. Adding a warn

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-06 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue7064> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7138] elementtree segfaults on invalid xml declaration

2009-10-15 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue7138> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2644] errors from msync ignored in mmap_object_dealloc

2010-01-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: No, I don't know how to provoke such an error other than passing illegal parameters..(or munmap'ing the mmap'ed area). -- ___ Python tracker <http://bugs.py

[issue2375] PYTHON3PATH environment variable to supersede PYTHONPATH for multi-Python environments

2010-01-13 Thread Ralf Schmitt
Ralf Schmitt added the comment: > Marc-Andre Lemburg added the comment: > > > You can easily have python3 implemented as shell script setting up > PYTHONPATH to whatever your particular Python installation uses. yes, and you need to write a python shell script, which resets t

[issue8254] write a configure command

2010-05-26 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue8254> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17639] symlinking .py files creates unexpected sys.path[0]

2013-04-05 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue17639> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1208304] urllib2's urlopen() method causes a memory leak

2013-04-10 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue1208304> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1208304] urllib2's urlopen() method causes a memory leak

2013-04-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: I'd consider reference cycles a bug especially if they prevent filedescriptors from being closed. please read the comments. -- ___ Python tracker <http://bugs.python.org/issu

[issue18015] python 2.7.5 fails to unpickle namedtuple pickled by 2.7.3 or 2.7.4

2013-05-21 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker <http://bugs.python.org/issue18015> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4709] Mingw-w64 and python on windows x64

2015-05-18 Thread Ralf Schmitt
Ralf Schmitt added the comment: Well, the time to fix this would have been six years ago. The python core developers have shown a disinterest to fix problems with gcc on windows for a rather long time. I wouldn't expect this issue to be

[issue4709] Mingw-w64 and python on windows x64

2015-05-18 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: -schmir ___ Python tracker <http://bugs.python.org/issue4709> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    1   2   3