|  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11
pivot() equivalent
I *know* this already exists, but I can't remember where: def pivot(func, seq): # I know, a good implementation shouldn't call func() twice per item return ( (x for x in seq if func(x)), (x for x in seq if not func(x)) ) I feel like I read a thread in which this was argued to death, and I can't find that ... 11 Mar 2010 19:06
Platform Requirement Checker (was Does this already exists?:A module that checks if the used platform is supported)
Martin P. Hellwig wrote: On 03/11/10 01:37, Gabriel Genellina wrote: En Wed, 10 Mar 2010 10:54:27 -0300, Martin P. Hellwig <martin.hellwig(a)dcuktec.org> escribi�: Before I start reinventing a squared wheel, I have the following question: Is there already a (standard) module that wraps aroun... 11 Mar 2010 19:06
inspect.stack() and frame
Given this code : # Experience with frame import sys import inspect def foo(): stack = inspect.stack() print "foo frame : " + str(hex(id(sys._getframe()))) def foo2(): inspect.stack() print "foo2 frame : " + str(hex(id(sys._getframe()))) def bar(): print "bar frame : " + str(hex(id(... 11 Mar 2010 19:06
Platform Requirement Checker (was Does this already exists?: A modulethat checks if the used platform is supported)
On 03/11/10 01:37, Gabriel Genellina wrote: En Wed, 10 Mar 2010 10:54:27 -0300, Martin P. Hellwig <martin.hellwig(a)dcuktec.org> escribi�: Before I start reinventing a squared wheel, I have the following question: Is there already a (standard) module that wraps around the various os/sys informati... 11 Mar 2010 17:58
Parsing Email Headers
All I'm looking to do is to download messages from a POP account and retrieve the sender and subject from their headers. Right now I'm 95% of the way there, except I can't seem to figure out how to *just* get the headers. Problem is, certain email clients also include headers in the message body (i.e. if you're r... 11 Mar 2010 19:06
Where can I find documentation for data[:,9]
data = readdata( 'data/input.dat', delimiter = ',' ) input = data[:, :9]#nine data columns Where can I find documentation for the data[:,9] in the code above. Been looking and found many examples but would like to know the definition. I need to skip the first column and then read 9 I would ... 11 Mar 2010 17:58
Python 2.6 and modules dbi AND odbc
On Wed, 10 Mar 2010 16:17:29 -0800, robert somerville wrote: hi; i am trying to get some legacy python code (which i no nothing about) working with tries to import dbi and odbc (the import fails ...) it looks like these modules are deprecated ?? if so is there a work around , if not deprecated, what a... 11 Mar 2010 14:32
Visual Python programming and decompilers?
Hi Guys At work I have been exposed to a Agile Platform called OutSystems. It allows you to visually program your web applications http://i.imgur.com/r2F0i.png and I find the idea very intriguing. So I have started to play around with the idea on how will I be able to visually represent Python code as in the a... 11 Mar 2010 15:41
unable to run wxPython script: dll errors
Hi all, I am trying to run a file that should pop up a dialog. The dialog is fine (I used XRCed to create it and running it from within that editor brings up the dialog I want). When I run my file, though, I get this traceback: C:\Users\Alex>c:\python26\python.exe i:\arm\dictionary.py Traceback (most recent cal... 11 Mar 2010 13:24
use of multiple versions of python
On Thu, Mar 11, 2010 at 12:40 AM, Bujji <sivaits4u(a)gmail.com> wrote: hi all, I have installed python 2.6 in addition to python 2.5 in my system Now for some modules(while installing ) it needs to use python 2.6 how can i do that in case of easy_install what should i do to it to use python 2.6 You shoul... 11 Mar 2010 13:24
importing modules from subdirs
Hi all, The manual says, for modules in a project stored in subdirectories, you can do: import folderName.module I have a couple questions, though: 1. Do I then have to call functions from module like folder.module.function, or can I still use the normal module.function? 2. When I try to do this, it fails. I ... 11 Mar 2010 15:41
Behavior of default parameter in a function
This is addressed in the FAQ. http://www.python.org/doc/faq/general/#why-are-default-values-shared-between-objects jitendra gupta wrote: def foo(x = [0]): x[0] = x[0] + 1 return x[0] def soo(x = None): if x is None: x = [0] x[0] = x[0] + 1 return x[0] foo() 1 f... 11 Mar 2010 12:16
bypass UAC control through python script (to be run from batchfile)
Hi here is my problem. i want to install a program through python script. The python scripts is called from a batch file. The UAC control is not allowing the python script to install a msi (installer). I need to somehow by pass the UAC control. i dont want to turn it off permanently. Once i have run the batch... 11 Mar 2010 12:16
 |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11