# [EMAIL PROTECTED] / 2006-10-08 11:44:18 +0100:
> That's because assignment isn't an operator - that's why (for example)
>
> print x = 33
>
> would be a syntax error. This is a deliberate design decision about
> which, history shows, there is little use complaining.
Just to clarify: n
# [EMAIL PROTECTED] / 2005-07-27 05:12:46 -0700:
> ok. did this
>
> >>> cursor.execute("DELETE FROM table WHERE autoinc > 1000")
> 245L
> >>> cursor.commit()
>
> i got an AttributeError 'Cursor' object has no attribute 'commit'
>
> hmm. what should i do now?
RTFM, e. g. here:
http://c
# [EMAIL PROTECTED] / 2005-05-01 05:07:27 -0700:
> I actually tried mapping the PID to an integer value and it still
> didn't work. At any rate, I found another way to do it. Thanks anyways.
What the kind people have been trying to get through is that the
win32api.TerminateProcess() does *
# [EMAIL PROTECTED] / 2005-04-23 15:53:17 +0200:
> Lad wrote:
>
> >Is anyone capable of providing Python advantages over PHP if there are
> >any?
>
> I am also new to python but I use php for 4 years. I can tell:
>
> - python is more *pythonic* than php
> - python has its own perfume
> http://w
# [EMAIL PROTECTED] / 2005-04-22 08:35:33 +0100:
>
> --- Robert Kern <[EMAIL PROTECTED]> wrote:
> > praba kar wrote:
> > > In Php If I send a command to system function
> > > then It will return 1 on success and 0 on failure.
> > > So based upon that value I can to further work.
> > >
> > >
# [EMAIL PROTECTED] / 2005-04-22 00:13:05 -0700:
> Hello!
>
> I can't seem to get paths and variables working together:
>
> import os
> a = 'books'
> os.chdir( '/test')
> os.mkdir("/test/"a)
>
> the last line does not seem to work. os.mkdir(a) makes the directory
> books, but i want this direct
# [EMAIL PROTECTED] / 2005-04-20 00:30:35 -0700:
> When parsing messages using python's libraries email and mailbox, the
> subject is often encoded using some kind of = notation. Apparently, the
> encoding used in this notation is specified like =?iso-8859-2?Q?=... or
> =?iso-8859-2?B?=.
That'
# [EMAIL PROTECTED] / 2005-04-17 14:59:50 +0200:
> Roman Neuhauser wrote:
>
> >>Here's a puzzle for you: Where does this list appear? What's missing?
> >>
> >>"..., Mullender, Nagata, Ng, Oner, Oppelstrup, ..."
> >
> > Sorry, I
# [EMAIL PROTECTED] / 2005-04-13 08:07:06 +1000:
> On Tue, 12 Apr 2005 13:06:36 +0200, Roman Neuhauser
> <[EMAIL PROTECTED]> wrote:
>
> >Unfortunately, the python community seems to bathe in the
> >misorganized half-documentation, see e. g.
> >http:
# [EMAIL PROTECTED] / 2005-04-14 09:06:08 -0600:
> Roman Neuhauser wrote:
> >
> > # [EMAIL PROTECTED] / 2005-04-14 08:22:48 -0600:
> > > The listowner could turn on the [PYTHON] headers.
> >
> > I hope they don't.
> >
>
> What'
# [EMAIL PROTECTED] / 2005-04-14 08:22:48 -0600:
> The listowner could turn on the [PYTHON] headers.
I hope they don't.
> I'm not using spambayes yet, although I'm leaning toward it, but that
> step alone could save me some work when trying to decide based on
> subject line alone whether or n
# [EMAIL PROTECTED] / 2005-04-13 03:27:06 -0700:
> Bengt Richter wrote at 03:19 4/13/2005:
> This is not homework, nor am I a student, though I am trying to learn
> Python. I'm just trying to help an artist acquaintance who needs (I just
> learned) the first 3003 digits of pi to the base 12.
>
>
# [EMAIL PROTECTED] / 2005-04-12 03:25:33 -0700:
> QUOTE
> compile(
> pattern[, flags])
>
> Compile a regular expression pattern into a regular expression object,
> which can be used for matching using its match() and search() methods,
> described below.
>
> The expression's behaviour can be mo
# [EMAIL PROTECTED] / 2005-04-12 00:14:03 +0200:
>Hello,
>
> I amafraid of I will stop using semicolons in other languages after one
> or two months of python.
Writing in multiple programming languages is just like writing or
speaking in multiple human languages: you just need to
# [EMAIL PROTECTED] / 2005-04-10 20:55:05 +1000:
> Hi folks,
>
> My python program needs to download a number of files. Each file comes
> as a list of mirrors of that file.
>
> Currently, I am using system (os.system) to run wget. The mechanism is
> in a loop, so that it will try all the mirr
# [EMAIL PROTECTED] / 2005-04-09 16:42:04 -0500:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
>
> > Hi,
> >
> > I'm writing a small script that generates email and I've noticed that:
> >
> > 1) one should add the 'To' and 'CC' headers to the email message
> > 2) one needs to specify the recip
# [EMAIL PROTECTED] / 2005-04-04 16:39:27 -0700:
> In short, how might I go about deleting just the contents of a file?
> I tried several methods with my limited knowledge but had no luck.
fd = open("your-file")
fd.truncate()
fd.close()
or open("your-file", "w").close()
--
How
Hello,
I have a piece of code that gets run in a script that has its stdout
closed:
import sys
sys.stdout = sys.stderr
c = subprocess.Popen (...,
stdin = subprocess.PIPE,
stdout = subprocess.PIPE,
stderr =
18 matches
Mail list logo