gtb <[EMAIL PROTECTED]> wrote:
> Have done some searching but have not found a place where I can look
> up python keywords.
>>> import keyword
>>> keyword.kwlist
['and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del',
'elif', 'else', 'except', 'exec', 'finally', 'for', 'from', 'global
On Apr 26, 1:59 pm, "Hamilton, William " <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: [EMAIL PROTECTED]
> [mailto:python-
> > [EMAIL PROTECTED] On Behalf Of gtb
> > Sent: Thursday, April 26, 2007 1:50 PM
> > To: [EMAIL PROTECT
Thanks Marc.
--
http://mail.python.org/mailman/listinfo/python-list
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:python-
> [EMAIL PROTECTED] On Behalf Of gtb
> Sent: Thursday, April 26, 2007 1:50 PM
> To: python-list@python.org
> Subject: Re: Python keywords
>
> On Apr 26, 10:16 am, Larry Bates <[EMAIL
On Apr 26, 10:16 am, Larry Bates <[EMAIL PROTECTED]> wrote:
> gtb wrote:
> > Have done some searching but have not found a place where I can look
> > up python keywords. I was looking at a script that contained the
> > following line:
>
> > assert self.getResponseCode() in (200, 304, 302)
>
> > I c
In <[EMAIL PROTECTED]>, gtb wrote:
> Have done some searching but have not found a place where I can look
> up python keywords. I was looking at a script that contained the
> following line:
>
> assert self.getResponseCode() in (200, 304, 302)
>
> I can infer the usage here but previously I had
gtb wrote:
> Have done some searching but have not found a place where I can look
> up python keywords. I was looking at a script that contained the
> following line:
>
> assert self.getResponseCode() in (200, 304, 302)
>
> I can infer the usage here but previously I had thought that "in" was
> o
In article <[EMAIL PROTECTED]>,
Boris Borcic <[EMAIL PROTECTED]> wrote:
> Roy Smith wrote:
> > and all three keywords are verbs, so when you describe the code, you can
> > use the same English words as in the program source, "You try to execute
> > some code, but it throws a foo, which is caug
Roy Smith wrote:
> I noticed something interesting today. In C++, you write:
>
> try {
>throw foo;
> } catch {
> }
>
> and all three keywords are verbs, so when you describe the code, you can
> use the same English words as in the program source, "You try to execute
> some code, but it thr
defcon8 wrote:
> 1. Does it matter?
> 2. Is it affecting your productivity.
> 3. Are you not trying to programme?
> 4. It is open source, change it and stop whining.
>
What about trying emacs +x doctor ?
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]
1. Does it matter?
2. Is it affecting your productivity.
3. Are you not trying to programme?
4. It is open source, change it and stop whining.
--
http://mail.python.org/mailman/listinfo/python-list
Roy Smith wrote:
> try {
>throw foo;
> } catch {
> }
> try:
>raise foo
> except:
But which one is prettier? ;)
--
http://mail.python.org/mailman/listinfo/python-list
Roy Smith wrote:
> I noticed something interesting today. In C++, you write:
>
> try {
>throw foo;
> } catch {
> }
>
> and all three keywords are verbs, so when you describe the code, you can
> use the same English words as in the program source, "You try to execute
> some code, but it thr
I'm not a english speaker, so I just accepted it...;
I understood it as :
'Try' allways to execute this code, 'except' when it doesn't work do
this
> I noticed something interesting today. In C++, you write:
>
> try {
>throw foo;
> } catch {
> }
>
> and all three keywords are verbs, so
14 matches
Mail list logo