Message250850
| Author |
Sebastian Kreft |
| Recipients |
Sebastian Kreft |
| Date |
2015年09月16日.14:48:47 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1442414927.94.0.928583151354.issue25142@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
ImportError now supports the keyword arguments name and path. However, when passing invalid keyword arguments, the reported error is misleading, as shown below.
In [1]: ImportError('lib', name='lib')
Out[1]: ImportError('lib')
In [2]: ImportError('lib', name='lib', foo='foo')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-5af12651187f> in <module>()
----> 1 ImportError('lib', name='lib', foo='foo')
TypeError: ImportError does not take keyword arguments |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年09月16日 14:48:48 | Sebastian Kreft | set | recipients:
+ Sebastian Kreft |
| 2015年09月16日 14:48:47 | Sebastian Kreft | set | messageid: <1442414927.94.0.928583151354.issue25142@psf.upfronthosting.co.za> |
| 2015年09月16日 14:48:47 | Sebastian Kreft | link | issue25142 messages |
| 2015年09月16日 14:48:47 | Sebastian Kreft | create |
|