[issue28937] str.split(): remove empty strings when sep is not None

2016-12-11 Thread Sye van der Veen
Sye van der Veen added the comment: In the sep!=None case, there are existing alternatives to prune=True that aren't many more keystrokes: >>> ''.split(' ', prune=True) [] >>> [x for x in ''.split(' ') if x] [] >>> list(filter(bool, ''.split(' '))) # or drop

[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2016-09-14 Thread Sye van der Veen
Sye van der Veen added the comment: I would also agree that failing to load the main codec should be an abort. This bug was specifically the race condition in writing the .pyc file. Thanks for all your help! -- ___ Python tracker <

[issue28005] Broken encoding modules are silently skipped.

2016-09-07 Thread Sye van der Veen
Changes by Sye van der Veen <syeber...@gmail.com>: -- nosy: +syeberman ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28005> ___ _

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-07 Thread Sye van der Veen
Sye van der Veen added the comment: Consider a process that is terminated while writing a large .pyc file. Currently a user can only fix this by deleting the .pyc file, which requires knowing where to look. A developer can be expected to know this, but the end user of their application

[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2016-09-07 Thread Sye van der Veen
Sye van der Veen added the comment: I feel this patch (file44424) misses the mark. Any two Python processes that try to import a module, without a pyc, at the same time could suffer race conditions. The first process will start to write the pyc, get interrupted, and the second will fail

[issue19023] ctypes docs: Unimplemented and undocumented features

2015-11-13 Thread Sye van der Veen
Sye van der Veen added the comment: Signed and confirmed. :-) On Thu, Nov 12, 2015 at 11:28 PM Martin Panter <rep...@bugs.python.org> wrote: > > Martin Panter added the comment: > > Sye van der Veen: can you sign a contributor agreement < > https://www.python.org/psf/c

[issue19023] ctypes docs: Unimplemented and undocumented features

2013-09-15 Thread Sye van der Veen
New submission from Sye van der Veen: In the ctypes documentation, there's mention of a BigEndianUnion/LittleEndianUnion that isn't actually implemented, and the Arrays and pointers section just reads Not yet written. The attached patch adds the (Big|Little)EndianUnion classes (with tests

[issue19023] ctypes docs: Unimplemented and undocumented features

2013-09-15 Thread Sye van der Veen
Changes by Sye van der Veen syeber...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file31769/75843d82f6cf.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19023

[issue18185] Error in test_set.TestVariousIteratorArgs.test_inline_methods

2013-06-10 Thread Sye van der Veen
New submission from Sye van der Veen: I'm working with Python's test suite and noticed this error: http://hg.python.org/cpython/file/668aba845fb2/Lib/test/test_set.py#l1669 # etc... for g in (G, I, Ig, L, R): expected = meth(data) actual = meth(G(data)) # etc... I believe

[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2012-11-01 Thread Sye van der Veen
New submission from Sye van der Veen: The PyMarshal_Read* functions raise EOFError when the end of the file is unexpectedly met. The current import.c functions propagate this error when reading .pyc or .pyo files. One consequence of this is that Python will abort on startup if, say

[issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child

2012-04-25 Thread Sye van der Veen
Sye van der Veen syeber...@gmail.com added the comment: This issue _does_ exist on Windows, and is not limited to the case where the master process exits before its children. The following code, which is almost exactly that from the 2.7.3 documentation, deadlocks on Win7 (Py3.2 and 2.7

[issue10224] Build 3.x documentation using python3.x

2011-07-13 Thread Sye van der Veen
Sye van der Veen syeber...@gmail.com added the comment: When I built the documentation on Win7, it failed with a SyntaxError, and it took some digging to find the reason why. I was hoping that issuing this warning would save others the trouble. I agree: on Windows, PYTHON is rarely set

[issue12179] Race condition using PyGILState_Ensure on a new thread

2011-05-25 Thread Sye van der Veen
New submission from Sye van der Veen syeber...@rogers.com: I'm wanting to call PyThreadState_SetAsyncExc from a function registered with SetConsoleCtrlHandler. To do so, I need to call PyGILState_Ensure, which asserts that Python is initialized, so I need to check for that. However, I

[issue10224] Build 3.x documentation using python3.x

2011-05-24 Thread Sye van der Veen
Sye van der Veen syeber...@rogers.com added the comment: I had trouble wording that sentence. Under Unix, Makefile is used, in which you specify PYTHON=path on the command line else the default python (from the PATH) is used. Under Windows, it's make.bat, where PYTHON needs to be set

[issue10224] Build 3.x documentation using python3.x

2011-05-23 Thread Sye van der Veen
Sye van der Veen syeber...@rogers.com added the comment: I ran smack into this while setting up my Doc build for the first time. In trying to fix my build problems, it took me about an hour to find that this was a known issue. I've attached a patch to warn others of the issue

[issue812750] OSA support for properties broken

2009-08-13 Thread Sye van der Veen
Sye van der Veen syeber...@rogers.com added the comment: I've attached a patch to remove a replacement is expected for Python 2.5. -- keywords: +patch nosy: +syeberman status: pending - open Added file: http://bugs.python.org/file14715/Issue812750.diff