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

Discussion in 'Python' started by Jean-Michel Pichavant, Jan 29, 2013.

  1. ----- 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.
     
    Jean-Michel Pichavant, Jan 29, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alan Silver
    Replies:
    0
    Views:
    919
    Alan Silver
    Jun 5, 2006
  2. googleboy
    Replies:
    1
    Views:
    958
    Benji York
    Oct 1, 2005
  3. Steve
    Replies:
    1
    Views:
    1,007
    Fredrik Lundh
    Dec 13, 2005
  4. iMath
    Replies:
    9
    Views:
    198
    Chris Angelico
    Jan 30, 2013
  5. Chris Angelico

    Re: [Python-ideas] os.path.join

    Chris Angelico, Nov 4, 2013, in forum: Python
    Replies:
    0
    Views:
    112
    Chris Angelico
    Nov 4, 2013
Loading...

Share This Page