Kirill Simonov | 3 Oct 2008 21:28
Picon

[ANN] PyYAML-3.06: YAML parser and emitter for Python

========================
  Announcing PyYAML-3.06
========================

A new bug fix release of PyYAML is now available:

     http://pyyaml.org/wiki/PyYAML

Changes
=======

* setup.py checks whether LibYAML is installed and if so, builds
   and installs LibYAML bindings.  To force or disable installation
   of LibYAML bindings, use '--with-libyaml' or '--without-libyaml'
   options respectively.
* Building LibYAML bindings no longer requires Pyrex installed.
* 'yaml.load()' raises an exception if the input stream contains
   more than one YAML document.
* Fixed exceptions produced by LibYAML bindings.
* Fixed a dot '.' character being recognized as !!float.
* Fixed Python 2.3 compatibility issue in constructing !!timestamp
   values.
* Windows binary packages are built against the LibYAML stable branch.
* Added attributes 'yaml.__version__' and  'yaml.__with_libyaml__'.

Resources
=========

PyYAML homepage: http://pyyaml.org/wiki/PyYAML
PyYAML documentation: http://pyyaml.org/wiki/PyYAMLDocumentation
(Continue reading)

sklist | 4 Oct 2008 02:22

Re: [ANN] PyYAML-3.06: YAML parser and emitter for Python

On Fri, 03 Oct 2008 22:28:12 +0300 Kirill Simonov <xi@...> wrote:
>========================
>  Announcing PyYAML-3.06
>========================
>
>A new bug fix release of PyYAML is now available:
>
>     http://pyyaml.org/wiki/PyYAML
>
>
>Changes
>=======
>
...
>* Building LibYAML bindings no longer requires Pyrex installed.
...

I'm wondering if there is any benifit to dropping/retaining Pyrex as a 
build dependency in the Debian package?  What's difference if I build 
with/without it?  

In case it matters, I build with libyaml bindings.

Scott K

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
(Continue reading)

Kirill Simonov | 5 Oct 2008 23:30
Picon

Re: [ANN] PyYAML-3.06: YAML parser and emitter for Python

Hi Scott,

sklist@... wrote:
> ...
>> * Building LibYAML bindings no longer requires Pyrex installed.
> ...
> 
> I'm wondering if there is any benifit to dropping/retaining Pyrex as a 
> build dependency in the Debian package?  What's difference if I build 
> with/without it?  

The Pyrex dependency was dropped because the tgz is now shipped with a 
pregenerated _yaml.c file.  Therefore there's no need for users to run 
Pyrex to compile _yaml.pyx into _yaml.c.  You may still rebuild _yaml.c, 
if you have Pyrex installed, if you pass the --force option to the 
build_ext command.  Whether or not you need to do it for the Debian 
package, I'm not sure.  I would probably prefer if you keep the 
pregenerated _yaml.c because it would mean everybody uses the same code 
and I would not have to be hunting for bugs which may be introduced by 
different versions of Pyrex.  FYI, _yaml.c in .tgz was built with 
Pyrex-0.9.8.5 while there is some bug in the previous version of Pyrex, 
0.9.8.4, which prevents it from building _yaml.c.

Thanks,
Kirill

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
(Continue reading)

Matthew Wilson | 11 Oct 2008 17:12
Gravatar

PyYAML: YAMLObject subclasses are ignored

I suspect the solution to my problem is something really trivial.

I wrote a module called pitz that contains a class Issue:

    >>> pitz.Issue.yaml_tag
    u'ditz.rubyforge.org,2008-03-06/issue'

Then I try to load a document with that same tag, but I get a
ConstructorError:

    ConstructorError: could not determine a constructor for the tag
    '!ditz.rubyforge.org,2008-03-06/issue'

I think there's some namespace/scoping problem, because when I define
the same class in my interpreter and then run yaml.load(issue_file),
everything works OK.

So, how do I tell yaml to build pitz.Issue instances when it runs across
that tag?

Do I need to use add_constructor?  If so, I'd *really* appreciate some
example usage.

Thanks!

Matt

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
(Continue reading)

Matthew Wilson | 11 Oct 2008 18:51
Gravatar

Re: PyYAML: YAMLObject subclasses are ignored

On Sat 11 Oct 2008 11:12:31 AM EDT, Matthew Wilson wrote:
> I suspect the solution to my problem is something really trivial.
>
> I wrote a module called pitz that contains a class Issue:
>
>     >>> pitz.Issue.yaml_tag
>     u'ditz.rubyforge.org,2008-03-06/issue'
>
> Then I try to load a document with that same tag, but I get a
> ConstructorError:
>
>     ConstructorError: could not determine a constructor for the tag
>     '!ditz.rubyforge.org,2008-03-06/issue'
>

I figured out my problem.  I forgot the "!" character in front of my
yaml_tag attribute.  Whoops!

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Trans | 11 Oct 2008 23:37
Picon
Gravatar

Re: Rx, a schema system that can handle YAML


On Aug 30, 11:15 pm, Ricardo SIGNES <y...@...> wrote:
> It's time for me to clean the guinea pig cage and go to bed, so I'll be brief.
> I'm happy enough with the design and implementation of my Rx schema system to
> start talking about it more.
>
>  http://rjbs.manxome.org/rubric/entry/1670
>
> It's a simple system for writing schemata to validate data across platforms.
> In other words, it's great for using at both ends of web service interactions.
> It's designed to work with only the features that JSON provides, but that means
> it works well with YAML as well.

Nice work.

FYI: there's also Kwalify:

  http://redhanded.hobix.com/inspect/kwalifyIsYamlSchemastuffs.html

T.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Andrey Somov | 30 Oct 2008 11:25
Picon

typos in YAML 1.1 examples

Hi,
while reading the examples at http://yaml.org/spec/1.1/ I have found a few typos. How shall I report them ?
For instance:
 
Example 2.19. Integers
decimal: +12,345 (must be underscore)
 
Example 2.23. Various Explicit Tags
'binary' must escape \n at the end of lines
 
Example 6.6. Ignored Prefix
'block' is missing \n (In literals, newlines are preserved)
 
Andrey
 
 
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Yaml-core mailing list
Yaml-core@...
https://lists.sourceforge.net/lists/listinfo/yaml-core

Gmane