Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Conversation

Notices

  1. speeddefrost speeddefrost

    @cmsj Couldn't you use the pickle module?

    Tuesday, 02-Feb-10 09:03:02 UTC from web
    • James Westby James Westby

      @cmsj: user-editable on disk?

      Monday, 01-Feb-10 00:43:54 UTC
    • Rodney Dawes Rodney Dawes

      @cmsj CPickle I think?

      Monday, 01-Feb-10 00:45:40 UTC
    • Peter Ward Peter Ward

      @cmsj If you want something built-in to python, the json, pickle, shelve modules may be helpful.

      Monday, 01-Feb-10 00:55:23 UTC
    • Rob Weir Rob Weir

      @cmsj json (assuming no loops, I guess)?

      Monday, 01-Feb-10 02:13:13 UTC
    • Arc Riley Arc Riley Python

      @cmsj writing a tree of dicts to a file in !python? sounds like a task for xml, check out ElementTree

      Monday, 01-Feb-10 02:16:20 UTC
    • Christopher Allan Webber Christopher Allan Webber

      @cmsj If your data is fairly basic, consider using simplejson in python <= 2.5 (just "json" in python 3 and 2.6)

      Monday, 01-Feb-10 02:47:51 UTC
    • Guy K. Kloss Guy K. Kloss Python

      @cmsj Try #XML or #JSON for serialising your nested structures in ASCII, so that they can be written to a file in !Python

      Monday, 01-Feb-10 02:51:37 UTC
    • James Westby James Westby

      @cmsj: yaml and json are good formats for representing it then, but opinions on their user-editability differ.

      Monday, 01-Feb-10 08:17:48 UTC
    • John Paulett John Paulett

      @cmsj sorry for the self-promo, but http://jsonpickle.github.com/ might help if the standard json module is too restricting

      Monday, 01-Feb-10 23:32:23 UTC

Site notice

  • API
  • Status

Feeds

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

Identi.ca is a microblogging service brought to you by Status.net. It runs the StatusNet microblogging software, version 1.1.0-alpha1, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Identi.ca content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.

Built in Montreal