GithubHelp home page GithubHelp logo

brandon-rhodes / pycon2010-mighty-dictionary Goto Github PK

View Code? Open in Web Editor NEW
22.0 5.0 7.0 1.33 MB

Slides, dict introspection, and dict diagramming tools for my PyCon 2010 Talk “The Mighty Dictionary”

License: MIT License

Python 20.63% CSS 2.57% JavaScript 13.14% Makefile 0.98% HTML 62.68%

pycon2010-mighty-dictionary's Introduction

The Mighty Dictionary

The tools in this repository can inspect a Python dictionary and build the diagrams for my PyCon 2010 talk “The Mighty Dictionary” like:

This repository also includes the talk’s slides in presentation.html along with its JavaScript and CSS. You can watch the talk at:

http://pyvideo.org/video/276/the-mighty-dictionary-55

pycon2010-mighty-dictionary's People

Contributors

brandon-rhodes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pycon2010-mighty-dictionary's Issues

Regarding the `bits` function in the talk

Hi Mr. Rhodes,

Sorry if this is a naive question. I am following your lecture along but I got stumped in one of the first slides. For your line of code:

    print(bits(hash(key)), key)```
Apparently for Python 3.7, bits is not a built-in function anymore. I tried using `bin` but didn't get the same results. Googling "Python 2.7 bits function" didn't get me anything useful at all. 

I am sure this won't affect the whole lecture, but still am curious to know. 

Thanks.

python 2.7 changes

when i try to run _dictdraw.py (or any other file that uses _dictdraw) i get this error:
File "_dictinfo.py", line 85, in <module> dummy = dictobject(d).ma_table[0].me_key
ValueError: NULL pointer access

i'm using windows and python 2.7.

i think this problem is because the internals of dictionaries has changed from version 2.6 to 2.7.

is there any way to fix this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.