strange behaviour of colon within string

Diez B. Roggisch deets at nospam.web.de
Mon Oct 19 08:57:29 EDT 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="http://www.ebay.com/marketplace/search/v1/services">  .... "
> 
> 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.

Diez



More information about the Python-list mailing list