Re: [Python-Dev] Sets, Dictionaries

2018-03-29 Thread Eric Fahlgren
On Thu, Mar 29, 2018 at 10:11 AM, David Mertz wrote: > I agree with everything Steven says. But it's true that even as a 20-year > Python user, this is an error I make moderately often when I want an empty > set... Notwithstanding that I typed it thousands of times before sets even > existed (and

Re: [Python-Dev] Sets, Dictionaries

2018-03-29 Thread David Mertz
I agree with everything Steven says. But it's true that even as a 20-year Python user, this is an error I make moderately often when I want an empty set... Notwithstanding that I typed it thousands of times before sets even existed (and still type it when I want an empty dictionary). That said, I'

Re: [Python-Dev] Sets, Dictionaries

2018-03-29 Thread Stephen Hansen
On Wed, Mar 28, 2018, at 9:14 PM, 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 = {:} > > It would seem to make more sense. The amount of code this would break is astronomica

Re: [Python-Dev] Sets, Dictionaries

2018-03-28 Thread Steven D'Aprano
Hi Julia, and welcome! On Wed, Mar 28, 2018 at 09:14:53PM -0700, 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 = {:} > > It would seem to make more sense. Indeed it would,

Re: [Python-Dev] Sets, Dictionaries

2018-03-28 Thread Hasan Diwan
Hi, Julia, On 28 March 2018 at 21:14, Julia Kim wrote: > > My suggestion is to change the syntax for creating an empty set and an > empty dictionary as following. > You should craft your suggestion as a PEP and send it to the python-ideas mailing list. Good luck! -- H -- OpenPGP: https://sks-k

[Python-Dev] Sets, Dictionaries

2018-03-28 Thread Julia Kim
Hi, My name is Julia Hiyeon 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 = {:} It would seem to make more sense. Warm regards, Julia Kim ___ Python-