Re: Python syntax

2009-04-08 Thread Mensanator
On Apr 7, 11:39 pm, Lawrence D'Oliveiro wrote: > In message , Steve > > Holden wrote: > > Lawrence D'Oliveiro wrote: > > >> In message <7dd228af- > >> e549-444d-8623-11e951851...@y9g2000yqg.googlegroups.com>, janus99 wrote: > > >>> I messed around with my own comp (windos xp) command prompt ... >

Re: Python syntax

2009-04-07 Thread Lawrence D'Oliveiro
In message , Steve Holden wrote: > Lawrence D'Oliveiro wrote: > >> In message <7dd228af- >> e549-444d-8623-11e951851...@y9g2000yqg.googlegroups.com>, janus99 wrote: >> >>> I messed around with my own comp (windos xp) command prompt ... >> >> Try a Linux command prompt. You'll learn a bit more t

Re: Python syntax

2009-04-07 Thread Steve Holden
Lawrence D'Oliveiro wrote: > In message <7dd228af- > e549-444d-8623-11e951851...@y9g2000yqg.googlegroups.com>, janus99 wrote: > >> I messed around with my own comp (windos xp) command prompt ... > > Try a Linux command prompt. You'll learn a bit more that way. > Great advice when Linux is availa

Re: Python syntax

2009-04-07 Thread Lawrence D'Oliveiro
In message <7dd228af- e549-444d-8623-11e951851...@y9g2000yqg.googlegroups.com>, janus99 wrote: > I messed around with my own comp (windos xp) command prompt ... Try a Linux command prompt. You'll learn a bit more that way. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python syntax

2009-04-07 Thread Dave Angel
janus99 wrote: well i'm pretty much a newb on python, it's my first comp lang. and i've been having some diffuclties, i want to get the hang of it and i'm wondering if u could help me understand the syntax structure. I messed around with my own comp (windos xp) command prompt and i currently pla

Re: Python syntax

2009-04-07 Thread dorzey
http://wiki.python.org/moin/BeginnersGuide is probably a good place to start. I found lots of useful info from the links on this page when I started programming in Python. Dorzey -- http://mail.python.org/mailman/listinfo/python-list

Re: Python syntax question

2008-10-21 Thread Gabriel Genellina
En Mon, 13 Oct 2008 13:50:03 -0300, Daniel <[EMAIL PROTECTED]> escribió: RPyC is use in pyscripter to provide remote debugging. I was having trouble getting the RPyC module working, and the reason is that the RPyC site only provides a download for Python 3 (not sure why, since I suspect that

Re: Python syntax question

2008-10-13 Thread Daniel
> > David Blubaugh > > -Original Message- > From: Daniel [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 08, 2008 3:11 PM > To: [EMAIL PROTECTED] > Subject: Re: Python syntax question > > On Oct 8, 12:07 pm, Marc 'BlackJack' Rintsch <[EMAIL PRO

Re: Python syntax question

2008-10-08 Thread Diez B. Roggisch
Blubaugh, David A. schrieb: Sir, I was just wondering that the module that you are utilizing (Rpyc) is a remote process call module for python? Is this what you are developing with at this time? Are you internetically challenged? http://www.google.de/search?q=rpyc&ie=utf-8&oe=utf-8&aq=t&rls

RE: Python syntax question

2008-10-08 Thread Blubaugh, David A.
, 2008 3:11 PM To: python-list@python.org Subject: Re: Python syntax question On Oct 8, 12:07 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Wed, 08 Oct 2008 11:02:49 -0700, Daniel wrote: > > Here is one error I get when I try to import it: > > >&

Re: Python syntax question

2008-10-08 Thread Daniel
On Oct 8, 12:07 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Wed, 08 Oct 2008 11:02:49 -0700, Daniel wrote: > > Here is one error I get when I try to import it: > > import Rpyc > > Traceback (most recent call last): > >   File "", line 1, in > >   File "C:\Python25\lib\site-pa

Re: Python syntax question

2008-10-08 Thread Marc 'BlackJack' Rintsch
On Wed, 08 Oct 2008 11:02:49 -0700, Daniel wrote: > Here is one error I get when I try to import it: > import Rpyc > Traceback (most recent call last): > File "", line 1, in > File "C:\Python25\lib\site-packages\Rpyc\__init__.py", line 7, in > > from Rpyc.Lib import rpyc_excepthook

Re: python syntax for conditional is unfortunate

2008-09-24 Thread Aaron "Castironpi" Brady
On Sep 24, 9:49 pm, Asun Friere <[EMAIL PROTECTED]> wrote: > On Sep 25, 11:57 am, "Aaron \"Castironpi\" Brady" > > <[EMAIL PROTECTED]> wrote: > > On Sep 24, 8:40 pm, Asun Friere <[EMAIL PROTECTED]> wrote: > > > ... I think > > > your last version ('%d thing%s' % (i, 's' if i != 1 else '')), holding

Re: python syntax for conditional is unfortunate

2008-09-24 Thread Asun Friere
On Sep 25, 11:57 am, "Aaron \"Castironpi\" Brady" <[EMAIL PROTECTED]> wrote: > On Sep 24, 8:40 pm, Asun Friere <[EMAIL PROTECTED]> wrote: > > ... I think > > your last version ('%d thing%s' % (i, 's' if i != 1 else '')), holding > > all variables for placeholders in the tuple, is better. It's certa

Re: python syntax for conditional is unfortunate

2008-09-24 Thread Aaron "Castironpi" Brady
On Sep 24, 8:40 pm, Asun Friere <[EMAIL PROTECTED]> wrote: > On Sep 25, 3:16 am, Pete Forman <[EMAIL PROTECTED]> wrote: > > > Asun Friere <[EMAIL PROTECTED]> writes: > > >  > A canonical use of the conditional operator is in > >  > pluralising words, (eg. '%s dollar' % n + 's' if n!=1 else ''). > >

Re: python syntax for conditional is unfortunate

2008-09-24 Thread Asun Friere
On Sep 25, 3:16 am, Pete Forman <[EMAIL PROTECTED]> wrote: > Asun Friere <[EMAIL PROTECTED]> writes: > > > A canonical use of the conditional operator is in > > pluralising words, (eg. '%s dollar' % n + 's' if n!=1 else ''). > > That fails for n == 1. So what is best? > Sorry missing paranthese

Re: python syntax for conditional is unfortunate

2008-09-24 Thread Asun Friere
On Sep 25, 3:16 am, Pete Forman <[EMAIL PROTECTED]> wrote: > Asun Friere <[EMAIL PROTECTED]> writes: > > > A canonical use of the conditional operator is in > > pluralising words, (eg. '%s dollar' % n + 's' if n!=1 else ''). > > That fails for n == 1. So what is best? > Sorry missing parenthese

Re: python syntax for conditional is unfortunate

2008-09-24 Thread Pete Forman
Asun Friere <[EMAIL PROTECTED]> writes: > A canonical use of the conditional operator is in > pluralising words, (eg. '%s dollar' % n + 's' if n!=1 else ''). That fails for n == 1. So what is best? for i in range(4): print '%d thing' % i + ('s' if i != 1 else '') for i in range(4): p

Re: python syntax for conditional is unfortunate

2008-09-24 Thread Asun Friere
On Sep 24, 9:52 am, Neal Becker <[EMAIL PROTECTED]> wrote: > In hindsight, I am disappointed with the choice of conditional syntax. I > know it's too late to change. The problem is > > y = some thing or other if x else something_else > > When scanning this my eye tends to see the first phrase an

Re: python syntax for conditional is unfortunate

2008-09-24 Thread Bruno Desthuilliers
Neal Becker a écrit : (snip) I find I'm often tripped up by: x = Y (lots of constructor arguments) if something ... on first glance, I don't notice the if. Indeed. The inline conditionnal syntax is obviously innappropriate here. It's just like list-comprehensions : just fine for simple

Re: python syntax for conditional is unfortunate

2008-09-23 Thread Roy Smith
"Aaron \"Castironpi\" Brady" <[EMAIL PROTECTED]> wrote: > You're out of options. You have to express it somehow. How about: Assignith z the value of x if the value of b is such that it is true, else assignith it the value of y. Assignith z not the value of w, nor the value of v, lest you ra

Re: python syntax for conditional is unfortunate

2008-09-23 Thread namekuseijin
On 23 set, 22:50, Neal Becker <[EMAIL PROTECTED]> wrote: > I find I'm often tripped up by: > > x = Y (lots of  constructor arguments) if something ... > > on first glance, I don't notice the if. Nobody does. This peculiar syntax has much better usage in short expressions. dothis if this else

Re: python syntax for conditional is unfortunate

2008-09-23 Thread Aaron "Castironpi" Brady
On Sep 23, 8:50 pm, Neal Becker <[EMAIL PROTECTED]> wrote: > Aaron "Castironpi" Brady wrote: > > On Sep 23, 6:52 pm, Neal Becker <[EMAIL PROTECTED]> wrote: > >> In hindsight, I am disappointed with the choice of conditional syntax.  I > >> know it's too late to change.  The problem is > > >> y = so

Re: python syntax for conditional is unfortunate

2008-09-23 Thread Neal Becker
Aaron "Castironpi" Brady wrote: > On Sep 23, 6:52 pm, Neal Becker <[EMAIL PROTECTED]> wrote: >> In hindsight, I am disappointed with the choice of conditional syntax. I >> know it's too late to change. The problem is >> >> y = some thing or other if x else something_else >> >> When scanning this

Re: python syntax for conditional is unfortunate

2008-09-23 Thread namekuseijin
On 23 set, 20:52, Neal Becker <[EMAIL PROTECTED]> wrote: > In hindsight, I am disappointed with the choice of conditional syntax.  I > know it's too late to change.  The problem is > > y = some thing or other if x else something_else > > When scanning this my eye tends to see the first phrase and

Re: python syntax for conditional is unfortunate

2008-09-23 Thread Aaron "Castironpi" Brady
On Sep 23, 6:52 pm, Neal Becker <[EMAIL PROTECTED]> wrote: > In hindsight, I am disappointed with the choice of conditional syntax.  I > know it's too late to change.  The problem is > > y = some thing or other if x else something_else > > When scanning this my eye tends to see the first phrase an

Re: python syntax for conditional is unfortunate

2008-09-23 Thread Ben Finney
Cameron Simpson <[EMAIL PROTECTED]> writes: > A good coder will present things clearly. For trivial stuff the one > line form may be fine, and for longer stuff then this: > > y = some thing or other \ > if x \ > else something_else Parentheses are usually more robust for multi-line

Re: python syntax for conditional is unfortunate

2008-09-23 Thread Cameron Simpson
On 23Sep2008 19:52, Neal Becker <[EMAIL PROTECTED]> wrote: | In hindsight, I am disappointed with the choice of conditional syntax. | I know it's too late to change. The problem is | | y = some thing or other if x else something_else | | When scanning this my eye tends to see the first phrase an

Re: Python Syntax and misspelled variable and method name checker?

2008-05-08 Thread castironpi
On May 8, 1:06 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > neerashish schrieb: > > > > > Is there a good Python Syntax and mis-spelled variable and method name > > checker available. > > > I have been programming in python for last 6 months and misspelled variables > > and method names have

Re: Python Syntax and misspelled variable and method name checker?

2008-05-08 Thread Diez B. Roggisch
neerashish schrieb: Is there a good Python Syntax and mis-spelled variable and method name checker available. I have been programming in python for last 6 months and misspelled variables and method names have been bane of my python life. In complied languages, compiler checks for these mista

Re: python syntax

2008-01-07 Thread Fredrik Lundh
mpho raborife wrote: > Please help me get this syntax right: > > os.system("HCopy -T 1 -C" 'os.path.join(conf_dir, "/hcopy.conf")' "-S" > 'os.path.join(list_dir, "hcopy_list.txt")') instead of attempting to get your program working by random trial and error process, maybe you should spend an

Re: python syntax

2008-01-07 Thread Guilherme Polo
2008/1/7, mpho raborife <[EMAIL PROTECTED]>: > Thanks. So could you please help me with this one: > subprocess.Popen(["gmmscore", "-i", Input, "-l", List, "-t", modeltype, > "-m", mixture, "-d", dimension, "-v", vfloor, "-n", number, "-r", results]) Only if you tell the problem. But I guess that y

Re: python syntax

2008-01-07 Thread Guilherme Polo
2008/1/7, mpho raborife <[EMAIL PROTECTED]>: > Please help me get this syntax right: > > os.system("HCopy -T 1 -C" 'os.path.join(conf_dir, "/hcopy.conf")' "-S" > 'os.path.join(list_dir, "hcopy_list.txt")') > import os import subprocess subprocess.Popen(["HCopy", "-T", "1", "-C", os.path.join(con

Re: python syntax

2008-01-07 Thread Jeroen Ruigrok van der Werven
-On [20080107 11:46], mpho raborife ([EMAIL PROTECTED]) wrote: >os.system("HCopy -T 1 -C" 'os.path.join(conf_dir, "/hcopy.conf")' "-S" >'os.path.join(list_dir, "hcopy_list.txt")') I would guess you would want this: os.system("HCopy -T 1 -C" + os.path.join(conf_dir, "/hcopy.conf") + "-S" + os.pa

Re: Python syntax wart

2007-09-10 Thread Carl Banks
On Sep 10, 8:07 am, TheFlyingDutchman <[EMAIL PROTECTED]> wrote: > On Sep 9, 11:20 pm, TheFlyingDutchman <[EMAIL PROTECTED]> wrote: > > > It may be that a language that doesn't have a statement terminator > > (which can be end-of-line) needs a statement continuation symbol. > > (Excluding languages

Re: Python syntax wart

2007-09-10 Thread Steven W. Orr
On Monday, Sep 10th 2007 at 08:34 -, quoth Marc 'BlackJack' Rintsch: =>On Mon, 10 Sep 2007 20:19:08 +1200, Lawrence D'Oliveiro wrote: => =>> In message <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch =>> wrote: =>> =>>> I see a tree structure here ... =>> =>> Good, you're improving. => =>Thank

Re: Python syntax wart

2007-09-10 Thread Jason
On Sep 8, 11:16 pm, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: > The one thing I don't like about Python syntax is using backslashes to > continue lines. Yes, you can avoid them if you can include parentheses > somehow, but this isn't always possible. > > Possible: > >

Re: Python syntax wart

2007-09-10 Thread TheFlyingDutchman
On Sep 10, 4:45 am, Bjoern Schliessmann wrote: > TheFlyingDutchman wrote: > > It may be that a language that doesn't have a statement terminator > > (which can be end-of-line) needs a statement continuation symbol. > > Which language could that be? I can hardly imagine making a complex > program o

Re: Python syntax wart

2007-09-10 Thread TheFlyingDutchman
On Sep 9, 11:20 pm, TheFlyingDutchman <[EMAIL PROTECTED]> wrote: > It may be that a language that doesn't have a statement terminator > (which can be end-of-line) needs a statement continuation symbol. > (Excluding languages like Lisp that have parentheses everywhere). Actually I guess Python does

Re: Python syntax wart

2007-09-10 Thread Bjoern Schliessmann
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Marc 'BlackJack' >> I see a tree structure here ... > > Good, you're improving. Tree structures can't, IMHO, be called two-dimensional. Although, you can represent them with a two-dimensional graph. If the tree gets more complex this c

Re: Python syntax wart

2007-09-10 Thread Bjoern Schliessmann
TheFlyingDutchman wrote: > It may be that a language that doesn't have a statement terminator > (which can be end-of-line) needs a statement continuation symbol. Which language could that be? I can hardly imagine making a complex program out of one statement. Regards, Björn -- BOFH excuse #1

Re: Python syntax wart

2007-09-10 Thread Bjoern Schliessmann
Gabriel Genellina wrote: > Do you know the Befunge language? Program flow is not lineal but > along a 2D grid. There are variants over toroids and more bizarre > surfaces, even using 3D. Ah, I remember. Once read about it. Really cool idea :) Regards, Björn -- BOFH excuse #149: Dew on the te

Re: Python syntax wart

2007-09-10 Thread Bjoern Schliessmann
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Bjoern >> What's wrong with this: >> >> for Link in GetEachRecord( > > Then you're no longer showing the syntax structure in two > dimensions. Why should I want to? :) BTW, this is the first time I read about "two dimensional syntax

Re: Python syntax wart

2007-09-10 Thread J. Cliff Dyer
J. Cliff Dyer wrote: Lawrence D'Oliveiro wrote: In message <[EMAIL PROTECTED]>, Bjoern Schliessmann wrote: What's wrong with this: for Link in GetEachRecord( Then you're no longer showing the syntax structure in two dimensions. If somebody handed me a program of more than twenty

Re: Python syntax wart

2007-09-10 Thread Duncan Booth
Stefan Behnel <[EMAIL PROTECTED]> wrote: > This actually sounds somewhat pointless to me. If complex things don't > fit into one line, a good way to deal with it is not to insist on > making them a single statement. > Or make them into a single method/function call. I would post some pseudo- cod

Re: Python syntax wart

2007-09-10 Thread Gabriel Genellina
On 9 sep, 08:14, Bjoern Schliessmann wrote: > How can a statement be two-dimensional? Like a two-dimensionalTuringMachine? Do you know the Befunge language? Program flow is not lineal but along a 2D grid. There are variants over toroids and more bizarre surfaces, even using 3D. "Befunge is beli

Re: Python syntax wart

2007-09-10 Thread Stefan Behnel
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch > wrote: >> And this is also easily written that way in Python if you don't insist on >> the line break after the ``if`` or can live with backslashes. > > Which is precisely the point. This actually sounds somew

Re: Python syntax wart

2007-09-10 Thread Marc 'BlackJack' Rintsch
On Mon, 10 Sep 2007 20:19:08 +1200, Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch > wrote: > >> I see a tree structure here ... > > Good, you're improving. Thanks. >> ... but still no table. > > Who said anything about a table? Me. If that statement i

Re: Python syntax wart

2007-09-10 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch wrote: > I see a tree structure here ... Good, you're improving. > ... but still no table. Who said anything about a table? > And this is also easily written that way in Python if you don't insist on > the line break after the ``if`` or

Re: Python syntax wart

2007-09-10 Thread Marc 'BlackJack' Rintsch
On Mon, 10 Sep 2007 19:54:49 +1200, Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch > wrote: > >> On Mon, 10 Sep 2007 15:02:58 +1200, Lawrence D'Oliveiro wrote: >> >>> In message <[EMAIL PROTECTED]>, Bjoern Schliessmann >>> wrote: >>> Lawrence D'Olivei

Re: Python syntax wart

2007-09-10 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch wrote: > On Mon, 10 Sep 2007 15:02:58 +1200, Lawrence D'Oliveiro wrote: > >> In message <[EMAIL PROTECTED]>, Bjoern Schliessmann >> wrote: >> >>> Lawrence D'Oliveiro wrote: But then you can no longer use indentation to display the >>>

Re: Python syntax wart

2007-09-10 Thread Marc 'BlackJack' Rintsch
On Mon, 10 Sep 2007 15:02:58 +1200, Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Bjoern Schliessmann wrote: > >> Lawrence D'Oliveiro wrote: >>> But then you can no longer use indentation to display the >>> two-dimensional structure of the statement. >> >> How can a statement be t

Re: Python syntax wart

2007-09-09 Thread TheFlyingDutchman
It may be that a language that doesn't have a statement terminator (which can be end-of-line) needs a statement continuation symbol. (Excluding languages like Lisp that have parentheses everywhere). -- http://mail.python.org/mailman/listinfo/python-list

Re: Python syntax wart

2007-09-09 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Bjoern Schliessmann wrote: > Lawrence D'Oliveiro wrote: >> But then you can no longer use indentation to display the >> two-dimensional structure of the statement. > > How can a statement be two-dimensional? Like this (from C++ code, but the idea is the same):

Re: Python syntax wart

2007-09-09 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Bjoern Schliessmann wrote: > What's wrong with this: > > for Link in GetEachRecord( Then you're no longer showing the syntax structure in two dimensions. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python syntax wart

2007-09-09 Thread stef mientki
James Stroud wrote: > Lawrence D'Oliveiro wrote: > >> The one thing I don't like about Python syntax is using backslashes to >> continue lines. Yes, you can avoid them if you can include parentheses >> somehow, but this isn't always possible. >> >> Possible: >> >> if ( >> quittin

Re: Python syntax wart

2007-09-09 Thread James Stroud
Lawrence D'Oliveiro wrote: > The one thing I don't like about Python syntax is using backslashes to > continue lines. Yes, you can avoid them if you can include parentheses > somehow, but this isn't always possible. > > Possible: > > if ( > quitting > and > len

Re: Python syntax wart

2007-09-09 Thread Wildemar Wildenburger
Steven D'Aprano wrote: > That is quite possibly the ugliest piece of code I've ever seen in > Python. I'm impressed. Did you format it yourself or did you use a > professionally written code-uglifier? > Boy did that make me laugh! The notion of a "code uglifier" just is a pearl. (I hate to call

Re: Python syntax wart

2007-09-09 Thread Bjoern Schliessmann
Lawrence D'Oliveiro wrote: > But then you can no longer use indentation to display the > two-dimensional structure of the statement. How can a statement be two-dimensional? Like a two-dimensional Turing Machine? Regards, Björn -- BOFH excuse #156: Zombie processes haunting the computer --

Re: Python syntax wart

2007-09-09 Thread Stefan Behnel
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Stefan Behnel wrote: > >> He means he has to use backslashes instead of parentheses here. >> >> Which is not true, you could easily rephrase this as: >> >> for link in GetEachRecord( >> "links", >> ): >>

Re: Python syntax wart

2007-09-09 Thread Duncan Booth
Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sun, 09 Sep 2007 17:16:05 +1200, Lawrence D'Oliveiro wrote: > >> The one thing I don't like about Python syntax is using backslashes to >> continue lines. > > Then don't use them. Put everything in one long line. > > Or do something like this. Ins

Re: Python syntax wart

2007-09-09 Thread Bjoern Schliessmann
Lawrence D'Oliveiro wrote: > Not possible: > > for \ > Link \ > in \ > GetEachRecord \ > ( > "links", > ("from_episode",), > "to_episode = %s", > [EpisodeID], > "order by when_created" > ) \ >

Re: Python syntax wart

2007-09-09 Thread Steven D'Aprano
On Sun, 09 Sep 2007 17:16:05 +1200, Lawrence D'Oliveiro wrote: > The one thing I don't like about Python syntax is using backslashes to > continue lines. Then don't use them. Put everything in one long line. Or do something like this. Instead of for Link in GetEachRecord("lots", "and", "lots",

Re: Python syntax wart

2007-09-09 Thread Carl Banks
On Sun, 09 Sep 2007 17:16:05 +1200, Lawrence D'Oliveiro wrote: > The one thing I don't like about Python syntax is using backslashes to > continue lines. Yes, you can avoid them if you can include parentheses > somehow, but this isn't always possible. > > Possible: > > if ( > qui

Re: Python syntax wart

2007-09-08 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Stefan Behnel wrote: > He means he has to use backslashes instead of parentheses here. > > Which is not true, you could easily rephrase this as: > > for link in GetEachRecord( > "links", > ): > out.write( > ..

Re: Python syntax wart

2007-09-08 Thread Stefan Behnel
Marc 'BlackJack' Rintsch wrote: > On Sun, 09 Sep 2007 17:16:05 +1200, Lawrence D'Oliveiro wrote: > >> The one thing I don't like about Python syntax is using backslashes to >> continue lines. Yes, you can avoid them if you can include parentheses >> somehow, but this isn't always possible. >> >> P

Re: Python syntax wart

2007-09-08 Thread Marc 'BlackJack' Rintsch
On Sun, 09 Sep 2007 17:16:05 +1200, Lawrence D'Oliveiro wrote: > The one thing I don't like about Python syntax is using backslashes to > continue lines. Yes, you can avoid them if you can include parentheses > somehow, but this isn't always possible. > > Possible: > > […] > > Not possible: > >

Re: Python syntax r prefix to a string

2007-08-19 Thread Paddy
On Aug 19, 4:43 pm, goldtech <[EMAIL PROTECTED]> wrote: > Does anyone know this syntax and could link me to an explanation? > > Something like: > > Workspace = r'C:\foobar\mystuff\xyz' > > What's that "r" doing? Sometimes I see a "u" too. > > Explanation appreciated. > > Thanks, > Lee G. Search fo

Re: Python Syntax Highlighting Module

2006-08-24 Thread Cliff Wells
On Mon, 2006-08-21 at 08:19 -0700, gene tani wrote: > [EMAIL PROTECTED] wrote: > > Hello, > > I have an idea for a project which involves an editor that supports > > syntax highlighting. This would be for any language, particularly php, > > html, css, etc. I would like to write this program using

Re: Python Syntax Highlighting Module

2006-08-24 Thread frikker
thank you! These will be very helpful. I'm not necessarily creating an editor from scratch, but maybe an editor that has some additional custom functionality. Thanks again, blaine gene tani wrote: > [EMAIL PROTECTED] wrote: > > Hello, > > I have an idea for a project which involves an editor th

Re: Python Syntax Highlighting Module

2006-08-21 Thread gene tani
[EMAIL PROTECTED] wrote: > Hello, > I have an idea for a project which involves an editor that supports > syntax highlighting. This would be for any language, particularly php, > html, css, etc. I would like to write this program using python. It > would only make sense to base this upon existi

Re: Python Syntax Highlighting Module

2006-08-21 Thread Brian Quinlan
[EMAIL PROTECTED] wrote: > Hello, > I have an idea for a project which involves an editor that supports > syntax highlighting. This would be for any language, particularly php, > html, css, etc. I would like to write this program using python. It > would only make sense to base this upon existin

Re: Python syntax high-lighting and preservation on web

2005-06-30 Thread Ryan Bowman
--- Gregory Piñero <[EMAIL PROTECTED]> wrote: > Hey guys, > > Does anyone know where I can pick up a style sheet (css) and/or other > files/programs I might need to display python code on my website with > tab preservation(or replace with spaces) and colored syntax? I want > something similar

Re: Python syntax high-lighting and preservation on web

2005-06-29 Thread Gregory Piñero
This is perfect! Thanks! On 6/29/05, Daniel Dittmar <[EMAIL PROTECTED]> wrote: > Gregory Piñero wrote: > > Hey guys, > > > > Does anyone know where I can pick up a style sheet (css) and/or other > > files/programs I might need to display python code on my website with > > tab preservation(or rep

Re: Python syntax high-lighting and preservation on web

2005-06-29 Thread Daniel Dittmar
Gregory Piñero wrote: > Hey guys, > > Does anyone know where I can pick up a style sheet (css) and/or other > files/programs I might need to display python code on my website with > tab preservation(or replace with spaces) and colored syntax? I want > something similar to the python code on a pag