Strange error with getattr() function

2006-12-18 Thread Hole
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

Re: Strange error with getattr() function

2006-12-18 Thread Hole
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

Re: Strange error with getattr() function

2006-12-19 Thread Hole
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

Re: Python, XML and XPath

2008-12-17 Thread Hole
> > 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

Python, XML and XPath

2008-12-17 Thread Hole
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

"run" Package Query

2009-03-03 Thread Rohan Hole
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

How to create Standalone PYC File

2009-03-04 Thread Rohan Hole
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