Hacker Poesy
  • FAQ
  • Login
  • Public

    • Public
    • Groups
    • Recent tags
    • Popular
    • Directory

Conversation:

Notices

  1. Brett Slatkin ()'s status on Saturday, 26-Jan-2013 04:09:00 EST Brett Slatkin Brett Slatkin
    Remote profile options...
    Behold! The infinite dict.
    >>> def a(): b = lambda: defaultdict(b); return b()
    >>> x = a(); x[1][2][3] = 'Infinity!'; print dumps(x)
    {"1": {"2": {"3": "infinity!"}}}
    
    Defining B in A prevents renames of A from breaking dictionaries made with B.

    prior artimage
    Saturday, 26-Jan-2013 04:09:00 EST from feedproxy.google.com permalink

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • Privacy
    • Source
    • Version
    • Contact

    Hacker Poesy is a GNU social hub. It runs version 1.1.3-beta3, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All Hacker Poesy content and data are available under the Creative Commons Attribution 3.0 license.

    Switch to mobile site layout.