Re: Daemon strategy

2016-02-06 Thread Ben Finney
t results.” —dry cleaner, | `\ Bangkok | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Daemon strategy

2016-02-05 Thread Ben Finney
e" on Windows unless it cannot be > avoided. Agreed :-) -- \ “Wrinkles should merely indicate where smiles have been.” —Mark | `\Twain, _Following the Equator_ | _o__) | Ben Finney

Re: Question about official API

2016-02-05 Thread Ben Finney
to mountains of waste is not more | `\ landfill sites but fewer shopping centres.” —Clive Hamilton, | _o__) _Affluenza_, 2005 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Daemon strategy

2016-02-05 Thread Ben Finney
paul.hermeneu...@gmail.com writes: > On Fri, Feb 5, 2016 at 11:52 AM, Ben Finney <ben+pyt...@benfinney.id.au> > wrote: > > Since MS Windows lacks those facilities, ‘python-daemon’ can't use > > them. > > As you might imagine, I am not always able to specify whi

Re: Finding in which class an object's method comes from

2016-02-04 Thread Ben Finney
That's been answered, but I'm curious to know what your program will do with that information? -- \ “But Marge, what if we chose the wrong religion? Each week we | `\ just make God madder and madder.” —Homer, _The Simpsons_ | _o__)

Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Ben Finney
ivities 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: Reply to whom?

2016-02-03 Thread Ben Finney
an Empire was | `\that, lacking zero, they had no way to indicate successful | _o__) termination of their C programs.” —Robert Firth | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Reply to whom?

2016-02-03 Thread Ben Finney
his way, and correctly interact with mailing list technology. -- \ “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

Re: Reply to whom?

2016-02-03 Thread Ben Finney
hour …” —F. H. Wales, 1936 | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Reply to whom?

2016-02-03 Thread Ben Finney
Random832 <random...@fastmail.com> writes: > On Wed, Feb 3, 2016, at 16:50, Ben Finney wrote: > > (You will also have a “reply to all” command. That's almost never > > appropriate in a forum like this.) > > Why not? People reply all to messages I write all the tim

[RELEASE] ‘python-daemon’ version 2.1.1 released

2016-01-30 Thread Ben Finney
| _o__) 1995-10-23 | Ben Finney <b...@benfinney.id.au> -- https://mail.python.org/mailman/listinfo/python-list

[ANN] Gajja 0.1: Fake objects for real tests

2016-01-29 Thread Ben Finney
um is also welcome. -- \ “Facts are stubborn things; and whatever may be our wishes, our | `\ inclinations, or the dictates of our passion, they cannot alter | _o__)the state of facts and evidence.” —John Adams, 1770-12-04 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: psss...I want to move from Perl to Python

2016-01-29 Thread Ben Finney
on 3 is the only one that is actively developed. -- \ “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 -- https://ma

Re: psss...I want to move from Perl to Python

2016-01-29 Thread Ben Finney
guage, Python 3 <URL:https://docs.python.org/3/tutorial/>. -- \ “We jealously reserve the right to be mistaken in our view of | `\ what exists, given that theories often change under pressure | _o__) from further investigation.” —Thomas W. Clark, 2009 |

Re: psss...I want to move from Perl to Python

2016-01-29 Thread Ben Finney
y | `\ river to save a solid gold baby? Maybe we'll never know.” —Jack | _o__) Handey | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: how to get python version ?

2016-01-27 Thread Ben Finney
human-readable string. If you actually want to do comparisons, use ‘sys.version_info’ for its much more fine-grained structure. -- \ “If you can't annoy somebody there is little point in writing.” | `\—Kingsley Amis | _o__)

Re: python-2.7.3 vs python-3.2.3

2016-01-26 Thread Ben Finney
t upset me. I just think, why did they | `\ believe me?” —Jack Handey | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I add 18 seconds to an ISO-8601 String in Python?

2016-01-23 Thread Ben Finney
t;> increment datetime.timedelta(0, 18) >>> foo_timestamp + increment datetime.datetime(2000, 1, 1, 16, 36, 43) -- \“You don't change the world by placidly finding your bliss — | `\you do it by focusing your discontent in productive ways.” | _o__)

Re: How do I add 18 seconds to an ISO-8601 String in Python?

2016-01-23 Thread Ben Finney
don't even know the name / | `\But if I did, well, really, what's it to you?” —Leonard Cohen, | _o__) _Hallelujah_ | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: How to simulate C style integer division?

2016-01-21 Thread Ben Finney
python.org/3/reference/expressions.html#binary-arithmetic-operations>. -- \ “Timid men prefer the calm of despotism to the boisterous sea | `\of liberty.” —Thomas Jefferson | _o__)

Refactoring in a large code base (was: importing: what does "from" do?)

2016-01-21 Thread Ben Finney
knowledge of reality is incompatible | _o__) with bullshit.” —Paul Z. Myers, 2010-03-14 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Single format descriptor for list

2016-01-20 Thread Ben Finney
ng and consuming them. Learning to use them is an important tool in avoiding more complex and error-prone code. -- \ “[F]reedom of speech does not entail freedom to have your ideas | `\accepted by governments and incorporated into law and policy.” | _o__)

Re: "x == None" vs "x is None"

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

Re: licenses

2016-01-09 Thread Ben Finney
you need to pay a lawyer for advice. So I advise you don't make such a restrictive work. -- \ “The way to build large Python applications is to componentize | `\ and loosely-couple the hell out of everything.” —Aahz | _o__)

Re: Is '*args' useful in this example code?

2016-01-04 Thread Ben Finney
t match what you expect? -- \“Of course, everybody says they're for peace. Hitler was for | `\ peace. Everybody is for peace. The question is: what kind of | _o__)peace?” —Noam Chomsky, 1984-05-14 | Ben Finney -- https://mail.python.org/mailman/lis

Re: Is '*args' useful in this example code?

2016-01-04 Thread Ben Finney
Robert <rxjw...@gmail.com> writes: > On Monday, January 4, 2016 at 9:26:47 PM UTC-5, Ben Finney wrote: > > Can you show example code that you would expect, and specifically what about > > the actual code doesn't match what you expect? > > Excuse me for the incomplete in

Re: Is there a way importing a string object?

2016-01-04 Thread Ben Finney
difference between a moral man and a man of honor is that | `\ the latter regrets a discreditable act, even when it has worked | _o__) and he has not been caught.” —Henry L. Mencken | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: GitHub's ³pull request² is proprietary lock-in

2016-01-03 Thread Ben Finney
ntil they do, it is foolish for a community to willingly put their correspondence data into it. -- \ “Come on Milhouse, there’s no such thing as a soul! It’s just | `\ something they made up to scare kids, like the Boogie Man or | _o__) Michael Jackson.” —Bart,

Re: GitHub's ³pull request² is proprietary lock-in

2016-01-03 Thread Ben Finney
“There's no excuse to be bored. Sad, yes. Angry, yes. | `\Depressed, yes. Crazy, yes. But there's no excuse for boredom, | _o__) ever.” —Viggo Mortensen | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: GitHub's ³pull request² is proprietary lock-in

2016-01-03 Thread Ben Finney
Chris Angelico <ros...@gmail.com> writes: > On Sun, Jan 3, 2016 at 7:45 PM, Ben Finney <ben+pyt...@benfinney.id.au> wrote: > > Anyone can take email data from the email server, migrate it to a > > different implementation of the same email system, keep it running >

Re: Trailing zeros of 100!

2016-01-02 Thread Ben Finney
oth a polite reminder to do that, and an attempt to get you to do so if you didn't. If you didn't, then answering “yes” is wasting everyone's time. -- \ “As the most participatory form of mass speech yet developed, | `\the Internet deserves the highest protection from governmental

GitHub's “pull request” is proprietary lock-in (was: We will be moving to GitHub)

2016-01-02 Thread Ben Finney
Michael Torrie <torr...@gmail.com> writes: > On 01/02/2016 12:02 AM, Ben Finney wrote: > > GitHub's “pull request” workflow is entirely proprietary and can > > only be done within GitHub. > > Really? This seems like an entirely artificial github requirement. Yes, i

Re: We will be moving to GitHub

2016-01-01 Thread Ben Finney
b. What will be done to ensure other Git repositories remain on a level playing field not only technically, but socially? -- \ “Ours is a world where people don't know what they want and are | `\ willing to go through hell to get it.” —Donald Robert Perry | _o__)

Re: We will be moving to GitHub

2016-01-01 Thread Ben Finney
ing to accord to | `\ his fellow-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

Re: using __getitem()__ correctly

2015-12-31 Thread Ben Finney
"Charles T. Smith" <cts.private.ya...@gmail.com> writes: > On Thu, 31 Dec 2015 11:21:59 +1100, Ben Finney wrote: > > > Tersely: the relationship between an object and its attributes, is > > not the same as the relationship between a dictionary and its it

Re: raise None

2015-12-31 Thread Ben Finney
ng out twice.” | _o__) —Henry L. Mencken | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: raise None

2015-12-31 Thread Ben Finney
Chris Angelico <ros...@gmail.com> writes: > On Fri, Jan 1, 2016 at 7:18 AM, Ben Finney <ben+pyt...@benfinney.id.au> wrote: > > Given how very often such decisions make my debugging tasks > > needlessly difficult, I'm not seeing how that's a desirable feature. > >

Re: Where are we in the Python 3 transition?

2015-12-31 Thread Ben Finney
fficial Python 2 support ends. I tell them I can't say, because I don't have 2020 vision. -- \ “Science shows that belief in God is not only obsolete. It is | `\also incoherent.” —Victor J. Stenger, 2001 | _o__)

Re: using __getitem()__ correctly

2015-12-30 Thread Ben Finney
Steven D'Aprano <st...@pearwood.info> writes: > On Thu, 31 Dec 2015 10:13 am, Ben Finney wrote: > > > You may be familiar with other languages where the distinction > > between “attribute of an object” is not distinct from “item in a > > dictionary”. Python

Validation in Python (was: raise None)

2015-12-30 Thread Ben Finney
Lily Tomlin | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Newbie: How to convert a tuple of strings into a tuple of ints

2015-12-30 Thread Ben Finney
f Faith_, 2004 | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: using __getitem()__ correctly

2015-12-30 Thread Ben Finney
| _o__) —Carl Sagan, _The Burden of Skepticism_, 1987 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: raise None

2015-12-30 Thread Ben Finney
deliberately raises an exception. Is that your intent? -- \ “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.” —Paul Z. Myers, 2009-09-12 | 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 "

2015-12-28 Thread Ben Finney
Batman!” —Robin | `\ | _o__) | 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 "

2015-12-28 Thread Ben Finney
tevenson | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: A newbie quesiton: local variable in a nested funciton

2015-12-26 Thread Ben Finney
arris, _The End | `\ of Faith_, 2004 | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: please can i get help on this problem

2015-12-26 Thread Ben Finney
e the tub.” —hotel room, Japan | `\ | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: please can i get help on this problem

2015-12-26 Thread Ben Finney
l answers. -- \ “When cryptography is outlawed, bayl bhgynjf jvyy unir | `\ cevinpl.” —Anonymous | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Importing constantly changing variables

2015-12-26 Thread Ben Finney
thon libraries you can use for accessing that interface. -- \ “If you do not trust the source do not use this program.” | `\—Microsoft Vista security dialogue | _o__) | Ben Finney -- h

Re: A newbie quesiton: local variable in a nested funciton

2015-12-25 Thread Ben Finney
mation | `\ technology as a McDonalds Certified Food Specialist is to the | _o__) culinary arts.” —Michael Bacarella | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Idiom for this case?

2015-12-24 Thread Ben Finney
nt with each example to understand it before continuing. -- \ “Anyone who believes exponential growth can go on forever in a | `\finite world is either a madman or an economist.” —Kenneth | _o__) Boulding | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Unable to use python 3.5

2015-12-23 Thread Ben Finney
a slap-down. Please work to keep our community welcoming, and assume good faith in newcomers. -- \ “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 Pa

Re: What interface is a ‘Popen.stdout’ presenting?

2015-12-23 Thread Ben Finney
eryk sun <eryk...@gmail.com> writes: > On Wed, Dec 23, 2015 at 7:36 PM, Ben Finney <ben+pyt...@benfinney.id.au> > wrote: > > So how do I get from a Python 2 ‘file’ object, to whatever > > ‘io.TextIOWrapper’ wants? > > I would dup the file descriptor an

What interface is a ‘Popen.stdout’ presenting?

2015-12-23 Thread Ben Finney
y opened, such as a ‘Popen.stdout’ attribute – in a text wrapper with a particular encoding? -- \ “With Lisp or Forth, a master programmer has unlimited power | `\ and expressiveness. With Python, even a regular guy can reach | _o__) for the stars.” —Raymond Hettinger | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: What interface is a ‘Popen.stdout’ presenting?

2015-12-23 Thread Ben Finney
I left the Subject field with the wrong question. The immediate answer is “it presents the ‘file’ interface”. The consequent questions remain: Ben Finney <ben+pyt...@benfinney.id.au> writes: > $ python2 […] > >>> gnupg_stdout = io.TextIOWrapper(gnupg_subprocess.st

Re: convert to python code

2015-12-22 Thread Ben Finney
whatever a questioner has in mind.” —Noam Chomsky | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Why doesn't os.remove work on directories?

2015-12-22 Thread Ben Finney
y Bysshe | _o__)Shelley, _The Necessity of Atheism_, 1811 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-21 Thread Ben Finney
L. Mencken | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Categorising strings on meaningful–meaningless spectrum (was: Catogorising strings into random versus non-random)

2015-12-20 Thread Ben Finney
you I did not have C++ in mind.” —Alan Kay, creator of | _o__) Smalltalk, at OOPSLA 1997 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: How does one distribute Tkinter or Qt GUI apps Developed in Python

2015-12-16 Thread Ben Finney
n.” —William Jennings Bryan, 1923-01 | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: TypeError: 'float' object is not iterable

2015-12-16 Thread Ben Finney
g?” “I think so, | `\ Brain, but there's still a bug stuck in here from last time.” | _o__) —_Pinky and The Brain_ | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

EAFP and LBYL (was: Try: rather than if :)

2015-12-14 Thread Ben Finney
nks this is the best of all possible worlds. | `\ The pessimist fears it is true.” —J. Robert Oppenheimer | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Why is break allowed in finally, but continue is not?

2015-12-13 Thread Ben Finney
n't depend for the long run on distinguishing one | `\ bitstream from 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

Re: Why doesn't response pydoc on my Python 2.7?

2015-12-12 Thread Ben Finney
your operating system, not use it within Python. But I can only guess, until you show us which page from which tutorial you're referring to. -- \“Technology is neither good nor bad; nor is it neutral.” | `\ —Melvin Kranzberg's First Law of Technology

Re: python unit test frame work

2015-12-10 Thread Ben Finney
(exit_status) -- \“The greatest tragedy in mankind's entire history may be the | `\ hijacking of morality by religion.” —Arthur C. Clarke, 1991 | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: python unit test frame work

2015-12-10 Thread Ben Finney
executed in a particular sequence, the ‘unittest’ module is a poor fit. -- \ “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, 2

Re: Is vars() the most useless Python built-in ever?

2015-12-01 Thread Ben Finney
| _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: variable vs. object

2015-11-29 Thread Ben Finney
“When I get new information, I change my position. What, sir, | `\ do you do with new information?” —John Maynard Keynes | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Faviourite improvements in Python 3.5 (was: Python 3 virtualenvs)

2015-11-27 Thread Ben Finney
wbreakers] — 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

Re: Help with this program???

2015-11-27 Thread Ben Finney
f, | _o__) comp.lang.python, 2012-12-27 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Object identity has no necessary connection to memory location

2015-11-26 Thread Ben Finney
thout moving. He said it was elevator | _o__)practice.” —Steven Wright | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: What is a function parameter =[] for?

2015-11-26 Thread Ben Finney
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: What is a function parameter =[] for?

2015-11-26 Thread Ben Finney
Steven D'Aprano <st...@pearwood.info> writes: > On Fri, 27 Nov 2015 12:40 pm, Ben Finney wrote: > > > It's still not been expressed what “fake” refers to here. Or, rather, > > what “real” thing was being expected, and how these don't qualify. > &g

Object identity has no necessary connection to memory location (was: What is a function parameter =[] for?)

2015-11-26 Thread Ben Finney
Python documentation. -- \“Absurdity, n. A statement or belief manifestly inconsistent | `\with one's own opinion.” —Ambrose Bierce, _The Devil's | _o__)Dictionary_, 1906 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-25 Thread Ben Finney
`\ it breeds contempt for the law.” —Justice Louis Brandeis | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-25 Thread Ben Finney
ion to embrace all humanity and the whole | _o__) of nature in its beauty.” —Albert Einstein | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Semantics of collection types (was: Late-binding of function defaults (was Re: What is a function parameter =[] for?))

2015-11-25 Thread Ben Finney
Ian Kelly <ian.g.ke...@gmail.com> writes: > On Wed, Nov 25, 2015 at 5:52 PM, Random832 <random...@fastmail.com> wrote: > > On 2015-11-25, Ben Finney <ben+pyt...@benfinney.id.au> wrote: > >> That is, the ‘2’ in ‘cartesian_point = (2, 3)’ means something > >

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-25 Thread Ben Finney
prove anything | `\that's even remotely true!” —Homer, _The Simpsons_ | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

A name refers to an object, an object has a value, equality compares values (was: What is a function parameter =[] for?)

2015-11-24 Thread Ben Finney
s Henry Huxley, _Essays on | _o__) Controversial Questions_, 1889 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading files from .ar / .deb archives

2015-11-24 Thread Ben Finney
an expiration date.” —Steven Wright | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: tuples in conditional assignment

2015-11-23 Thread Ben Finney
break it up by assigning some sub-parts to temporary well-chosen descriptive names (not ‘t’). -- \ “It is far better to grasp the universe as it really is than to | `\persist in delusion, however satisfying and reassuring.” —Carl | _o__)Sagan | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Mapping between python packages and distro packages?

2015-11-20 Thread Ben Finney
wiki/Posting_style#Interleaved_style>.) -- \ “Anyone who puts a small gloss on [a] fundamental technology, | `\ 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: What is a function parameter =[] for?

2015-11-18 Thread Ben Finney
—Russell Blackford, 2010-03-06 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: What is a function parameter =[] for?

2015-11-18 Thread Ben Finney
s a reference to the value, the value remains unaffected when you delete the reference ‘list1’. -- \ “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__)

Re: Mapping between python packages and distro packages?

2015-11-17 Thread Ben Finney
s a solution can be offered. -- \ “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/mail

Re: What meaning is 'a[0:10:2]'?

2015-11-15 Thread Ben Finney
man/listinfo/tutor>. -- \ “Philosophy is questions that may never be answered. Religion | `\ is answers that may never be questioned.” —anonymous | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Learning Python from the tutorial (was: What function is 'u0, j = random(), 0'?)

2015-11-14 Thread Ben Finney
now what to add.” | `\—Steven Wright | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: new to python, help please !!

2015-11-11 Thread Ben Finney
always been in excess of | `\ the demand.” —Josh Billings | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Keeping context-manager object alive through function calls

2015-11-10 Thread Ben Finney
ection("bsu5000") gen = do_stuff(bsu5000_conn) do_more_things_with(bsu5000_conn) -- \ “I don't know anything about music. In my line you don't have | `\ to.” —Elvis Aaron Presley (1935–1977) | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Question about math.pi is mutable

2015-11-10 Thread Ben Finney
Laura Creighton <l...@openend.se> writes: > In a message of Tue, 10 Nov 2015 17:10:09 +1100, Ben Finney writes: > >I am a Bear of Little Brain, but: Isn't anything that the *compiler* > >does, by definition done at *compile* time? > > No. > > We used to have a p

Re: Question about math.pi is mutable

2015-11-09 Thread Ben Finney
BartC <b...@freeuk.com> writes: > On 09/11/2015 01:04, Ben Finney wrote: > > There isn't a way for the compiler to *know*, in all cases, whether > > module attributes will be updated during the lifetime of the program > > In what way can an attribute be u

Re: Question about math.pi is mutable

2015-11-09 Thread Ben Finney
the “problem” being addressed is essentially the dynamism of Python. The proposal is misguided. -- \ “Truth would quickly cease to become stranger than fiction, | `\ once we got as used to it.” —Henry L. Mencken | _o__)

Re: Question about math.pi is mutable

2015-11-09 Thread Ben Finney
about not just the compiler any more. No? -- \ “Any sufficiently advanced bug is indistinguishable from a | `\ feature.” —Rich Kulawiec | _o__) | Ben Finney -- https://mail.pyt

Re: Question about math.pi is mutable

2015-11-09 Thread Ben Finney
Laura Creighton <l...@openend.se> writes: > In a message of Tue, 10 Nov 2015 06:45:40 +1100, Ben Finney writes: > >So the remaining space of code that is safe for the proposed > >optimisation is trivially small. Why bother with such optimisations, if > >the only code t

Re: Question about math.pi is mutable

2015-11-09 Thread Ben Finney
Antoon Pardon <antoon.par...@rece.vub.ac.be> writes: > Op 07-11-15 om 04:43 schreef Ben Finney: > > Python assumes the programmers using it are consenting adults. Doing > > harmful things is difficult but not forbidden. > > I find that to be contradictory. Why should y

Re: Question about math.pi is mutable

2015-11-08 Thread Ben Finney
| `\inappropriate for religion to play any role in issues of state | _o__)[of] a modern democracy.” —Lawrence M. Krauss, 2012-05-28 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Question about math.pi is mutable

2015-11-08 Thread Ben Finney
__) their past innovations really should decline.” —Gary Barnett | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Question about math.pi is mutable

2015-11-08 Thread Ben Finney
that should be sufficient to quash the desire to make them. -- \ “If you define cowardice as running away at the first sign of | `\ danger, screaming and tripping and begging for mercy, then yes, | _o__) Mr. Brave man, I guess I'm a coward.” —Jack Handey | Ben Finne

Re: Question about math.pi is mutable

2015-11-08 Thread Ben Finney
apply.” —Eben Moglen, _Anarchism Triumphant_, 1999 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Question about math.pi is mutable

2015-11-08 Thread Ben Finney
Chris Angelico <ros...@gmail.com> writes: > On Mon, Nov 9, 2015 at 11:26 AM, Ben Finney <ben+pyt...@benfinney.id.au> > wrote: > > Chris Angelico <ros...@gmail.com> writes: > > > >> Testing/mocking is a completely separate consideration (eg you

<    2   3   4   5   6   7   8   9   10   11   >