On Aug 20, 9:10 am, MRAB wrote:
> JonathanB wrote:
> > On Aug 13, 3:52 pm, alex23 wrote:
> >> On Aug 13, 4:22 pm, JonathanB wrote:
>
> >>> writer = csv.writer(open(output, 'w'), dialect='excel')
> >> I think - not able to tes
On Aug 13, 3:52 pm, alex23 wrote:
> On Aug 13, 4:22 pm, JonathanB wrote:
>
> > writer = csv.writer(open(output, 'w'), dialect='excel')
>
> I think - not able to test atm - that if you open the file in 'wb'
> mode instead it should be fin
The subject basically says it all, here's the code that's producing
the csv file:
def write2CSV(self,output):
writer = csv.writer(open(output, 'w'), dialect='excel')
writer.writerow(['Name','Description','Due Date','Subject',
'Grade','Maximum Grade', se
Ok, so what I'm hearing is "Get a code portfolio together and watch
the job board on python.org." Thanks for the advice!
I've been watching the python job board 3-4 times a week and I've been
working my way through the Project Euler problems in my free time. I
also have a trade generator that I wr
I am a self-taught Python programmer with a liberal arts degree (Cross-
cultural studies). I have been programming for several years now and
would like to get a job as a python programmer. Unfortunately most of
the job posts I have seen are for CS Majors or people with experience.
Is there a place
I think I found the problem. I recently removed Python 2.5 and
replaced it with 2.6. When I got in, I tried to run some django
commands and even they weren't producing output. On a hunch, I tried
to uninstall 2.6 and reinstall it, since now even django wasn't
producing output. When I tried, it told
#This is pyFind, a python replacement for find(1)
import os, sys, re, fnmatch
from os.path import join
from optparse import OptionParser
usage = "usage: %prog --name [directory1 directory2]"
parser = OptionParser(usage=usage)
parser.add_option("--regex", dest="regex",
help="REGEX MATCHING DOES NO
On Mar 30, 6:28 pm, John Machin wrote:
> On Mar 31, 8:37 am, Irmen de Jong wrote:
> > Does just typing:
>
> > python
Yes, just typing python takes me to my interactive prompt
> > Or do you have a module in your E:\Python\dev directory called 'os', 'sys'
> > or something
> > else that may cl
Ok, I'm sure this is really simple, but I cannot for the life of me
get any print statements from any of my python scripts to actually
print when I call them from the windows command line. What am I doing
wrong?
hello.py:
print "Hello World!"
command line:
E:\Python\dev>python hello.py
E:\Python
> > class Foo():
> > self.a = "bar"
> > self.z = "test"
> > self.var = 2
>
> That's unlikely to work, though: the code is in the context of the
> class, not one of its methods, so unless you happen to be declaring a
> class inside another class's method it's unlikely that there's going
turns methods as well, correct? I only want variables, but
I can't think of how to do a list comprehension that would remove the
methods.
JonathanB
--
http://mail.python.org/mailman/listinfo/python-list
> You described how threads introduce a problem in your program -- that of
> generating a sequence of sequential identifiers -- but you didn't describe
> the problem that threads are solving in your program. Maybe you don't
> need them at all? What led you to threading in the first place?
>
> Je
I have a multi-access problem that I'm pretty sure needs to be solved
with threading, but I'm not sure how to do it. This will be my first
foray into threading, so I'm a little confused by all of the new
landscape. So, I'm going to lay out the problem I'm facing and if
someone could point me toward
> I hope this example code will help you understand:
>>Code Snipped<<
OOH!! That makes perfect sense, thanks!, *args are passed as a turple,
**kwargs are passed as a dictionary. That means **kwargs is probably
what I want.
JonathanB
--
http://mail.python.org/mailman/listinfo/python-list
Ok, this is probably definitely a newbie question, but I have looked
all over the Python library reference material and tutorials which I
can find online and I cannot find a clear definition of what these are
and more importantly how to use them. From what I can tell from their
use in the examples
> Well the most straight forward approach is to read data from the file
> into memory. Let the user make any changes. Then save the data back to
> the file, overwriting the oringinal copy. Now, this only really works
> if you're dealing with small files.
>
> Regardless though, you never really need
click submit and it will load the changes in. So here
is the problem, this means I need to open the same file as both read
and write. How do I do this? I'm slowly learning the DOM stuff that I
need to know to do this, but this file thing I haven't been able to
find anywhere.
Jona
17 matches
Mail list logo