Where does the python startup text come from -
this question has answer here:
- where python startup banner defined? 2 answers
this question purely because of curiousity - when type python, see
$python python 2.7.9 (default, mar 1 2015, 12:56:24) [gcc 4.9.2] on linux2 type "help", "copyright", "credits" or "license" more information. >>>
where text coming - particularly (default, mar 1 2015, 12:57:24)
, on linux 2
?. rest self explanatory, , can find hints @ comes in file /usr/bin/python2.7-config
i tried touch
ing /usr/bin/python2.7
, found out doesn't change time.
sorry if wrong place ask - if is, there anywhere else on stackexchange ask?
the first part comes py_getversion()
, equivalent sys.version
. in end, py_getbuildinfo()
called, , appears gets information c macros __date__
, __time__
. check out source more info.
Comments
Post a Comment