to |
`\persist in delusion, however satisfying and reassuring.” —Carl |
_o__)Sagan |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Devin Jeanpierre writes:
> On Mon, Mar 17, 2014 at 2:02 AM, Ben Finney
> wrote:
> > Mark Summerfield writes:
> > if getattr(sys, "frozen"):# ‘getattr’ will return None by default
>
> No it won't.
> […]
> Sure, but sys.executable always ex
#x27;re
talking about is a “version control system”, or VCS. But some Git users
may disagree.)
--
\ “If nature has made any one thing less susceptible than all |
`\others of exclusive property, it is the action of the thinking |
_o__) power called an idea”
to be” —Aristotle |
_o__)“Do be do be do” —Sinatra |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
`\ Increase Your Word Power’. That thing is really, really, |
_o__) really... good.” —Homer, _The Simpsons_ |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
y it's messy and distasteful to deal with, but that's a big part
of the job we take on as programmers.
--
\“… Nature … is seen to do all things Herself and through |
`\ herself of own accord, rid of all gods.” —Titus Lucretius |
_o__)
why should they care about it?” —Thomas Hesse, Sony BMG, 2006 |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
t's why it's not an
> implementation bug. It's a design bug :-)
One which to some extent violates the defined data model for Python
objects, and hence should be fixed.
--
\ “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.” —Bilbo |
_o__) Baggins |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Bus input methods depending on the purpose or
language for which I'm writing, and they make it predictable and
memorable to get the right characters.
--
\ “I have yet to see any problem, however complicated, which, |
`\ when you looked at it in the right way, did not become
en Kennedy was shot?’ |
`\Well, I don't have an alibi.” —Emo Philips |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ome to visit the cemetery where famous Russian and |
`\Soviet composers, artists, and writers are buried daily except |
_o__) Thursday.” —Russian orthodox monastery, Moscow |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ually make?
--
\ “Injustice is relatively easy to bear; what stings is justice.” |
`\ —Henry L. Mencken |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
“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://mail.python.org/mailman/listinfo/python-list
rl.’” —Steven Wright |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
tated position only a few messages earlier.
--
\ “Pinky, are you pondering what I'm pondering?” “I think so, but |
`\ where will we find an open tattoo parlor at this time of |
_o__) night?” —_Pinky and The Brain_ |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
as members.” —Groucho Marx |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
guess.
You'll need to handle that specially, and decide what value you want
when that's the case.
--
\“A free press is one where it's okay to state the conclusion |
`\ you're led to by the evidence.” —Bill Moyers |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Anthony Papillion writes:
> On Apr 5, 2014, at 23:21, Ben Finney wrote:
> > Alternatively, if you just want to do integer arithmetic on the
> > year, you don't need the ‘datetime’ module at all.
>
> True. But I do actually need to some date based calculations.
> Bas
sideways.” —detour sign, Kyushu, Japan |
`\ |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
r problems with the same thinking we used |
`\ when we created them.” —Albert Einstein |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
erspective of Python, the standard types handle the
requirements you describe without any TypeError.
--
\ “If you were going to shoot a mime, would you use a silencer?” |
`\—Steven Wright |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
eral operation you want to do? Please describe what input
you will get, and what the output should be in the same terms.
--
\“Ubi dubium, ibi libertas.” (“Where there is doubt, there is |
`\freedom.”) |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
|
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
mine.’” —Spike |
_o__) Milligan |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Aabye Kierkegaard (1813–1855) |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ibute the
code at all.
--
\ “They who can give up essential liberty to obtain a little |
`\temporary safety, deserve neither liberty nor safety.” |
_o__) —Benjamin Franklin, 1775-02-17 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
mangle the messages.
--
\ “You know what would make a good story? Something about a clown |
`\who makes people happy, but inside he's real sad. Also, he has |
_o__) severe diarrhea.” —Jack Handey |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
yright.org/>
--
\ “By instructing students how to learn, unlearn, and relearn, a |
`\ powerful new dimension can be added to education.” —Alvin |
_o__)Toffler, _Future Shock_, 1970 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
available, but
that doesn't make this forum any more appropriate.)
--
\ “I am too firm in my consciousness of the marvelous to be ever |
`\ fascinated by the mere supernatural …” —Joseph Conrad, _The |
_o__) Shadow-Line_ |
Be
es you confused.
--
\ “Nothing worth saying is inoffensive to everyone. Nothing worth |
`\saying will fail to make you enemies. And nothing worth saying |
_o__)will not produce a confrontation.” —Johann Hari, 2011 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
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
rom another in order to figure out which rules |
_o__) apply.” —Eben Moglen, _Anarchism Triumphant_, 1999 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
t done.
If you can do exactly what you want with Python 3.x, great!
--
\“Spam will be a thing of the past in two years' time.” —Bill |
`\ Gates, 2004-01-24 |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
That money |
`\must be worth a fortune!” —The Goon Show, _The Sale of |
_o__) Manhattan_ |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ou need it
https://docs.python.org/3/reference/datamodel.html#slots>.
I consider it a wart of Python that its ‘object’ instances lack the
ability to gain arbitrary attributes in the way you expect.
--
\ “Every man would like to be God, if it were possible; some few |
`\ find it difficult to admit the impossibility.” —Bertrand |
_o__)Russell, _Power: A New Social Analysis_, 1938 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ow they have some number of problems but they're not |
_o__) sure whether it's a string or an integer.” —Benno Rice, 2011 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
sed to think that the brain was the most wonderful organ in |
`\ my body. Then I realized who was telling me this.” —Emo Philips |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
intrusion.” —U.S. District Court Judge Dalzell |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
is incessant
complaints about Unicode in Python. He is best ignored, IMO.
--
\ “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 gray he was, and how I named him Flint.” —Jack H
r do evil so completely and cheerfully as when they do |
`\it from religious conviction.” —Blaise Pascal (1623–1662), |
_o__) Pensées, #894. |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Is that an acceptable
error rate?
--
\ “If you don't fail at least 90 percent of the time, you're not |
`\aiming high enough.” —Alan Kay |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Ben Finney writes:
> The problem is you won't know *which* 90% is accurate, and which 10% is
> inaccurate. This is very different from the glass, where it's evident
> which part is good.
Hmm. Re-reading the suggestion, I see that it is fairly predictable
which estimates o
"DRIVER=%(DRIVER)s;SERVER=%(SERVER)s;PORT=%(PORT)s;"
"DATABASE=%(DATABASE)s;UID=%(USER)s;PWD=%(PASSWORD)s;"
) % RECIPE_DB
since the named placeholders will be looked up by key in the ‘RECIPE_DB’
mapping.
There are other improvements to suggest, but I don't want to distract
from the main point of the post.
--
\ “The fact that I have no remedy for all the sorrows of the |
`\ world is no reason for my accepting yours. It simply supports |
_o__) the strong probability that yours is a fake.” —Henry L. Mencken |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
tallation of that tool?
What exact command do you issue in order to run it?
--
\“I fly Air Bizarre. You buy a combination one-way round-trip |
`\ticket. Leave any Monday, and they bring you back the previous |
_o__) Friday. That way you still have the weekend.” —Steven Wr
perfect? Are people |
`\ just supposed to “know” this, magically?” —Mitya Sirenef, |
_o__) comp.lang.python, 2012-12-27 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
GN), for instance.
--
\ “I got some new underwear the other day. Well, new to me.” —Emo |
`\ Philips |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
e years |
_o__) telling them to sit down and shut up.” —Phyllis Diller |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
does the var keyword mean?
Exactly; JavaScript *does* have variables, in the ways Python does not.
--
\“If you have the facts on your side, pound the facts. If you |
`\ have the law on your side, pound the law. If you have neither |
_o__) on your side, poun
ents.
--
\“I was once walking through the forest alone and a tree fell |
`\ right in front of me, and I didn't hear it.” —Steven Wright |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
but if we give peas a chance, won't the lima beans feel |
_o__) left out?” —_Pinky and The Brain_ |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
in the receiver's
brain. One must necessarily use negative language to achieve that.
--
\ “Religious faith is the one species of human ignorance that |
`\ will not admit of even the *possibility* of correction.” —Sam |
_o__) Harris, _The End of
Marko Rauhamaa writes:
> Ben Finney :
>
> > That's why I always try to say “Python doesn't have variables the way
> > you might know from many other languages”,
>
> Please elaborate. To me, Python variables are like variables in all
> programming language
sion trying
to learn, but rather to score points. I refuse to play.
--
\ “Of all classes the rich are the most noticed and the least |
`\ studied.” —John Kenneth Galbraith, _The Age of Uncertainty_, |
_o__) 1977 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
xisting baggage encourages
significantly fewer false inferences.
(good sigmonster, have a cookie)
--
\ “We suffer primarily not from our vices or our weaknesses, but |
`\from our illusions.” —Daniel J. Boorstin, historian, 1914–2004 |
_o__)
\“Humanity has advanced, when it has advanced, not because it |
`\ has been sober, responsible, and cautious, but because it has |
_o__)been playful, rebellious, and immature.” —Tom Robbins |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Marko Rauhamaa writes:
> Ben Finney :
>
> > Who does that? I haven't seen anyone raising this topic with a
> > beginner in a hostile manner (“flogging”? why the hyperbole?), and
> > it's certainly not characteristic of how the topic is raised here.
>
> F
`\ at kick boxing.” —Emo Philips |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
and
to the extent that Python has “variables”, they always refer to a typed
and structured object.
--
\ “Do unto others twenty-five percent better than you expect them |
`\ to do unto you. (The twenty-five percent is [to correct] for |
_o__)error.)” —Linus
history […].” —Sam Harris, _The End of Faith_, 2004 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ple that the rest of the world
exists.)
--
\ “Reality must take precedence over public relations, for nature |
`\ cannot be fooled.” —Richard P. Feynman, _Rogers' Commission |
_o__) Report into the Challenger Crash_, 1986-06 |
Ben Finney
--
https://mail.pytho
et it would really make you mad if you looked back |
_o__) and the guy was reading a magazine.” —Jack Handey |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
s.
--
\ “One bad programmer can easily create two new jobs a year. |
`\ Hiring more bad programmers will just increase our perceived |
_o__) need for them.” —David Lorge Parnas, 1999-03 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
n, and he'll starve to death while praying for a fish.” |
_o__) —Anonymous |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
need for explicit
copyright statements saying the date of publication.
http://questioncopyright.org/>
--
\“[T]he great menace to progress is not ignorance but the |
`\ illusion of knowledge.” —Daniel J. Boorstin, historian, |
_o__)
ocs.python.org/3/library/io.html>.
--
\ “Our products just aren't engineered for security.” —Brian |
`\ Valentine, senior vice-president of Microsoft Windows |
_o__)development, 2002 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ay to see by Faith is to shut the Eye of Reason.” |
`\—Benjamin Franklin |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
e, and the rest of the string is trailing
garbage, which is an error.
> How do I solve this problem ?!
Fix the document. Where did it come from?
Best, don't put it directly in the Python source code as a string.
Ideally, have it as a distinct file, which you can examine in a text
editor with JSO
Ben Finney writes:
> Tamer Higazi writes:
> > How do I solve this problem ?!
>
> Fix the document. Where did it come from?
If you're the one typing raw JSON into your program: Fix that. Don't
type raw JSON.
JSON is an object serialisation format; it's foolish t
e as though humans are the ones who will be
reading it.
--
\“Stop — Drive sideways.” —detour sign, Kyushu, Japan |
`\ |
_o__) |
Ben
Johannes Bauer writes:
> On 15.05.2014 04:43, Ben Finney wrote:
> > Rustom Mody writes:
> >
> >> Until then may we relegate '79' to quaint historical curiosities
> >
> > Not until the general capacity of human cognition advances to make
n cognitive limits and read what people write for
comprehension.
--
\ “As soon as we abandon our own reason, and are content to rely |
`\ upon authority, there is no end to our troubles.” —Bertrand |
_o__)Russell, _Unpopular Essays_, 1950 |
Ben Finney
eople's positions.
--
\ “Dyslexia means never having to say that you're ysror.” |
`\ —anonymous |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
difficulty by the same compiler algorithm, still does not
constitute the source for the program.
--
\ “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.
on Moore's Law: Human effort becomes |
`\ twice as expensive roughly every two years.” —anonymous |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
lready recommending the more
general name, but I'd like that to change.
--
\ “I believe our future depends powerfully on how well we |
`\ understand this cosmos, in which we float like a mote of dust |
_o__) in the morning sky.” —Carl Sagan, _Cosmos_,
and madder.” —Homer, _The Simpsons_ |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
things in rationality.” —Bertrand Russell |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
e whether it's a string or an integer.” —Benno Rice, 2011 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
the serious pursuit of knowledge of reality is incompatible |
_o__) with bullshit.” —Paul Z. Myers, 2010-03-14 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
\“… it's best to confuse only one issue at a time.” —Brian W. |
`\Kernighan and Dennis M. Ritchie, _The C programming language_, |
_o__) 1988 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
rating
systems and filesystems relevant to you, and what meanings are assigned
by each specific filesystem to those timestamps.
--
\ Moriarty: “Forty thousand million billion dollars? That money |
`\must be worth a fortune!” —The Goon Show, _The Sale of |
_o__)
--
\“A free press is one where it's okay to state the conclusion |
`\ you're led to by the evidence.” —Bill Moyers |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ut dead letters.” |
_o__) —Ernestine Rose |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
process = subprocess.call(
command_args, stdout=devnull, stderr=subprocess.STDOUT)
> Many thanks in advance
I hope that helps.
--
\ “Homer, where are your clothes?” “Uh... dunno.” “You mean Mom |
`\ dresses you every day?!” “I guess; or one of her friends.” |
_
contribution to civilization.” —Steven Weinberg |
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
ying. Either is better than actually WORKING for a |
_o__) living.” —ringsnake.livejournal.com, 2007-11-12 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
dation.
http://www.jefftk.com/p/cache-invalidation>
--
\ “In the long run, the utility of all non-Free software |
`\ approaches zero. All non-Free software is a dead end.” —Mark |
_o__) Pilgrim, 2006 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
bet there are some |
_o__) Chihuahuas with some good ideas.” —Jack Handey |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ensible question, I
> guess.
I hope that helps.
You're welcome to ask more questions in this forum.
You may also be interested to join the “tutor” forum
https://mail.python.org/mailman/listinfo/tutor>, where patient
tutors will discuss any beginner's Python questions.
--
\ “I am as agnostic about God as I am about fairies and the |
`\ Flying Spaghetti Monster.” —Richard Dawkins, 2006-10-13 |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
ut it.” |
_o__)—John Kenneth Galbraith, _The New Industrial State_, 1967 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
o see that a garden is beautiful without |
`\ having to believe that there are fairies at the bottom of it |
_o__) too?” —Douglas Adams |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
coerce others to do what you |
_o__) want.” —Larry Wall |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
the |
_o__) Lincoln Bedroom?” —_Pinky and The Brain_ |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
really make them think, they'll hate you.” —Donald |
_o__) Robert Perry Marquis |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
means of controlling access |
`\ to information. They are the tool of choice for the internet |
_o__) highwayman.” —Anthony Taylor |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
g that anal sex is nice because it works on all genders” |
_o__)—http://bash.org/ |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
or a taxonomic grouping of life, if you want to avoid
specifying some specific level of the taxonomy, is “clade”
https://en.wiktionary.org/wiki/clade>.
--
\ “First they came for the verbs, and I said nothing, for verbing |
`\weirds language. Then, they arrival for the nouns and I sp
losis.” —Jack Handey |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
e Your Word Power’. That thing is really, really, |
_o__) really... good.” —Homer, _The Simpsons_ |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
1401 - 1500 of 4138 matches
Mail list logo