A quick c.l.p netiquette question

2005-09-29 Thread Peter Corbett
I've written a program to illustrate a few... syntactic issues with
Python. It's 158 <80 character lines long.

About how short should a program be to be postable to this newsgroup -
in other words, at what length should you stick it on a web page and
post a link?

Peter

-- 
A frightful hobgoblin is stalking throughout Europe.
 - The Communist Manifesto, 1st English Edition
-- 
http://mail.python.org/mailman/listinfo/python-list


A rather unpythonic way of doing things

2005-09-29 Thread Peter Corbett
One of my friends has recently taken up Python, and was griping a bit
about the language (it's too "prescriptive" for his tastes). In
particular, he didn't like the way that Python expressions were a bit
crippled. So I delved a bit into the language, and found some sources
of syntactic sugar that I could use, and this is the result:

http://www.pick.ucam.org/~ptc24/yvfc.html

Peter

-- 
A frightful hobgoblin is stalking throughout Europe.
 - The Communist Manifesto, 1st English Edition
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: A quick c.l.p netiquette question

2005-09-29 Thread Peter Corbett
[EMAIL PROTECTED] writes:
> 
> Peter> About how short should a program be to be postable to this
> Peter> newsgroup - in other words, at what length should you stick it on
> Peter> a web page and post a link?
> 
> 158 lines is probably not a killer.  However, consider what misbehaving news
> and mail readers are likely to do to the indentation of your script before
> embedding it in a message.  The net being the somewhat less safe place than
> it used to be, many people may be hesitant to open attachments either.  It
> might well be safer to simply toss it on a personal website and provide a
> link.

Good advice, but in this case indentation isn't as important as
usual. Still, I like to keep a little formatting for readability.

Thanks,

Peter

-- 
A frightful hobgoblin is stalking throughout Europe.
 - The Communist Manifesto, 1st English Edition
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: A rather unpythonic way of doing things

2005-09-29 Thread Peter Corbett
Richie Hindle <[EMAIL PROTECTED]> writes:
> 
> [Peter]
> > http://www.pick.ucam.org/~ptc24/yvfc.html
> 
> [Jeff]
> > Yuma Valley Agricultural Center?
> > Yaak Valley Forest Council?
> 
> I went through the same process.  My guess is "Yes, Very F'ing Clever."
> Peter?

You're all thinking about it the wrong way (he says, being cryptic).

Peter

-- 
A frightful hobgoblin is stalking throughout Europe.
 - The Communist Manifesto, 1st English Edition
-- 
http://mail.python.org/mailman/listinfo/python-list