Message52369
| Author | gvanrossum |
|---|---|
| Recipients | |
| Date | 2007-04-23.17:31:11 |
| SpamBayes Score | |
| Marked as misclassified | |
| Message-id | |
| In-reply-to |
| Content | |
|---|---|
The main reason for using __file__ instead of the filename baked into the code object is that sometimes .pyc files are moved after being compiled; the code object is not updated, but __file__ has the correct path as it reflects how the module was found during import. Also, code objects may have relative pathnames. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007-08-23 15:57:52 | admin | link | issue1692664 messages |
| 2007-08-23 15:57:52 | admin | create | |