Feb-27-2018, 02:36 PM
Pages: 1 2
Feb-27-2018, 04:35 PM
Quote:Guido: There's never been people who walked away and said we're only going to use python 2' ... 'Well maybe there was one guy'wonder who that might be
Feb-27-2018, 05:36 PM
I am trying to imagine what would be a programming language which keeps all old features to preserve the compatibility. And slowly in my head appears a picture of an animal that doesn't give up of any evolutionary peculiarity since the dawn of time. Brrrrr! Ugly and scary creature.
Feb-28-2018, 10:47 AM
When did dictionaries preserve order?
Feb-28-2018, 10:50 AM
Quote:When did dictionaries preserve order?Python 3.6
Feb-28-2018, 02:41 PM
good to know lol
Feb-28-2018, 06:34 PM
3.6 was the biggest release in the Python 3 series with 16 new PEP(Python Enhancement Proposals) like eg
But as importation was the internal changes made in in 3.6.
Like a new dictionaries implementation similar to the PyPy dict implementation was done bye Raymond Hettinger.
This resulted in faster dictionaries and using 20% to 25% less memory when compared to Python 3.5.
Dictionaries is used a lot internally in Python so this will speed up Python in most areas.
That dictionaries was ordered was a implantation detail and not guaranteed.
Work for all i have tested,so people start to relay on it,so 3.7 i think it will be guaranteed.
f-string
.But as importation was the internal changes made in in 3.6.
Like a new dictionaries implementation similar to the PyPy dict implementation was done bye Raymond Hettinger.
This resulted in faster dictionaries and using 20% to 25% less memory when compared to Python 3.5.
Dictionaries is used a lot internally in Python so this will speed up Python in most areas.
That dictionaries was ordered was a implantation detail and not guaranteed.
Work for all i have tested,so people start to relay on it,so 3.7 i think it will be guaranteed.
Quote:Twitter @Raymond Hettinger
Having dicts ordered by default in #python 3.6 is not guaranteed yet.
But it is so convenient that a guarantee for 3.7 is almost inevitable.
Feb-28-2018, 08:38 PM
I like David Beazley's take on this. He says (paraphrased)
'We're told not to rely on it. I say rely on it, then it has to become guaranteed'
'We're told not to rely on it. I say rely on it, then it has to become guaranteed'
Feb-28-2018, 09:19 PM
(Feb-28-2018, 08:38 PM)Larz60+ Wrote: [ -> ]I like David Beazley's take on this.They can always add
collections.UnorderedDict
later on...Mar-01-2018, 08:44 AM
(Feb-28-2018, 10:50 AM)Larz60+ Wrote: [ -> ]it is not official until 3.7. this just turned out to happen in 3.6. i don't know if you're allowed to depend on it until 3.7, but i suspect a lot of people will. my maps in C preserved order and it was handy. i'll probably be among those depending on it in 3.6.Quote:When did dictionaries preserve order?Python 3.6
Pages: 1 2