marrow / util Goto Github PK
View Code? Open in Web Editor NEWCommonly shared Python utility subclasses and functions.
License: MIT License
Commonly shared Python utility subclasses and functions.
License: MIT License
Introduce this more consistent behaviour and make the existing MultiBunch a ConservativeMultiBunch. The original goal was to mimic the behaviour of PHP's argument globbing (@{foo[]=bar, foo[]=baz} == {foo=[bar, baz]}@).
The execfile replacement needs .read() after open() to work on py3k.
File "../build/marrow.util/setup.py", line 13, in
exec(open(os.path.join("marrow", "util", "release.py")))
TypeError: exec() arg 1 must be a string, bytes or code object
It must be:
exec(open(os.path.join("marrow", "util", "release.py")).read())
In [18]: from marrow.util import convert
NameError Traceback (most recent call last)
in ()
----> 1 convert.number('not_a_number')
/Users/fletcher/Work/Current/MatchFwd/env/lib/python2.7/site-packages/marrow/util/convert.pyc in number(input)
155 return float(input)
156 except (TypeError, ValueError):
--> 157 raise ValueError("Unable to convert {0!r} to a number.".format(obj))
158
159
NameError: global name 'obj' is not defined
Bunch should leave its contents alone; if a developer wants nested Bunch'es, then they can convert it themselves.
Hello.
Could you please include LICENSE, README.textile and test dir in PyPI package?
Thanks a lot and have a nice day.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.