Custom Query (121 matches)
Results (22 - 24 of 121)
|#33||fixed||PyYAML + libyyaml shouldn't need PyRex||xi||edemaine@…|
In my understanding of PyRex? (which, I admit, is fairly limited), it is a tool that converts PyRex? code into C (.c, .h, etc.) and Python code. Can't this conversion be done ahead of time when assembling a distribution, so that you don't need PyRex? on the install side? (Same as running lex or yacc etc. at distribution time instead of install time.) Or is there something more subtle going on during installation that this is actually necessary?
Reducing the barrier to installation should make the "fast PyYAML solution" (PyYAML + libyaml) more widely available.
|#39||fixed||yaml.load("") raises an exception||xi||iusty@…|
With the latest PyYAML (3.04):
$ python Python 2.4.4 (#2, Oct 19 2006, 23:03:48) [GCC 4.1.2 20061007 (prerelease) (Debian 4.1.1-16)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import yaml >>> yaml.load("") Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local//lib/python2.4/site-packages/yaml/__init__.py", line 66, in load return loader.get_data() File "/usr/local//lib/python2.4/site-packages/yaml/constructor.py", line 38, in get_data return self.construct_document(self.get_node()) File "/usr/local//lib/python2.4/site-packages/yaml/composer.py", line 23, in get_node return self.compose_document() File "/usr/local//lib/python2.4/site-packages/yaml/composer.py", line 35, in compose_document node = self.compose_node(None, None) File "/usr/local//lib/python2.4/site-packages/yaml/composer.py", line 52, in compose_node anchor = event.anchor AttributeError: 'NoneType' object has no attribute 'anchor' >>>
I think this is a bug - at least it should raise a yaml.scanner.ScannerError?, like yaml.load("'") does, and then it can be easily catched as a malformed stream. Right now, it's hard to deal with this.
|#41||fixed||Patch: Use types module instead of hand crafted entities and type().||xi||v.haisman@…|
Hi, I have a patch that makes PyYAML use types module instead of hand crafted entities and type(). The motivation is that it silences some PyDev? error complains, like methods not having self parameter and such.