[issue46896] add support for watching writes to selected dictionaries

2022-03-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: At first quick glance, this makes sense and the API looks reasonable. Question: what happens on interpreter shutdown? Shutdown obviously finalized and clears out most all dicts. I guess the C callback simply gets called for each of these? That makes

[issue46896] add support for watching writes to selected dictionaries

2022-03-03 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +Mark.Shannon ___ Python tracker <https://bugs.python.org/issue46896> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46896] add support for watching writes to selected dictionaries

2022-03-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Per interpreter seems best. If someone using this feature writes a buggy implementation of a callback that doesn't chain reliably, that is a bug in their code and all of the fallout from that is "just" a bug to be fixed in said code. Think

[issue38738] Fix formatting of True and False

2022-03-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 46a116c1c9f6b60a3d35ab9a419f8eee5de2542e by Géry Ogam in branch 'main': bpo-38738: Fix formatting of True and False in the threading documentation (GH-31678) https://github.com/python/cpython/commit/46a116c1c9f6b60a3d35ab9a419f8e

[issue1007] [py3k] Fix dumbdbm, which fixes test_shelve (for me); instrument other tests so we catch this sooner (and more directly)

2007-08-23 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- title: Fix dumbdbm, which fixes test_shelve (for me); instrument other tests so we catch this sooner (and more directly) -> [py3k] Fix dumbdbm, which fixes test_shelve (for me); instrument other tests so we catch this sooner (and more direc

[issue1007] [py3k] Fix dumbdbm, which fixes test_shelve (for me); instrument other tests so we catch this sooner (and more directly)

2007-08-23 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- assignee: -> greg __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1007> __ ___ Python-bugs-list mailing list Uns

[issue1771381] bsddb can't use unicode keys

2007-08-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: The BerkeleyDB library operates on bytes only. Unicode doesn't make sense as a key without converting it to a particular encoding first. Use the unicode object's encode() method if you need to use it as a database key or create a wrapper object o

[issue1725856] bsddb.btopen . del of record doesn't update index

2007-08-23 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- assignee: -> greg _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1725856> _ ___ Python-bugs-list mailing li

[issue533281] bsddb module needs iterators

2007-08-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: this was marked 'open' and 'fixed' at the same time. that should be an invalid state. it was indeed fixed eons ago. -- nosy: +greg status: open -> closed Tracker <[EMAIL PROTECTED

[issue1725856] bsddb.btopen . del of record doesn't update index

2007-08-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: This code deletes the item that the internal database cursor created by the db.first() call is pointing at. Then when db.first() is called again it tries to reuse the same cursor. Now to decide if thats the expected behavior or a real problem and how to fix

[issue1725856] bsddb.btopen . del of record doesn't update index

2007-08-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: My first description wasn't quite accurate. What was happening is that the __delitem__(i) call by del was closing the existing cursor and saving the key it was pointing to and the first() and last() methods were creating a new cursor and trying to restor

[issue1725856] bsddb.btopen . del of record doesn't update index

2007-08-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Committed to HEAD as r57378 Committed to release25-maint as r57379 Committed to py3k as r57380 -- resolution: -> fixed status: pending -> closed _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue533281] bsddb185 module needs iterators

2007-08-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Oops. You're right. This was referring to the legacy bsddb185 module in Modules/bsddbmodule.c. In 2.6 that is never built by default. I'm marking it as wont fix. -- resolution: fixed -> wont fix title: bsddb module needs iterator

[issue1007] [py3k] Fix dumbdbm, which fixes test_shelve (for me); instrument other tests so we catch this sooner (and more directly)

2007-08-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: looks like someone already committed the one liner dumbdbm latin-1 fix. But the meat of this patch is the unit test improvements. I had to fix test_whichdb to exclude dumbdbm as that has no file for whichdb to test. committed to py3k as r57419

[issue1583946] SSL "issuer" and "server" names cannot be parsed

2007-08-25 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- nosy: -greg _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1583946> _ ___ Python-bugs-list mailing list Unsubs

[issue1706815] socket.error exceptions not subclass of StandardError

2007-08-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: Does the existing python SSL implementation allow it to be used over something other than a socket? If so then yes that makes sense, but otherwise its best to leave its inheritance from socket.error so that code that works when handed a regular socket can

[issue1035] bytes buffer API needs to support PyBUF_LOCKDATA

2007-08-27 Thread Gregory P. Smith
New submission from Gregory P. Smith: I've converted _bsddb.c to use the py3k buffer API for all data and keys it takes as input. All tests now fail with this error: BufferError: Cannot make this object read-only. This presumably results from this call: PyObject_GetBuffer(obj,

[issue1036] py3k _bsddb.c patch to use the new buffer API

2007-08-27 Thread Gregory P. Smith
New submission from Gregory P. Smith: This is my svn diff of a py3k Modules/_bsddb.c converted to use the buffer API. I'm submitting it here as so it doesn't get misplaced as it currently won't work until bytes objects support PyBUF_LOCKDATA (a separate bug)

[issue1035] bytes buffer API needs to support PyBUF_LOCKDATA

2007-08-27 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- priority: normal -> __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1035> __ ___ Python-bugs-list mailing list Uns

[issue1038] [py3k] pdb does not work in python 3000

2007-08-27 Thread Gregory P. Smith
New submission from Gregory P. Smith: The Lib/pdb.py debugger fails in the py3k branch. Traceback (most recent call last): File "/usr/local/gps/python/py3k/Lib/pdb.py", line 1247, in main pdb._runscript(mainpyfile) File "/usr/local/gps/python/py3k/Lib/pdb.py", line

[issue1036] py3k _bsddb.c patch to use the new buffer API

2007-08-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: committed to py3k branch using SIMPLE instead of LOCKDATA: r57610 -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1038] [py3k] pdb does not work in python 3000

2007-08-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: I was running it by typing "./python Lib/pdb.py Lib/test_foo.py" __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1038> __ _

[issue1035] bytes buffer API needs to support PyBUF_LOCKDATA

2007-08-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: I sent an initial patch to the mailing list. Its too late to be ready for 3.0a1; I'll fix it up next week. -- assignee: -> gregory.p.smith __ Tracker <[EMAIL PROTECTED]> <http://bugs.pyt

[issue1189216] zipfile module and 2G boundary

2007-08-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: i'll take care of this. -- assignee: -> gregory.p.smith nosy: +gregory.p.smith _ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1060] zipfile cannot handle files larger than 2GB (inside archive)

2007-08-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: i'll take care of it. any more info in the interim will be appreciated. -- assignee: -> gregory.p.smith nosy: +gregory.p.smith __ Tracker <[EMAIL PROTECTED]> <http://bugs.pyt

[issue1003] zipfile password fails validation

2007-08-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: can you provide a test zip file demonstrating the problem? -- assignee: -> gregory.p.smith nosy: +gregory.p.smith type: crash -> behavior __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1112] Test debug assertion in bsddb test_1413192.py

2007-09-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: that looks good to me. fixed in: 2.6 trunk r58023 release25-maint r58024 py3k r58025 -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1706815] socket.error exceptions not subclass of StandardError

2007-09-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: socket.error now inherits from IOError as of trunk r58067: Change socket.error to inherit from IOError rather than being a stand alone class. This addresses the primary concern in http://bugs.python.org/issue1706815 python-dev discussion here: http

[issue1035] bytes buffer API needs to support read locking and/or PyBUF_LOCKDATA

2007-09-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Attaching the most recent patch (minor update from the second one i sent to the python-3000 mailing list to initialize ob_readonly_exports = 0 in the appropriate places). Current mailing list discussion is pointing out that the name LOCKDATA means something

[issue1035] bytes buffer API needs to support read locking and/or PyBUF_LOCKDATA

2007-10-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: This bug will be taken care of by PEP 3137 http://python.org/dev/peps/pep-3137/ being implemented. Anyways, no the _bsddb.c changes that I checked in do not cause a problem because I checked them in using PyBUF_SIMPLE. Until PEP 3137 is implemented the

[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

[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

[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

[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

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