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

2011-05-30 Thread Kirill Simonov
by Kirill Simonov x...@resolvent.net. PyYAML is released under the MIT license. -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

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

2011-05-29 Thread Kirill Simonov
by Kirill Simonov x...@resolvent.net. 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. Evansc...@clarkevans.com 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

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 command command arguments and options Mercurial has an extension mechanism for adding new and modifying existing commands. A big chunk of Mercurial functionality is

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
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

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

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

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 x...@gamma.dn.ua 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

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

2009-08-31 Thread Kirill Simonov
and emitter for Python', 'name': '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

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

2009-08-31 Thread Kirill Simonov
and emitter for Python', 'name': '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

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

2008-12-31 Thread Kirill Simonov
, persistance, pickle] Copyright = The PyYAML module is written by Kirill Simonov x...@resolvent.net. PyYAML is released under the MIT license. -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf

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

2008-12-30 Thread Kirill Simonov
, persistance, pickle] Copyright = The PyYAML module is written by Kirill Simonov x...@resolvent.net. 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
is written by Kirill Simonov x...@resolvent.net. PyYAML is released under the MIT license. -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html

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

2008-12-28 Thread Kirill Simonov
is written by Kirill Simonov x...@resolvent.net. 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
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

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

2008-10-03 Thread Kirill Simonov
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

[issue3884] turtle in the tkinter package?

2008-09-22 Thread Kirill Simonov
Kirill Simonov [EMAIL PROTECTED] added the comment: Thank you for the fix, I really appeciate it. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3884

[issue3884] turtle in the tkinter package?

2008-09-16 Thread Kirill Simonov
New submission from Kirill Simonov [EMAIL PROTECTED]: I wonder why the module 'turtle' was moved to the 'tkinter' package. It is not a part of Tk, it does not provide new or extend existing tkinter API. While it uses tkinter, so do pydoc or idle; this is just an implementation detail. If some

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-13 Thread Kirill Simonov
for Python', 'name': '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 [EMAIL

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

2007-05-12 Thread Kirill Simonov
for Python', 'name': '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 [EMAIL

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's your name? ) # written in Russian print

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 Unsupported

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 in UTF-8 encoding adding the BOM

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 issues? PyScripter offers full support

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

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 it have to be an IDE? Wouldn't

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 language to high school students which operating

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 under Windows. Ouch! I

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 language to high school students? Does it have

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 in this respect. My

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

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`.

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

2006-08-20 Thread Kirill Simonov
reference': {...}, 'indirect self references': [{...}, {...}, {...}]} Copyright = The PyYAML module is written by Kirill Simonov [EMAIL PROTECTED]. PyYAML is released under the MIT license. This release is developed with the support of the Google Summer of Code program under the mentorship

[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 more details

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

2006-06-19 Thread Kirill Simonov
= The PyYAML module is written by Kirill Simonov [EMAIL PROTECTED]. PyYAML is released under the MIT license. -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html

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

2006-06-19 Thread Kirill Simonov
= 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
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-announce-list Support the Python

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

2006-05-15 Thread Kirill Simonov
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

PyYAML-3.01: Initial Release

2006-05-08 Thread Kirill Simonov
. 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-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html

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

2006-05-08 Thread Kirill Simonov
) 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 stdin, line 1, in ? File /usr/lib/python2.4/copy_reg.py, line 69, in _reduce_ex raise TypeError, can't pickle %s objects %

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 Python.h static PyObject * test_gil(PyObject *self) { PyGILState_STATE gs;