rs will be raised
to the caller that unpacked that mapping. That's where the errors belong.
--
\ “There's a fine line between fishing and standing on the shore |
`\looking like an idiot.” —Steven Wright |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
rridors in the hours of repose in the |
`\ boots of ascension.” —ski hotel, Austria |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
rror: foo_names_every_argument() got an unexpected keyword argument
'-beans'
This is IMO another good reason to migrate ASAP to Python 3; better
design is easier that before.
--
\ “Judge: A law student who marks his own papers.” —Henry L. |
`\ Mencken |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
cut a throat.” —“Lord” George Gordon Noel Byron, _Don Juan_ |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ble. So did the |
`\ divine right of kings.” —Ursula K. LeGuin, National Book Awards |
_o__) acceptance speech, 2014-11-19 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
m |
`\ to do unto you. (The twenty-five percent is [to correct] for |
_o__)error.)” —Linus Pauling's Golden Rule |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Ethan Furman writes:
> On 02/14/2016 04:08 PM, Ben Finney wrote:
>
> > I am unconcerned with whether there is a real filesystem entry of that
> > name; the goal entails having no filesystem activity for this. I want a
> > valid unique filesystem path, without touching the
ons_ |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ans that it might |
`\ be wrong.” —Chris Torek |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
nstance(3, type)
False
>>> isinstance("spam", type)
False
>>> isinstance(int, type)
True
>>> isinstance(type, type)
True
--
\“The fact of your own existence is the most astonishing fact |
`\you'll ever have to confr
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’.” —Douglas Adams |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
.path’, I import it explicitly so no
reader needs to guess::
import os
import os.path
--
\ “Crime is contagious… if the government becomes a lawbreaker, |
`\ it breeds contempt for the law.” —Justice Louis Brandeis |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano writes:
> On Fri, 26 Feb 2016 10:38 am, Ben Finney wrote:
>
> > Gregory Ewing writes:
> >
> >> sohcahto...@gmail.com wrote:
> >> > Now, I've noticed people talking about importing os.path. Is there any
> >> > rea
ween the |
`\ hours of 9 and 11 a.m. daily.” —hotel, Athens |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
#x27;d take the awe of understanding over the awe of ignorance |
`\ any day.” —Douglas Adams |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
“We have clumsy, sputtering, inefficient brains…. It is a |
`\ *struggle* to be rational and objective, and failures are not |
_o__) evidence for an alternative reality.” —Paul Z. Myers, 2010-10-14 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Rustom Mody writes:
> On Monday, February 29, 2016 at 10:26:32 PM UTC+5:30, Ben Finney wrote:
> > Ian Kelly writes:
> >
> > > On Mon, Feb 29, 2016 at 9:21 AM, Larry Martell wrote:
> > > > I found this to be a very sad story. Sure, he had some issues, but
and values”.
--
\“Members of the general public commonly find copyright rules |
`\implausible, and simply disbelieve them.” —Jessica Litman, |
_o__) _Digital Copyright_ |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
The style I recommend above is PEP 8 compliant, easy to read, remember,
and apply.
--
\ “This [Bush] Administration is not sinking. This Administration |
`\ is soaring. If anything they are rearranging the deck chairs on |
_o__) the Hindenburg.” —Steven Colbert, 2006-
tps://wiki.python.org/moin/GUI%20Programming%20in%20Python>.
--
\ “I prayed for twenty years but received no answer until I |
`\ prayed with my legs.” —Frederick Douglass, escaped slave |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
(some and compound and condition)]
if some_condition and all(play_conditions):
play_bingo()
--
\“Perchance you who pronounce my sentence are in greater fear |
`\ than I who receive it.” —Giordano Bruno, burned at the stake by |
_o__) the Catholic church for the heresy of
to progress is not ignorance but the illusion of |
_o__)knowledge.” —Daniel J. Boorstin, historian, 1914–2004 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
`\you do it by focusing your discontent in productive ways.” |
_o__) —Paul Z. Myers, 2011-08-31 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Ben Finney writes:
> Denis Akhiyarov writes:
>
> > Is it possible to embed CPython in CPython, e.g. using ctypes, cffi,
> > or cython?
>
> I don't know what you mean by “embed” in this context. What would
> qualify as “yes” for you?
Here is CPython embed
was in the shape of a house.” —Steven Wright |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ken as advocating on the basis of superiority, but only having
chosen one for consistency.
--
\ “Working out the social politics of who you can trust and why |
`\ is, quite literally, what a very large part of our brain has |
_o__) evolved to do.” —D
sohcahto...@gmail.com writes:
> On Friday, March 4, 2016 at 3:41:29 PM UTC-8, Ben Finney wrote:
> > We can't put the binary operator in multiple places,
>
>
>
> Who are you, the binary operator police? Watch me!
>
> if x == y and \
> x == z and \
&
ury of an emotion without paying for it.” —Oscar Wilde, _De |
_o__) Profundis_, 1897 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
believe things strongly without |
_o__) evidence.” —Sam Harris, _Letter to a Christian Nation_ 2006 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
cial
Python bug tracker. Here, it will simply be ignored.
--
\ “We live in capitalism. Its power seems inescapable. So did the |
`\ divine right of kings.” —Ursula K. LeGuin, National Book Awards |
_o__)acceptance speech, 2014-11-19 |
Ben Finney
“plz”, leads to a needlessly
difficult-to-read message. Thanks!
--
\ “For a sentimentalist is simply one who desires to have the |
`\luxury of an emotion without paying for it.” —Oscar Wilde, _De |
_o__) Profundis_, 1897 |
Ben Fi
ws is a shell, and DOS is a boot partition virus.” —Peter |
_o__) H. Coffin |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
treated as “hidden by default”.
--
\ “We are stuck with technology when what we really want is just |
`\ stuff that works.” —Douglas Adams |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
entations will be faster at some things, slower at other
things, where “things” can be a very lumpy and convoluted landscape of
complex use cases. Test those assumptions with realistic benchmarks run
under each implementation.
--
\ “When [science] permits us to see the far side of some new
.
And so on. Where are you seeing mysterious results?
--
\ “Any intelligent fool can make things bigger and more complex… |
`\It takes a touch of genius – and a lot of courage – to move in |
_o__)the opposite direction.” —Albert Einstein |
Ben Finney
--
https:
“I must say that I find television very educational. The minute |
`\ somebody turns it on, I go to the library and read a book.” |
_o__)—Groucho Marx |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
f me.” —Jesus, as quoted in Matthew 10:37 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
bers is too important to be left |
`\to chance.” —Robert R. Coveyou |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
faith the one |
`\ unpardonable sin.” —Thomas Henry Huxley, _Essays on |
_o__) Controversial Questions_, 1889 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
aviour.
Until then, with all the experience in the world, to claim you know the
explanation is merely unfounded assertion.
--
\ “Skepticism is the highest duty and blind faith the one |
`\ unpardonable sin.” —Thomas Henry Huxley, _Essays on |
_o__)
|
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
of Human Nature_, 1739 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ithout knowing the text encoding. Guessing is not good enough in
the third millennium.
--
\ “[…] we don’t understand what we mean when we say that [God] is |
`\‘good’, ‘wise’, or ‘intelligent’.” —Karen Armstrong, _The Case |
_o__) For God_,
With
sneers by some, and with a shrug by most.
--
\ “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
--
https://mail.python.org/mailman/listinfo/python-list
vailable to choose from. May you find a decent
default there.
--
\ “It is … incumbent upon us to recognize that it is |
`\inappropriate for religion to play any role in issues of state |
_o__)[of] a modern democracy.” —Lawrence M. Krauss, 2012-05-28 |
Ben Finney
ring?” “I think so, |
`\ Brain, but what kind of rides do they have in Fabioland?” |
_o__) —_Pinky and The Brain_ |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
infile = open('lorem.txt', 'rt', encoding="utf-8")
>>> infile_text = infile.read()
>>> infile_text.isprintable()
True
--
\“Telling pious lies to trusting children is a form of abuse, |
`\plain and simple.” —Daniel Dennett, 2010-01-12 |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
I can no longer |
_o__) figure out how to use my telephone.” —Bjarne Stroustrup |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
driveway doing 60 MPH.” |
_o__) —Steven Wright |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
fic questions about what it's doing and why that doesn't
meet your expectation.
--
\ “Kissing a smoker is like licking an ashtray.” —anonymous |
`\ |
_o__)
\ “The internet's completely over.… Anyway, all these computers |
`\and digital gadgets are no good. They just fill your head with |
_o__) numbers and that can't be good for you.” —Prince, 2010-07-05 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ce_, 1998 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ng only allowed for numeric types, not 'str'”.
--
\ “In economics, hope and faith coexist with great scientific |
`\ pretension and also a deep desire for respectability.” —John |
_o__)Kenneth Galbraith, 1970-06-07 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
on to
import.
--
\“Putting the word “faith” in front of something is no excuse |
`\ for barbarism and cruelty and ignorance and stupidity.” |
_o__)—Christopher Hitchens |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Man coming in his kingdom.” —Jesus, |
_o__) c. 30 CE, as quoted in Matthew 16:28 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
“Program testing can be a very effective way to show the |
`\presence of bugs, but is hopelessly inadequate for showing |
_o__) their absence.” —Edsger W. Dijkstra |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
to their own opinions, but they are not |
`\entitled to their own facts.” —US Senator Pat Moynihan |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano writes:
> On Monday 21 March 2016 13:11, Ben Finney wrote:
> > Please, stop making assertions about Python code until you have
> > learned Python.
>
> I don't see how "I don't have a clue about exceptions" is an assertion
> about P
Steven D'Aprano writes:
> On Mon, 21 Mar 2016 06:47 pm, Ben Finney wrote:
>
> > Bart can show good faith by *learning* idiomatic Python, with the
> > humility of a beginner. And also by refraining from rhetoric about
> > how bad Python's performance is,
/en.wikipedia.org/wiki/Environment_variable#Unix_2> for
a discussion of how the process environment variables are inherited.
--
\ “Every man would like to be God, if it were possible; some few |
`\ find it difficult to admit the impossibility.” —Bertrand |
_o__)
f its scientists, the |
_o__) hopes of its children.” —Dwight Eisenhower, 1953-04-16 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
better that that. Please continue to show it.
--
\ “Some forms of reality are so horrible we refuse to face them, |
`\ unless we are trapped into it by comedy. To label any subject |
_o__)unsuitable for comedy is to admit defeat.” —Peter Sellers |
Ben Finney
--
https://mail
|
`\ salary depends upon his not understanding it.” —Upton Sinclair, |
_o__) 1935 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
e
https://wiki.python.org/moin/PythonEditors>. To start with you can
use the “IDLE” development environment that comes installed with Python.
--
\ “Puritanism: The haunting fear that someone, somewhere, may be |
`\ happy.” —Henry L. Mencken |
_o__
ocess environment by starting
new processes.
--
\ “Faith, n. Belief without evidence in what is told by one who |
`\ speaks without knowledge, of things without parallel.” —Ambrose |
_o__) Bierce, _The Devil's Dictionary_, 1906 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
aphs
explaining what is the purpose of the library, and why we might be
interested?
--
\ “Value your freedom or you will lose it, teaches history. |
`\ “Don't bother us with politics,” respond those who don't want |
_o__)to learn.” —Richard M. St
nology, |
`\ calls it proprietary, and then tries to keep others from |
_o__) building on it, is a thief.” —Tim O'Reilly, 2000-01-25 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
r what a rich realm he abdicates when he |
`\ becomes a conformist.” —Ralph Waldo Emerson |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
and charge five dollars for the second glass. The refill |
_o__) contained the antidote.” —Emo Philips |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
thon 3, print is a function.
--
\ “[W]hoever is able to make you absurd is able to make you |
`\unjust.” —Voltaire |
_o__) |
Ben Finney
--
https://mail.python.org/mailm
he “flag” really
represents an entity which will soon have more than two states, and
should never have been represented as a boolean.
--
\ “As scarce as truth is, the supply has always been in excess of |
`\ the demand.” —Josh Billings |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
er express yourself more clearly than you are able to |
`\ think.” —Niels Bohr |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
on applications is to componentize |
`\ and loosely-couple the hell out of everything.” —Aahz |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Ben Finney writes:
> This is short and clear and needs no leaking of the underlying bool
> implementation::
>
> len(True for line in lines if line.strip())
Correction::
len([True for line in lines if line.strip()])
--
\ “Our task must be to free ourselves from o
trust the source do not use this program.” |
`\—Microsoft Vista security dialogue |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
_Once Upon A Time In The West_ |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Always no. The first queries object
identity, the second queries object equality.
--
\ “Ridicule is the only weapon which can be used against |
`\ unintelligible propositions.” —Thomas Jefferson, 1816-07-30 |
_o__)
a form of abuse, |
`\plain and simple.” —Daniel Dennett, 2010-01-12 |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Joshua Landau writes:
> On 27 October 2014 02:28, Ben Finney wrote:
> > Guido is incorrect. I've already stated what's wrong.
>
> You were arguing about what Guido thinks.
I don't know where I did that; to my knowledge, this is the first time
I've mentioned
n for a job interview, I think a good thing to |
`\ ask is if they ever press charges.” —Jack Handey |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Ben Finney writes:
> Dan Stromberg writes:
> > Are the following two expressions the same?
[…]
>
> It depends what you mean by “the same”.
My apologies, I mis-read the question. My answers were for a different
question (one you didn't ask). Please ignore that.
--
\
ng via
IMAP.
--
\“Pinky, are you pondering what I'm pondering?” “Wuh, I think |
`\ so, Brain, but how will we get three pink flamingos into one |
_o__) pair of Capri pants?” —_Pinky and The Brain_ |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ver of molten lava, let |
`\ 'em go, because, man, they're gone.” —Jack Handey |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
python.org/3/tutorial/> This topic is covered when you
learn about modules https://docs.python.org/3/tutorial/modules.html>.
--
\ “I am amazed, O Wall, that you have not collapsed and fallen, |
`\since you must bear the tedious stupidities of so many |
_o__)
s.
--
\ “When we pray to God we must be seeking nothing — nothing.” |
`\—Francis of Assisi |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
/pythex.org/>.
--
\ “From the moment I picked your book up until I laid it down I |
`\was convulsed with laughter. Someday I intend reading it.” |
_o__)—Groucho Marx |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
er teach a yodeling class, probably the hardest thing |
`\ is to keep the students from just trying to yodel right off. |
_o__) You see, we build to that.” —Jack Handey |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
mitting to VCS.
--
\ “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
--
https://mail.python.org/mailman/listinfo/python-list
Will Acheson writes:
> I have had a lot of trouble with executing relative imports with some
> of my projects in python.
>
> Are there any best practices or methods besides '../../' type
> hard-coding?
The important point to learn with Python's import system, as contrasted
with various other la
of any description to help you have some |
`\kind of moral awareness.” —Dr. Francesca Stavrakoloulou, bible |
_o__) scholar, 2011-05-08 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
regular expressions’. Now they have two problems.” |
_o__) —Jamie Zawinski, in alt.religion.emacs |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
I think ‘zip’ has this as a primary intended purpose, so it seems fine
to me.
--
\ “Of all classes the rich are the most noticed and the least |
`\ studied.” —John Kenneth Galbraith, _The Age of Uncertainty_, |
_o__) 1
watch has stopped.” —Groucho Marx |
`\ |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Chris Angelico writes:
> On Wed, Nov 12, 2014 at 7:03 AM, Ben Finney
> wrote:
> > An ‘assert’ statement in the code will sometimes be active, and
> > sometimes be a no-op, for *exactly* the same code under different
> > circumstances. That's a trap for the reader,
ntation goes into. I recommend it.
--
\ “The double standard that exempts religious activities from |
`\ almost all standards of accountability should be dismantled |
_o__) once and for all.” —Daniel Dennett, 2010-01-12 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
names that convey the *purpose* for the object.
--
\ “Alternative explanations are always welcome in science, if |
`\ they are better and explain more. Alternative explanations that |
_o__) explain nothing are not welcome.” —Victor J. Stenger, 2001-11-05 |
Ben Finney
--
https://m
-keeping force” —Dire Straits, |
_o__) _Once Upon A Time In The West_ |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ptor on a stream
that does not use a file descriptor.
--
\ “Pinky, are you pondering what I'm pondering?” “Well, I think |
`\ so, Brain, but ‘apply North Pole’ to what?” —_Pinky and The |
_o__) Brain_ |
Ben Fin
te table, having a furious |
`\ argument over what I considered to be an odd number.” —Steven |
_o__) Wright |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
d by the mere supernatural …” —Joseph Conrad, _The |
_o__) Shadow-Line_ |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
1101 - 1200 of 4138 matches
Mail list logo