32 karma · joined Sep 9, 2019 (7y ago) · 6 submissions
comment 6y ago · link · parent
Further there is a big difference, regular dict preserves order across iteration but OrderedDict treats order up to equality.
I.e. this returns True:
{1: 1, 2: 2} == {2: 2, 1: 1}
Where as this returns False: OrderedDict({1: 1, 2: 2}) == OrderedDict({2: 2, 1: 1})
To make that difference speedy it needs to be done on the C level.comment 6y ago · link · parent
And transcribe text with Google Lens
comment 7y ago · link · parent
Accounts with a history are very valuable to companies in the business of "creating organic public support".
Also an author can be part of a community bit have a motivation to drive a discussion in a certain direction.
In either case it doesn't mean the post, the author, or the history are "fake" but it can mean there is some level of astroturfing going on.
Anyway I've been informed the guidelines prohibit such insinuations and I can understand why as they are an easy accusation but don't lend towards evidence based or productive discussions so I've removed my comment.
comment 7y ago · link · parent
I appreciate the general point that that's far more recent than Python 3s initial release but it's also a large exaggeration to say "until this most current release".
Also to understand why it took so long is because Python 2 kept improving after Python 3s release. Python 2.7 was a great release and many further features from Python 3 got backported in it's 2.7.x point release.