Hi There!
I'm trying to use Zope and the product OpenFlow.
I got the following error while I was using the built-in function
getattr() to retrieve an OpenFlow object:
attribute name must be string
Actually, I surely pass a string as attribute name to getattr()
The code:
#following instructio
Hole ha scritto:
> Hi There!
>
> I'm trying to use Zope and the product OpenFlow.
>
> I got the following error while I was using the built-in function
> getattr() to retrieve an OpenFlow object:
>
> attribute name must be string
>
>
> Actually, I sur
Gabriel Genellina ha scritto:
> At Monday 18/12/2006 13:25, Hole wrote:
>
> > > At this point, I got the error: attribute name must be string
> >
> >I'm wondering if the exception is raised in a hidden function and not
> >in the explicit call to getatt
> > I need to use XML parsing with xpath: a simple xml reader.
>
> You can try lxml, have a look herehttp://codespeak.net/lxml/xpathxslt.html
Thanks a lot to everyone!
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I hope this is not an "overasked" question but I find myself quite
confused about python xml management (I have to use python for a
project and I come from java world, you know...where frameworks,
libraries and tools to use are standard de iure or standard de facto).
I need to use XML par
When I write program (.py) with IDLE , I am able to use run package .
- - - - start - - - -
if __name__ == '__main__':
import sys,os
import run
run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])
- - - - end - - - - -
above code works simply with the IDLE.
But problem
I have .py file which uses some third party modules like egg files, like
simplejson and python-twitter ,
- start of file -
import ConfigParser
import getopt
import os
import sys
import twitter
when i compile this py file using compile module , i get .pyc file . Now my
question is , if