'Banana Split']
The above code produces this output, without any need for binding new
names. So what is it you are actually trying to achieve, and why do you
think the new bindings are necessary?
--
\“The number of UNIX installations has grown to 10, with more |
`\ expected.” —Unix Programmer's Manual, 2nd Ed., 1972-06-12 |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
do you need to also have them bound to separate names; what problem
are you trying to solve that you think this will help?
--
\ “If [a technology company] has confidence in their future |
`\ ability to innovate, the importance they place on protecting |
_o__) their pas
;s no music, no |
`\ choreography, and the dancers hit each other.” —Jack Handey |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
imity |
`\of the graveyard.” —Justice Roberts in 319 U.S. 624 (1943) |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
x27;s going to change depending on
the environment).
--
\ “Courage is not the absence of fear, but the decision that |
`\ something else is more important than fear.” —Ambrose Redmoon |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ssed before?
Too many times to count :-)
--
\ “Theology is the effort to explain the unknowable in terms of |
`\ the not worth knowing.” —Henry L. Mencken |
_o__) |
Ben Finney
--
https://mail.p
`\ approaches zero. All non-Free software is a dead end.” —Mark |
_o__) Pilgrim, 2006 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
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
ex tasks we expect of a programmer's editor like
Vim or GNU Emacs.
--
\“The reason we come up with new versions is not to fix bugs. |
`\ It's absolutely not.” —Bill Gates, 1995-10-23 |
_o__)
Arup Rakshit writes:
Michael Torrie writes:
> On 03/18/2019 05:55 PM, Ben Finney wrote:
> >> If I call `_c_to_f`, `_f_to_c` methods on `self` instead of
> >> `RefrigeratedShippingContainer` class object, still it works.
> >
> > That's right, and is inde
sier when the RefrigeratedShippingContainer encapsulates
the conversions of temperature units.
--
\ “When we pray to God we must be seeking nothing — nothing.” |
`\—Francis of Assisi |
_o__)
ne by children. |
`\ They had all the paintings up on refrigerators.” —Steven Wright |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ovenance of the key that made the signature.
--
\“Human reason is snatching everything to itself, leaving |
`\ nothing for faith.” —Bernard of Clairvaux, 1090–1153 CE |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
is to the |
_o__) culinary arts.” —Michael Bacarella |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
purpose::
with foo.open() as logfile:
frobnicate_the_whelk(logfile=logfile)
--
\ “I don't want to live peacefully with difficult realities, and |
`\ I see no virtue in savoring excuses for avoiding a search for |
_o__) real answers.” —Pau
e you tried using that library and timing the result?
--
\ “You don't need a book of any description to help you have some |
`\kind of moral awareness.” —Dr. Francesca Stavrakoloulou, bible |
_o__) scholar, 2011-05-08 |
Ben Finney
--
http
t
containers, and thinking of them that way will frequently lead you to
the wrong conclusion.
https://nedbatchelder.com/text/names1.html>
--
\ “Theology is the effort to explain the unknowable in terms of |
`\ the not worth knowing.” —Henry L. Mencken |
_o__)
n't know what it |
`\is. Every once in a while I'll be listening to the radio and I |
_o__)say, ‘I think I might have written that.’” —Steven Wright |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
to information. They are the tool of choice for the internet |
_o__) highwayman.” —Anthony Taylor |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
eve that they own culture, they are so |
_o__) self-righteous about it …” —Nina Paley, 2011 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
assumes some other code has decided which items
to handle; it becomes correspondingly simpler.
--
\ “Two possibilities exist: Either we are alone in the Universe |
`\ or we are not. Both are equally terrifying.” —Arthur C. Clarke, |
_o__)
without needing to diverge from the default.
--
\ “If I ever get real rich, I hope I'm not real mean to poor |
`\ people, like I am now.” —Jack Handey |
_o__) |
Ben Finney
--
https://
. They can only give you answers.” —Pablo |
`\ Picasso |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
license is a statement, preferably brief, that says exactly
what the work is, who holds copyright, who receives a grant of license,
and what that grants the recipient to do, under what explicit conditions.
For example:
Copyright © 2018 Ben Finney
Purple Drachma is free software: you a
o1bigtenor writes:
> On Tue, Nov 20, 2018 at 12:09 PM Ben Finney
> wrote:
> > o1bigtenor writes:
> > > It could be useful to see the longer time spans as weeks rather
> > > than as days but seeing the larger time frames only as months
> > > woul
ied with the |
`\best.” —Oscar Wilde, quoted in _Chicago Brothers of the Book_, |
_o__) 1917 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ing 60 MPH.” |
_o__) —Steven Wright |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
received and am still receiving” —Albert Einstein |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
“I find the whole business of religion profoundly interesting. |
`\ But it does mystify me that otherwise intelligent people take |
_o__) it seriously.” —Douglas Adams |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
its speaker a raving lunatic.” —Dresden James |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Ethan Furman writes:
> On 10/01/2018 04:26 PM, Ben Finney wrote:
> > If there is some specific formal meaning to the above statement, I
> > don't know where it's documented. If it's not a specific formal
> > statement, that is itself troubling, because it
which prompted this instance.
--
\ “Truth would quickly cease to become stranger than fiction, |
`\ once we got as used to it.” —Henry L. Mencken |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Ben Finney writes:
> You can use a comprehension, iterating over the full range of index you
> want::
>
> words = shlex.split(line)
> padding_length = 5
> words_padded = [
> (words[index] if index < len(words))
> for index in range(paddi
whatever
optimisations the in-built comprehension mechanics provide.
--
\ “Pray, v. To ask that the laws of the universe be annulled in |
`\ behalf of a single petitioner confessedly unworthy.” —Ambrose |
_o__) Bierce, _The Devil's Dictionary_, 1906 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Ben Finney writes:
> Ajay Patel writes:
>
> > L = [1,2,3]
>
> That's not an expression; it is an assignment statement.
>
> The right-hand side is an expression. […] in this case, [the object] a new
> instance of 'list' […] is the result of evaluating t
hat object.
> And
> L =[]
All the above description also applies to that assignment statement.
--
\“If you go parachuting, and your parachute doesn't open, and |
`\you friends are all watching you fall, I think a funny gag |
_o__) would be to
ferences.” —David Weinberger |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Pilgrim, 2006 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
son & Sussman, |
_o__) _Structure and Interpretation of Computer Programs_ |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
believe in it.” —Neil deGrasse Tyson, 2011-02-04 |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
and incorporated into law and policy.” |
_o__) —Russell Blackford, 2010-03-06 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
frameworks of many languages,
including Python's ‘logging’ module.
--
\ “When I turned two I was really anxious, because I'd doubled my |
`\ age in a year. I thought, if this keeps up, by the time I'm six |
_o__) I'll be ninety.” —Steven
typed reference to an object.
I expect both of these requests to meet with little satisfaction.
--
\ “We are all agreed that your theory is crazy. The question that |
`\ divides us is whether it is crazy enough to have a chance of |
_o__)being correct.” —Niels Bohr (to Wolfga
jkstra |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
erived from it) to improve the
documentation as you suggest.
--
\ “Come on, if your religion is so vulnerable that a little bit |
`\ of disrespect is going to bring it down, it's not worth |
_o__) believing in, frankly.” —Terry Gilliam, 2005-01-18 |
Be
gress has resulted from people who took unpopular |
`\ positions.” —Adlai Stevenson |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
1988 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
“If sharing a thing in no way diminishes it, it is not rightly |
`\ owned if it is not shared.” —Augustine of Hippo (354–430 CE) |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
erested any
more.
--
\“This sentence contradicts itself — no actually it doesn't.” |
`\ —Douglas Hofstadter |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
t rare story of which you happen to have first-hand |
_o__) knowledge.” —Erwin Knoll |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
T Berger writes:
> On Tuesday, July 3, 2018 at 4:00:03 PM UTC-4, Ben Finney wrote:
> > Given that history [of ignoring user requests for improvement], you
> > might want to avoid Google Groups for interacting with forums, and
> > choose software that works better with di
Jim Lee writes:
> On 07/03/18 19:58, Ben Finney via Python-list wrote:
> > Jim Lee writes:
> >
> >> If you were to say John had 2 apples, Jane had 4 apples, and Joe had
> >> an indefinite number of apples, how many numbers are we talking about?
> > Three
ite" is a number”.
--
\“That's the essence of science: Ask an impertinent question, |
`\and you're on the way to the pertinent answer.” —Jacob |
_o__) Bronowski, _The Ascent of Man_, 1973 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Lowell |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
st place to get that help.
--
\ “I tell you the truth: this generation will certainly not pass |
`\ away until all these things [the end of the world] have |
_o__) happened.” —Jesus, c. 30 CE, as quoted in Matthew 24:34 |
Ben Finney
--
https://mail.python.org/mailm
ary.
--
\ “The entertainment industry calls DRM "security" software, |
`\ because it makes them secure from their customers.” —Cory |
_o__) Doctorow, 2014-02-05 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Ethan Furman writes:
> On 06/28/2018 05:58 PM, Ben Finney wrote:
>
> > So I remain dumbfounded as to why anyone would want a class to *both* be
> > an enumerated type, *and* have callable attributes in its API.
>
> Perhaps I am using Enum incorrectly, but here is
Ian Kelly writes:
> On Thu, Jun 28, 2018 at 4:38 AM Ben Finney wrote:
> >
> > Ethan Furman writes:
> >
> > Specifically, I can't make sense of why someone would want to have a
> > class that is simultaneously behaving as an enumerated type, *and*
> &
nses overpowers what our measuring |
`\ devices tell us about the actual nature of reality.” —Ann |
_o__) Druyan, _Cosmos_, 2014 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
From: Ben Finney
Paul Moore writes:
> On 24 June 2018 at 06:03, Steven D'Aprano
> wrote:
> > Given this function:
> >
> > def test():
> > a = 1
> > b = 2
> > result = [value for key, value in locals().items()]
> > retu
From: Ben Finney
Steven D'Aprano writes:
> Anyone on the Python-Dev mailing list, are you getting private emails
> containing nothing but stream of consciousness word-salad from
> somebody (some bot?) calling himself "Chanel Marvin" with a gmail
> address?
I am on
From: Ben Finney
Robert Latest via Python-list writes:
> Because the main.py script needs to import the tables.py module from
> backend, I put this at the top if main.py:
>
>sys.path.append('../..')
>import jobwatch.backend.tables as tables
>
> My questio
From: Ben Finney
Richard Damon writes:
> On 6/23/18 11:27 AM, Steven D'Aprano wrote:
> >> On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
> >>> Richard Damon wrote:
> >>> > Data presented to the user should normally use his locale
> >>> > (u
“I wish there was a knob on the TV to turn up the intelligence. |
`\ There's a knob called ‘brightness’ but it doesn't work.” |
_o__) —Eugene P. Gallagher |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
mane), and am not receiving anything like that.
--
\ “Today, I was — no, that wasn't me.” —Steven Wright |
`\ |
_o__) |
Ben Finney
--
https://
at all that
does.
--
\“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
ect.
--
\ “DRM doesn't inconvenience [lawbreakers] — indeed, over time it |
`\ trains law-abiding users to become [lawbreakers] out of sheer |
_o__)frustration.” —Charles Stross, 2010-05-09 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
g that problem?
--
\ “The Vatican is not a state.… a state must have territory. This |
`\ is a palace with gardens, about as big as an average golf |
_o__) course.” —Geoffrey Robertson, 2010-09-18 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/
our own.
--
\ “Now Maggie, I’ll be watching you too, in case God is busy |
`\ creating tornadoes or not existing.” —Homer, _The Simpsons_ |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ome recent ones include “spunge”, “nardle”, “crun”,
etc.
--
\ “Pinky, are you pondering what I'm pondering?” “I think so, |
`\ Brain, but where are we going to find a duck and a hose at this |
_o__) hour?” —_Pinky and The Brain_ |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
correct, not tried it.” —Donald Knuth, 1977-03-29 |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Chris Angelico writes:
> On Sun, Jun 17, 2018 at 3:30 PM, Ben Finney
> wrote:
> > (or, if you want to continue with the older less-flexible style,
(I gave an unhelpful URL for that documentation. Try this instead
https://docs.python.org/3/library/stdtypes.html#printf-style-strin
sense in different use cases.
--
\“A right is not what someone gives you; it's what no one can |
`\ take from you.” —Ramsey Clark |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ure a
properly secure WSGI server).
--
\ “[F]reedom of speech does not entail freedom to have your ideas |
`\accepted by governments and incorporated into law and policy.” |
_o__) —Russell Blackford, 2010-03-06 |
Ben Finney
--
https://mail.python.o
Dennis Lee Bieber writes:
> On Fri, 15 Jun 2018 05:39:08 +1000, Ben Finney
> declaimed the following:
>
> >Don't choose the daily digest, because it makes a special “digest”
> >message for you each day. That message is disconnected from any other
> >message, and
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
car Wilde, _De |
_o__) Profundis_, 1897 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ackages, is |
`\ being able to choose your master. Freedom means not having a |
_o__)master.” —Richard M. Stallman, 2007-05-16 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
religion, and he'll starve to death while praying for a fish.” |
_o__) —Anonymous |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
exhaustive set (rather than deliberately unspecified)? What are you
hoping to do with that information?
--
\ “Good design adds value faster than it adds cost.” —Thomas C. |
`\ Gale |
_o__)
d |
`\place to begin or end, and it's hard to keep track of what |
_o__) you've already covered.” —anonymous |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
funny gag |
_o__) would be to pretend you were swimming.” —Jack Handey |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ent to the cinema, it said ‘Adults: $5.00, Children $2.50’. |
`\ So I said ‘Give me two boys and a girl.’” —Steven Wright |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Mike McClain writes:
> Steven D'Aprano and Ben Finney used these '_' and '__'.
> Steve said, "[[] for _ in range(5)]".
> Ben said, "[ [] for __ in range(5) ]".
>
> These aren't listed separately in the index
That's right,
cise enough to write tests for,
and therefore to write in code.
--
\ “I have always wished for my computer to be as easy to use as |
`\ my telephone; my wish has come true because I can no longer |
_o__) figure out how to use my telephone.” —Bjarne Stroustrup |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ugh. So
this is another way to get that result:
foo = [ [] for __ in range(5) ]
--
\ “We now have access to so much information that we can find |
`\ support for any prejudice or opinion.” —David Suzuki, 2008-06-27 |
_o__)
l answer, other than to stop thinking that's a
race that you can win.
--
\ “DRM doesn't inconvenience [lawbreakers] — indeed, over time it |
`\ trains law-abiding users to become [lawbreakers] out of sheer |
_o__)frustration.” —Charles Stross, 2010-
Vonnegut |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
unting fear that someone, somewhere, may be |
`\ happy.” —Henry L. Mencken |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano writes:
> On Wed, 16 May 2018 11:30:26 +1000, Ben Finney wrote:
>
> > An object is not a value; an object *has* a value. The object
> > retains its identity even when its value changes.
>
> Here you have hit on the crux of the matter. Why cannot bo
the “a value is an
object” false equivalence needs un-learning, I can't let it pass.
--
\“The idea that He would take his attention away from the |
`\ universe in order to give me a bicycle with three speeds is |
_o__) just so unlikely that I can't go along with it.” —Quentin Crisp |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
?
To the extent I understand that question, the answer is no.
Rather, the ‘bytes’ and ‘str’ types are now entirely incompatible, and
implicit conversions are never done between them. Any conversions
between them must be explicit.
--
\ “There are always those who think they know what is your |
`\ responsibility better than you do.” —Ralph Waldo Emerson |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
name–object binding (the “variable”). The type is
a property of the object.
--
\ “It is the fundamental duty of the citizen to resist and to |
`\ restrain the violence of the state.” —Noam Chomsky, 1971 |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
war, a world without |
`\ hate. And I can picture us attacking that world, because they'd |
_o__) never expect it.” —Jack Handey |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
as no need of another thread attempting to “win” an argument
that one side believes is dishonest.
--
\ “The best in us does not require the worst in us: Our love of |
`\ other human beings does not need to be nurtured by delusion.” |
_o__) —Sam Harr
org/3/reference/import.html>.
--
\ “If we could change ourselves, the tendencies in the world |
`\ would also change.” —Mohandas K. Gandhi, _Collected Works_, 1913 |
_o__) |
Ben Finney
--
https://mail.python.or
slade: “What were you doing there?” |
_o__) Eccles: “Buying a tie.” —The Goon Show, _The Greenslade Story_ |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
w-men is dishonest and infamous.” —Robert G. |
_o__) Ingersoll, _The Liberty of Man, Woman and Child_, 1877 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
to elaborate on what the
question is?
--
\ “Natural catastrophes are rare, but they come often enough. We |
`\ need not force the hand of nature.” —Carl Sagan, _Cosmos_, 1980 |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
orian, 1914–2004 |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
1 - 100 of 4138 matches
Mail list logo