⇤ ← Revision 1 as of 2014-04-20 10:00:33
Size: 413
Comment: add FILE, DIR idea
|
Size: 460
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
https://docs.python.org/3.5/whatsnew/3.4.html | |
Line 18: | Line 18: |
1. http://www.php.net/manual/en/language.constants.predefined.php 2. https://docs.python.org/3.5/whatsnew/3.4.html |
1. http://www.php.net/manual/en/language.constants.predefined.php 2. https://docs.python.org/3.5/whatsnew/3.4.html |
FILE, DIR
inspired by: PHP __DIR__, __FILE__ [1] status: python34: __file__ is absolute [2] https://docs.python.org/3.5/whatsnew/3.4.html variant_set_1: - from os.path import FILE, DIR - from hacks import FILE, DIR - from future import FILE, DIR variant_set_2: - FILE, DIR - __file__, __dir__