[os.path.join(r'E:\Python', name) for name in []] returns []

Jean-Michel Pichavant jeanmichel at sequans.com
Tue Jan 29 08:33:36 EST 2013


----- Original Message -----
> why [os.path.join(r'E:\Python', name) for name in []] returns [] ?
> please explain it in detail !
> --
> http://mail.python.org/mailman/listinfo/python-list
> 

You're mapping an empty list.

"for name in []"

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


More information about the Python-list mailing list