##// END OF EJS Templates
rust: add TODO about lifetime of program_name variable...
Gregory Szorc -
r35622:74bec9e7 default
parent child Browse files
Show More
@@ -125,6 +125,9 b' fn run() -> Result<(), i32> {'
125 125 // Set program name. The backing memory needs to live for the duration of the
126 126 // interpreter.
127 127 //
128 // TODO consider storing this in a static or associating with lifetime of
129 // the Python interpreter.
130 //
128 131 // Yes, we use the path to the Python interpreter not argv[0] here. The
129 132 // reason is because Python uses the given path to find the location of
130 133 // Python files. Apparently we could define our own ``Py_GetPath()``
General Comments 0
You need to be logged in to leave comments. Login now