Re: data validation when creating an object

2014-01-15 Thread Ben Finney
Roy Smith writes: > Ben Finney wrote: > > > Who says it's frowned on to do work in the initialiser? Where are they > > saying it? That seems over-broad, I'd like to read the context of that > > advice. > > There are some people who advocate that C++ co

Dynamic generation of test cases for each input datum (was: Is it possible to get string from function?)

2014-01-15 Thread Ben Finney
x27;ll leave the academic exercise to someone else. -- \“… Nature … is seen to do all things Herself and through | `\ herself of own accord, rid of all gods.” —Titus Lucretius | _o__) Carus, c. 40 BCE | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Is it possible to protect python source code by compiling it to .pyc or .pyo?

2014-01-16 Thread Ben Finney
\ looks out it, and if he leans too far, he falls out. Wait. I | _o__)guess that's like a regular window.” —Jack Handey | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.x adoption

2014-01-17 Thread Ben Finney
), and removal of ‘except ExcClass, exc_instance’ (use ‘except ExcClass as exc_instance’ instead). -- \ “For my birthday I got a humidifier and a de-humidifier. I put | `\ them in the same room and let them fight it out.” —Steven Wright | _o__)

Re: Python 3.x adoption

2014-01-17 Thread Ben Finney
Ben Finney writes: > Terry Reedy writes: > > > Since 3.0, we have added new syntax ('yield from', u'' for instance) > > but I do not believe we have deleted or changed any syntax (I might > > have forgotten something minor) > > I'm aware o

Re: Can post a code but afraid of plagiarism

2014-01-18 Thread Ben Finney
ever enough to keep | `\up.” —Jane Wagner, via Lily Tomlin | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Can post a code but afraid of plagiarism

2014-01-18 Thread Ben Finney
iarism rules. -- \ “It is well to remember that the entire universe, with one | `\ trifling exception, is composed of others.” —John Andrew Holmes | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: python-daemon for Python v3

2014-01-19 Thread Ben Finney
le’ library https://pypi.python.org/pypi/lockfile/> which is commonly used with ‘python-daemon’. -- \ “Pinky, are you pondering what I'm pondering?” “I think so, | `\Brain, but if we give peas a chance, won't the lima beans feel | _o__)left out?

Re: What’s wrong with scientific Python?

2014-01-19 Thread Ben Finney
bert | _o__)Einstein, unsent letter, 1955 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Can post a code but afraid of plagiarism

2014-01-19 Thread Ben Finney
I just can't get started until | `\ I've had that first, piping hot pot of coffee. Oh, I've tried | _o__)other enemas...” —Emo Philips | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Can post a code but afraid of plagiarism

2014-01-20 Thread Ben Finney
\ for granted … but to weigh and consider.” —Francis Bacon | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Can post a code but afraid of plagiarism

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

Re: regex multiple patterns in order

2014-01-20 Thread Ben Finney
s it is an attractive but inappropriate tool. You may need to construct a more specific parser for your needs. Even if it's possible with regex, the resulting pattern may be so complex that it's better to write it out more explicitly. -- \ “To punish me for my contempt of aut

Re: Imports in Python

2014-01-21 Thread Ben Finney
Woodcock | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: which data structure to use?

2014-01-21 Thread Ben Finney
pecific operation is occupying too much time. Write the code correct and readable first, before trying to optimise what you don't need to yet. -- \ “Value your freedom or you will lose it, teaches history. | `\ “Don't bother us with politics,” respond those who don'

Re: Separate Address number and name

2014-01-21 Thread Ben Finney
All my life I've had one dream: to achieve my many goals.” | `\ —Homer, _The Simpsons_ | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: datetime as subclass of date

2014-01-23 Thread Ben Finney
ohn Kenneth Galbraith, 1989-07-28 | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: datetime as subclass of date

2014-01-23 Thread Ben Finney
Roy Smith writes: > Ben Finney wrote: > > > Makes sense, since ‘datetime’ can do everything ‘date’ can do, and > > is conceptually a subset of the same concept. > > That's reasonable, but given that, it's weird that date(2014, 1, 23) == > datetime(2014,

Re: Need Help with Programming Science Project

2014-01-24 Thread Ben Finney
ey're exactly like the old ones.” —Charles F. Kettering | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Highlighting program variables instead of keywords?

2014-01-26 Thread Ben Finney
races anyone who would claim it.” —Sam Harris, _The End of | _o__) Faith_, 2004 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Enable unicode

2014-01-28 Thread Ben Finney
does not have this command; you may want to use a better mail client which implements this feature. -- \ “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__)

Re: pytz question: GMT vs. UTC

2014-01-29 Thread Ben Finney
ust take precedence over public relations, for nature | `\ cannot be fooled.” —Richard P. Feynman | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: UTC "timezone" causing brain explosions

2014-01-29 Thread Ben Finney
2014, 1, 29, 22, 35, 7, 900526, tzinfo=) >>> now.astimezone(LOCAL_TZ) datetime.datetime(2014, 1, 29, 16, 35, 7, 900526, tzinfo=) -- \ “We tend to scoff at the beliefs of the ancients. But we can't | `\scoff at them personally, to their faces, and this is what | _o__) annoys me.” —Jack Handey | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Python shell wont open IDLE or an exisiting .py files

2014-01-29 Thread Ben Finney
\ 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

Removal of iterable unpacking in function calls (was: 1 > 0 == True -> False)

2014-01-30 Thread Ben Finney
should-go>. -- \ “My, your, his, hers, ours, theirs, its. I'm, you're, he's, | `\ she's, we're, they're, it's.” —anonymous, alt.sysadmin.recovery | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Another surprise from the datetime module

2014-01-30 Thread Ben Finney
ed (I'm not convinced it is needed), it should have that same behaviour. -- \ “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 Christ, c. 30 CE, as quoted in Matthew

Improving support for timezones in Python (was: UTC "timezone" causing brain explosions)

2014-01-30 Thread Ben Finney
Ben Finney writes: > Time zones are a hairy beast to manage, made all the more difficult > because national politicians continually fiddle with them which means > they can't just be a built-in part of the Python standard library. PyCon 2013 had a good talk on calendaring and t

Re: Another surprise from the datetime module

2014-01-30 Thread Ben Finney
Steven D'Aprano writes: > On Fri, 31 Jan 2014 11:35:14 +1100, Ben Finney wrote: > > > Cameron Simpson writes: > >> Firstly, replace is a verb, and I would normally read > >> td.replace(microseconds=0) as an instruction to modify td in place. > >>

Re: __init__ is the initialiser

2014-01-31 Thread Ben Finney
in arms is not spending money alone. It is spending | `\ the sweat of its laborers, the genius of its scientists, the | _o__) hopes of its children.” —Dwight Eisenhower, 1953-04-16 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: __init__ is the initialiser

2014-01-31 Thread Ben Finney
Python warn that it's not 100% 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

Re: __init__ is the initialiser

2014-01-31 Thread Ben Finney
Ned Batchelder writes: > On 1/31/14 6:05 PM, Ben Finney wrote: > > Here we disagree. I think the meaning “… and that returns the new > > instance” is entailed in the meaning of “constructor”. > > […] > > You say these terms already have meanings, and that construc

Re: __init__ is the initialiser

2014-01-31 Thread Ben Finney
Ethan Furman writes: > On 01/31/2014 03:47 PM, Ben Finney wrote: > > I suggest: > > > > Called automatically by the constructor “__new__” during > > instance creation, to initialise the new instance. > > But __new__ does not call __init__, type does [1]

Re: __init__ is the initialiser

2014-01-31 Thread Ben Finney
Ben Finney writes: > My apologies, you're right and that's made clear at > . And that's a URL to my local filesystem. Clearly it's time for me to step away from the discussion for a while :-) -- \ “I went to the cinema, it said ‘Adults: $5.00, Children $2.50’.

Re: __init__ is the initialiser

2014-01-31 Thread Ben Finney
cs should (somehow) say that clearly. -- \ “He may look like an idiot and talk like an idiot but don't let | `\ that fool you. He really is an idiot.” —Groucho Marx | _o__) | Ben Finney -- https://mail.pyth

Re: __init__ is the initialiser

2014-02-01 Thread Ben Finney
\ “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” —Thomas Jefferson | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

[OT] Usage of U+00B6 PILCROW SIGN (was: generator slides review and Python doc (+/- text bug))

2014-02-03 Thread Ben Finney
” —Ogden Nash | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2.7.6 help with white spaces?

2014-02-06 Thread Ben Finney
” —Hal Abelson | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2.7.6 help with white spaces?

2014-02-06 Thread Ben Finney
leave politics alone, but politics won't leave you alone.” | _o__)—Richard Stallman, 2002-07-26 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Simple % question

2014-02-11 Thread Ben Finney
t; is the place to look for official explanations of language features. -- \ “I met my girlfriend in Macy's; she was buying clothes, and I | `\ was putting Slinkies on the escalators.” —Steven Wright | _o__)

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: Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-25 Thread Ben Finney
empt 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
circle of compassion 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 writes: > On Wed, Nov 25, 2015 at 5:52 PM, Random832 wrote: > > On 2015-11-25, Ben Finney wrote: > >> That is, the ‘2’ in ‘cartesian_point = (2, 3)’ means something > >> different than in ‘cartesian_point = (3, 2)’. > >> > >> Whereas th

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

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

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

2015-11-26 Thread Ben Finney
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: Object identity has no necessary connection to memory location

2015-11-26 Thread Ben Finney
ition, in which case your original statement was as ambiguous as this most recent one you wrote; or you do hold that position, and my response stands. -- \ “When I was little, my grandfather used to make me stand in a | `\ closet for five minutes without moving. He said it was elevator | _

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

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

2015-11-26 Thread Ben Finney
Steven D'Aprano 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. > > They are faked in the sense

Re: Help with this program???

2015-11-27 Thread Ben Finney
python, 2012-12-27 | 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
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: variable vs. object

2015-11-29 Thread Ben Finney
mation, 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

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

2015-12-01 Thread Ben Finney
bvious* way to do it. As you say, ‘print’ is that one obvious way for emitting simple text output. -- \ “What's another word for Thesaurus?” —Steven Wright | `\ | _o__)

Re: python unit test frame work

2015-12-10 Thread Ben Finney
main(sys.argv) sys.exit(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
Cameron Simpson writes: > First, as Ben remarks, if one test _depends_ on an earlier one then it > isn't a real unit test. > > On the other hand, if you simply have some simple tests followed by > more complex tests (I have several like this) you have two facilities > to h

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

2015-12-12 Thread Ben Finney
, 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 | _o__)

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

2015-12-13 Thread Ben Finney
*any* flow-control statement in an exception-handler's ‘finally’ clause. -- \ “We can'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

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

2015-12-14 Thread Ben Finney
\ The pessimist fears it is true.” —J. Robert Oppenheimer | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: TypeError: 'float' object is not iterable

2015-12-16 Thread Ben Finney
m pondering?” “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

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

2015-12-16 Thread Ben Finney
give up education.” —William Jennings Bryan, 1923-01 | _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
ed”, and I can tell | `\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

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

2015-12-21 Thread Ben Finney
re is on those who can fix that error. Let's not overload the Subject field to make up the lack. -- \ “Self-respect: The secure feeling that no one, as yet, is | `\suspicious.” —Henry L. Mencken | _o__)

Re: convert to python code

2015-12-22 Thread Ben Finney
as 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
Shelley, _The Necessity of Atheism_, 1811 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Unable to use python 3.5

2015-12-23 Thread Ben Finney
ming, 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 Pauling's Golden Rule | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

What interface is a ‘Popen.stdout’ presenting?

2015-12-23 Thread Ben Finney
rary byte stream – already 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 writes: > $ python2 […] > >>> gnupg_stdout = io.TextIOWrapper(gnupg_subprocess.stdout) > Traceback (mos

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

2015-12-23 Thread Ben Finney
eryk sun writes: > On Wed, Dec 23, 2015 at 7:36 PM, Ben Finney > wrote: > > So how do I get from a Python 2 ‘file’ object, to whatever > > ‘io.TextIOWrapper’ wants? > > I would dup the file descriptor and close the original file. Then open > the file descriptor using

Re: Idiom for this case?

2015-12-24 Thread Ben Finney
:: for item in (x for x in cfg if x != canvas): print item https://docs.python.org/3/reference/expressions.html#generator-expressions> You will learn about these by working through the Python tutorial, from beginning to end https://docs.python.org/3/tutorial/>. Don't skip anything, and experiment 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: A newbie quesiton: local variable in a nested funciton

2015-12-25 Thread Ben Finney
ormation | `\ 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: A newbie quesiton: local variable in a nested funciton

2015-12-26 Thread Ben Finney
jf...@ms4.hinet.net writes: > Thank you, Ben. It's amazing that you seem to know every piece of > Python information hiding in the web:-) You're welcome, I'm glad to help. As for the “hiding”, the answer is in the Python documentation itself. > see this question listed i

Re: please can i get help on this problem

2015-12-26 Thread Ben Finney
—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
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: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-28 Thread Ben Finney
| _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
beginner discussions to the ‘tutor’ https://mail.python.org/mailman/listinfo/tutor> forum. -- \ “All progress has resulted from people who took unpopular | `\ positions.” —Adlai Stevenson | _o__)

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

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

Re: using __getitem()__ correctly

2015-12-30 Thread Ben Finney
nt. You'll need to do some remedial learning of Python, and I recommend working through the Python tutorial. -- \“But it is permissible to make a judgment after you have | `\examined the evidence. In some circles it is even encouraged.” | _o__) —Carl

Re: using __getitem()__ correctly

2015-12-30 Thread Ben Finney
Steven D'Aprano 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 is not one of those languages

Validation in Python (was: raise None)

2015-12-30 Thread Ben Finney
w Don't Repeat Yourself in code that needs a lot of validation of inputs. -- \ “It's my belief we developed language because of our deep inner | `\ need to complain.” —Jane Wagner, via Lily Tomlin | _o__)

Re: raise None

2015-12-30 Thread Ben Finney
ception. 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: using __getitem()__ correctly

2015-12-31 Thread Ben Finney
"Charles T. Smith" 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 items. > > I understand this to me

Re: raise None

2015-12-31 Thread Ben Finney
Given how very often such decisions make my debugging tasks needlessly difficult, I'm not seeing how that's a desirable feature. -- \ “Firmness in decision is often merely a form of stupidity. It | `\indicates an inability to think the same thing out twice.” | _o__)

Re: Where are we in the Python 3 transition?

2015-12-31 Thread Ben Finney
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: raise None

2015-12-31 Thread Ben Finney
Chris Angelico writes: > On Fri, Jan 1, 2016 at 7:18 AM, Ben Finney wrote: > > Given how very often such decisions make my debugging tasks > > needlessly difficult, I'm not seeing how that's a desirable feature. > > What Steven's actually advocating is re

Re: We will be moving to GitHub

2016-01-01 Thread Ben Finney
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__) Marquis | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

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: Trailing zeros of 100!

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

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

2016-01-02 Thread Ben Finney
Michael Torrie 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, it is. > There'

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

2016-01-03 Thread Ben Finney
here'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
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, _The Simpson

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

2016-01-03 Thread Ben Finney
Chris Angelico writes: > On Sun, Jan 3, 2016 at 7:45 PM, Ben Finney wrote: > > Anyone can take email data from the email server, migrate it to a > > different implementation of the same email system, keep it running > > with the same data and allow the same people to

Re: What use of 'sum' in this line code?

2016-01-03 Thread Ben Bacarisse
ng ten 0/1 elements. Thus the map(sum, ...) call does have an array or array to work with. [Not being a Python expect I've probably got some of the terminology wrong but I hope the gist of it clear.] -- Ben. -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a way importing a string object?

2016-01-04 Thread Ben Finney
rence 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: Is '*args' useful in this example code?

2016-01-04 Thread Ben Finney
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/listinfo/python-list

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

2016-01-04 Thread Ben Finney
Robert 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 info previously. >

Re: licenses

2016-01-09 Thread Ben Finney
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__) | Ben F

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

2016-01-17 Thread Ben Finney
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: Single format descriptor for list

2016-01-20 Thread Ben Finney
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__) —Russell Blackford, 2010-03-06 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: How to simulate C style integer division?

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

<    10   11   12   13   14   15   16   17   18   19   >