Re: [ANN] pyxser-1.2r --- Python-Object to XML serialization module

2009-08-25 Thread Daniel Molina Wegener
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Stefan Behnel stefan...@behnel.de on Tuesday 25 August 2009 01:23 wrote in comp.lang.python: Stefan Behnel wrote: for all byte strings, regardless of their encoding (since you can't even know if they represent encoded text at all). Hmm,

Re: [ANN] pyxser-1.2r --- Python-Object to XML serialization module

2009-08-24 Thread Stefan Behnel
Daniel Molina Wegener wrote: * Added encoded serialization of Unicode strings by using the user defined encoding as is passed to the serialization functions as enc parameter As you see, now Unicode strings are serialized as encoded byte string by using the encoding

Re: [ANN] pyxser-1.2r --- Python-Object to XML serialization module

2009-08-24 Thread Daniel Molina Wegener
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Stefan Behnel stefan...@behnel.de on Monday 24 August 2009 03:16 wrote in comp.lang.python: Daniel Molina Wegener wrote: * Added encoded serialization of Unicode strings by using the user defined encoding as is passed to the

Re: [ANN] pyxser-1.2r --- Python-Object to XML serialization module

2009-08-24 Thread Stefan Behnel
Daniel Molina Wegener wrote: unicode objects are encoded into the encoding that the XML document encoding has, and as you say, the whole XML document has one encoding. There is no mixing of byte encoded strings with different encodings in the outout document. Ok, that's what I hoped anyway.

Re: [ANN] pyxser-1.2r --- Python-Object to XML serialization module

2009-08-24 Thread Daniel Molina Wegener
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Stefan Behnel stefan...@behnel.de on Monday 24 August 2009 09:00 wrote in comp.lang.python: Daniel Molina Wegener wrote: unicode objects are encoded into the encoding that the XML document encoding has, and as you say, the whole XML document

Re: [ANN] pyxser-1.2r --- Python-Object to XML serialization module

2009-08-24 Thread Stefan Behnel
Daniel Molina Wegener wrote: Stefan Behnel stefan...@behnel.de wrote: Daniel Molina Wegener wrote: When the object is restored, by using pyxser.unserialize: pyobj = pyxser.unserialize(obj = xmldocstr, enc = utf-8) But this is XML, right? What do you need to pass the encoding for at this

Re: [ANN] pyxser-1.2r --- Python-Object to XML serialization module

2009-08-24 Thread Stefan Behnel
Stefan Behnel wrote: for all byte strings, regardless of their encoding (since you can't even know if they represent encoded text at all). Hmm, having written that, I guess it's actually best to encode byte strings as base64 instead. Otherwise, null bytes and other special byte values won't

[ANN] pyxser-1.2r --- Python-Object to XML serialization module

2009-08-23 Thread Daniel Molina Wegener
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hello, I'm pleased to announce pyxser-1.2r, a Python-Object to XML serializer and deserializer. This module package it's completely written in C and licensed under LGPLv3. The tested Python versions are 2.5.X and 2.7.X. * home page: