[issue30814] Import dotted name as alias breaks with concurrency

2017-06-30 Thread Samuele Santi
New submission from Samuele Santi: I noticed this weird behavior in Python 3.6: Apparently ``import package.module as _alias`` fails in a threaded environment, sometimes raising an ``ImportError``, seemingly at random. Everything seems to be working perfectly fine: - On 3.5 and lower - When

[issue27941] Bad error message from Decimal('garbage') across the py3 range

2016-09-02 Thread Samuele Santi
New submission from Samuele Santi: Looks like, on some occasions, running ``Decimal('garbage')`` on Python 3.x decimal raises this error: decimal.InvalidOperation: [] instead of the usual: decimal.InvalidOperation: Invalid literal for Decimal: 'garbage' This seems to be caused