Re: What Python looks like

2008-08-04 Thread Ben Finney
these parentheses necessary?" That was many years before I encountered Python :-) -- \ “I see little commercial potential for the Internet for at | `\ least ten years.” —Bill Gates, 1994 | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: What Python looks like

2008-08-05 Thread Ben Finney
ave been more specific.” —Jane Wagner, via Lily Tomlin | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Using an DTD not specified in XML file for validation

2008-08-06 Thread Ben Finney
—Mahatma Gandhi | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: how to find out if an object is a class?

2008-08-07 Thread Ben Finney
red from my job the other day. They said my | `\ personality was weird. … That's okay, I have four more.” | _o__) —Bug-Eyed Earl, _Red Meat_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is ::= used as assignment operator in doc statements?

2008-08-09 Thread Ben Finney
rg/doc/ref/notation.html>. -- \ “A man must consider what a rich realm he abdicates when he | `\ becomes a conformist.” —Ralph Waldo Emerson | _o__) | Ben Finney -- http://mail.python.org/mailman

Free software and video codecs (was: ANN: Chandler 1.0)

2008-08-10 Thread Ben Finney
ss; or one of her friends.” | _o__)—Lisa & Homer, _The Simpsons_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Free software and video codecs

2008-08-12 Thread Ben Finney
even 4,000 per hour …” —F. H. Wales, 1936 | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Help me on function definition

2008-03-28 Thread Ben Finney
on with 'python -h' to display the commandline help.) -- \"I have one rule to live by: Don't make it worse." -- Hazel | `\ Woodcock | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Why prefer != over <> for Python 3.0?

2008-04-01 Thread Ben Finney
awk grep perl sed, df du, du-du du-du, vi troff su fsck | `\ rm * halt LART LART LART!" -- The Swedish BOFH, | _o__) alt.sysadmin.recovery | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pry unit testing framework

2008-04-01 Thread Ben Finney
_all', etc. -- \ "Here is a test to see if your mission on earth is finished. If | `\ you are alive, it isn't." -- Francis Bacon | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pry unit testing framework

2008-04-06 Thread Ben Finney
elieve the effort of using this package will be worth it. -- \"If you ever drop your keys into a river of molten lava, let | `\ 'em go, because, man, they're gone." -- Jack Handey | _o__)

Adherence to PEP 8 for published code (was: ANN: pry unit testing framework)

2008-04-06 Thread Ben Finney
Aldo Cortesi <[EMAIL PROTECTED]> writes: > Thus spake Ben Finney ([EMAIL PROTECTED]): > > > > I'm afraid that Pry is unashamedly incompatible with any other unit > > > testing method in existence, including but not limited to doctest, > > > unittes

Re: Adherence to PEP 8 for published code

2008-04-07 Thread Ben Finney
o__)telling them to sit down and shut up." -- Phyllis Diller | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: import statement convention

2008-04-08 Thread Ben Finney
it.” —Albert Einstein | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k s***s

2008-04-14 Thread Ben Finney
"He who laughs last, thinks slowest." -- Anonymous | `\ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Testing for callable or iterable (was: Recurring patterns: Am I missing it, or can we get these added to the language?)

2008-04-15 Thread Ben Finney
ggestion in PEP 3100: just use 'hasattr(obj, "__iter__")'. But this is inferior to just following EAFP. -- \ "I hope if dogs ever take over the world, and they chose a | `\king, they don't just go by size, because I bet there are some | _o__)

Re: How to have unittest tests to be executed in the order they appear?

2008-04-15 Thread Ben Finney
life I've had one dream: to achieve my many goals." -- | `\ Homer, _The Simpsons_ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: How to have unittest tests to be executed in the order they appear?

2008-04-15 Thread Ben Finney
Ben Finney <[EMAIL PROTECTED]> writes: > Find out about test fixtures in the documentation for unittest > http://www.python.org/doc/lib/module-unittest>. Find out easier with the right URL context http://www.python.org/doc/lib/module-unittest>. -- \ "I like my d

Death of NNTP greatly exaggerated (was: Finally had to plonk google gorups.)

2008-04-16 Thread Ben Finney
e I can use any one of those servers, and the content isn't locked up in one specific server. -- \ "I'm beginning to think that life is just one long Yoko Ono | `\ album; no rhyme or reason, just a lot of incoherent shrieks and | _o__)

Re: How to have unittest tests to be executed in the order they appear?

2008-04-16 Thread Ben Finney
Matthew Woodcraft <[EMAIL PROTECTED]> writes: > Ben Finney <[EMAIL PROTECTED]> wrote: > > Your test cases should *not* depend on any state from other test > > cases; they should function equally well when executed in any > > arbitrary sequence. Dependencies

Re: How to have unittest tests to be executed in the order they appear?

2008-04-17 Thread Ben Finney
Roy Smith <[EMAIL PROTECTED]> writes: > Ben Finney <[EMAIL PROTECTED]> wrote: > > > Surely, since "suddenly" implies you changed one small area of the > > code, that area of the code is the best place to look for what caused > > the failure. >

Re: Python 2.5 adoption

2008-04-18 Thread Ben Finney
fanticide.” —Dame Rebecca West | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 adoption

2008-04-18 Thread Ben Finney
the 'python' package installing Python 2.5.2. ftp://ftp.debian.org/debian/dists/unstable/main/source/Sources.gz> -- \"Pinky, are you pondering what I'm pondering?" "Umm, I think | `\ so, Brain, but three men in a tub? Ooh, that's unsanitary!" -- | _o__)_Pinky and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: How to print a unicode string?

2008-04-18 Thread Ben Finney
doesn't mean it's available on your OS. Have you confirmed that your OS (independent of Python) supports the locale you're trying to set? -- \ "Oh, I love your magazine. My favorite section is 'How To | `\ Increase Your Word Power'. That thing

Re: How to print a unicode string?

2008-04-18 Thread Ben Finney
[EMAIL PROTECTED] writes: > On Apr 19, 12:51 am, Ben Finney wrote: > > Just because the locale library knows the normalised name for it > > doesn't mean it's available on your OS. Have you confirmed that > > your OS (independent of Python) supports the locale yo

Re: Python 2.5 adoption

2008-04-18 Thread Ben Finney
Ben Finney <[EMAIL PROTECTED]> writes: > Thomas Bellman <[EMAIL PROTECTED]> writes: > > > For what it's worth, Fedora 8 has Python 2.5, RHEL 5 ships with > > Python 2.4, and RHEL 4 has Python 2.3. Suse and Debian, I don't > > know. > > The cur

Re: ANNOUNCE: SCons 0.98.1 (candidate for 1.0) is now available

2008-04-18 Thread Ben Finney
for me?" -- Groucho Marx | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Inheritance confusion

2008-04-19 Thread Ben Finney
k your code (based on a copy) until it's as simple as it can be, and *still* shows the problems when you execute it. Then, if you still don't know why the traceback occurs, feel free to post that minimal example with the corresponding traceback. -- \ "Jury: A group o

Witty retorts (was: Python Success stories)

2008-04-22 Thread Ben Finney
to murder a loved one because they're the devil." -- Emo | _o__) Philips | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Explicit variable declaration

2008-04-22 Thread Ben Finney
the next. | `\ Well, what of it? The first one is at least disposed of." -- | _o__) Henry L. Mencken | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Success stories

2008-04-22 Thread Ben Finney
ld as the woman he feels." -- Groucho Marx | `\ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is None <= 0

2008-04-25 Thread Ben Finney
-language> http://mail.python.org/pipermail/python-dev/2004-June/045111.html> -- \ "We demand rigidly defined areas of doubt and uncertainty!" -- | `\ Vroomfondel, _The Hitch-Hiker's Guide To The Galaxy_, Douglas | _o__)Adams | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Random/anonymous class methods

2008-04-27 Thread Ben Finney
gt; -- \ “I must say that I find television very educational. The | `\ minute somebody turns it on, I go to the library and read a | _o__) book.” —Groucho Marx | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k concerns. An example

2008-04-27 Thread Ben Finney
onformant with PEP 8. -- \ "Yesterday I parked my car in a tow-away zone. When I came back | `\ the entire area was missing." -- Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: ]ANN[ Vellum 0.16: Lots Of Documentation and Watching

2008-04-29 Thread Ben Finney
the GPLv3 rather than licenses less rigorous about ensuring the software remains free, so thankyou. -- \ “A free press is one where it’s okay to state the | `\ conclusion you’re led to by the evidence.” —Bill Moyers | _o__)

Re: We have string.isdigit(), why not string.isNumber()?

2008-04-30 Thread Ben Finney
Twain, _Pudd'n'head Wilson_ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: TypeError: unsupported operand type(s) for /: 'NoneType' and 'NoneType'

2008-05-01 Thread Ben Finney
a cookie) -- \ "Pinky, are you pondering what I'm pondering?" "I think so, | `\Brain, but Zero Mostel times anything will still give you Zero | _o__) Mostel." -- _Pinky and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-01 Thread Ben Finney
\ "Any sufficiently advanced bug is indistinguishable from a | `\ feature." —Rich Kulawiec | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: portable fork+exec/spawn

2008-05-01 Thread Ben Finney
-- Kingsley Amis | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-01 Thread Ben Finney
Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> writes: > -On [20080502 05:26], Ben Finney ([EMAIL PROTECTED]) wrote: > >I've never clearly understood why people want to use "#! > >/usr/bin/env python", which is prone to finding a different Python > &

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-01 Thread Ben Finney
"D'Arcy J.M. Cain" <[EMAIL PROTECTED]> writes: > On Fri, 02 May 2008 13:24:01 +1000 > Ben Finney <[EMAIL PROTECTED]> wrote: > > I much prefer "#! /usr/bin/python" because I want my Python > > programs to, by default, be run with the default

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-02 Thread Ben Finney
Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> writes: > -On [20080502 07:51], Ben Finney ([EMAIL PROTECTED]) wrote: > >To my mind, the Python interpreter installed by a package as > >distributed with the OS *is* OS territory and belongs in /usr/bin/. > > T

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-02 Thread Ben Finney
"D'Arcy J.M. Cain" <[EMAIL PROTECTED]> writes: > On Fri, 02 May 2008 13:24:01 +1000 > Ben Finney <[EMAIL PROTECTED]> wrote: > > I much prefer "#! /usr/bin/python" because I want my Python > > programs to, by default, be run with the default

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-02 Thread Ben Finney
Thorsten Kampe <[EMAIL PROTECTED]> writes: > * Ben Finney (Fri, 02 May 2008 23:30:01 +1000) > > The OP was asking why people prefer on over the other. My answer > > is that I prefer specifying "give me the default OS Python" > > because anything not insta

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-02 Thread Ben Finney
Roy Smith <[EMAIL PROTECTED]> writes: > In article <[EMAIL PROTECTED]>, > Ben Finney <[EMAIL PROTECTED]> wrote: > > > Whereas if Python is *not* installed from an OS package, it's up > > to the sys admin to ensure that it works -- not up to my progra

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-02 Thread Ben Finney
"D'Arcy J.M. Cain" <[EMAIL PROTECTED]> writes: > On Fri, 02 May 2008 23:30:01 +1000 > Ben Finney <[EMAIL PROTECTED]> wrote: > > The OP was asking why people prefer on over the other. My answer > > is that I prefer specifying "give me the defaul

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-02 Thread Ben Finney
"D'Arcy J.M. Cain" <[EMAIL PROTECTED]> writes: > On Sat, 03 May 2008 00:43:02 +1000 > Ben Finney <[EMAIL PROTECTED]> wrote: > > Roy Smith <[EMAIL PROTECTED]> writes: > > > Have you ever shipped software to a customer? > > > > Yes,

Re: unified command line args, environment variables, .conf file settings.

2008-05-02 Thread Ben Finney
t None: config[key] = environ_value #... -- \ "Pinky, are you pondering what I'm pondering?" "I think so, | `\ Brain, but how will we get a pair of Abe Vigoda's pants?" -- | _o__)_Pinky and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-02 Thread Ben Finney
Ben Finney <[EMAIL PROTECTED]> writes: > The shebang line (the initial line of the file beginning with "#!") > takes advantage of OS kernels that determine how to execute a file > based on the first few bytes of the file. The shebang line tells the > kernel that thi

Re: Are rank noobs tolerated, here?

2008-05-04 Thread Ben Finney
`\ any day." -- Douglas Adams | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Truncate beginning of a file

2008-05-04 Thread Ben Finney
will play itself." -- Johann Sebastian Bach | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

License selection for free software (was: ]ANN[ Vellum 0.16: Lots Of Documentation and Watching)

2008-05-05 Thread Ben Finney
7;t base the selection of license on "do some people dislike this license?", because the answer is "yes" for all of them. -- \"No matter how cynical you become, it's never enough to keep | `\ up." -- Jane Wagner, via Lily

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-06 Thread Ben Finney
lt to get a man to understand something when his | `\ salary depends upon his not understanding it." —Upton | _o__) Sinclair, 1935 | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: License selection for free software

2008-05-06 Thread Ben Finney
ular at any cost", the GPL is a better choice. -- \ "One of the most important things you learn from the internet | `\ is that there is no 'them' out there. It's just an awful lot of | _o__) 'us'." —Dou

Re: Surprising difference in behavior between "import blah" and "from blah import thing"

2008-05-08 Thread Ben Finney
e are here on Earth to fart around. Don't let anybody | `\ tell you otherwise." -- _Timequake_, Kurt Vonnegut | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Mathematics in Python are not correct

2008-05-08 Thread Ben Finney
-- Emo Philips | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Find more than one error at once

2008-05-10 Thread Ben Finney
a good thing we have gravity or else when birds died | `\ they'd just stay right up there. Hunters would be all | _o__) confused." -- Steven Wright | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: How to uninstall something installed by "setup.py install"?

2008-05-11 Thread Ben Finney
decent package management. -- \ "Yesterday I saw a subliminal advertising executive for just a | `\second." -- Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Do we have python equivalent of 'perl -e'??

2008-08-21 Thread Ben Finney
Philips | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: 'While' question

2008-08-22 Thread Ben Finney
rican family | _o__) hasn't time for it.” —_The New York Times_, 1939 | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Equivalents of Ruby's "!" methods?

2008-08-25 Thread Ben Finney
to that new value. Either of the above Python implementations will do this. -- \ “Kissing a smoker is like licking an ashtray.” —anonymous | `\ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Enhanced property decorator

2008-08-25 Thread Ben Finney
ment full-featured properties http://wiki.python.org/moin/PythonDecoratorLibrary#head-d6f79f980db88e0bdf258e9c9e7d34ce37b43eee>. -- \ “Try to learn something about everything and everything about | `\ something.” —T.H. Huxley | _o__)

Re: Are dictionaries the same as hashtables?

2008-08-26 Thread Ben Finney
th Python, even a regular guy can reach | _o__) for the stars.” —Raymond Hettinger | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: logging - how to use in a library?

2008-08-26 Thread Ben Finney
that context; there's no sane default. You need to document that assumption of your library for those who will use it. -- \ “The cost of education is trivial compared to the cost of | `\ ignorance.” —Thomas Jefferson | _o__)

Re: Decorators using instance variables

2008-08-27 Thread Ben Finney
absence of strong evidence to the contrary, and not lash out merely because of damage inflicted by some members. -- \ “If you go flying back through time and you see somebody else | `\ flying forward into the future, it's probably best to avoid eye | _o__)

Re: Understanding this generator function

2008-08-27 Thread Ben Finney
or form of despair, disguised as a virtue.” | `\ —Ambrose Bierce, _The Devil's Dictionary_, 1906 | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Numeric literal syntax (was: Py 2.6 changes)

2008-09-01 Thread Ben Finney
Twain, _Following the Equator_ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Numeric literal syntax

2008-09-01 Thread Ben Finney
[EMAIL PROTECTED] writes: > Ben Finney: > > I don't see any good reason (other than your familiarity with the > > D language) to use underscores for this purpose, and much more > > reason (readability, consistency, fewer arbitrary differences in > > syntax, perhap

Re: Numeric literal syntax

2008-09-02 Thread Ben Finney
er stop being a geek :-) -- \ “The best ad-libs are rehearsed.” —Graham Kennedy | `\ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Numeric literal syntax

2008-09-02 Thread Ben Finney
Ben Finney <[EMAIL PROTECTED]> writes: > I don't see any good reason (other than your familiarity with the D > language) to use underscores for this purpose, and much more reason > (readability, consistency, fewer arbitrary differences in syntax, > perhaps simpler

Re: How to write verbose scripts

2008-09-04 Thread Ben Finney
change the way the messages are handled. -- \ “We must become the change we want to see.” —Mahatma Gandhi | `\ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Python test case management system?

2008-09-04 Thread Ben Finney
what is a "test case management system" in terms of the things that it does? -- \ “Dad always thought laughter was the best medicine, which I | `\guess is why several of us died of tuberculosis.” —Jack Handey | _o__)

Re: lacking follow-through

2008-09-07 Thread Ben Finney
| `\ other was a man.” —Ashleigh Brilliant | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: universal unicode font for reportlab

2008-09-08 Thread Ben Finney
enny'; the 'unifont' and 'ttf-unifont' packages, respectively. -- \“Science doesn't work by vote and it doesn't work by | `\authority.” —Richard Dawkins, _Big Mistake_ (The Guardian, | _o__)

Re: Python Installation and Running on Windows Vista

2008-09-09 Thread Ben Finney
the issue is, as above. -- \ “There's no excuse to be bored. Sad, yes. Angry, yes. | `\Depressed, yes. Crazy, yes. But there's no excuse for boredom, | _o__) ever.” —Viggo Mortensen | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] top-posting and quoting

2008-09-09 Thread Ben Finney
ot freedom, but license.” —John Milton | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Gateway to python-list is generating bounce messages.

2008-09-10 Thread Ben Finney
last, thinks slowest.” —anonymous | `\ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Gateway to python-list is generating bounce messages.

2008-09-10 Thread Ben Finney
Grant Edwards <[EMAIL PROTECTED]> writes: > On 2008-09-10, Ben Finney <[EMAIL PROTECTED]> wrote: > > Grant Edwards <[EMAIL PROTECTED]> writes: > > > >> Could whoever is responsible for the gateway that is grabbing > >> my postings off of Usenet

Re: Gateway to python-list is generating bounce messages.

2008-09-11 Thread Ben Finney
ct that it does. -- \ “If you were going to shoot a mime, would you use a silencer?” | `\—Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Matching horizontal white space

2008-09-14 Thread Ben Finney
thon.org/doc/lib/module-re>. This is standard practice when using any unfamiliar module from the standard library. -- \ “If you do not trust the source do not use this program.” | `\—Microsoft Vista security dialogue | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Good programming style

2008-09-14 Thread Ben Finney
e — by having the API itself comply with PEP 8. -- \ “When cryptography is outlawed, bayl bhgynjf jvyy unir | `\ cevinpl.” —Anonymous | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Good programming style

2008-09-14 Thread Ben Finney
ollowing fashion and the status quo is easy. Thinking about | `\your users' lives and creating something practical is much | _o__)harder.” —Ryan Singer, 2008-07-09 | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Good programming style

2008-09-14 Thread Ben Finney
Grant Edwards <[EMAIL PROTECTED]> writes: > On 2008-09-14, Ben Finney <[EMAIL PROTECTED]> wrote: > > Second: please do yourself a favour and drop the camelCaseNames. > > Follow PEP 8 http://www.python.org/dev/peps/pep-0008> for style > > and naming in your Pyt

Re: Gateway to python-list is generating bounce messages.

2008-09-17 Thread Ben Finney
get sent to the entire list. This damage is usually impossible for the user to undo. If the software you use still isn't following the internet mail standards, then fix the software, or pressure your vendor to do so. -- \ “Are you pondering what I'm pondering?” “Umm, I think

Re: Python OOP advice

2008-09-17 Thread Ben Finney
tribute referencing the parent, preferably by passing it to the initialisation function (__init__) of the child. -- \ Rommel: “Don't move, or I'll turn the key on this can of Spam!” | `\ —The Goon Show, _Rommel's Treasure_ | _o__)

Re: Launching a subprocess without waiting around for the result?

2008-09-18 Thread Ben Finney
unlearn old falsehoods.” —Robert Anson Heinlein | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Launching a subprocess without waiting around for the result?

2008-09-18 Thread Ben Finney
erikcw <[EMAIL PROTECTED]> writes: > On Sep 18, 3:33 pm, Ben Finney <[EMAIL PROTECTED]> > wrote: > > erikcw <[EMAIL PROTECTED]> writes: > > > What is the correct way to launch subprocess without waiting for > > > the result to return? > > >

Re: What do you call a class not intended to be instantiated

2008-09-21 Thread Ben Finney
he same state. -- \ “Pinky, are you pondering what I'm pondering?” “I think so, | `\ Brain, but there's still a bug stuck in here from last time.” | _o__) —_Pinky and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: What do you call a class not intended to be instantiated

2008-09-22 Thread Ben Finney
s. -- \ “I love and treasure individuals as I meet them, I loathe and | `\ despise the groups they identify with and belong to.” —George | _o__) Carlin, 2007 | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: python syntax for conditional is unfortunate

2008-09-23 Thread Ben Finney
| `\persist in delusion, however satisfying and reassuring.” —Carl | _o__) Sagan | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Writing a well-behaved daemon

2008-09-25 Thread Ben Finney
wedding | `\ presents.” —Henry L. Mencken | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing a well-behaved daemon

2008-09-26 Thread Ben Finney
pair of Capri pants?” —_Pinky and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: getting global variables from dictionary

2008-09-26 Thread Ben Finney
print config.username new username >>> import get_config >>> print get_config.get_user() new username -- \“You can't have everything; where would you put it?” —Steven | `\Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Are spams on comp.lang.python a major nuisance?

2008-09-26 Thread Ben Finney
more effective if you *also* use an alternate NNTP provider that isn't such a spam-haven. -- \ “I put contact lenses in my dog's eyes. They had little | `\ pictures of cats on them. Then I took one out and he ran around | _o__) in

Build-in 'repr' function (was: what does ` ` do in ' '.join([`x * x` for x in range(1, 6)])?)

2008-09-26 Thread Ben Finney
stead, write the above as: ' '.join([repr(x * x) for x in range(1, 6)]) -- \ “Killing the creator was the traditional method of patent | `\protection” —Terry Pratchett, _Small Gods_ | _o__)

Re: What do you call a class not intended to be instantiated

2008-09-27 Thread Ben Finney
ng) ... >>> appendor = CallableAppendor() >>> appendor(1, 2, 4, 8, 16) 8 -- \ “Pleasure's a sin, and sometimes sin's a pleasure.” —“Lord” | `\ George Gordon Noel Byron, _Don Juan_ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: python for *nix system admins

2008-09-27 Thread Ben Finney
_The Age of Uncertainty_, | _o__) 1977 | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: What do you call a class not intended to be instantiated

2008-09-28 Thread Ben Finney
%(args)r, %(kwargs)r\n" % vars()) ... >>> '__call__' in dir(CallableModule) True >>> foo = CallableModule('foo') >>> foo(1, 2, 3, a=4, b=5) , (1, 2, 3), {'a': 4, 'b': 5} >>> foo -- \

Re: One class per file?

2008-09-29 Thread Ben Finney
fore, there's a tremendous amount of innovation | _o__) happening.” —Steve Jobs | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: One class per file?

2008-09-29 Thread Ben Finney
dren's children, because I don't think children should | _o__) be having sex.” —Jack Handey | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

<    29   30   31   32   33   34   35   36   37   38   >