Comments (2)
Isn’t that already possible?
>>> from edn_format import add_tag, loads
>>> def my_verbose_tag(el):
... print("Hey I got %s" % el)
... return el
...
>>> add_tag("verbose", my_verbose_tag)
>>> loads("#verbose 42")
Hey I got 42
42
from edn_format.
It would also be nice if the module functions like =edn_format.dumps= and =edn_format.loads= took optional functions as parameters for handlers.
Do you mind making a pull-request?
I’m closing this since it doesn’t seem to be an issue. Please reopen if you think it is. Thanks!
from edn_format.
Related Issues (20)
- Throws error on non-RFC3339 timestamp, this isn't actually obligatory.
- Push 0.5.1 to PyPI HOT 1
- [PATCH] Failing test for set round-tripping HOT 4
- Inconsistent mapping of values HOT 7
- Error in serialization of escape sequences HOT 4
- insufficient support for character values HOT 4
- vectors are parsed as mutable lists HOT 4
- Feature request: Pretty printing HOT 3
- Less strict versions in requirement.txt HOT 2
- SyntaxError: Illegal character '^' when parsing files with metadata HOT 2
- DeprecationWarnings with Python 3.7 HOT 2
- Support for edn_format.loads("#tag {:a :b}") HOT 1
- HEX Numeric notation not supported HOT 7
- Couldn't open 'parser.out' & 'edn_format.parsetab' HOT 2
- Cannot correctly parse exact precision floats
- Is v0.7.0 uploaded properly? HOT 1
- Missing support for map namespace syntax HOT 6
- Can't install with pip 20 HOT 3
- Load edn as a Python dict with string keys HOT 8
- Cannot parse Roam EDN exports HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edn_format.