top | item 41453219

(no title)

judicious | 1 year ago

I work with different versions of Python3 (and 2 unfortunately) and some code is still in 3.6, hence I used OrderedDicts.

discuss

order

mixmastamyk|1 year ago

3.6 was the first with the new ordered by default dicts, even though wasn't specc'd until 3.7.

Izkata|1 year ago

It worked as an accidental implementation detail in CPython from some other optimization, but it wasn't intentional at the time. Because it wasn't intentional and wasn't part of the spec, that code could be incompatible with other interpreters like pypy or jython.

sgarland|1 year ago

As someone who just had to backport a fairly large script to support 3.6, I found myself surprised at how much had changed. Dataclasses? Nope. `__future__.annotations`? Nope. `namedtuple.defaults`? Nope.

It's also been frustrating with the lack of tooling support. I mean, I get it – it's hideously EOL'd – but I can't use Poetry, uv, pytest... at least it still has type hints.

neves|1 year ago

Not even VSCode extension works anymore