strange behaviour of colon within string

Diez B. Roggisch deets at
Mon Oct 19 14:57:29 CEST 2009

khany wrote:

> hello all,
> i am relatively new to python and i am trying to convert a php app i
> have over to it using googleapps.
> anyway here is the problem. i poll ebay API which has in its XML "<?
> xml version="1.0" encoding="utf-8"?><findItemsAdvancedRequest
> xmlns="">  .... "
> however it fails to create the string UNLESS i remove the colon (:) in
> the http section. i tried to substitute it with chr(58) but it errors
> the same without showing why. does anyone know what i am doing wrong?
> is this peculiar to googleapps?

Please show us code & actual stacktraces. Python can generate XML just fine,
so it's pretty likely that you are doing something wrong.


More information about the Python-list mailing list