Message143645
| Author | Claudiu.Popa |
|---|---|
| Recipients | Claudiu.Popa, docs@python |
| Date | 2011-09-06.18:37:57 |
| SpamBayes Score | 0.00015898368 |
| Marked as misclassified | No |
| Message-id | <1315334278.72.0.69534403863.issue12920@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
inspect.getsource called with a class defined in the same file fails with TypeError: <module '__main__' (built-in)> is a built-in class, although the documentation says that: "The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a single string." I think that should be specified in documentation that this function works only for objects living in a module. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2011-09-06 18:37:58 | Claudiu.Popa | set | recipients: + Claudiu.Popa, docs@python |
| 2011-09-06 18:37:58 | Claudiu.Popa | set | messageid: <1315334278.72.0.69534403863.issue12920@psf.upfronthosting.co.za> |
| 2011-09-06 18:37:57 | Claudiu.Popa | link | issue12920 messages |
| 2011-09-06 18:37:57 | Claudiu.Popa | create | |