Dumb-as-rocks WSGI serving using standard library

2006-05-22 Thread Ben Finney
s around for | `\ a coffin." -- Henry L. Mencken | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Python - Web Display Technology

2006-05-22 Thread Ben Finney
e might, if they screamed all the time, for no good | _o__) reason." -- Jack Handey | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Too big of a list? and other problems

2006-05-22 Thread Ben Finney
told a chicken to cross the road. It said, 'What | `\ for?'" -- Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: No math module??

2006-05-22 Thread Ben Finney
or double-check you built and installed the source packages the way you want them. -- \"My doctor told me to stop having intimate dinners for four. | `\Unless there are three other people." -- Orson Welles | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Short and simple functions (was: Re: Dr. Dobb's Python-URL! - weekly Python news and links (May 22))

2006-05-22 Thread Ben Finney
t a mistake; he's saying that it's difficult to get into a situation where that is the cause of one's mistake. -- \ "I got an answering machine for my phone. Now when someone | `\ calls me up and I'm not home, they get a recording of a busy | _o__) signal." -- Steven Wright | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: real time info to web browser from apache side ?

2006-05-23 Thread Ben Finney
ternet." -- Al Gore | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: how to change sys.path?

2006-05-23 Thread Ben Finney
ng to be | `\ frank." Ned Seagoon: "Right, I'll be Tom." Count Moriarty: | _o__) "I'll be Gladys." *slap* -- The Goon Show, _World War I_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: how to change sys.path?

2006-05-23 Thread Ben Finney
ies ridiculous!' And God granted it." -- | _o__) Voltaire | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: python __import__ question

2006-05-24 Thread Ben Finney
NameError: name 'some_empty_module' is not defined Can you post a minimal, complete example that shows the behaviour? -- \ "As we enjoy great advantages from the inventions of others, we | `\ should be glad to serve others by any invention of ours." -- | _o__)

Re: Creating instances of untrusted new-style classes

2006-05-25 Thread Ben Finney
, how can the instance be created properly? -- \ "It's easy to play any musical instrument: all you have to do | `\ is touch the right key at the right time and the instrument | _o__) will play itself." -- Johann Sebastian Bach | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Tab indentions on different platforms?

2007-12-29 Thread Ben Finney
lt. Conclusion: Thus, using tabs-only is inferior to using spaces-only for indentation, because it violates the Principle of Least Astonishment http://en.wikipedia.org/wiki/Principle_of_least_astonishment>. -- \ "I object to doing things that computers can do." —Olin | `\

Re: Tab indentions on different platforms?

2007-12-30 Thread Ben Finney
tical fully-controlled isolated environments is foolish, to say the least. -- \ "If you can't beat them, arrange to have them beaten." -- | `\ George Carlin | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Tab indentions on different platforms?

2008-01-01 Thread Ben Finney
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Mon, 31 Dec 2007 12:36:11 +1100, Ben Finney wrote: > > > Steven D'Aprano <[EMAIL PROTECTED]> writes: > > > >> On Sun, 30 Dec 2007 20:41:09 +, Thorsten Kampe wrote: > >> > >>

Re: Catching external program exceptions

2008-01-01 Thread Ben Finney
o!") Why isn't this standardised? Because the process-call interface is inconsistent between operating systems, and there's even less consistency in the implementations of the programs that return these values. The Zen of Python says: "In the face of ambiguity, refuse the temptati

Re: Tab indentions on different platforms?

2008-01-01 Thread Ben Finney
"I hate it when my foot falls asleep during the day, because | `\ that means it's gonna be up all night." -- Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Tab indentions on different platforms?

2008-01-02 Thread Ben Finney
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Wed, 02 Jan 2008 15:17:54 +1100, Ben Finney wrote: > > > Torsten Bronger <[EMAIL PROTECTED]> writes: > > > >> [...] the width of a tab is nowhere defined. It really is a matter of > >> t

Re: MRO Error on Multiple Inheritance?

2008-01-04 Thread Ben Finney
So there's no sense in defining class D to inherit from both A *and* B. To get a descendent of both those classes, inheriting from B is sufficient. It should rather be:: class D(B): pass -- \ "Pinky, are you pondering what I'm pondering?" "Uh, I think so, | `\ Brain, but we'll never get a monkey to use dental floss." -- | _o__)_Pinky and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Language type systems (was: How a smart editor could make "Postfix type declarations PEP3117" in Python3000 more readable)

2008-01-05 Thread Ben Finney
ellectuals to tell the truth | `\and expose lies." -- Noam Chomsky | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

python-list@python.org

2008-01-06 Thread Ben Finney
e that would be flagged as invalid by HTML validator tools. -- \ "Those who write software only for pay should go hurt some | `\ other field." -- Erik Naggum, in _gnu.misc.discuss_ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: do - loop

2008-01-07 Thread Ben Finney
f to a single subject """ pass for this_subject in all_subjects: do_the_stuff(this_subject) -- \ "Unix is an operating system, OS/2 is half an operating system, | `\ Windows is a shell, and DOS is a boot partition virus." | _o__)

Re: Python's great, in a word

2008-01-07 Thread Ben Finney
people not as smart as them." -- Paul Graham | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: I'm searching for Python style guidelines

2008-01-08 Thread Ben Finney
e all its contents." -- Howard | _o__) Philips Lovecraft | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Natural-language datetime parsing and display (was: user friendly datetime features)

2008-01-08 Thread Ben Finney
trade was to the 16th." -- David Mertz | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Spaces and tabs messing up code

2008-01-08 Thread Ben Finney
orced from that point on for all files edited. -- \ "In the long run, the utility of all non-Free software | `\ approaches zero. All non-Free software is a dead end." —Mark | _o__) Pilgrim | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Python too slow?

2008-01-09 Thread Ben Finney
ing any of the actual statements in the program) a significant part of the total time in this case? -- \ "In the long run, the utility of all non-Free software | `\ approaches zero. All non-Free software is a dead end." —Mark | _o__)

Re: Natural-language datetime parsing and display

2008-01-09 Thread Ben Finney
| `\ Lily Tomlin | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Conventions for dummy name (was: for loop without variable)

2008-01-09 Thread Ben Finney
conventions. -- \ "It is forbidden to steal hotel towels. Please if you are not | `\person to do such is please not to read notice." -- Hotel | _o__) sign, Kowloon, Hong Kong | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: for loop without variable

2008-01-09 Thread Ben Finney
the warning off because catching unused > variables in the general is useful to me. Agreed. -- \ "Dyslexia means never having to say that you're ysror." | `\—anonymous | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: importing module conflict

2008-01-10 Thread Ben Finney
eps/pep-0328.html> and implemented in Python 2.5 http://docs.python.org/whatsnew/pep-328.html>. -- \ "The way to build large Python applications is to componentize | `\ and loosely-couple the hell out of everything." -- Aahz | _o__)

Re: encrypting python modules

2008-01-11 Thread Ben Finney
trying to make water not wet. -- \ "The shortest distance between two points is under | `\ construction." -- Noelie Alito | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: encrypting python modules

2008-01-11 Thread Ben Finney
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes: > On Sat, 12 Jan 2008 09:47:26 +1100, Ben Finney wrote: > > > Trying to make bits uncopyable and unmodifiable is like trying to > > make water not wet. > > Certainly not. I can put water into the fre

Re: Great Python books for the beginner

2008-01-12 Thread Ben Finney
hird edition has benefited from his many years of experience finding effective ways to teach the language. -- \ "If you ever teach a yodeling class, probably the hardest thing | `\ is to keep the students from just trying to yodel right off. | _o__) You s

Re: __init__ explanation please

2008-01-13 Thread Ben Finney
tends to remain on vacation | `\ unless acted upon by an outside force." -- Carol Reichel | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: __init__ explanation please

2008-01-14 Thread Ben Finney
ew__' method returns that instance back to the caller. -- \ "Probably the toughest time in anyone's life is when you have | `\ to murder a loved one because they're the devil." -- Emo | _o__) Philips | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: __init__ explanation please

2008-01-14 Thread Ben Finney
re, he's, | `\ she's, we're, they're, it's." —anonymous, | _o__)alt.sysadmin.recovery | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: encrypting python modules

2008-01-14 Thread Ben Finney
d* good for you, since you *can* drop them if it's to your advantage to do so. -- \ "Everything is futile." -- Marvin of Borg | `\ | _o__)

Re: module naming conventions

2008-01-14 Thread Ben Finney
| `\ exert myself in order to give in the same measure as I have | _o__)received and am still receiving" —Albert Einstein | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: NotImplimentedError

2008-01-14 Thread Ben Finney
or. I think it's desirable to keep them both distinct as is. -- \ "If you get invited to your first orgy, don't just show up | `\ nude. That's a common mistake. You have to let nudity | _o__) 'happen.'

Re: [ANN] pylint 0.14 / logilab-astng 0.17.2

2008-01-14 Thread Ben Finney
ease give an overview of the major user-visible changes? That will help in convincing people to upgrade. -- \"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

Re: super, decorators and gettattribute

2008-01-14 Thread Ben Finney
skimming the main headings :-) -- \ "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

Re: paging in python shell

2008-01-14 Thread Ben Finney
319 U.S. 624 (1943) | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: SyntaxError: 'import *' not allowed with 'from .'

2008-01-14 Thread Ben Finney
| `\ available." -- Stan Kelly-Bootle | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: NotImplimentedError

2008-01-14 Thread Ben Finney
Ben Finney <[EMAIL PROTECTED]> writes: > I think of NotImplemented as equivalent to None Not "equivalent"; rather "comparable in usage". -- \ "[W]e are still the first generation of users, and for all that | `\ we may have invented the net, we s

Re: module naming conventions

2008-01-14 Thread Ben Finney
t the source do not use this program." | `\ —Microsoft Vista security dialogue | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: module naming conventions

2008-01-14 Thread Ben Finney
grackle <[EMAIL PROTECTED]> writes: > On Jan 14, 6:28 pm, Ben Finney <[EMAIL PROTECTED]> > wrote: > > Release your package as free software on the Cheeseshop > > http://cheeseshop.python.org/>. If the name you want is > > already taken, pick one that will he

Re: NotImplimentedError

2008-01-14 Thread Ben Finney
George Sakkis <[EMAIL PROTECTED]> writes: > On Jan 14, 5:39 pm, Ben Finney <[EMAIL PROTECTED]> > wrote: > > > I think of NotImplemented as equivalent to None; it's useful as a > > sentinel value to set an attribute to in (e.g.) an abstract class. >

Re: __init__ explanation please

2008-01-14 Thread Ben Finney
Hrvoje Niksic <[EMAIL PROTECTED]> writes: > Ben Finney <[EMAIL PROTECTED]> writes: > > > Hrvoje Niksic <[EMAIL PROTECTED]> writes: > >> __init__ *is* the closest equivalent to what other languages > >> would call a constructor. > > > >

Re: no pass-values calling?

2008-01-15 Thread Ben Finney
t becomes a candidate for garbage collection. And so on. -- \ "I planted some bird seed. A bird came up. Now I don't know | `\ what to feed it." -- Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: no pass-values calling?

2008-01-16 Thread Ben Finney
Christian Heimes <[EMAIL PROTECTED]> writes: > Ben Finney wrote: > > The term "reference" is fine, since that's exactly how it works. > > One gets at an object via some reference, be it a name or some > > access into a container object. When an objec

Re: import from question

2008-01-16 Thread Ben Finney
main difference is in what namespace the module's objects are made available. -- \ "The way to build large Python applications is to componentize | `\ and loosely-couple the hell out of everything." -- Aahz | _o__)

Re: import from question

2008-01-16 Thread Ben Finney
Tobiah <[EMAIL PROTECTED]> writes: > Ben Finney wrote: > > Tobiah <[EMAIL PROTECTED]> writes: > > > >> This is a little surprising. So "from mod import *" really copies > >> all of the scalars into new variables in the local namespace. >

Complex discussions of "simple" problems (was: Loop in a loop?)

2008-01-17 Thread Ben Finney
can ever hope to get for participation in most threads here. -- \ "Remember: every member of your 'target audience' also owns a | `\broadcasting station. These 'targets' can shoot back." -- | _o__) Michael Rathbun to advertisers, news.a

Re: array and list

2008-01-17 Thread Ben Finney
d, bayl bhgynjf jvyy unir | `\ cevinpl." -- Anonymous | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: array and list

2008-01-18 Thread Ben Finney
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Fri, 18 Jan 2008 15:05:23 +1100, Ben Finney wrote: > > In Python, 'list' is a basic built-in type. Python has no 'array' > > type [...] > Did you forget the array module? Yes. -- \"

Re: Module/package hierarchy and its separation from file structure

2008-01-23 Thread Ben Finney
uot;If it ain't bust don't fix it is a very sound principle and | `\ remains so despite the fact that I have slavishly ignored it | _o__) all my life." —Douglas Adams | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: How avoid both a newline and a space between 2 print commands?

2008-01-23 Thread Ben Finney
ufficient, condition | `\ for democracy." —Carl Sagan | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Increment Variable Name

2008-01-23 Thread Ben Finney
ft Vista security dialogue | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Increment Variable Name

2008-01-23 Thread Ben Finney
Pablo Ziliani <[EMAIL PROTECTED]> writes: > Ben Finney wrote: > > This has a very bad code smell (...) > > > > \ `\ _o__) Ben Finney > > That is forcefulness. > (sorry, couldn't resist) I suspect that's a comment on my online nickname, "big

Re: Can someone explain this unexpected raw_input behavior?

2008-01-23 Thread Ben Finney
have to be compromised, or dropped completely. -- \ "Holy hole in a donut, Batman!" -- Robin | `\ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Terminology: "script" versus "program" (was: Linux Journal Survey)

2008-01-23 Thread Ben Finney
be sent to the | `\ frontiers to be destroyed: when the object is to preserve them, | _o__) it is no longer so." -- Voltaire, _Dictionnaire Philosophique_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Some questions about decode/encode

2008-01-23 Thread Ben Finney
a precise mapping between characters and bytes. It's almost certainly not aware of "words", only character-to-byte mappings. -- \ "When I get new information, I change my position. What, sir, | `\ do you do with new information?" -- John Maynard Keynes | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Some questions about decode/encode

2008-01-23 Thread Ben Finney
Ben Finney <[EMAIL PROTECTED]> writes: > glacier <[EMAIL PROTECTED]> writes: > > > I use chinese charactors as an example here. > > > > >>>s1='你好吗' > > >>>repr(s1) > > "'\\xc4\\xe3\\xba\\xc3\\xc2\\xf0'&

Reporting Python bugs (was: Can someone explain this unexpected raw_input behavior?)

2008-01-24 Thread Ben Finney
tography] is the right to speak | `\ Navajo." -- Eben Moglen | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Module/package hierarchy and its separation from file structure

2008-01-25 Thread Ben Finney
cted upon by an outside force." -- Carol Reichel | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Module/package hierarchy and its separation from file structure

2008-01-26 Thread Ben Finney
Carl Banks <[EMAIL PROTECTED]> writes: > On Jan 25, 6:45 pm, Ben Finney <[EMAIL PROTECTED]> > wrote: > > "Gabriel Genellina" <[EMAIL PROTECTED]> writes: > > > You can also put, in animal/__init__.py: > > > from monkey import Monkey >

Re: py3k feature proposal: field auto-assignment in constructors

2008-01-27 Thread Ben Finney
gt; pass -1. That leading dot is too easy to miss when looking over the code. -- \"Intellectual property is to the 21st century what the slave | `\ trade was to the 16th." —David Mertz | _o__)

Re: py3k feature proposal: field auto-assignment in constructors

2008-01-27 Thread Ben Finney
waiting. Now I can wait an hour in | `\ only ten minutes." -- Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k feature proposal: field auto-assignment in constructors

2008-01-28 Thread Ben Finney
File "", line 1, in ? AttributeError: 'Foo' object has no attribute 'eggs' >>> foo.beans 'other beans' -- \ "If consumers even know there's a DRM, what it is, and how it | `\ works, we've already failed." —Peter Lee, Disney corporation, | _o__) 2005 | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: optional static typing for Python

2008-01-29 Thread Ben Finney
"We spend the first twelve months of our children's lives | `\ teaching them to walk and talk and the next twelve years | _o__) telling them to sit down and shut up." -- Phyllis Diller | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing Pubic Hair Methods

2008-01-29 Thread Ben Finney
e, and preferably only one, obvious way to do it:: >>> del foo.hair -- \ "A man's only as old as the woman he feels." -- Groucho Marx | `\ | _o__)

Re: ISO with timezone

2008-01-29 Thread Ben Finney
response of the internet will re-introduce us | `\to that from which our political systems have separated us for | _o__) so long, the consequences of our own actions." -- Douglas Adams | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Module/package hierarchy and its separation from file structure

2008-01-30 Thread Ben Finney
;Philosophy is questions that may never be answered. Religion | `\ is answers that may never be questioned." —anonymous | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing Pubic Hair Methods

2008-01-30 Thread Ben Finney
-- \ "He may look like an idiot and talk like an idiot but don't let | `\ that fool you. He really is an idiot." —Groucho Marx | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Write Python like a Python programmer (was: A design problem)

2008-01-30 Thread Ben Finney
calcat.net/cgi-bin/log/2003/09/02> As for "write Python like a Python programmer", this: Code Like a Pythonista: Idiomatic Python http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html> -- \ "I bought a self learning record to learn Spanish. I turne

Re: Dictionary Keys question

2008-01-31 Thread Ben Finney
assion to embrace all humanity and the whole | _o__) of nature in its beauty." —Albert Einstein | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: REALLY simple xml reader

2008-01-31 Thread Ben Finney
the start of the document http://www.w3.org/TR/xml/#sec-prolog-dtd>. Many XML parsers will (correctly) reject such a document. > doc = """\ > This is fine. -- \ "True greatness is measured by how much freedom you give to | `\ others, not by ho

Re: REALLY simple xml reader

2008-01-31 Thread Ben Finney
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Fri, 01 Feb 2008 00:40:01 +1100, Ben Finney wrote: > > > Quite apart from a human thinking it's pretty or not pretty, it's *not > > valid XML* if the XML declaration isn't immediately at the start of th

Re: Will Python on day replace MATLAB?????????????????????????????????????????????????????

2008-01-31 Thread Ben Finney
ing spot, then sit in my car and count how many | _o__) people ask me if I'm leaving." -- Steven Wright | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Does anyone else use this little idiom?

2008-02-02 Thread Ben Finney
ave a large seashell collection, which I keep scattered on | `\ the beaches all over the world. Maybe you've seen it." | _o__) —Steven Wright | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Does anyone else use this little idiom?

2008-02-02 Thread Ben Finney
//wiki.python.org/moin/Py3kDeprecated#head-343618ffa0887790ed12c3f9cf278cd7ca7eef51-2> -- \ "Prediction is very difficult, especially of the future." | `\ —Niels Bohr | _o__)

Re: Cool JavaScript game

2008-02-02 Thread Ben Finney
onalism has no place in art, and hacking is art. | `\ Software Engineering might be science; but that's not what I | _o__) do. I'm a hacker, not an engineer." —Jamie W. Zawinski | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: type, object hierarchy?

2008-02-03 Thread Ben Finney
"Ignorance more frequently begets confidence than does | `\ knowledge." —Charles Darwin | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: type, object hierarchy?

2008-02-03 Thread Ben Finney
Ben Finney <[EMAIL PROTECTED]> writes: > Robert Kern <[EMAIL PROTECTED]> writes: > > > And if you want to really blow your mind, > > > > print isinstance(type, object) # True > > print isinstance(object, type) # True > > Not what I see here.

Re: loading dictionary from a file

2008-02-06 Thread Ben Finney
arbitrary user input; the input isn't executed, merely parsed (as JSON) to create a data object. -- \ “I busted a mirror and got seven years bad luck, but my lawyer | `\ thinks he can get me five.” —Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: brain stuck. whats occurring here?

2008-02-07 Thread Ben Finney
'spam'], ['spam'], ['spam'], ['spam']], [['spam'], ['spam'], ['spam'], ['spam'], ['spam']], [['spam'], ['spam'], ['spam'], ['spam'], ['spam']]] As made

Re: brain stuck. whats occurring here?

2008-02-07 Thread Ben Finney
ot;Never use a long word when there's a commensurate diminutive | `\available." —Stan Kelly-Bootle | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: __builtins__

2008-02-08 Thread Ben Finney
my code as though that's the case :-) -- \ “The man who is denied the opportunity of taking decisions of | `\ importance begins to regard as important the decisions he is | _o__)allowed to take.” —C. Northcote Parkinson | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does list have no 'get' method?

2008-02-08 Thread Ben Finney
or end, and it's hard to keep track of what | _o__) you've already covered." —Anonymous | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Edit Python code programmatically

2008-02-09 Thread Ben Finney
out, it was gone." -- Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Turn off ZeroDivisionError?

2008-02-10 Thread Ben Finney
"Python just does whatever the underlying hardware does with floating-point numbers". If that's the rule, it shouldn't be broken in the special case of division by zero. -- \ “If the desire to kill and the opportunity to kill came always | `\ together, who would

Re: Turn off ZeroDivisionError?

2008-02-10 Thread Ben Finney
, | `\ she's, we're, they're, it's." -- Anonymous, | _o__) alt.sysadmin.recovery | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: AttributeError: 'module' object has no attribute 'letters'

2008-02-11 Thread Ben Finney
andard library module 'string'; but that the code you have binds that name to some other module. -- \ "War is God's way of teaching geography to Americans." -- | `\ Ambrose Bierce | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: ways to declare empty set variable

2008-02-12 Thread Ben Finney
^ SyntaxError: invalid syntax So, it's not that parens are "used for generator literals". It's that parens can be used to make grouping explicit where the syntax would otherwise be ambiguous. -- \ "If you're a horse, and someone gets on you, and falls o

Re: dream hardware

2008-02-12 Thread Ben Finney
-- Justice Louis | _o__) Brandeis | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: ways to declare empty set variable

2008-02-12 Thread Ben Finney
[EMAIL PROTECTED] writes: > Ben Finney: > > Generator literals do not require the parens at all. However, the > > syntax of where the generator literal *appears* can make it > > necessary to explicitly group the expression using parens. > > Have you taken a look at

Re: ways to declare empty set variable

2008-02-12 Thread Ben Finney
George Sakkis <[EMAIL PROTECTED]> writes: > On Feb 12, 7:02 pm, Ben Finney <[EMAIL PROTECTED]> > wrote: > > That makes it even more a violation of > > principle-of-least-astonishment that the '(foo)' form doesn't give > > a one-element tuple lite

Re: ways to declare empty set variable

2008-02-12 Thread Ben Finney
Steve Holden <[EMAIL PROTECTED]> writes: > Ben Finney wrote: > [...] > > > > Note that '()' is syntactically null. Parentheses don't declare a > > tuple literal, commas do. Parentheses are for grouping within > > expressions, not specifying type

Re: ways to declare empty set variable

2008-02-12 Thread Ben Finney
the harm done by trying to change it would be more than the harm done by leaving it in. -- \ “[W]e are still the first generation of users, and for all that | `\ we may have invented the net, we still don’t really get it.” | _o__) —Douglas Adams | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Double underscore names

2008-02-12 Thread Ben Finney
ell. -- \ “I cannot conceive that anybody will require multiplications at | `\the rate of 40,000 or even 4,000 per hour …” —F. H. Wales, | _o__) 1936 | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: ways to declare empty set variable

2008-02-12 Thread Ben Finney
l. -- \ “Unix is an operating system, OS/2 is half an operating system, | `\ Windows is a shell, and DOS is a boot partition virus.” | _o__) —Peter H. Coffin | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

<    24   25   26   27   28   29   30   31   32   33   >