Ticket #893 (closed defect: fixed)
Numpy incompatible with python -OO
| Reported by: | cscott | Owned by: | pierregm |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2.0 |
| Component: | numpy.ma | Version: | none |
| Keywords: | Cc: |
Description
In line 3256 of numpy/ma/core.py, the following code appears:
inner.doc += doc_note("Masked values are replaced by 0.")
This line fails when python is invoked with the -OO option, which removes doc strings to save memory, since inner.doc will be None and a TypeError? will be raised trying to add a string to None. Adding a guard like: 'if inner.doc:' would fix this bug.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
