[New-bugs-announce] [issue22280] _decimal: successful import despite build failure

Stefan Krah report at bugs.python.org
Tue Aug 26 23:56:28 CEST 2014


New submission from Stefan Krah:

This may be related to PEP 451:  Previously, if the _decimal.so build
failed for whatever reason, decimal.py would be used instead. For that
to work, importing _decimal needs to fail.

But now the import is successful:

# Simulate build failure:
rm Modules/_decimal/_decimal.c
./configure --with-pydebug && make

$ ./python 
Python 3.5.0a0 (default:0337a460f05b+, Aug 26 2014, 23:47:43) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import _decimal
>>> _decimal.__path__
_NamespacePath(['/home/stefan/pydev/cpython/Modules/_decimal'])

----------
components: Interpreter Core
messages: 225931
nosy: eric.snow, skrah
priority: normal
severity: normal
status: open
title: _decimal: successful import despite build failure
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22280>
_______________________________________


More information about the New-bugs-announce mailing list