empty set and empty dict for Python 3

Discussion in 'Python' started by Yingjie Lan, Jul 15, 2010.

  1. Yingjie Lan

    Yingjie Lan Guest

    Hi there,

    Maybe somebody already suggested this:

    How about "{:}" for the empty dict,
    so that "{}" can denote the empty set?


    Yingjie
     
    Yingjie Lan, Jul 15, 2010
    #1
    1. Advertisements

  2. Yingjie Lan

    Peter Otten Guest

    Peter Otten, Jul 15, 2010
    #2
    1. Advertisements

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. Drew
    Replies:
    19
    Views:
    1,630
    Duncan Booth
    Mar 15, 2007
  2. Menghan Zheng
    Replies:
    1
    Views:
    387
    alex23
    Apr 20, 2010
  3. Cameron Simpson
    Replies:
    6
    Views:
    556
    alex23
    Apr 21, 2010
  4. Ethan Furman

    Python 3: dict & dict.keys()

    Ethan Furman, Jul 24, 2013, in forum: Python
    Replies:
    4
    Views:
    514
    Steven D'Aprano
    Jul 25, 2013
  5. Peter Otten

    Re: Python 3: dict & dict.keys()

    Peter Otten, Jul 24, 2013, in forum: Python
    Replies:
    1
    Views:
    216
    Neil Cerutti
    Jul 24, 2013
  6. Ethan Furman

    Re: Python 3: dict & dict.keys()

    Ethan Furman, Jul 24, 2013, in forum: Python
    Replies:
    10
    Views:
    278
    Chris Angelico
    Jul 25, 2013
  7. Terry Reedy

    Re: Python 3: dict & dict.keys()

    Terry Reedy, Jul 24, 2013, in forum: Python
    Replies:
    1
    Views:
    164
    Steven D'Aprano
    Jul 25, 2013
  8. Ethan Furman

    Re: Python 3: dict & dict.keys()

    Ethan Furman, Jul 24, 2013, in forum: Python
    Replies:
    7
    Views:
    227
    Peter Otten
    Jul 25, 2013
Loading...