[issue10812] Add some posix functions

2011-01-07 Thread Ross Lagerwall
Ross Lagerwall added the comment: Thanks for the comments. I implemented sethostid() - its not actually in the posix spec, but linux/*bsd have it although the signature for FreeBSD is a bit different. I implemented gethostname(). Both get/sethostname() now use FSDefault encoding. gethostname

[issue10812] Add some posix functions

2011-01-07 Thread Ross Lagerwall
Ross Lagerwall added the comment: This patch takes out sethostname() and gethostname(). I'll open up a new issue to add sethostname() to the socket module. -- Added file: http://bugs.python.org/file20311/10812_v5.patch ___ Python tracker

[issue10866] Add sethostname()

2011-01-08 Thread Ross Lagerwall
New submission from Ross Lagerwall : This patch adds sethostname to the socket module (since socket has gethostname()). -- components: Library (Lib) files: sethostname.patch keywords: patch messages: 125761 nosy: giampaolo.rodola, loewis, rosslagerwall priority: normal severity: normal

[issue10822] test_getgroups failure under Solaris

2011-01-10 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue10822> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10882] Add os.sendfile()

2011-01-10 Thread Ross Lagerwall
New submission from Ross Lagerwall : Attached is a patch which implements os.sendfile for unix systems (linux, freebsd, apple, solaris, dragonfly). It takes the iov initialization code and off_t parsing from i10812. It encapsulates all the functionality from the various sendfiles which means

[issue10882] Add os.sendfile()

2011-01-10 Thread Ross Lagerwall
Ross Lagerwall added the comment: Ok, I figured it out to link with sendfile on solaris. Here is the updated patch. -- Added file: http://bugs.python.org/file20352/sendfile_v2.patch ___ Python tracker <http://bugs.python.org/issue10

[issue10822] test_getgroups failure under Solaris

2011-01-10 Thread Ross Lagerwall
Ross Lagerwall added the comment: It seems to work fine on OpenIndiana (running normally or as root). According to the posix specification, "It is implementation-defined whether getgroups() also returns the effective group ID in the grouplist array." But, id -G prints all group ID

[issue4112] Subprocess: Popen'ed children hang due to open pipes

2011-01-11 Thread Ross Lagerwall
Ross Lagerwall added the comment: This issue has been fixed on 3.2. -- nosy: +rosslagerwall versions: -Python 3.2 ___ Python tracker <http://bugs.python.org/issue4

[issue10885] multiprocessing docs

2011-01-11 Thread Ross Lagerwall
New submission from Ross Lagerwall : I think there is a small docs bug: it says that multiprocessing.Semaphore is "a bounded semaphore". Shouldn't it says that it is just "a semaphore". Attached is a patch to fix this. -- components: Library (Lib) files:

[issue10882] Add os.sendfile()

2011-01-11 Thread Ross Lagerwall
Ross Lagerwall added the comment: Just to be clear: There are 3 different interfaces. The basic one with the offset included & no headers/trailers is supported by all the platforms, including Linux. The one with offset as None is only supported by Linux. The one with headers/trailers/flag

[issue10882] Add os.sendfile()

2011-01-11 Thread Ross Lagerwall
Ross Lagerwall added the comment: I've just tried it against r87935 and it applies cleanly. Perhaps you didn't apply the patch correctly (it requires "-p1" since it was a Mercurial diff), try: patch -p1 < sendfile_v2.patch With regards to the different arguments,

[issue10885] multiprocessing docs

2011-01-11 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- assignee: -> d...@python components: +Documentation nosy: +d...@python ___ Python tracker <http://bugs.python.org/issu

[issue10882] Add os.sendfile()

2011-01-11 Thread Ross Lagerwall
Ross Lagerwall added the comment: Oh sorry, that was because it changed configure.in so "autoreconf" needs to be run to regenerate configure & pyconfig.h.in. I thought that patches weren't meant to include the regenerated files. Especially since differences in the versio

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-01-13 Thread Ross Lagerwall
Ross Lagerwall added the comment: How about this? Instead of just losing the data that's been read so far in readline(), this patch adds the data as a new field to the exception that is thrown - this way the semantics remain exactly the same but the data is not discarded when a ti

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-01-13 Thread Ross Lagerwall
Ross Lagerwall added the comment: > That complicates things quite a bit, > especially given that it has to be grafted on at least two layers of the > IO stack (the raw IO layer, and the buffered IO layer). Also the TextIO layer I think. > That's my opinion too. So, instead, o

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-01-13 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached patch disallows further reads after a timeout. -- Added file: http://bugs.python.org/file20398/i7322.patch ___ Python tracker <http://bugs.python.org/issue7

[issue1535504] CGIHTTPServer doesn't handle path names with embeded space

2011-01-14 Thread Ross Lagerwall
Ross Lagerwall added the comment: Shouldn't this be closed? CGIHTTPServer *has* been updated to use subprocess on windows and the dependency has been closed as wont fix. -- nosy: +rosslagerwall ___ Python tracker <http://bugs.py

[issue1227748] subprocess: inheritance of std descriptors inconsistent

2011-01-14 Thread Ross Lagerwall
Ross Lagerwall added the comment: I think all that is needed is a documentation patch. Attached is a doc patch which changes the doc to explicitly describe what happens on unix & windows (as described by Peter). -- components: +Documentation keywords: +patch nosy: +rosslager

[issue9532] pipe.read hang, when calling commands.getstatusoutput in multi-threading code of python 2.4

2011-01-15 Thread Ross Lagerwall
Ross Lagerwall added the comment: After trying to reproduce this bug in 2.7.1 & 3.2b2 and failing, I think this should be closed (even the OP couldn't reproduce it in anything other than 2.4). -- nosy: +rosslagerwall ___ Python track

[issue10916] mmap segfault

2011-01-15 Thread Ross Lagerwall
New submission from Ross Lagerwall : If a mmap length 0 is used and an offset is used as well, the size to mmap() is calculated as the size of the file instead of the size of the file minus offset. This means that trying to access a certain part does not result in an index error but a

[issue2644] errors from msync ignored in mmap_object_dealloc

2011-01-17 Thread Ross Lagerwall
Ross Lagerwall added the comment: I think this can be closed. msync() is only called in mmap.flush() and it is checked for an error. -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue2

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-01-17 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached is a fix to make offset use off_t. This means that mmap will work with offset > 2GB on 32bit systems. It also fixes that mmap.size() returns the correct value for files > 2GB on 32bit systems. The first issue of msg78055 was fixed in issu

[issue10451] memoryview can be used to write into readonly buffer

2011-01-18 Thread Ross Lagerwall
Ross Lagerwall added the comment: >From what I can see, this issue is in memoryview and allows memoryview to >export a readonly buffer as writable (because memoryview.getbuffer() removes >the writable flag from flags before calling the underlying buffer). This causes segfaults w

[issue10451] memoryview can be used to write into readonly buffer

2011-01-18 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached is an updated patch with a simpler test. -- Added file: http://bugs.python.org/file20440/i10451_v2.patch ___ Python tracker <http://bugs.python.org/issue10

[issue10451] memoryview can be used to write into readonly buffer

2011-01-18 Thread Ross Lagerwall
Ross Lagerwall added the comment: And a simple fix for the test_getargs2 test - it wraps the memoryview around a bytearray. -- Added file: http://bugs.python.org/file20441/testfix.patch ___ Python tracker <http://bugs.python.org/issue10

[issue6059] uuid.uuid4 cause segfault in emesene

2011-01-19 Thread Ross Lagerwall
Ross Lagerwall added the comment: I tried to reproduce the bug on 2.7 & 3.2 using libuuid version 2.17.2 and up to 100 threads but couldn't. Perhaps there was an issue with the uuid library function that he was using and threading? -- nosy: +ross

[issue4761] create Python wrappers for openat() and others

2011-01-20 Thread Ross Lagerwall
Ross Lagerwall added the comment: Fixed small #ifdef error with fstatat. -- Added file: http://bugs.python.org/file20460/i4761_v6.patch ___ Python tracker <http://bugs.python.org/issue4

[issue10812] Add some posix functions

2011-01-20 Thread Ross Lagerwall
Ross Lagerwall added the comment: A few small fixes for OS X: It has no return value for sethostid() and sets different errno if permission denied, waitid() is broken - so its disabled, the timeval struct used in futimes and lutimes is defined slightly differently. -- Added file: http

[issue10959] mmap crash

2011-01-20 Thread Ross Lagerwall
New submission from Ross Lagerwall : The fix for issue10916 commited in r88022 introduces this line: map_size = st.st_size - offset; If offset > st.st_size, map_size is negative. This should cause the mmap system call to return -1 and set errno. However, given a certain size of offset, si

[issue4216] subprocess.Popen hangs at communicate() when child exits

2011-01-21 Thread Ross Lagerwall
Ross Lagerwall added the comment: Yes I think subprocess is working correctly. Since this feature request is 2 years old now without any interest, I think it should be closed. If the functionality is needed, it can always be programmed by the user when needed. -- nosy

[issue5885] uuid.uuid1() is too slow

2011-01-22 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached is a patch based on the original patch, meant to have better performance. On my PC, this: import sys, time, uuid def uu(n): t = time.time() for x in range(n): uuid.uuid1() print('%.3f microseconds' % ((time.

[issue10882] Add os.sendfile()

2011-01-28 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached is a new sendfile patch which fixes the issue with FreeBSD (and Mac OS X & DragonFly BSD from what I can see). With regards to anacrolix's request, I think what Martin said in msg126049. i.e. if we want to provide a unifying layer on top of

[issue10882] Add os.sendfile()

2011-01-28 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached is an updated patch that uses keyword arguments. Using an offset with Linux was always supported although I have cleaned up the documentation a bit to make that clearer. E.g. the following script sends part of a file over a socket (shows using an

[issue10882] Add os.sendfile()

2011-01-28 Thread Ross Lagerwall
Ross Lagerwall added the comment: OK, updated documentation and tests. > Why special case these? Why can't Mac OS X and FreeBSD write those manually > into the output file descriptor. These can be a crucial part of certain protocols such as HTTP to ensure that a minimal am

[issue9127] subprocess.Popen.communicate() and SIGCHLD handlers

2011-02-02 Thread Ross Lagerwall
Ross Lagerwall added the comment: This has been fixed in 2.7 and 3.2 so I think that this issue can be closed. -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue9

[issue7678] subprocess.Popen pipeline example code in the documentation is lacking

2011-02-03 Thread Ross Lagerwall
Ross Lagerwall added the comment: The docs should be updated. This has been noted in msg54949 and http://www.enricozini.org/2009/debian/python-pipes/ Perhaps this example will make it clear: import subprocess p1 = subprocess.Popen(["yes"], stdout=subprocess.PIPE) p2 = subprocess.Po

[issue10882] Add os.sendfile()

2011-02-05 Thread Ross Lagerwall
Ross Lagerwall added the comment: For trailers to work, I think the line: self.assertEqual(data, "abcde12345") should be: self.assertEqual(data, b"abcde12345") Also not that tests like this: if not sys.platform.startswith('linux'): perhaps should also in

[issue10882] Add os.sendfile()

2011-02-06 Thread Ross Lagerwall
Ross Lagerwall added the comment: With no changes, I get: == FAIL: test_trailers (test.test_os.TestSendfile) -- Traceback (most recent call last): File "

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-09 Thread Ross Lagerwall
Ross Lagerwall added the comment: OK, this new patch applies cleanly, uses support.unlink and hexadecimal constants. I left the off_t handling as is (it seems to work on *nix testing). Perhaps someone can handle the Windows side? -- Added file: http://bugs.python.org/file20722

[issue10882] Add os.sendfile()

2011-02-09 Thread Ross Lagerwall
Ross Lagerwall added the comment: OK, I'm happy to not return the file offset. However, I still think that headers and trailers should remain as is since this matches the native interface very closely. -- ___ Python tracker

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-09 Thread Ross Lagerwall
Ross Lagerwall added the comment: > will this patch support off_t for "mmap.resize" as well? > ftruncate uses off_t for the length of a file as well. No, it doesn't because resize() resizes the amount mmapped in memory which can't be more than ssize_t anyway. Howeve

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-10 Thread Ross Lagerwall
Ross Lagerwall added the comment: 32-bit computers can address up to 4GiB of memory and 64-bit computers can address much more than this. mmap() allows a file to be mapped to a location in memory - the actual amount of memory that exists doesn't matter. This is the reason why a 5GiB fil

[issue13779] os.walk: bottom-up

2012-01-13 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue13779> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13788] os.closerange optimization

2012-01-14 Thread Ross Lagerwall
Ross Lagerwall added the comment: Thanks for the patch. However, this cannot as far as I understand be used for the subprocess implementation due to the limitation of what can be called after a fork() and before an exec(). Take a look at #8052 for some more discussion of this

[issue8052] subprocess close_fds behavior should only close open fds

2012-01-15 Thread Ross Lagerwall
Ross Lagerwall added the comment: FreeBSD has a /dev/fd as well as a procfs (deprecated AFAIK). However, both may not be mounted so a patch would *need* to at least fallback to the current functionality. -- ___ Python tracker <h

[issue13845] Use GetSystemTimeAsFileTime() to get a resolution of 100 ns on Windows

2012-01-23 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue13845> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13846] Add time.monotonic() function

2012-01-23 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue13846> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13876] Sporadic failure in test_socket

2012-01-26 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue13876> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13893] Make CGIHTTPServer capable of redirects (and status other than 200)

2012-01-27 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue13893> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13817] deadlock in subprocess while running several threads using Popen

2012-01-29 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue13817> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13937] multiprocessing.ThreadPool.join() blocks indefinitely.

2012-02-03 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue13937> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2012-02-04 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue12157> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10482] subprocess and deadlock avoidance

2012-02-05 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue10482> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10487] http.server doesn't process Status header from CGI scripts

2012-02-05 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue10487> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue13964> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13981] time.sleep() should use nanosleep() if available

2012-02-09 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue13981> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

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

[issue14000] Subprocess stdin.flush does not flush

2012-02-13 Thread Ross Lagerwall
Ross Lagerwall added the comment: This appears to be a buffering issue with the tr program. Replace with ["cat", "-"] and it works whether the close() is in or not. To fix this, you need to open up the child process so that it is connected to a tty. man 4 pts if you want

[issue14079] Problems with recent test_subprocess changes

2012-02-21 Thread Ross Lagerwall
Ross Lagerwall added the comment: This was hopefully fixed in e5a94b56d6bc. Was it one of the buildbots that was failing? -- ___ Python tracker <http://bugs.python.org/issue14

[issue14079] Problems with recent test_subprocess changes

2012-02-22 Thread Ross Lagerwall
Ross Lagerwall added the comment: Cool, thanks for reporting and debugging the issue :-) -- ___ Python tracker <http://bugs.python.org/issue14079> ___ ___ Pytho

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue14127> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14229] On KeyboardInterrupt, the exit code should mirror the signal number

2012-03-09 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue14229> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8963] test_urllibnet failure

2012-03-11 Thread Ross Lagerwall
Ross Lagerwall added the comment: I tested the code from msg107484 on Fedora 16 with no change in locale. Probably OK to close? -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue8

[issue14358] test_os failing with errno 61: No Data Available

2012-03-18 Thread Ross Lagerwall
Ross Lagerwall added the comment: Perhaps any errors that occur during supports_extended_attributes should cause it to just return false? -- nosy: +benjamin.peterson, rosslagerwall ___ Python tracker <http://bugs.python.org/issue14

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure"

2012-03-18 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- assignee: -> rosslagerwall nosy: +rosslagerwall resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement ___ Python tracker <http://bugs.py

[issue14359] _posixsubprocess.o compilation error on CentOS 5.8

2012-03-19 Thread Ross Lagerwall
Ross Lagerwall added the comment: Thanks! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue14432] Bug in generator if the generator in created in a C thread

2012-03-28 Thread Ross Lagerwall
Ross Lagerwall added the comment: Here's the patch ;-) -- keywords: +patch nosy: +rosslagerwall Added file: http://bugs.python.org/file25055/generator.patch ___ Python tracker <http://bugs.python.org/is

[issue14443] Distutils test failure

2012-03-29 Thread Ross Lagerwall
New submission from Ross Lagerwall : On an up to date Fedora 16: == CPython 3.3.0a1+ (default:d528b2d2+, Mar 29 2012, 18:04:26) [GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] == Linux-3.3.0-4.fc16.x86_64-x86_64-with-fedora-16-Verne little-endian == /home/ross/src/cpythondev/temp/build

[issue14443] Distutils test failure

2012-03-29 Thread Ross Lagerwall
Ross Lagerwall added the comment: The output of running rpmbuild from bash: """ $ rpmbuild RPM version 4.9.1.2 Copyright (C) 1998-2002 - Red Hat, Inc. This program may be freely redistributed under the terms of the GNU GPL Usage: rpmbuild [-v?] [-bp] [-bc] [-bi] [-bl] [-ba] [

[issue14442] test_smtplib.py lacks "import errno"

2012-03-29 Thread Ross Lagerwall
Ross Lagerwall added the comment: > Thanks Ross. I don't think this is worth a news item, even though the > bug was shipped in an alpha. If someone disagrees please add one. I did add it to the [Tests] section in 9c2b710da3c7. Hardly worth it, but ... -- nosy: +ro

[issue14443] Distutils test failure

2012-03-31 Thread Ross Lagerwall
Ross Lagerwall added the comment: The first bad revision is: changeset: 72818:27a36b05caed branch: 3.2 user:Éric Araujo date:Sat Oct 08 00:34:13 2011 +0200 summary: Fix distutils byte-compilation to comply with

[issue14467] Avoid exotic documentation in the devguide

2012-04-01 Thread Ross Lagerwall
Ross Lagerwall added the comment: I'm happy to remove the bit about *installing* autoconf altogether. Do you think the Autoconf section (about regenerating configure) should stay where it is or be moved somewhere else? -- ___ Python tracker

[issue14527] How to link with an external libffi?

2012-04-07 Thread Ross Lagerwall
Ross Lagerwall added the comment: If it is in a non-standard location, try setting the environment variables: LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory CPPFLAGS(Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard

[issue12081] Remove distributed copy of libffi

2012-04-14 Thread Ross Lagerwall
Ross Lagerwall added the comment: In any case, it should be OK to remove libffi_arm_wince? Is WinCE supported? -- ___ Python tracker <http://bugs.python.org/issue12

[issue14584] Add gzip support to xmlrpc.server

2012-05-15 Thread Ross Lagerwall
Ross Lagerwall added the comment: The server encodes the response if the length of the response exceeds self.encode_threshold, 1400 (presumably there's no point in compression if the data fits in the MTU anyway). -- nosy: +rosslagerwall ___ P

[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count

2012-05-16 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue14626> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14584] Add gzip support to xmlrpc.server

2012-05-16 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/issue14584> ___ ___ Python-bugs-

[issue13031] small speed-up for tarfile.py when unzipping tarballs

2012-05-16 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue13031> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13031] small speed-up for tarfile.py when unzipping tarballs

2012-05-17 Thread Ross Lagerwall
Ross Lagerwall added the comment: Nice work, thanks! -- assignee: lars.gustaebel -> rosslagerwall resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python

[issue12304] expose signalfd(2) in the signal module

2012-05-20 Thread Ross Lagerwall
Ross Lagerwall added the comment: Patch seems good (although it doesn't apply cleanly). Why do you not provide a structure to decode the bytes? I thought relying on ctypes in the stdlib was not advised... -- nosy: +rosslagerwall ___ Python tr

[issue14443] Distutils test_bdist_rpm failure

2012-05-20 Thread Ross Lagerwall
Ross Lagerwall added the comment: The attached patch fixed the test for me on Fedora 16. It was necessary for the `define` to be after the -ba switch. I don't know why this wouldn't work on RHEL6 then... -- keywords: +patch Added file: http://bugs.python.org/file25650/distu

[issue14872] subprocess is not safe from deadlocks

2012-05-21 Thread Ross Lagerwall
Ross Lagerwall added the comment: Well if you're *certain* that the process is only using one stream, then you can just use read/write on that stream. If not, it probably means you have to use either threads or select/poll. This is a known issue with subprocess; there are a few proposa

[issue14872] subprocess is not safe from deadlocks

2012-05-22 Thread Ross Lagerwall
Ross Lagerwall added the comment: See also issue1260171. Closing as a duplicate of that. -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> subprocess: more general (non-buffering) communication type: -&

[issue1260171] subprocess: more general (non-buffering) communication

2012-05-22 Thread Ross Lagerwall
Ross Lagerwall added the comment: Closed issue14872 as a duplicate of this. -- assignee: astrand -> nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue1

[issue1191964] asynchronous Subprocess

2012-05-22 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- assignee: astrand -> ___ Python tracker <http://bugs.python.org/issue1191964> ___ ___ Python-bugs-list mailing list Unsubscri

[issue1191964] asynchronous Subprocess

2012-05-22 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue1191964> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1191964] asynchronous Subprocess

2012-05-23 Thread Ross Lagerwall
Ross Lagerwall added the comment: > Personally, I would factor out the code for Popen.communicate() in to a > > Communicator class which wraps a Popen object and has a method > >communicate(input, timeout=None) -> (bytes_written, output, error) How would this diff

[issue14890] typo in difflib

2012-05-23 Thread Ross Lagerwall
Ross Lagerwall added the comment: Yeah, I'm pretty sure it means if and only if. -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/is

[issue14443] Distutils test_bdist_rpm failure

2012-05-28 Thread Ross Lagerwall
Ross Lagerwall added the comment: Unfortunately, it seems like it's still failing on the RHEL 6 buildbot. -- status: pending -> open ___ Python tracker <http://bugs.python.org

[issue15044] _dbm not building on Fedora 17

2012-06-12 Thread Ross Lagerwall
Ross Lagerwall added the comment: The gdbm provided with Fedora 17 provides /usr/include/ndbm.h. This makes setup.py think that it should try link with -lndbm when it actually requires -lgdbm_compat. A workaround is to specify --with-dbmliborder=gdbm to force gdbm to be used. I'll tr

[issue15044] _dbm not building on Fedora 17

2012-06-12 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached is a patch which fixes the issue on Fedora 17. If this doesn't break other OSes I'll commit it for 2.7, 3.2 and 3.3. -- keywords: +patch versions: +Python 2.7, Python 3.2 Added file: http://bugs.python.org/file25943/

[issue15044] _dbm not building on Fedora 17

2012-06-17 Thread Ross Lagerwall
Ross Lagerwall added the comment: Yeah, after I submitted the patch, I was unsure if that was a good idea or if it should try and use gdbm in native mode if possible. -- ___ Python tracker <http://bugs.python.org/issue15

[issue15200] Faster os.walk

2012-06-27 Thread Ross Lagerwall
Ross Lagerwall added the comment: This looks like the kind of optimization that depends hugely on what kernel you're using. Maybe on FreeBSD/Solaris/whatever, standard os.walk() is faster? If this micro-optimization were to be accepted, someone would have to be keen enough to test

[issue15277] Fix resource leak in support.py:_is_ipv6_enabled

2012-07-07 Thread Ross Lagerwall
Ross Lagerwall added the comment: Thanks. test_socket seems to be broken in all branches when running with net.ipv6.conf.all.disable_ipv6 = 1 but I'll open a new issue for that. -- assignee: -> rosslagerwall nosy: +rosslagerwall resolution: -> fixed stage: -> comm

[issue15277] Fix resource leak in support.py:_is_ipv6_enabled

2012-07-07 Thread Ross Lagerwall
Ross Lagerwall added the comment: Ah, I see you've already opened a new issue for that (issue15284). -- ___ Python tracker <http://bugs.python.org/is

[issue14826] urllib2.urlopen fails to load URL

2012-07-07 Thread Ross Lagerwall
Ross Lagerwall added the comment: It looks like this broke the build bots: http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%202.7/builds/66/steps/test/logs/stdio -- assignee: -> orsenthil nosy: +rosslagerwall status: closed ->

[issue15447] A file is not properly closed by webbrowser._invoke

2012-07-25 Thread Ross Lagerwall
Ross Lagerwall added the comment: Are there any webbrowser unit tests? (this could probably use the new subprocess.DEVNULL constant in 3.3) -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue15

[issue7996] concurrency problem in regrtest -jX

2012-07-26 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- resolution: -> duplicate status: open -> closed superseder: -> thread-safety issue in regrtest.main() ___ Python tracker <http://bugs.python.o

[issue10812] Add some posix functions

2012-07-31 Thread Ross Lagerwall
Ross Lagerwall added the comment: I can't actually remember why I disabled waitid for OS X - that was message was rather a long time ago :-( Unfortunately, I don't currently have access to an OS X machine to test it. A google search shows the following comment in the v8 javascr

[issue15548] Mention all new os functions in What's New in Python 3.3

2012-08-03 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached is a diff between dir(os) in 3.2 and 3.3 -- keywords: +patch nosy: +rosslagerwall Added file: http://bugs.python.org/file26676/oschanges.diff ___ Python tracker <http://bugs.python.org/issue15

<    1   2   3   4   >