how do you do a count of a result set?
hi. i'm using this function; def dbCacheGet(self, appParams): results = db.GqlQuery( "SELECT * " "FROM DBcache " "WHERE url='"+appParams['urlCalled']+"'" ).fetch(1) if results.count('*')==0: return None else: return results i dont think this will work co... 10 Jul 2010 03:03
(((((( hi Friend))))))
(((((( hi Friend)))))) I bet that your happiness here Site a priest after being found happiness www.islamalways.com www.shareislam.com Other Sites: For more information about Islam http://islamtomorrow.com/ http://www.55a.net/firas/english/ http://english.islamway.com/ http://www.islamonline.... 9 Jul 2010 23:49
Would you stop for a moment?! O...man...Haven't you thought-one day- about yourself ? Who has made it? Have you seen a design which hasn't a designer ?! Have you seen a wonderful,delicate work without a worker ?! It's you and the whole universe!.. Who has made them all ?!! You know who ?.. It's "ALLAH",prise b... 9 Jul 2010 22:43
Pretty printing with ElementTree
On Fri, 2010-07-09 at 15:46 -0700, abhijeet thatte wrote: Hi, Does any one know how to use pretty printing with ElementTree while generating xml files. We can use that with lxml. But I want to stick with it ElementTree. Thanks, Abhijeet It's pretty simple minded, but this recipe... 9 Jul 2010 19:25
Cpp + Python: static data dynamic initialization in *nix sharedlib?
On 07/10/10 03:52 AM, Alf P. Steinbach /Usenet wrote: [Cross-posted comp.lang.python and comp.lang.c++] I lack experience with shared libraries in *nix and so I need to ask... This is about "cppy", some support for writing Python extensions in C++ that I just started on (some days ago almost known as ... 14 Jul 2010 07:39
the ball needs a kick...
yes But further messages had better be posted to the forum. And not top-posted. DaveA ... 9 Jul 2010 17:12
any issues with long running python apps?
i have been asked to guarantee that a proposed Python application will run continuously under MS Windows for two months time. And i am looking to know what i don't know. The app would read instrument data from a serial port, store the data in file, and display in matplotlib. typical sampling times are about o... 16 Jul 2010 10:59
* Dani Valverde, on 09.07.2010 18:31: Hello! I am new to python and pretty new to programming (I have some expertise wit R statistical programming language). I am just starting, so my questions may be a little bit stupid. Can anyone suggest a good editor for python? Cheers! If you're working in Win... 13 Jul 2010 17:31
zipimport (.pyd & .so) files.
Hi, The 'zipimport' modules can only import (.py & .pyc) files from a zip file and doesn't support importing .pyd & .so files. Recently I was examining the code of Py2Exe (python package deployment tool) and I have found that it is using a module 'zipextimporter' that can import dlls(.pyd) modules from a zip fil... 10 Jul 2010 06:13
Cpp + Python: static data dynamic initialization in *nix shared lib?
[Cross-posted comp.lang.python and comp.lang.c++] I lack experience with shared libraries in *nix and so I need to ask... This is about "cppy", some support for writing Python extensions in C++ that I just started on (some days ago almost known as "pynis" (not funny after all)). For an extension module it se... 14 Jul 2010 05:29