[issue1261] PEP 3137: make bytesobject.c methods use PEP 3118 buffer API

2007-10-11 Thread Gregory P. Smith
New submission from Gregory P. Smith: This makes all existing bytesobject.c methods use the buffer API rather than explicitly requiring bytes objects as input. It also fixes input to append() and remove() that was not strict enough and improves a few unit tests in that area. NOTE: this patch

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-11 Thread Gregory P. Smith
Changes by Gregory P. Smith: __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1261> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: > > Patch updated. It now implements the is*() methods for PyBytes. It > > moves common code into a shared bytes_ctype.c and .h file so that > > stringobject.c and bytesobject.c can share as much as possible. > > Did you move

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-11 Thread Gregory P. Smith
Changes by Gregory P. Smith: __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1261> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-11 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- nosy: -gps __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1261> __ ___ Python-bugs-list mailing list Unsubs

[issue1233] bsddb.dbshelve.DbShelf.append doesn't work

2007-10-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: heh yep that does look like a bug. Laughing at that one goes well with this comment currently in test_dbshelve.py: # TODO: Add test cases for a DBShelf in a RECNO DB. i'll fix it. :) __ Tracker <[EMAIL PROTECTED

[issue1275] bsddb closing a DB object before all DBCursors using it are closed crashes

2007-10-12 Thread Gregory P. Smith
New submission from Gregory P. Smith: If a bsddb.db.DB object is closed before any DBCursor objects referencing it are closed, python will crash when the cursors are closed or deleted. Workaround: never close a database with open cursors. this is annoying in unittest code where a tearDown

[issue1233] bsddb.dbshelve.DbShelf.append doesn't work

2007-10-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: Fixed in python trunk r58434, release25-maint r58435, py3k r58438 -- resolution: -> fixed status: open -> closed versions: +Python 2.6, Python 3.0 __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-15 Thread Gregory P. Smith
Changes by Gregory P. Smith: __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1261> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints

2007-10-15 Thread Gregory P. Smith
New submission from Gregory P. Smith: The PyBytes (pep3137 buffer) .extend() method currently only accepts as input something supporting the pep3118 buffer API. It also needs to accept an iterable of ints in the 0..255 range. -- keywords: py3k messages: 56478 nosy: gregory.p.smith

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-15 Thread Gregory P. Smith
Changes by Gregory P. Smith: __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1261> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-15 Thread Gregory P. Smith
Changes by Gregory P. Smith: __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1261> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: Committed revision 58493 -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-15 Thread Gregory P. Smith
Changes by Gregory P. Smith: __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1261> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue1301] Bad assertion in _tkinter.c

2007-10-18 Thread Stephen P. Schaefer
New submission from Stephen P. Schaefer: The following fails with python 2.5 as built by Fedora 7: t2.py: import sys, Tkinter Tkinter.Button(text=u"").pack( ) Tkinter.mainloop( ) $ python t2.py python: ./Modules/_tkinter.c:941: AsObj: Assertion `size < size * sizeof(Tcl_Uni

[issue1247] PEP 3137 patch (repr, names, parser)

2007-10-28 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- nosy: +gregory.p.smith __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1247> __ ___ Python-bugs-list mailing list Unsubs

[issue1371] Two bsddb tests temporarily commented out in py3k branch

2007-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: This should be fixed in py3k revision 58761. -- keywords: +py3k resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1391] Adds the .compact() method to bsddb db.DB objects

2007-11-04 Thread Gregory P. Smith
New submission from Gregory P. Smith: I'm attaching the patch to add this method here just as a place to track it for now. It compiles and it looks right, but it causes a crash within BerkeleyDB when the test case runs using BerkeleyDB 4.6.21. It passes as expected when using 4.4.20 or 4

[issue1385] hmac module violates RFC for some hash functions, e.g. sha512

2007-11-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: option 1 sounds best. i'll take care of this. thanks for noticing this and providing suggestions and a patch. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1385] hmac module violates RFC for some hash functions, e.g. sha512

2007-11-05 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- components: +Library (Lib) -None versions: +Python 2.5, Python 2.6 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1385> __ __

[issue1385] hmac module violates RFC for some hash functions, e.g. sha512

2007-11-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: Fixed in trunk (2.6) svn revision 58868 with rfc 4231 unit tests and tests for the new warnings. The fix parts of that diff should be backported to 2.5. I'm leaving the Python 2.5 flag on the bug until that happens. I'm leaving Python 3.0 and py

[issue1385] hmac module violates RFC for some hash functions, e.g. sha512

2007-11-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: Fixed in release25-maint branch in svn r58870. -- versions: -Python 2.5 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1397] py3k-pep3137: failing unit test test_bsddb

2007-11-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: yeah i've seen this at random times as well. I don't believe its related to py3k or the pep3137 branch at all, i believe seen it on trunk but its rare. For reference, what platform (OS) and BerkeleyDB version did you build python with when thi

[issue1511] csv input converts \r\n to \n but csv output does not when a field has internal line breaks

2007-11-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: release25-maint and trunk (2.6) appear to do the correct thing when testing on my ubuntu gutsy linux x86 box. test script and file attached. The problem is reproducable in a release24-maint build compiled 2007-11-05. -- nosy: +gregory.p.smith Added

[issue1511] csv input converts \r\n to \n but csv output does not when a field has internal line breaks

2007-11-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: attaching the test input file. use od -x or similar to compare the new.csv output with issue1511.csv to see if the problem happened. its 2.4.. that may be old enough to be considered dead Added file: http://bugs.python.org/file8817/issue1511.csv

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

2011-10-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: If the server failed to close a transaction the protocol stream is over unless you mime relying on hope and luck. Poplib has a nasty set of server implementation bugs to work around here. Readline as defined today no longer suits its needs but I still

[issue13422] Subprocess: children hang due to open pipes

2011-11-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: This looks like a bug in your daemon not in subprocess. Your daemon is intentionally not closing its inherited stderr fd. -- nosy: +gregory.p.smith resolution: -> invalid status: open -> closed ___

[issue13417] faster utf-8 decoding

2011-11-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: +1 nice! A couple minor comments on the code review. -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue13

[issue13636] Python SSL Stack doesn't have a Secure Default set of ciphers

2011-12-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: Why make this decision ourselves at all? Copy what Mozilla and Chromium do by default. -- ___ Python tracker <http://bugs.python.org/issue13

[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-12-22 Thread Michael P. Reilly
Michael P. Reilly added the comment: I'm seeing that shutdown does have a race condition just using BaseHTTPServer.HTTPServer. See the attached simple script. Then access http://localhost:8081. This is using both Python 2.6.6 (r266:84292, May 22 2011, 16:47:42) on Oracle Linux Serve

[issue8313] message in unittest tracebacks

2011-12-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: http://pypi.python.org/pypi/unittest2 says "There are several places in unittest2 (and unittest) that call str(...) on exceptions to get the exception message. This can fail if the exception was created with non-ascii unicode. This is rare and I

[issue8313] message in unittest tracebacks

2011-12-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: We're on python 2.6, otherwise this would be a moot point. but you might want to include something like that in a new unittest2 backport release. -- ___ Python tracker <http://bugs.python.org/i

[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-12-26 Thread Michael P. Reilly
Michael P. Reilly added the comment: Here is a patch to socketserver.py which can be applied to 2.6, 2.7 and 3.2. The fix is for BaseServer, ForkingMixIn and ThreadingMixIn. All three now correctly respond to the shutdown method. I have no way of testing Windows or MacOSX (based on docs

[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-12-26 Thread Michael P. Reilly
Michael P. Reilly added the comment: An update test program. Execute with appropriate PYTHONPATH (to dir to patched module and explicit interpreter executable: PYTHONPATH=$PWD/2.7/b/Lib python2.7 $PWD/simpletest.py -- Added file: http://bugs.python.org/file24094/simpletest.py

[issue12196] add pipe2() to the os module

2011-05-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: I just nuked the pure Python POSIX subprocess implementation in 70467:75ca834df824. No need for both implementations. _posixsubprocess is now the only option. -- ___ Python tracker <http://bugs.python.

[issue12196] add pipe2() to the os module

2011-05-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: Include an appropriate Version Added annotation in the pipe2 documentation. Otherwise the current patches look good to me. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-05-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: I added comments in the code review. this patch is looking good once the comments are addressed. thanks for your contribution! As for talk of support for recursion... thats what os.walk() is for. it doesn't belong as part of any particular indiv

[issue3771] test_httpservers intermittent failure, test_post and EINTR

2011-06-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: This was fixed in the other bug in 2.6 and 2.7. -- dependencies: +socket.readline() interface doesn't handle EINTR properly nosy: +gregory.p.smith resolution: -> fixed status: open -> closed ___ Pyt

[issue12268] file readline & readlines methods can lose data on EINTR

2011-06-05 Thread Gregory P. Smith
New submission from Gregory P. Smith : The file object readline() and readlines() methods can lose data when an underlying read system call is interrupted. They will abort with an IOError in this case but any incomplete line data they have read will be discarded. readline() and readlines

[issue12268] file readline & readlines methods can lose data on EINTR

2011-06-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: 3.x has the same issue. unittest & patch forthcoming that addresses that as well. 2.6 also has the issue but it is in security fix only mode so I won't backport to that. -- versions: +Python 3.1, Python 3.2, P

[issue12268] file readline, readlines & readall methods can lose data on EINTR

2011-06-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: .readall() and the equivalent unbounded .read() also have this problem. -- title: file readline & readlines methods can lose data on EINTR -> file readline, readlines & readall methods can lose da

[issue12268] file readline, readlines & readall methods can lose data on EINTR

2011-06-05 Thread Gregory P. Smith
Changes by Gregory P. Smith : Added file: http://bugs.python.org/file22261/test_fileio_readers_3.2-gps01.diff ___ Python tracker <http://bugs.python.org/issue12

[issue12268] file readline, readlines & readall methods can lose data on EINTR

2011-06-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: I haven't looked beyond the reading methods it is possible that some of the write implementations have a similar issue. Patch gps02 for 3.2 attached. I'll use that as the basis for a stand alone test_file_eintr.py targeted at 2.7. --

[issue12268] file readline, readlines & readall methods can lose data on EINTR

2011-06-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file22261/test_fileio_readers_3.2-gps01.diff ___ Python tracker <http://bugs.python.org/issue12

[issue12268] file readline, readlines & readall methods can lose data on EINTR

2011-06-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue12268> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1195571] simple callback system for Py_FatalError

2011-06-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: This makes sense, I'll add it to 3.3. -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/i

[issue12383] subprocess.Popen(..., env={}) fails to pass empty env.

2011-06-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: That failure is likely due to the environment being empty causing the subprocess to be unable to run. Notice this error message further up: test_empty_env (test.test_subprocess.ContextManagerTests) ... /srv/buildbot/buildarea/3.2.bolen-ubuntu/build/python

[issue6721] Locks in python standard library should be sanitized on fork

2011-07-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: No Python thread is ever fork safe because the Python interpreter itself can never be made fork safe. Nor should anyone try to make the interpreter itself safe. It is too complex and effectively impossible to guarantee. There is no general solution to this

[issue12876] Make Test Error : ImportError: No module named _sha256

2011-09-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: The fact that it called __get_builtin_constructor implies that the ssl backed _hashlib module was not available. It looks like the non-openssl standalone _sha256 module (and likely the _sha512 module) both failed to be compiled. I would not expect that to

[issue2636] Adding a new regex module (compatible with re)

2011-09-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: Being able to set which behavior you want in a (?XXX) flag at the start of the regex is valuable so that applications that take a regex can support the new syntax automatically when the python version they are running on is updated. The (?XXX) should

[issue9573] importing a module that executes fork() raises RuntimeError

2010-08-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: Are there any applications out there that actually rely on forking during import? (someone discovered this bug... i'd like to know why. i think its a disgusting thing to do but never explicitly disallowed it in the

[issue9573] importing a module that executes fork() raises RuntimeError

2010-08-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: Agreed on the explicit exception and documentation. :) -- ___ Python tracker <http://bugs.python.org/issue9573> ___ ___ Pytho

[issue1868] threading.local doesn't free attrs when assigning thread exits

2010-08-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: your updated patch looks good to me. i've posted it here for easy review if anyone else wants to take a look: http://codereview.appspot.com/1995049/ -- assignee: gregory.p.smith -> pitrou ___ Python

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2010-09-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: closing because it is too late to backport this to 2.7. It is available as a backport in http://code.google.com/p/python-subprocess32/. As for the idea of not using SIG_IGN and installing a default no-op handler, that is another approach

[issue7418] hashlib : the names of the different hash algorithms

2010-09-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: Sounds like a good idea. frozensets for both. -- ___ Python tracker <http://bugs.python.org/issue7418> ___ ___ Python-bug

[issue7418] hashlib : the names of the different hash algorithms

2010-09-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Implemented in py3k r84554. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue7418> ___ ___ Python-

[issue8998] add crypto routines to stdlib

2010-09-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: libtomcrypt is a _great_ library. That is what hashlib uses for the hash algorithms when OpenSSL is not available. But the _primary_ reason for using OpenSSL is that it is the defacto open source location for the best architecture specific implementations

[issue9895] Speed up test_subprocess

2010-09-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: Overall I like the approach. A few questions / clarifications: is errno.EMFILE portable? will that errno test work on both posix and windows? should the is_resource_enabled('subprocess') stuff be preserved (why was it there to begin with? b

[issue9895] Speed up test_subprocess

2010-09-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: looks good to me. commit it. :) -- Added file: http://bugs.python.org/file18924/unnamed ___ Python tracker <http://bugs.python.org/issue9895> ___looks good to me.  com

[issue8998] add crypto routines to stdlib

2010-09-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: This bug has turned into a bikeshed. Lets stop that please. I _DON'T_ care about performance when it comes to someone submitting an actual working implementation of a crypto library for inclusion with the standard library. The first priority needs to

[issue9950] socket.sendall() crash when receiving a signal

2010-09-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks Antoine! -- Added file: http://bugs.python.org/file19042/unnamed ___ Python tracker <http://bugs.python.org/issue9950> ___thanks A

[issue9994] Python becoming orphaned over ssh

2010-09-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: can i have you do another experiment here? after you "ssh r...@testbox /tmp/test.{py,sh}" can you: 1) login to testbox, run pstree -p 2) run an strace -p pid_of_python_or_bash >strace_for_foo.out (for each of the test.py and test.sh

[issue9994] Python becoming orphaned over ssh

2010-09-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: Ah right, thanks. I added a restore_signals=True argument to Popen in Python 3.2's subprocess module that does what you want: http://docs.python.org/dev/library/subprocess.html The way to emulate that in earlier versions is to use a preexec_fn to re

[issue1731717] race condition in subprocess module

2010-10-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: A workaround for those still having problems with this: stub out subprocess._cleanup with a no-op method. It it only useful if your app is ever using subprocess and forgetting to call wait() on Popen objects before they are deleted. If you are, you can

[issue1545463] New-style classes fail to cleanup attributes

2010-10-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: looks harmless to me. though i think issue812369 looks okay as well at first glance. -- ___ Python tracker <http://bugs.python.org/issue1545

[issue812369] module shutdown procedure based on GC

2010-10-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: 0001-update-GC-shutdown-patch.patch looks sane to me at first glance. any other opinions? -- ___ Python tracker <http://bugs.python.org/issue812

[issue1533105] NetBSD build with --with-pydebug causes SIGSEGV

2010-10-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: I don't see this issue on netbsd 5.0.2 i386 in the py3k branch. -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issu

[issue5510] patches for Modules/socketmodule.c for NetBSD

2010-10-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: netbsd-wizs-mod.patch applied in 85587. -- assignee: -> gregory.p.smith nosy: +gregory.p.smith resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python tr

[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: fyi - for information on using gdb 7 with python see http://bugs.python.org/issue8032 I'm looking at the .gdbinit improvements regardless as not everyone has gdb 7 (notably OS X). -- resolution: out of date -> status: closed

[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: everything except the lineno change from gdbinit_python26.patch has been committed in r85646. -- ___ Python tracker <http://bugs.python.org/issue3

[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: and the py_decref in there isn't quite right, fixing... -- ___ Python tracker <http://bugs.python.org/issue3631> ___ ___

[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: do we have official python docs on this that I should point to? -- ___ Python tracker <http://bugs.python.org/issue3

[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: I updated the note in gdbinit to point to Tools/gdb/libpython.py for py3k (3.2) and 2.7. Thomas: I didn't do anything with your version of pystack because the existing versions in 3.2 and 2.7 appear to work fine for me. -- resolution: ->

[issue10302] Add class-functions to hash many small objects with hashlib

2010-11-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: This is an application specific optimization that I'd like to see as its own library or a feature added to NSS or OpenSSL. Regardless if you want this for python, write an extension module and put it on pypy before aiming for the stdlib. I understan

[issue11314] Subprocess suffers 40% process creation overhead penalty

2011-02-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: fyi - while I still need to update it now that 3.2 final has been released, the http://code.google.com/p/python-subprocess32/ project has a backport of the _posixsubprocess stuff from python 3.2 for use on Python 2.x

[issue11284] slow close file descriptors in subprocess, popen2, os.popen*

2011-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: There is no OS API call to provide a *safe* way to get a list of all open file descriptors as part of POSIX in general that can be called after the fork() and before the exec(). It must be async signal safe. The closefrom() call available in Solaris and

[issue11284] slow close file descriptors in subprocess, popen2, os.popen*

2011-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: According to http://www.unix.com/man-page/All/3c/closefrom/ closefrom() is not async-signal-safe. :( -- ___ Python tracker <http://bugs.python.org/issue11

[issue11432] webbrowser.open on unix fails.

2011-03-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: subprocess in 3.2 bug from the looks of it. not sure if 2.7 or 3.1 are impacted at all, i'll remove them from the list after confirming. -- assignee: -> gregory.p.smith ___ Python tracke

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2011-03-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Could you add me as a member or admin on the mrab-regex-hg project? I've got a few things I want to fix in the code as I start looking into the state of this module. gpsmith at gmail dot com is my google account. There are some fixes in the ups

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2011-03-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Okay. Can you push your setup.py and README and such as well? Your pypi release tarballs should match the hg repo and ideally include a mention of what hg revision they are generated from. :) -gps On Mon, Mar 14, 2011 at 5:25 PM, Matthew Barnett wrote

[issue9667] NetBSD curses KEY_* constants

2011-03-15 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith keywords: +patch nosy: +gregory.p.smith Added file: http://bugs.python.org/file21215/_cursesmodule.c.diff ___ Python tracker <http://bugs.python.org/iss

[issue1006238] cross compile patch

2011-03-15 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: gregory.p.smith -> nosy: +loewis ___ Python tracker <http://bugs.python.org/issue1006238> ___ ___ Python-bugs-lis

[issue3718] environment variable MACHDEP and python build system

2011-03-15 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: gregory.p.smith -> nosy: +loewis ___ Python tracker <http://bugs.python.org/issue3718> ___ ___ Python-bugs-list mai

[issue6873] posix_lchown: possible overflow of uid, gid

2011-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: a test would still be a good thing but this should be fixed regardless. -- resolution: -> accepted status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2011-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: assertCountEqual has been released in 3.2 as the new name. close this? -- ___ Python tracker <http://bugs.python.org/issue10

[issue11432] webbrowser.open on unix fails.

2011-03-15 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed status: open -> closed versions: -Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/i

[issue10812] Add some posix functions

2011-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: I added some comments on the review for 10812_v5.patch. not sure why v6 doesn't have a review link. Overall, very nice after addressing the few comments I had. btw, can you sync this up with the hg tip (3.3) now while addressing the above? I'

[issue11459] Python select.select does not correctly report read readyness

2011-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: ross's patch looks good to me. Isn't the behavior just plain broken in 3.1 and 3.2? The docs say that the default bufsize=0 is unbuffered in Popen but the implementation has that nasty XXX to make it line buffered instead of unbuffered in

[issue11459] Python select.select does not correctly report read readyness

2011-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: to get that behavior, change the =1 default to =io.DEFAULT_BUFFER_SIZE in ross's patch. -- ___ Python tracker <http://bugs.python.org/is

[issue11459] Python select.select does not correctly report read readyness

2011-03-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: yeah i figured importing io from os at the top level might be a problem. it is not important for the default to be that exact value, even something safely on the small side like 512 will work. but we could just have the default be set in the code by doing

[issue11109] socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass

2011-03-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: not yet, thanks for the reminder. if any other committers feel like jumping on this and doing it before I get around to it, feel free. -- ___ Python tracker <http://bugs.python.org/issue11

[issue11771] hashlib object cannot be pickled

2011-04-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: heh yeah. while all hash functions do have internal state and someone could conceivably want to store such a state (it basically amounts to queued up partial block of input data if any and the current starting IV) there are not consistent APIs to expose that

[issue11757] test_subprocess.test_communicate_timeout_large_ouput failure on select(): negative timeout?

2011-04-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: Adding that check with an exception to selectmodule.c is a good idea. i like your patch. -- ___ Python tracker <http://bugs.python.org/issue11

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Those tests make sense to me. -- Added file: http://bugs.python.org/file21875/unnamed ___ Python tracker <http://bugs.python.org/issue6721> ___Those tests make sense

[issue12044] subprocess.Popen.__exit__ doesn't wait for process end

2011-05-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: I didn't initially like the idea of __exit__ blocking on another process... but the zombie issue is real does make me think we should reconsider this and have it wait(). It is a backwards incompatible change if anyone has started using the Popen co

[issue12044] subprocess.Popen.__exit__ doesn't wait for process end

2011-05-11 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker <http://bugs.python.org/issue12044> ___ ___ Python-bugs-list mailing list Un

[issue12044] subprocess.Popen.__exit__ doesn't wait for process end

2011-05-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: did my commits in the reverse order (default before 3.2), oops. this is fixed. this wasn't ever in 2.7 so no need for the documentation note. i'm not worried about adding a note about 3.2.0 vs 3.2.1 beyond the mention in Misc/NEWS as this

[issue12040] Expose a Process.sentinel property (and fix polling loop in Process.join())

2011-05-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: That looks better. :) btw, that eintr_retry utility probably deserves to be in a more prominent place in the stdlib but I don't have a good suggestion as to where at the moment. I believe similar code exists in many places in the code base. If it i

[issue12059] hashlib does not handle missing hash functions correctly

2011-05-14 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.or

[issue12060] Python doesn't support real time signals

2011-05-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: if you used the pipe approach you'd need to deal with the case of the write blocking (or failing if nonblocking) when the pipe buffer is full. also you'd need to block signals around a fork and reinitialize the pipe in the child before reenabli

<    1   2   3   4   5   6   7   8   9   10   >