Skip to content

Comment on Python 3.7.2 and 3.6.8 are now availableparent

Comments

Forms (and models) in Django are one such thing. When you define fields on a form at the class level, Django maintains a global counter so the fields can retain their order with respect to each other.

Now, with ordered dictionaries, that order is maintained for free.

Kwarg order in functions is also maintained as far as I know.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.