First  |  Prev |  Next  |  Last
Pages: 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
local variable referenced before assignment
I cannot make sense of what's happening here ... I'm getting the following error: initializing last modified time /home/john/Dropbox/Projects/python/scripts/src 29 referencing last modified time /home/john/Dropbox/Projects/python/scripts/src 29 referencing last modified time Traceback (most recent call last):... 6 Apr 2010 04:13
Is there a standard name for this tree structure?
I have a hierarchical structure something like a directory tree or a nested tree structure: Mammal +-- Ape : +-- Chimpanzee : +-- Gorilla : +-- Human +-- Carnivore : +-- Cat : +-- Tiger Reptile +-- Lizard +-- Snake +-- Cobra +-- Python This is a forest because each top-level el... 7 Apr 2010 01:20
vars().has_key() question about how working .
Hi everyone . My questions is "why vars().has_key('b') is False ?' I expecting to see "True" because is a variable ... Thanks Please see code bellow . x=11 def something(): .... b=25 .... vars().has_key('x') True vars().has_key('b') False globals().has_key('x') True globals().... 4 Apr 2010 06:06
Build A Home Internet Business For Extra Income Stream
Why build a residential home internet concern in the primary place? Believe it or not, the the human race saving is changing. While Multinational expanding to total saving, employees are the Mainly vulnerable classify of folks. Therefore, looking into A secondary earnings like build a residential home internet con... 4 Apr 2010 01:46
Question on templates and python logging
Hi - I have been struggling with this problem for quite some time and was hoping somebody could give me some pointers. I have a wxPython front end wizard that collects some information and outputs some HTML pages (not hosted by a web server, but viewable locally on the machine running the application). The probl... 3 Apr 2010 23:36
Incorrect scope of list comprehension variables
Hi all, I've just spent a few hours debugging code similar to this: d = dict() for r in [1,2,3]: d[r] = [r for r in [4,5,6]] print d THe problem is that the "r" in d[r] somehow captures the value of the "r" in the list comprehension, and somehow kills the loop interator. The (unexpected) result is {... 17 Apr 2010 19:38
psycopg2 / psycopg2.ProgrammingError: syntax error at or near "E'mytable'"
Hey all, Right now I'm completely unable to pass parameters to queries under any circumstances. I've got a fairly trivial query as a test... c.execute('SELECT * FROM %(table_name)s LIMIT 1', {'table_name':"mytable"}) It fails, giving the error message... Traceback (most recent call last): File "test.p... 5 Apr 2010 12:43
Is it possible to store data in a Python file in a way similar to Ruby's __END__ section?
On 2010-04-02 13:08:00 -0700, Christopher Roach said: I have a script that I am working on to process a bunch of data. A good portion of the Tk-based GUI is driven by a large set of YAML data and I'd love to store that data inside of the script so that I can send just a single file to my colleague. Ruby h... 2 Apr 2010 17:03
Is it possible to store data in a Python file in a way similarto Ruby's __END__ section?
Christopher Roach wrote: I have a script that I am working on to process a bunch of data. A good portion of the Tk-based GUI is driven by a large set of YAML data and I'd love to store that data inside of the script so that I can send just a single file to my colleague. Ruby has a mechanism for doing thi... 2 Apr 2010 17:03
Getting Local MAC Address
Hello all, I am new to python ans was wondering if there was a way to get the mac address from the local NIC? Thanks for your help. Gerad ... 7 Apr 2010 04:34
First  |  Prev |  Next  |  Last
Pages: 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166