Git Product home page Git Product logo

Comments (4)

shaunxcode avatar shaunxcode commented on June 20, 2024

I would suggest when dealing with "complex keys" doing something like

{repr([1, 2, 3]): "some numbers"} ?

from edn_format.

shaunxcode avatar shaunxcode commented on June 20, 2024

This is of course also affecting using a Map as a key e.g. #{{:foo bar}}

from edn_format.

bitemyapp avatar bitemyapp commented on June 20, 2024
In [12]: edn_format.loads('{{1 2} "some numbers"}')
Out[12]: {{1: 2}: 'some numbers'}

In [13]: edn_format.loads('{#{1 2} "some numbers"}')
Out[13]: {frozenset([1, 2]): 'some numbers'}

@shaunxcode Map and set work now (we added frozenset/immutable dict) but vectors (lists) do not. Easy solution is switching to tuples by default. We haven't needed it yet.

from edn_format.

swaroopch avatar swaroopch commented on June 20, 2024

This should be working in latest version on pypi, please let us know if otherwise.

from edn_format.

Related Issues (20)

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.