Author jnoller
Recipients alecthomas, benjamin.peterson, georg.brandl, giampaolo.rodola, jnoller, roudkerk
Date 2008-06-11.12:29:50
SpamBayes Score 0.048087
Marked as misclassified No
Message-id <1213187391.99.0.580002849919.issue3050@psf.upfronthosting.co.za>
In-reply-to
Content
Specifically:

>>> import multiprocessing
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/jesse/open_source/subversion/python-
trunk/Lib/multiprocessing/__init__.py", line 63, in <module>
import _multiprocessing
AttributeError: 'module' object has no attribute 'BufferTooShort'

This occurs due to the fact that __init__.py imports _multiprocessing 
prior to the definition of the exceptions. This should be moved to the 
ccode. From Georg:

"The test suite passes (at least for some buildbots) because it imports
_multiprocessing first, which then in its init function imports 
multiprocessing
to get the BufferTooShort exception.

Since BufferTooShort and other exceptions inheriting from ProcessError 
are
simple derived exceptions, why aren't they created in the C module in 
the
first place?"
History
Date User Action Args
2008-06-11 12:29:52jnollersetspambayes_score: 0.048087 -> 0.048087
recipients: + jnoller, georg.brandl, giampaolo.rodola, roudkerk, benjamin.peterson, alecthomas
2008-06-11 12:29:52jnollersetspambayes_score: 0.048087 -> 0.048087
messageid: <1213187391.99.0.580002849919.issue3050@psf.upfronthosting.co.za>
2008-06-11 12:29:51jnollerlinkissue3050 messages
2008-06-11 12:29:50jnollercreate