Re: removing items from a dictionary ?

2007-07-26 Thread Ben Finney
;(bar)' from the identifier; instead follow it immediately, 'foo_list[foo]', 'bar_func(bar)'. None of these are mandatory, but they'll make your code comply with what Python programmers expect and thus be more easily maintained. -- \ "Are you pond

Re: Comparing Dictionaries

2007-07-26 Thread Ben Finney
er', 'mouse': 'mickey'} == {'mouse': 'mickey', 'dog': 'bone', 'cat': 'fever'} True >>> {'dog': 'bone', 'cat': 'fever', 'mouse': 'mickey'} == {'mouse': 'michael', 'dog': 'bone', 'cat': 'fever'} False -- \ "Many are stubborn in pursuit of the path they have chosen, few | `\ in pursuit of the goal." -- Friedrich Nietzsche | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: From D

2007-07-25 Thread Ben Finney
meric literal values in particular. -- \"Pinky, are you pondering what I'm pondering?" "Wuh, I think | `\so, Brain, but burlap chafes me so." -- _Pinky and The Brain_ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: From D

2007-07-25 Thread Ben Finney
module. -- \"I always had a repulsive need to be something more than | `\ human." -- David Bowie | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: idiom for RE matching

2007-07-25 Thread Ben Finney
o go unchallenged in the archives :-) -- \ "Never do anything against conscience even if the state demands | `\ it." -- Albert Einstein | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Relative-importing *

2007-07-27 Thread Ben Finney
y reading the program, the origin of every name in the current namespace. -- \ "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__)Chihuahuas with some good ideas." -- Jack Handey | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Relative-importing *

2007-07-28 Thread Ben Finney
ort happens at run-time. The compiler can't catch it. -- \ "I stayed up all night playing poker with tarot cards. I got a | `\ full house and four people died." -- Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Test-driven design (was: Comparing Dictionaries)

2007-07-28 Thread Ben Finney
erence, at exactly the time it's most useful. There are many who call TDD "test-driven design" for this same reason. -- \ "A child of five could understand this. Fetch me a child of | `\ five." -- Groucho

Re: this must be a stupid question ...

2007-07-28 Thread Ben Finney
-- Alvin Toffler | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Extending Python by Adding Keywords & Data types

2007-07-31 Thread Ben Finney
ually." -- Steven Wright | `\ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

[OT] Google message munging (was: Live editing...)

2007-07-31 Thread Ben Finney
that users are enabling, or is it the default behaviour? More importantly, whom do we beat with the clue-by-four to make it stop? -- \ "For of those to whom much is given, much is required." -- | `\ John F. Kennedy | _o__)

Re: Python end of file marker similar to perl's __END__

2007-08-01 Thread Ben Finney
ure in Perl, I doubt it. -- \ "Everything is futile." -- Marvin of Borg | `\ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Emacs + python

2007-08-01 Thread Ben Finney
ts help (C-h m) for all the cool things you can do. -- \ "Our products just aren't engineered for security." -- Brian | `\ Valentine, senior vice-president of Microsoft Windows | _o__) development | Ben

Re: Python end of file marker similar to perl's __END__

2007-08-01 Thread Ben Finney
\"Holy unrefillable prescriptions, Batman!" -- Robin | `\ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Emacs + python

2007-08-01 Thread Ben Finney
ed power | `\ and expressiveness. With Python, even a regular guy can reach | _o__)for the stars." -- Raymond Hettinger | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Experimentation and dealing with transient broken code (was: Python end of file marker similar to perl's __END__)

2007-08-02 Thread Ben Finney
just been proven not to work? (If the only reason is "because I might need it later", again, that's what a VCS is for.) -- \"I'd take the awe of understanding over the awe of ignorance | `\ any day." -- Douglas Adams | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Emacs + python

2007-08-03 Thread Ben Finney
I said, 'Insanity, your | `\ honour. Who in their right mind would park in the passing | _o__) lane?'" -- Steven Wright | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Relative-importing *

2007-08-04 Thread Ben Finney
happens? -- \ "The only tyrant I accept in this world is the still voice | `\ within." -- Mahatma Gandhi | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: sqlite3 create table col width?

2007-08-04 Thread Ben Finney
ot;True greatness is measured by how much freedom you give to | `\ others, not by how much you can coerce others to do what you | _o__) want." --Larry Wall | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Relative-importing *

2007-08-06 Thread Ben Finney
\"With Lisp or Forth, a master programmer has unlimited power | `\ and expressiveness. With Python, even a regular guy can reach | _o__)for the stars." -- Raymond Hettinger | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Global package variable, is it possible?

2007-08-06 Thread Ben Finney
] power and control will shift to those who | `\ are actually contributing something useful rather than just | _o__) having lunch." -- Douglas Adams | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Emacs + python.

2007-08-06 Thread Ben Finney
hon/> http://mail.python.org/pipermail/python-list/> -- \ "What you have become is the price you paid to get what you | `\ used to want." -- Mignon McLaughlin | _o__) | Ben Finney --

Re: ensuring GNU readline isn't used

2007-08-07 Thread Ben Finney
; you can derive from and redistribute cmd, so long as you comply with the license on cmd. -- \ "What I have to do is see, at any rate, that I do not lend | `\ myself to the wrong which I condemn." -- Henry Thoreau, _Civil | _o__)

Re: Seek the one billionth line in a file containing 3 billion lines.

2007-08-08 Thread Ben Finney
break As for reading each line: that's unavoidable if you want a specific line from a stream of variable-length lines. -- \ "I have never made but one prayer to God, a very short one: 'O | `\ Lord, make my enemies ridiculous!' And God granted it." -- | _o__) Voltaire | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: How to avoid reverse code engineering of a python executable

2007-08-08 Thread Ben Finney
alone." -- Anonymous | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: testing

2007-08-08 Thread Ben Finney
#x27;t see any parts of the message written by you, only paragraphs of quoted text. -- \"The World is not dangerous because of those who do harm but | `\ because of those who look at it without doing anything." -- | _o__)

Re: Help with Dictionaries and Classes requested please.

2007-08-09 Thread Ben Finney
olding dogmas that are different from our own." -- | _o__) Charles Issawi | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Puzzled by "is"

2007-08-09 Thread Ben Finney
uage user (that's you and I) should *not* expect any particular behaviour to hold between different implementations. -- \ "Holy priceless collection of Etruscan snoods, Batman!" -- | `\ Robin | _o__)

Re: beginner whitespace question

2007-08-10 Thread Ben Finney
nformation | `\ technology as a McDonalds Certified Food Specialist is to the | _o__) culinary arts." —Michael Bacarella | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: The Future of Python Threading

2007-08-10 Thread Ben Finney
can picture in my mind a world without war, a world without | `\ hate. And I can picture us attacking that world, because they'd | _o__) never expect it." -- Jack Handey | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Puzzled by "is"

2007-08-12 Thread Ben Finney
Dick Moores <[EMAIL PROTECTED]> writes: > At 06:13 PM 8/9/2007, Ben Finney wrote: > >it's entirely left to the language implementation which > >optimisation trade-offs to make, and the language user (that's you > >and I) should *not* expect any particular b

Online documentation split onto many small pages (was: py2exe/distutils: how to include a tree of files?)

2007-08-24 Thread Ben Finney
hin one path prefix of a domain. -- \ "Listen: we 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: curses library

2007-08-25 Thread Ben Finney
) in most GNU/Linux distributions, or you can install it from the download link. -- \ "Pity the meek, for they shall inherit the earth." -- Donald | `\ Robert Perry Marquis | _o__)

Re: "Try:" which only encompasses head of compound statement

2007-08-27 Thread Ben Finney
for the target. with input_file: # ... do stuff > and there's a moment when the above code doesn't know to close > myFile. Closing the file will occur when the object is cleaned up by garbage collection. -- \ "I bought a self learning record to learn Spanish. I

Re: "Try:" which only encompasses head of compound statement

2007-08-27 Thread Ben Finney
or posting untested code snippets, Thanks for the catch. -- \"There was a point to this story, but it has temporarily | `\ escaped the chronicler's mind." -- Douglas Adams | _o__) | Ben Fi

Re: Check for dict key existence, and modify it in one step.

2007-08-28 Thread Ben Finney
only ten minutes." -- Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Check for dict key existence, and modify it in one step.

2007-08-28 Thread Ben Finney
Ben Finney <[EMAIL PROTECTED]> writes: > foo.setdefault(whatever, {}) > foo[whatever].setdefault(someother, 0) > foo[whatever] += delta Should, of course, be: foo.setdefault(whatever, {}) foo[whatever].setdefault(someother, 0) foo[whatever][some

Re: "Try:" which only encompasses head of compound statement

2007-08-28 Thread Ben Finney
way, perhaps you could be more explicit about what danger you think exists? -- \ "Are you pondering what I'm pondering?" "I think so, Brain, but | `\pants with horizontal stripes make me look chubby." -- _Pinky | _o__) and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE for Python

2007-08-29 Thread Ben Finney
; -- | _o__)Jamie Zawinski, in alt.religion.emacs | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: list index()

2007-08-30 Thread Ben Finney
in on vacation | `\ unless acted upon by an outside force." -- Carol Reichel | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: list index()

2007-08-30 Thread Ben Finney
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes: > On Thu, 30 Aug 2007 17:09:36 +1000, Ben Finney wrote: > > It's letting you know that the item isn't in the list. There's no > > sensible return value from an "index" function in that c

Re: list index()

2007-08-30 Thread Ben Finney
s. Not me, I'm afraid of | `\widths." -- Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: list index()

2007-08-30 Thread Ben Finney
Ben Finney <[EMAIL PROTECTED]> writes: > def get_an_index_even_if_not_found(the_list, the_item): Bah. Should be "…(the_list, the_value):". -- \"Don't worry about people stealing your ideas. If your ideas | `\are any good, you'll have

Re: list index()

2007-08-30 Thread Ben Finney
[EMAIL PROTECTED] writes: > On Aug 30, 12:09 am, Ben Finney <[EMAIL PROTECTED]> > wrote: > > It's letting you know that the item isn't in the list. There's no > > sensible return value from an "index" function in that condition. > > for str

Re: list index()

2007-08-30 Thread Ben Finney
xception isn't "something that should never happen", it's something that is entirely possible and needs to be handled somehow. -- \ "Always do right. This will gratify some people, and astonish | `\ the rest." --

Re: strings (dollar.cents) into floats

2007-08-30 Thread Ben Finney
l("34.45") They support the full range of arithmetic operations, without cumulative precision errors that floats are prone to. -- \ "As the evening sky faded from a salmon color to a sort of | `\ flint gray, I thought back to the salmon I caught that morning, | _o__) and how

Re: strings (dollar.cents) into floats

2007-08-30 Thread Ben Finney
ations on real-world (analogue) measurements. -- \"Too many Indians spoil the golden egg." -- Sir Joh | `\ Bjelke-Petersen | _o__) | Ben Finney -- http:/

Re: list index()

2007-09-01 Thread Ben Finney
"Rightful liberty is unobstructed action, according to our | `\will, within limits drawn around us by the equal rights of | _o__) others." -- Thomas Jefferson | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-03 Thread Ben Finney
than the GIL. -- \"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: list index()

2007-09-03 Thread Ben Finney
Thorsten Kampe <[EMAIL PROTECTED]> writes: > * Ben Finney (Thu, 30 Aug 2007 18:02:15 +1000) > > Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > > > What's with using your brain instead of whining ? > > > > Now now, no need for snappiness. >

Re: parameter list notation

2007-09-03 Thread Ben Finney
counts." -- Will Rogers | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: list index()

2007-09-04 Thread Ben Finney
icult to find them if one looks. Doing so doesn't appear to illustrate any point I see relevant in this thread. -- \ "If you're a horse, and someone gets on you, and falls off, and | `\ then gets right back on you, I think you should buck him off | _o__)

Re: Give List to Format String - How To

2007-09-05 Thread Ben Finney
uld they care about it?" -- Thomas Hesse, Sony BMG, 2006 | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting original working directory

2007-09-06 Thread Ben Finney
lue is lost — unless you bind that previous value somewhere else first so you can get at it again. -- \ "I got up the other day, and everything in my apartment has | `\ been stolen and replaced with an exact replica." -- Steven | _o__) Wright | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating a unique identifier

2007-09-07 Thread Ben Finney
m and use that. If you use the options for including random elements, the generated UUIDs will even satisfy your "unpredictable" requirement. -- \ "This sentence contradicts itself -- no actually it doesn't." | `\ -- Dougla

Re: Enum class with ToString functionality

2007-09-10 Thread Ben Finney
L. Mencken | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about PEP 8

2007-09-10 Thread Ben Finney
> party libraries that are not following the PEP? Follow PEP 8 for your code. Grit your teeth and use the non-standard conventions of third-party libraries, until such time as they are (backward-incompatibly) changed to be compliant. -- \ "Don't be afraid of missing opportuniti

Re: Enum class with ToString functionality

2007-09-10 Thread Ben Finney
e for any package. -- \ "Try to become not a man of success, but try rather to become a | `\ man of value." —Albert Einstein | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Enum class with ToString functionality

2007-09-10 Thread Ben Finney
TheFlyingDutchman <[EMAIL PROTECTED]> writes: > On Sep 10, 7:12 pm, Ben Finney <[EMAIL PROTECTED]> > wrote: > > TheFlyingDutchman <[EMAIL PROTECTED]> writes: > > > Looking at the documentation it looks excellent. But I don't > > > understan

Version numbering (was: Enum class with ToString functionality)

2007-09-10 Thread Ben Finney
the code you see presently in version 0.4.2. -- \ "That's all very good in practice, but how does it work in | `\ *theory*?" —Anonymous | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3K or Python 2.9?

2007-09-11 Thread Ben Finney
later you're hungry again." -- George Miller | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Coming from Perl

2007-09-12 Thread Ben Finney
, but | `\pants with horizontal stripes make me look chubby." -- _Pinky | _o__) and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3K or Python 2.9?

2007-09-12 Thread Ben Finney
erable to the magic of "instance is passed as the first argument to a method"? -- \ "If nothing changes, everything will remain the same." -- | `\ Barne's Law | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Coming from Perl

2007-09-12 Thread Ben Finney
le-textwrap>. -- \"Madness is rare in individuals, but in groups, parties, | `\ nations and ages it is the rule." -- Friedrich Nietzsche | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3K or Python 2.9?

2007-09-12 Thread Ben Finney
7;instance.method(args)' syntax is just sugar for 'Class.method(instance, args)'. -- \"Choose mnemonic identifiers. If you can't remember what | `\ mnemonic means, you've got a problem." -- Larry Wall | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3K or Python 2.9?

2007-09-12 Thread Ben Finney
"Peter Decker" <[EMAIL PROTECTED]> writes: > On 9/12/07, Ben Finney <[EMAIL PROTECTED]> wrote: > > How is that preferable to the magic of "instance is passed as the > > first argument to a method"? > > So everything that isn't passed exp

Re: Python 3K or Python 2.9?

2007-09-12 Thread Ben Finney
oo = foo + 1'". -- \ "I don't know half of you half as well as I should like, and I | `\ like less than half of you half as well as you deserve." -- | _o__)Bilbo Baggins | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Coming from Perl

2007-09-13 Thread Ben Finney
d you consider how to wrap it in that new (harder-to-debug) context. -- \"What if the Hokey Pokey IS what it's all about?" —anonymous | `\ | _o__)

Re: implementing SFTP using Python

2007-03-02 Thread Ben Finney
t;I was in a bar the other night, hopping from barstool to | `\ barstool, trying to get lucky, but there wasn't any gum under | _o__) any of them." -- Emo Philips | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Perl and Python, a practical side-by-side example.

2007-03-02 Thread Ben Finney
ato | `\ "To do is to be" -- Aristotle | _o__) "Do be do be do" -- Sinatra | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Perl and Python, a practical side-by-side example.

2007-03-03 Thread Ben Finney
William Heymann <[EMAIL PROTECTED]> writes: > On Saturday 03 March 2007, Ben Finney wrote: > > Bjoern Schliessmann <[EMAIL PROTECTED]> writes: > > > > if not recs.has_key(piid): # [1] > > > Why not > > if piid not in recs: > > That

Re: Non Sequitur

2007-03-03 Thread Ben Finney
;ceiling". -- \"Most people don't realize that large pieces of coral, which | `\ have been painted brown and attached to the skull by common | _o__) wood screws, can make a child look like a deer." -- Jack Handey | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: implementing SFTP using Python

2007-03-05 Thread Ben Finney
st, thinks slowest." -- Anonymous | `\ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Project organization and import

2007-03-06 Thread Ben Finney
in front of the fire for the evening in two minutes." | _o__) -- Steven Wright | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: pylint: don't warn about tabs

2007-03-08 Thread Ben Finney
rec.humor.oracle.d | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Where to "import"?

2007-03-08 Thread Ben Finney
ent namespace. -- \ "When cryptography is outlawed, bayl bhgynjf jvyy unir | `\ cevinpl." -- Anonymous | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

TitleCase, camelCase, lowercase (was: Where to "import"?)

2007-03-08 Thread Ben Finney
(at least) Java, but PEP 8 prefers lowercase_with_underscores. -- \ "My theory of evolution is that Darwin was adopted." -- Steven | `\ Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this right? Multiple imports of same module.

2007-03-09 Thread Ben Finney
ut I | `\never saw any reason to limit myself." -- Emo Philips | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Signed zeros: is this a bug?

2007-03-12 Thread Ben Finney
st aren't engineered for security." -- Brian | `\ Valentine, senior vice-president of Microsoft Windows | _o__) development | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Program __main__ function (was: Starting Python... some questions)

2007-03-12 Thread Ben Finney
http://www.earth.li/projectpurple/ Got sigmatch == ^/home/bignose/\.sigs/news.*$ -- \"The right to search for truth implies also a duty; one must | `\ not conceal any part of what one has recognized to be true." | _o__) -- Albert Einstein | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Program __main__ function

2007-03-12 Thread Ben Finney
Ben Finney <[EMAIL PROTECTED]> writes: > Now, when I write unit tests for my program (i.e. a Python module > designed to be run as a command), it can still be imported safely > into my unit tests, and all the code gets covered by test cases > except the three-line stanza at th

Re: ANN: ActivePython 2.5.0.0 is now available

2007-03-13 Thread Ben Finney
rectly relevant to your reply.) -- \"Beware of and eschew pompous prolixity." -- Charles A. | `\ Beardsley | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Eureka moments in Python

2007-03-13 Thread Ben Finney
:-) -- \ "I may disagree with what you say, but I will defend to the | `\death your right to mis-attribute this quote to Voltaire." -- | _o__) Avram Grumer, rec.arts.sf.written, May 2000 | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Circular Class Logic

2007-03-14 Thread Ben Finney
\ "Buy not what you want, but what you need; what you do not need | `\ is expensive at a penny." -- Cato, 234-149 BC, Relique | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: distributing python software in jar like fashion

2007-03-14 Thread Ben Finney
asked what he thought of Western civilization) | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiline code - trailing slash usage

2007-03-15 Thread Ben Finney
rentheses can be used just about anywhere you might otherwise need backslash-escaped line breaks. -- \ "My, your, his, hers, ours, theirs, its. | `\ I'm, you're, he's, she's, we're, they're, it's." | _o__) -- Anonymous, alt.sysadmin.recovery | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Mastering Python

2007-03-18 Thread Ben Finney
t entertaining, if not informative. It looks like a great get-started guide for the many C++ refugees I hope we can gain :-) -- \"Why, I'd horse-whip you if I had a horse." -- Groucho Marx | `\

Re: any ways to judge whether an object is initilized or not in a class

2007-03-19 Thread Ben Finney
other class. As for the original question: the __init__ method of a class is called immediately after the constructor, so that's the place to initialise any instance attributes. -- \ "At my lemonade stand I used to give the first glass away free | `\ and charge five doll

Re: any ways to judge whether an object is initilized or not in a class

2007-03-19 Thread Ben Finney
"Steven D'Aprano" <[EMAIL PROTECTED]> writes: > On Mon, 19 Mar 2007 19:48:37 +1100, Ben Finney wrote: > > > It's also best to inherit every class from another class, leading > > to a single hierarchy for all classes and types. 'object' is th

Re: Load three different modules which have the same name

2007-03-20 Thread Ben Finney
l rich, I hope I'm not real mean to poor | `\ people, like I am now." -- Jack Handey | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: help - Module needs access to another module

2007-03-20 Thread Ben Finney
't even know exist. -- \ "People always ask me, 'Where were you when Kennedy was shot?' | `\ Well, I don't have an alibi." -- Emo Philips | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Exceptions when closing a file

2007-03-20 Thread Ben Finney
illing to go through hell to get it." -- Donald Robert Perry | _o__) Marquis | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Subject line with smtplib.sendmail()

2007-03-20 Thread Ben Finney
quot;Somebody told me how frightening it was how much topsoil we | `\ are losing each year, but I told that story around the campfire | _o__) and nobody got scared." -- Jack Handey | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Unit testing daemon creation

2007-03-20 Thread Ben Finney
st. Is there a better way? -- \"Beware of and eschew pompous prolixity." -- Charles A. | `\ Beardsley | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: How to tell easy_install that a package is already installed

2007-03-21 Thread Ben Finney
take. You have to let nudity | _o__) 'happen.'" -- Jack Handey | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Ben Finney
s wouldn't be doing that. The crackers, however, might. -- \ "Try to become not a man of success, but try rather to become a | `\man of value." -- Albert Einstein | _o__) | B

Re: Python 3000 idea: reversing the order of chained assignments

2007-03-21 Thread Ben Finney
ot;foo" >>> b = "bar" >>> c = "baz" >>> a = b = c >>> a, b, c ('baz', 'baz', 'baz') -- \"During my service in the United States Congress, I took the | `\

Re: copying only recent files from one machine to another

2007-03-21 Thread Ben Finney
gift for the President would be a chocolate | `\ revolver. And since he's so busy, you'd probably have to run up | _o__) to him real quick and hand it to him." -- Jack Handey | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: class / instance question

2007-03-22 Thread Ben Finney
""" Play a new game """ game = game_class() game.start_play() -- \"The number of UNIX installations has grown to 10, with more | `\ expected." -- Unix Programmer's Manual, 2nd Ed., 12-Jun-1972 | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help to learn Python

2007-03-22 Thread Ben Finney
ot sure you realize that what you heard is not what I | _o__) meant." -- Robert J. McCloskey | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

<    20   21   22   23   24   25   26   27   28   29   >