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 ...
>
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
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
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
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
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
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
>
> 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
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
, 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:
>
> >&
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
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
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
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
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 '').
>
>
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
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
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
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
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
"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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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:
>
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>>>
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
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
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):
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
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
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
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
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
--
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",
>> ):
>>
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
Lawrence D'Oliveiro wrote:
> Not possible:
>
> for \
> Link \
> in \
> GetEachRecord \
> (
> "links",
> ("from_episode",),
> "to_episode = %s",
> [EpisodeID],
> "order by when_created"
> ) \
>
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",
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
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(
> ..
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
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:
>
>
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
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
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
[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
[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
--- 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
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
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
75 matches
Mail list logo