Detecting if a library has native dependency

2015-08-15 Thread Harish Vishwanath
Hello Is there a reliable way to detect if a python library has native dependency or native code? For ex. can I programmatically determine that "lxml" package has native code and depends on the presence of libxml on the system? Regards, Harish -- https://mail.python.org/mailman/listinfo/python-l

How to get back a list object from its string representation?

2008-12-30 Thread Harish Vishwanath
Hello, Consider : >>> li = [1,2,3] >>> repr(li) '[1, 2, 3]' Is there a standard way to get back li, from repr(li) ? Regards, Harish -- http://mail.python.org/mailman/listinfo/python-list

What is ''r'' in python?

2009-01-06 Thread Harish Vishwanath
Hello, I accidentally did this in the shell. >>> ''r'' '' >>> ''r'' == '' True >>> ''r'' == "" True That is . However if I try -> >>> ''c'' File "", line 1 ''c'' ^ SyntaxError: invalid syntax >>> ''z'' File "", line 1 ''z'' ^ SyntaxError: invalid syntax Any other charac