PyCon 2010: The Mighty Dictionary

  Рет қаралды 29,729

Eugene Yarmash

Eugene Yarmash

10 жыл бұрын

PyCon 2010: The Mighty Dictionary
Presented by Brandon Craig Rhodes

Пікірлер: 23
@k3v1l
@k3v1l 10 жыл бұрын
May your hashes be unique, Your Has tables never full. And may your keys rarely collide as well
@RohanAnand417
@RohanAnand417 6 жыл бұрын
Amen!
@ComputerVisionPro
@ComputerVisionPro 3 жыл бұрын
Ameen
@akshy471
@akshy471 2 жыл бұрын
After watching this, I bet I'll land that CEO role in Google.
@DenisBTV
@DenisBTV 7 жыл бұрын
The clearest Python dictionary background explanation! Thanks!
@Naz-yi9bs
@Naz-yi9bs 2 жыл бұрын
The way he says "Baaaaal" dying. Amazing detailed presentation, thank you!
@kartikeysingh9764
@kartikeysingh9764 4 жыл бұрын
"Equal values should have equal hashes regardless of their types" one of the most important points I found from this talk and also, copy() the dict to shrink it down if lots of deletion.
@surashreekulkarni6115
@surashreekulkarni6115 7 жыл бұрын
Kickass!! Really well explained!
@drizzyDreF
@drizzyDreF 7 жыл бұрын
This was very helpful
@tomaszszulc7259
@tomaszszulc7259 7 жыл бұрын
Awesome talk!
@aaronhall8039
@aaronhall8039 8 жыл бұрын
Where can we find specific documentation about this, or will we have to derive an understanding of this by using a C debugger or a static analysis of the C source?
@sohangchopra6478
@sohangchopra6478 2 жыл бұрын
why is the video quality so bad???
@vikingden8402
@vikingden8402 6 жыл бұрын
The clearest Python dictionary background explanation! Thanks! BTW, slides: rhodesmill.org/brandon/slides/2010-03-pycon/
@hamman_samuel
@hamman_samuel 7 жыл бұрын
Used words from an English dictionary to input elements into a Python dictionary. And all the undergrads screamed in agony.
@hiwaqas
@hiwaqas 7 жыл бұрын
When going for lookup, how is the path to a certain key known? Is it stored/cached when the dict was being formed? Or is the path taken, dependent on the higher bits of the hash?
@justgivemethetruth954
@justgivemethetruth954 7 жыл бұрын
24:26
@vincentphilippe_18
@vincentphilippe_18 3 жыл бұрын
A hash function return the same hash for one value. So given any value, a hash function can retrieve where a data is stored. That's why here it use bit() function because every value have a unique 'bits' value representation.
@justgivemethetruth954
@justgivemethetruth954 7 жыл бұрын
So, does the lookup then try to match the key every time the has points to a given slot? And then if the key goes not match, it goes through successive keys until it finds a match? This would seem to say to me that unless you need to and cannot use a list, stay away from dicts? And so this is really a trick lecture ... only a problem with miniscule sizes of dicts, but seems like you always are wasting 1/3 of the space allocated for your dict addressiing since it will resize, quadrupling or doubling when it gets to 2/3? No problem, RAM is cheap!
@4rph3n
@4rph3n 8 жыл бұрын
What is the "bits" function you're using?
@aaronhall8039
@aaronhall8039 8 жыл бұрын
+Sebastian Wozny It is something like: def bits(integer): return bin(integer)[2:]
@jursamaj
@jursamaj 5 жыл бұрын
It's right there in the video at 0:12: def bits(n): n+=2**32 return bin(n)[-32:]
@dzidmail
@dzidmail Жыл бұрын
What if value is a large string that doesn't fit between two hashed memory pointers? I think something is missing from how this really works.
Raymond Hettinger - Super considered super! - PyCon 2015
46:52
PyCon 2015
Рет қаралды 122 М.
Brandon Rhodes   The Dictionary Even Mightier   PyCon 2017
47:22
PyCon 2017
Рет қаралды 31 М.
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 62 МЛН
🌊Насколько Глубокий Океан ? #shorts
00:42
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 104 МЛН
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 9 МЛН
Brandon Rhodes: The Mighty Dictionary (PyCon 2010)
30:50
Brandon Rhodes
Рет қаралды 3,6 М.
Alex Gaynor: Fast Python, Slow Python - PyCon 2014
36:11
PyCon 2014
Рет қаралды 62 М.
Loop like a native: while, for, iterators, generators
29:15
Next Day Video
Рет қаралды 117 М.
Understanding the Python GIL
46:10
David Beazley
Рет қаралды 111 М.
Bob Nystrom - Is There More to Game Architecture than ECS?
23:06
Roguelike Celebration
Рет қаралды 194 М.
Ned Batchelder: Getting Started Testing - PyCon 2014
42:44
PyCon 2014
Рет қаралды 57 М.
A Python Æsthetic: Beauty and Why I Python
46:56
Next Day Video
Рет қаралды 22 М.
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,6 МЛН
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 2,2 МЛН
После ввода кода - протирайте панель
0:18
Up Your Brains
Рет қаралды 1,2 МЛН