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

2011-05-29 Thread Kirill Simonov
tp://pyyaml.org/wiki/PyYAML description: YAML parser and emitter for Python keywords: [YAML, serialization, configuration, persistance, pickle] Copyright = The PyYAML module is written by Kirill Simonov . PyYAML is released under the MIT license. -- http://mail.python.org/mailman/listinfo/python-list

Re: HTSQL 2.0 RC1 -- a Query Language for the Accidental Programmer

2011-01-22 Thread Kirill Simonov
On 01/22/2011 12:25 AM, rusi wrote: On Jan 22, 2:45 am, "Clark C. Evans" wrote: Kirill Simonov and myself would like to introduce HTSQL, a novel approach to relational database access which is neither an ORM nor raw SQL. : We're curious what you think. Thanks -- looks inte

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-29 Thread Kirill Simonov
Hi Raymond, Another example: extensions in Mercurial. Mercurial is a VCS with a typical command line syntax: $ hg Mercurial has an extension mechanism for adding new and modifying existing commands. A big chunk of Mercurial functionality is implemented in `ui` and `repo` classes and ext

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-28 Thread Kirill Simonov
Hi Raymond, We've been using cooperative inheritance to implement stacked utilities such as WSGI middleware or connecting to a database. An example of a WSGI middleware stack: # Declare the interface and provide the default implementation. class WSGI(Utility): def __call__(self, environ,

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Kirill Simonov
Patrick Maupin wrote: On Mon, Mar 1, 2010 at 8:02 PM, Kirill Simonov wrote: BTW, congratulations on slogging through the YAML grammar to generate such a good working C library! That must have been a tremendous effort. The trick was to completely ignore the grammar described in the

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Kirill Simonov
Patrick Maupin wrote: Kirill: Thank you for your constructive criticism. This is the gem that made it worthwhile to post my document. I think all of your points are spot-on, and I will be fixing the documentation. You are welcome. Despite what others have been saying, I don't think this ar

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Kirill Simonov
Patrick Maupin wrote: All: Finding .ini configuration files too limiting, JSON and XML to hard to manually edit, and YAML too complex to parse quickly, I have started work on a new configuration file parser. I'd like to note that with the optional libyaml bindings, the PyYAML parser is pretty

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Kirill Simonov
Erik Max Francis wrote: Daniel Fetchinson wrote: it is my goal (which I may or may not be smart enough to reach) to write a module that anybody would want to use; But you are working on a solution in search of a problem. The really smart thing to do would be pick something more useful to work

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

2009-08-31 Thread Kirill Simonov
aml.org/wiki/PyYAML description: YAML parser and emitter for Python keywords: [YAML, serialization, configuration, persistance, pickle] Copyright = The PyYAML module is written by Kirill Simonov . PyYAML is released under the MIT license. -- http://mail.python.org/mailman/listinfo/python-list

[ANN] PyYAML-3.08: Now with Python 3 support

2008-12-30 Thread Kirill Simonov
': 'PyYAML'} >>> print yaml.dump(_) name: PyYAML homepage: http://pyyaml.org/wiki/PyYAML description: YAML parser and emitter for Python keywords: [YAML, serialization, configuration, persistance, pickle] Copyright = The PyYAML module is written by Kirill Simonov . PyYAML is released under the MIT license. -- http://mail.python.org/mailman/listinfo/python-list

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

2008-12-28 Thread Kirill Simonov
YAML homepage: http://pyyaml.org/wiki/PyYAML description: YAML parser and emitter for Python keywords: [YAML, serialization, configuration, persistance, pickle] Copyright = The PyYAML module is written by Kirill Simonov . PyYAML is released under the MIT license. -- http://mail.python.org/mailman/listinfo/python-list

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

2008-10-03 Thread Kirill Simonov
nce', 'pickle'], 'homepage': 'http://pyyaml.org/wiki/PyYAML', 'description': 'YAML parser and emitter for Python', 'name': 'PyYAML'} >>> print yaml.dump(_) name: PyYAML homepage: http://pyyaml.org/wiki/PyYAML des

Re: creating yaml without tags using pyyaml

2008-06-06 Thread Kirill Simonov
Stephen Moore wrote: I have come to the conclusion that this is the fault of the tags (for example, !!python/tuple) as getting rid of them gets rid of the errors. So I'm wondering if there is an option to YAML.decode that will create a yaml document without the tags? Try yaml.safe_dump(). >>>

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

2007-05-12 Thread Kirill Simonov
istance', 'pickle'], 'homepage': 'http://pyyaml.org/wiki/PyYAML', 'description': 'YAML parser and emitter for Python', 'name': 'PyYAML'} >>> print yaml.dump(_) name: PyYAML homepage: http://pyyaml.org/wiki/PyYAML

Re: Re:A python IDE for teaching that supports cyrillic i/o

2006-11-19 Thread Kirill Simonov
On Sat, Nov 18, 2006 at 06:11:48PM -0800, PyScripter wrote: > Kirill Simonov wrote: > > PyScripter does, indeed, look nice, but unfortunately it appeared to > > have similar issues with cyrillic support. Thank you anyway for the > > suggestion. > > > What are the i

Re: A python IDE for teaching that supports cyrillic i/o

2006-11-19 Thread Kirill Simonov
On Sun, Nov 19, 2006 at 03:13:30PM +0100, Alan Franzoni wrote: > Kirill Simonov si è divertito a scrivere: > > > On Sun, Nov 19, 2006 at 12:33:39PM +0100, Alan Franzoni wrote: > > > No, I would prefer the editor to save the .py files with non-ASCII > > characters i

Re: A python IDE for teaching that supports cyrillic i/o

2006-11-19 Thread Kirill Simonov
On Sun, Nov 19, 2006 at 03:27:32AM -0800, Leo Kislov wrote: > IDLE on Windows works fine for your example in interactive console: > > >>> name = raw_input("What's your name? ") Have you tried to use cyrillic characters in a Python string in interactive console? When I do it, I get the "Unsupporte

Re: A python IDE for teaching that supports cyrillic i/o

2006-11-19 Thread Kirill Simonov
On Sun, Nov 19, 2006 at 12:33:39PM +0100, Alan Franzoni wrote: > Kirill Simonov si è divertito a scrivere: > > > Unfortunately, most IDEs I tried failed miserably in this respect. My > > test was simple: I've run the code > > name = raw_input("What

Re: [Zopyrus] A python IDE for teaching that supports cyrillic i/o

2006-11-18 Thread Kirill Simonov
On Sun, Nov 19, 2006 at 02:49:43AM +0600, Gleb Kulikov wrote: > В сообщении от Воскресенье 19 Ноябрь 2006 01:01 Kirill Simonov написал: > > > first programming language to high school students? It is necessary > > > Unfortunately, most IDEs I tried failed miserably

Re:A python IDE for teaching that supports cyrillic i/o

2006-11-18 Thread Kirill Simonov
On Sat, Nov 18, 2006 at 01:22:44PM -0600, Larry Bates wrote: > Oleg Broytmann wrote: > > On Sat, Nov 18, 2006 at 09:01:04PM +0200, Kirill Simonov wrote: > >> Could anyone suggest me a simple IDE suitable for teaching Python as a > >> first programming langu

Re: [Zopyrus] A python IDE for teaching that supports cyrillic i/o

2006-11-18 Thread Kirill Simonov
On Sat, Nov 18, 2006 at 10:52:35PM +0300, Oleg Broytmann wrote: > On Sat, Nov 18, 2006 at 09:22:48PM +0200, Kirill Simonov wrote: > > Preferably. I believe that using a editor + command line will only make > > things worse because console and GUI have different encodings un

Re: [Zopyrus] A python IDE for teaching that supports cyrillic i/o

2006-11-18 Thread Kirill Simonov
On Sat, Nov 18, 2006 at 07:20:49PM +, tom wrote: > Oleg Broytmann wrote: > > On Sat, Nov 18, 2006 at 09:01:04PM +0200, Kirill Simonov wrote: > > > >> Could anyone suggest me a simple IDE suitable for teaching Python as a > >> first programming

A python IDE for teaching that supports cyrillic i/o

2006-11-18 Thread Kirill Simonov
On Sat, Nov 18, 2006 at 10:08:22PM +0300, Oleg Broytmann wrote: > On Sat, Nov 18, 2006 at 09:01:04PM +0200, Kirill Simonov wrote: > > Could anyone suggest me a simple IDE suitable for teaching Python as a > > first programming language to high school students? > >Does

A python IDE for teaching that supports cyrillic i/o

2006-11-18 Thread Kirill Simonov
Hi, Could anyone suggest me a simple IDE suitable for teaching Python as a first programming language to high school students? It is necessary that it has a good support for input/output in Cyrillic. Unfortunately, most IDEs I tried failed miserably in this respect. My test was simple: I've run

distutils: optionally build C bindings to an external library

2006-10-09 Thread Kirill Simonov
Hi, I've written a pure Python module, which could optionally use an external C library. The external library is not required to be on the user computer however, so I'd like not to build the bindings by default, but allow a user to turn the build on by specifying some parameter to `setup.py`. Basi

Re: help on pickle tool

2006-10-09 Thread Kirill Simonov
Hi, I'm somewhat late to this discussion, but as the author of PyYAML, I'd like to put my 2c in. On Thu, Oct 05, 2006 at 09:52:56PM -0700, virg wrote: > Is it possible to deserialize the data by java which serialized by > Python or is there any compatibility issue. Is there any equivalent > pic

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

2006-08-20 Thread Kirill Simonov
indirect self references: [*A, *A, *A] ... } ... """) {'direct self reference': {...}, 'indirect self references': [{...}, {...}, {...}]} Copyright = The PyYAML module is written by Kirill Simonov <[EMAIL PROTECTED]>. PyYAML is released under the MIT license. This re

[ANN] LibYAML-0.0.1: The initial release

2006-08-01 Thread Kirill Simonov
, and the examples `tests/example-reformatter.c` and `tests/example-deconstructor.c`. There are preliminary Python bindings for LibYAML in the PyYAML SVN repository. LibYAML is written by Kirill Simonov <[EMAIL PROTECTED]>. It is released under the MIT license. See the file LICENSE for m

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

2006-06-19 Thread Kirill Simonov
l.dump(_) name: PyYAML homepage: http://pyyaml.org/wiki/PyYAML description: YAML parser and emitter for Python keywords: [YAML, serialization, configuration, persistance, pickle] Copyright = The PyYAML module is written by Kirill Simonov <[EMAIL PROTECTED]>. PyYAML is released under the MIT license. -- http://mail.python.org/mailman/listinfo/python-list

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

2006-05-15 Thread Kirill Simonov
gt;>> print yaml.dump(_) name: PyYAML homepage: http://pyyaml.org/wiki/PyYAML description: YAML parser and emitter for Python keywords: [YAML, serialization, configuration, persistance, pickle] Copyright = The PyYAML module is written by Kirill Simonov <[EMAIL PROTECTED]>. PyYAML is released under the MIT license. -- xi -- http://mail.python.org/mailman/listinfo/python-list

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

2006-05-08 Thread Kirill Simonov
org/ YAML-core mailing list: http://lists.sourceforge.net/lists/listinfo/yaml-core Changes === * Initial release. The version number reflects the codename of the project (PyYAML 3000) and differenciates it from the abandoned PyYaml module. Copyright = The PyYAML module is written by Kirill Simonov <[EMAIL PROTECTED]>. PyYAML is released under the MIT license. -- xi -- http://mail.python.org/mailman/listinfo/python-list

__reduce__(1) vs __reduce__(2)

2006-04-20 Thread Kirill Simonov
Could someone explain why __reduce__(2) works for files while __reduce__(1) doesn't? >>> f = file('/etc/passwd') >>> f.__reduce__(1) Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.4/copy_reg.py", line 69, in _reduce_ex raise TypeError, "can't pickle %s obje

PyGILState_Release + Python2.3 = Segmentation Fault

2006-01-31 Thread Kirill Simonov
Hi, Could someone tell me why my extension module works under Python 2.4, but fails with Segmentation Fault under Python 2.3? Here is the stripped version: #include static PyObject * test_gil(PyObject *self) { PyGILState_STATE gs; Py_BE