[ANN] pyxser-0.2r --- Python XML Serialization

Daniel Molina Wegener dmw at coder.cl
Mon Apr 20 12:30:10 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stefan Behnel wrote:

> Daniel Molina Wegener wrote:
>>   Sorry, it appears that I've misunderstand your question. By /unicode
>> objects/ I mean /python unicode objects/ aka /python unicode strings/.
> 
> Yes, that's exactly what I'm talking about. Maybe you should read up on
> what Unicode is.

  OK, seems that the better option is to return both types in different 
functions, then it will allow the user to choice to fit the development
needs.

> 
> 
>> Most of them can be reencoded into /latin*/ strings and then /ascii/
>> strings if is that what you want. But for most communications, suchs as
>> Java systems, utf-8 encoding goes as default.
> 
> Well, then do not output a Python unicode string, but a UTF-8 encoded byte
> string as the default. Except for a couple of cases, Python unicode
> strings are very inconvenient for serialised XML.

  OK, good point, I must take a look on the implementation, and as I've 
said, I will implement both returns in different functions to allow a user
choice, and document the impact of using python unicode strings.

  Thanks for your feedback :D

> 
> Stefan

Best regards,
- -- 
.O.| Daniel Molina Wegener   | C/C++ Developer
..O| dmw [at] coder [dot] cl | FreeBSD & Linux
OOO| http://coder.cl/        | Standards Basis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBAgAGBQJJ7KMSAAoJEHxqfq6Y4O5NxXcQALZCT+mpjXv2My2XV6VdNAdd
rd2W3q4ZLWdFdawvPwBWIzsoyAWIq1fU5tsZ4gywGesZFF2dbh6QJA7WvsqNaOXp
wraeN0A3uWIwxAQEtHXu/vmO68CskVBxKZOrwjFOFoH3CoDqj0cdltKtddNkjHjl
sxR91bK8lsBtYleQvng5oVjDouTvzSZEj9Lz2EbgjGIe+UKB8cQDLpT5CqF/whW7
kPmmbMJz195dyPTHstTy7BaZTJu/zgA3aNrbl4/QQ9B97dO5oMO3JEQgpTv4KSWn
prpFo447HxYCChd+3wYyEx4tjMfnFezreuWxymKU9BP9Bk6yAcBFfdIDqBvUTDIw
HF24n8NkesoHnoyQ1vf474fyIQ8NT28MQaBZXYntTTx1h015UB7vRMF0L3EttLRy
VdpoRvlVAp01Z+7fdUjIRszveC5OCp1a4ZRmptcrZmIQM83Z/HZDBwjRO0zVuIqM
5qFmhERvgHSEl3cpdANznHZBKEEB9dqmAv9/XV5n5lUMg5Hn6d8yBkiwr5lRJ9eK
0n0602EuiPxgaP5cAbYF0MJGs3c+YNK9eIAmZC9++Fcg6lOlDSwS3RTQMsCi+Rvo
k6gI0YNA9N19zbBfQippf1SGrmGrfPk141gNuXGW2HjIuTF9t3IAUZ/bgpWI74L/
69u5ugNM+ERRnxpgIHLV
=P88y
-----END PGP SIGNATURE-----




More information about the Python-list mailing list