On Sat, Mar 19, 2016 at 7:22 PM, Marko Rauhamaa <ma...@pacujo.net> wrote: > Not all files have pathnames. Those that do have numerous pathnames. You > can't tell by looking at a file what pathnames, if any, it might have. > You need an exhaustive, recursive search of the file system for the > reverse mapping. > > If you execute the commands: > > echo hello >hello > rm hello > > You don't know for sure if the file you removed was the file you created > on the previous line.
Not all objects in Python have names bound to them. Those that do may have multiple. You can't tell, by looking at an object, what pathnames it has. You need an exhaustive, recursive search of all namespaces for the reverse mapping. If you execute the commands: hello = re.compile("[Hh][Ee][Ll][Ll][Oo]") hello.match(msg) you don't know for sure if the object you called a method on was the one you created on the previous line. So are object names not part of Python? ChrisA -- https://mail.python.org/mailman/listinfo/python-list