Re: [Python-ideas] Sets, Dictionaries

2018-03-29 Thread Nick Coghlan
On 30 March 2018 at 02:04, Clint Hepner wrote: > >> On 2018 Mar 29 , at 11:42 a, Julia Kim wrote: >> >> My suggestion is to change the syntax for creating an empty set and an empty >> dictionary as following. >> >> an_empty_set = {} >> an_empty_dictionary = {:} > > If you are willing to accept {

Re: [Python-ideas] Sets, Dictionaries

2018-03-29 Thread Clint Hepner
> On 2018 Mar 29 , at 12:06 p, Chris Angelico wrote: > > On Fri, Mar 30, 2018 at 3:00 AM, Stephan Houben wrote: >> Perhaps one day we will be able to use >> >> ∅ >> >> for the empty set. >> That would actually match conventional notation. >> > > Maybe, but that symbol generally means the un

Re: [Python-ideas] Sets, Dictionaries

2018-03-29 Thread Chris Barker - NOAA Federal
> There are two chances of this happening, zero or none. That would be the empty set, yes? ;-) -CHB ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeo

Re: [Python-ideas] Sets, Dictionaries

2018-03-29 Thread Mark Lawrence
On 29/03/18 16:42, Julia Kim wrote: My suggestion is to change the syntax for creating an empty set and an empty dictionary as following. an_empty_set = {} an_empty_dictionary = {:} Compatibility issues could be resolved with a program which takes a Python program (codes) as a text and edits

Re: [Python-ideas] Sets, Dictionaries

2018-03-29 Thread Chris Angelico
On Fri, Mar 30, 2018 at 3:00 AM, Stephan Houben wrote: > Perhaps one day we will be able to use > > ∅ > > for the empty set. > That would actually match conventional notation. > Maybe, but that symbol generally means the unique immutable empty set in mathematics, so a closer equivalent would be f

Re: [Python-ideas] Sets, Dictionaries

2018-03-29 Thread Clint Hepner
> On 2018 Mar 29 , at 11:42 a, Julia Kim wrote: > > My suggestion is to change the syntax for creating an empty set and an empty > dictionary as following. > > an_empty_set = {} > an_empty_dictionary = {:} If you are willing to accept {:} as an empty dict, then surely {,} would suffice as an

Re: [Python-ideas] Sets, Dictionaries

2018-03-29 Thread Stephan Houben
Perhaps one day we will be able to use ∅ for the empty set. That would actually match conventional notation. Note that this is not valid syntax today (not a legal Unicode identifier). Stephan Op do 29 mrt. 2018 17:49 schreef Chris Angelico : > On Fri, Mar 30, 2018 at 2:42 AM, Julia Kim > wro

Re: [Python-ideas] Sets, Dictionaries

2018-03-29 Thread Chris Angelico
On Fri, Mar 30, 2018 at 2:42 AM, Julia Kim wrote: > My suggestion is to change the syntax for creating an empty set and an empty > dictionary as following. > > an_empty_set = {} > an_empty_dictionary = {:} > > > Compatibility issues could be resolved with a program which takes a Python > program

[Python-ideas] Sets, Dictionaries

2018-03-29 Thread Julia Kim
My suggestion is to change the syntax for creating an empty set and an empty dictionary as following. an_empty_set = {} an_empty_dictionary = {:} Compatibility issues could be resolved with a program which takes a Python program (codes) as a text and edits it. Sent from my iPhone ___