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
ave been more specific.” —Jane Wagner, via Lily Tomlin |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
—Mahatma Gandhi |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
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
ss; or one of her friends.” |
_o__)—Lisa & Homer, _The Simpsons_ |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
even 4,000 per hour …” —F. H. Wales, 1936 |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
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
_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
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__)
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
o__)telling them to sit down and shut up." -- Phyllis Diller |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
it.” —Albert Einstein |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
"He who laughs last, thinks slowest." -- Anonymous |
`\ |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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__)
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
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
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__)
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
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.
>
fanticide.” —Dame Rebecca West |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
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
[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
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
for me?" -- Groucho Marx |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
to murder a loved one because they're the devil." -- Emo |
_o__) Philips |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
ld as the woman he feels." -- Groucho Marx |
`\ |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
-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
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
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
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__)
Twain, _Pudd'n'head Wilson_ |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
\ "Any sufficiently advanced bug is indistinguishable from a |
`\ feature." —Rich Kulawiec |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
-- Kingsley Amis |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
> &
"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
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
"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
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
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
"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
"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,
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
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
`\ any day." -- Douglas Adams |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
will play itself." -- Johann Sebastian Bach |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
-- Emo Philips |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
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
Philips |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
rican family |
_o__) hasn't time for it.” —_The New York Times_, 1939 |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
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__)
th Python, even a regular guy can reach |
_o__) for the stars.” —Raymond Hettinger |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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__)
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__)
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
Twain, _Following the Equator_ |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
[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
er stop being a geek :-)
--
\ “The best ad-libs are rehearsed.” —Graham Kennedy |
`\ |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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__)
|
`\ other was a man.” —Ashleigh Brilliant |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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__)
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
ot freedom, but license.” —John Milton |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
last, thinks slowest.” —anonymous |
`\ |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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__)
unlearn old falsehoods.” —Robert Anson Heinlein |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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?
> >
>
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
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
|
`\persist in delusion, however satisfying and reassuring.” —Carl |
_o__) Sagan |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
wedding |
`\ presents.” —Henry L. Mencken |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
pair of Capri pants?” —_Pinky and The Brain_ |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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__)
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
_The Age of Uncertainty_, |
_o__) 1977 |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
%(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
--
\
fore, there's a tremendous amount of innovation |
_o__) happening.” —Steve Jobs |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
3301 - 3400 of 4138 matches
Mail list logo