Re: Python keyword args can be any string

2016-02-17 Thread Ben Finney
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

Re: Guido on python3 for beginners

2016-02-17 Thread Ben Finney
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

Re: Python keyword args can be any string

2016-02-18 Thread Ben Finney
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

Ohnoes significant whitespace (was: Considering migrating to Python from Visual Basic 6 for engineering applications)

2016-02-18 Thread Ben Finney
cut a throat.” —“Lord” George Gordon Noel Byron, _Don Juan_ | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Python unittest2.SkipTest and general suggestion

2016-02-21 Thread Ben Finney
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

Re: can try expect have if else.

2016-02-21 Thread Ben Finney
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

Re: Make a unique filesystem path, without creating the file

2016-02-22 Thread Ben Finney
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

Re: Make a unique filesystem path, without creating the file

2016-02-22 Thread Ben Finney
ons_ | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: How may I change values in tuples of list of lists?

2016-02-23 Thread Ben Finney
ans that it might | `\ be wrong.” —Chris Torek | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: How to define what a class is ?

2016-02-24 Thread Ben Finney
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

Use the Python Job Board for recruitment (was: Job opportunity - Sr. Python Developer - Morrisville, NC)

2016-02-25 Thread Ben Finney
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

Re: "from module import data; print(data)" vs "import module; print(module.data)"

2016-02-25 Thread Ben Finney
.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

Re: "from module import data; print(data)" vs "import module; print(module.data)"

2016-02-25 Thread Ben Finney
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

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Ben Finney
ween the | `\ hours of 9 and 11 a.m. daily.” —hotel, Athens | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Lineendings (was Everything good about Python except GUI IDE?)

2016-02-28 Thread Ben Finney
#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

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-02-29 Thread Ben Finney
“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

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-02-29 Thread Ben Finney
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

Re: Explaining names vs variables in Python

2016-03-02 Thread Ben Finney
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

Re: Continuing indentation

2016-03-02 Thread Ben Finney
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-

Re: looking into python...

2016-03-02 Thread Ben Finney
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

Re: Continuing indentation

2016-03-02 Thread Ben Finney
(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

Re: Continuing indentation

2016-03-02 Thread Ben Finney
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

Re: Inception

2016-03-02 Thread Ben Finney
`\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

Re: Inception

2016-03-02 Thread Ben Finney
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

Re: Inception

2016-03-02 Thread Ben Finney
was in the shape of a house.” —Steven Wright | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Continuing indentation

2016-03-04 Thread Ben Finney
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

Re: Continuing indentation

2016-03-04 Thread Ben Finney
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 \ &

Re: Continuing indentation

2016-03-04 Thread Ben Finney
ury of an emotion without paying for it.” —Oscar Wilde, _De | _o__) Profundis_, 1897 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Continuing indentation

2016-03-04 Thread Ben Finney
believe things strongly without | _o__) evidence.” —Sam Harris, _Letter to a Christian Nation_ 2006 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Continuing indentation

2016-03-04 Thread Ben Finney
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

Re: password and username code

2016-03-05 Thread 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

Re: __del__: when to use it? What happens when you SystemExit/NameError wrt del? Method vs function calls.

2016-03-06 Thread Ben Finney
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

Re: fnmatch() vs. glob.glob()

2016-03-07 Thread Ben Finney
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

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-07 Thread Ben Finney
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

What will I get when reading from a file? (was: Pyhon 2.x or 3.x, which is faster?)

2016-03-07 Thread Ben Finney
. 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:

Re: fnmatch() vs. glob.glob()

2016-03-07 Thread Ben Finney
“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

Re: fnmatch() vs. glob.glob()

2016-03-07 Thread Ben Finney
f me.” —Jesus, as quoted in Matthew 10:37 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-07 Thread Ben Finney
bers is too important to be left | `\to chance.” —Robert R. Coveyou | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: fnmatch() vs. glob.glob()

2016-03-07 Thread Ben Finney
faith the one | `\ unpardonable sin.” —Thomas Henry Huxley, _Essays on | _o__) Controversial Questions_, 1889 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-07 Thread Ben Finney
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__)

Re: Creating barrel distortion of video

2016-03-08 Thread Ben Finney
| _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: exec "x = 3; print x" in a - How does it work?

2016-03-08 Thread Ben Finney
of Human Nature_, 1739 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Ben Finney
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_,

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Ben Finney
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

Text input with keyboard, via input methods (was: turtle ??)

2016-03-09 Thread Ben Finney
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

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread 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

Re: non printable (moving away from Perl)

2016-03-11 Thread Ben Finney
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

Re: issue with CVS module

2016-03-11 Thread Ben Finney
I can no longer | _o__) figure out how to use my telephone.” —Bjarne Stroustrup | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-12 Thread Ben Finney
driveway doing 60 MPH.” | _o__) —Steven Wright | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-03-13 Thread Ben Finney
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__)

Obfuscating Python code (was: Is there a way to create a shared object file using PyInstaller?)

2016-03-14 Thread Ben Finney
\ “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

Re: Beginner Python Help

2016-03-19 Thread Ben Finney
ce_, 1998 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Replace weird error message?

2016-03-19 Thread Ben Finney
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

Re: file -SAS

2016-03-19 Thread Ben Finney
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

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-03-19 Thread Ben Finney
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

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-20 Thread Ben Finney
“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

Re: Why do you use python?

2016-03-20 Thread Ben Finney
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

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-21 Thread Ben Finney
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

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-22 Thread Ben Finney
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,

Re: Obtain the variable in bash.

2016-03-23 Thread Ben Finney
/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__)

Re: [Not actually OT] Trouble in node.js land

2016-03-23 Thread Ben Finney
f its scientists, the | _o__) hopes of its children.” —Dwight Eisenhower, 1953-04-16 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread Ben Finney
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

Re: Threading is foobared?

2016-03-26 Thread Ben Finney
| `\ salary depends upon his not understanding it.” —Upton Sinclair, | _o__) 1935 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Interpretation

2016-03-26 Thread Ben Finney
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__

Re: Calling the source command from subprocess.popen to update the os.environ.

2016-03-27 Thread Ben Finney
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

Re: Announcing the release of Yosai: a security framework for python applications

2016-03-27 Thread Ben Finney
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

Re: Using python heredoc to substitute the external file read by python script.

2016-03-28 Thread Ben Finney
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

Re: Using python heredoc to substitute the external file read by python script.

2016-03-28 Thread Ben Finney
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

The “trials” in “trial and error” should be as simple as possible (was: I am out of trial and error again Lists)

2014-10-22 Thread Ben Finney
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

Re: I am out of trial and error again Lists

2014-10-24 Thread Ben Finney
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

Re: (test) ? a:b

2014-10-25 Thread Ben Finney
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

Re: (test) ? a:b

2014-10-25 Thread Ben Finney
er express yourself more clearly than you are able to | `\ think.” —Niels Bohr | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: (test) ? a:b

2014-10-25 Thread Ben Finney
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

Re: (test) ? a:b

2014-10-25 Thread Ben Finney
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

Dive Into Python 3, good tutorial (was: Newbie suggestion: nice tutorial)

2014-10-26 Thread Ben Finney
trust the source do not use this program.” | `\—Microsoft Vista security dialogue | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: (test) ? a:b

2014-10-26 Thread Ben Finney
_Once Upon A Time In The West_ | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: id == vs is

2014-10-26 Thread Ben Finney
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__)

Re: (test) ? a:b

2014-10-26 Thread Ben Finney
a form of abuse, | `\plain and simple.” —Daniel Dennett, 2010-01-12 | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: (test) ? a:b

2014-10-26 Thread Ben Finney
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

Re: Classes and the command line

2014-10-26 Thread Ben Finney
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

Re: id == vs is

2014-10-26 Thread Ben Finney
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. -- \

Re: What for -- for? (was A bug?)

2014-10-28 Thread Ben Finney
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

Re: What for -- for? (was A bug?)

2014-10-28 Thread Ben Finney
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

Re: Python modules

2014-11-09 Thread Ben Finney
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__)

Re: Python modules

2014-11-09 Thread Ben Finney
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

Re: What does (?P) pattern syntax do?

2014-11-10 Thread Ben Finney
/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

Re: Trouble with python

2014-11-11 Thread Ben Finney
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

Re: I love assert

2014-11-11 Thread Ben Finney
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

Re: Python modules

2014-11-11 Thread Ben Finney
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

Re: I love assert

2014-11-11 Thread Ben Finney
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

Re: html page mail link to webmail program

2014-11-11 Thread Ben Finney
regular expressions’. Now they have two problems.” | _o__) —Jamie Zawinski, in alt.religion.emacs | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Combining lists to dictionary

2014-11-11 Thread Ben Finney
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

Re: html page mail link to webmail program

2014-11-11 Thread Ben Finney
watch has stopped.” —Groucho Marx | `\ | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: I love assert

2014-11-11 Thread Ben Finney
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,

Converting a PHP app to Python + Django (was: Communicating with a PHP script (and pretending I'm a browser))

2014-11-12 Thread Ben Finney
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

Re: How to recover bytes function?

2014-11-13 Thread Ben Finney
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

Re: io.UnsupportedOperation: fileno

2014-11-13 Thread Ben Finney
-keeping force” —Dire Straits, | _o__) _Once Upon A Time In The West_ | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: io.UnsupportedOperation: fileno

2014-11-13 Thread Ben Finney
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

Re: fileno() not supported in Python 3.1

2014-11-13 Thread Ben Finney
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

Re: Bad file descriptor

2014-11-13 Thread Ben Finney
d by the mere supernatural …” —Joseph Conrad, _The | _o__) Shadow-Line_ | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

<    7   8   9   10   11   12   13   14   15   16   >