Re: Unexpected scientific notation

2009-01-07 Thread Ben Finney
Lily Tomlin | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Distutils, bdist_XXX, rpmbuild issues

2009-01-07 Thread Ben Finney
without complicated algorithms? -- \ “A fine is a tax for doing wrong. A tax is a fine for doing | `\ well.” —anonymous | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Replying to list messages (was: Unexpected scientific notation)

2009-01-07 Thread Ben Finney
whether machines can think … is about as | `\ relevant as the question of whether submarines can swim.” | _o__) —Edsger W. Dijkstra | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Replying to list messages

2009-01-07 Thread Ben Finney
Paul McNett writes: > Ben Finney wrote: > > For Thunderbird (which I see you're using, Paul), the open bug > > report is > > https://bugzilla.mozilla.org/show_bug.cgi?id=45715>. > > Meanwhile, you can install an add-on to provide the function >

Re: Dict Comprehension ?

2008-10-06 Thread Ben Finney
em unless they actually *do* clarify the code; sometimes an explicit looping construct is clearer. -- \“Like the creators of sitcoms or junk food or package tours, | `\ Java's designers were consciously designing a product for | _o__) people not as smart as them.” —Paul Graham | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Is PyFIT dead and abandoned?

2008-10-06 Thread Ben Finney
| `\ —Henry L. Mencken | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: The recent SPAM messages, and a suggested solution

2008-10-06 Thread Ben Finney
e rather refers to the Hormel Foods product. -- \ “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?” —_Pinky and The Brain_ | Ben Finney -- http://

Python pre-release announcements (was: Python 2.5.3: call for patches)

2008-10-07 Thread Ben Finney
anywhere near the place.” —Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Python pre-release announcements

2008-10-07 Thread Ben Finney
Terry Reedy <[EMAIL PROTECTED]> writes: > Ben Finney wrote: > > Can I request, in the interest of reducing confusion, that any > > announcements of pre-release versions of 2.5.3 (or any other > > Python release) be announced *without* saying “RELEASED: A > > not

Re: Array of dict or lists or ....?

2008-10-07 Thread Ben Finney
—Ambrose Bierce, _The Devil's Dictionary_, 1906 | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Python pre-release announcements

2008-10-07 Thread Ben Finney
27;ve got the brain of a four-year-old boy, and I'll bet he | `\ was glad to get rid of it.” —Groucho Marx | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Python pre-release announcements

2008-10-08 Thread Ben Finney
and he ran around | _o__) in circles.” —Steven Wright | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Safe eval of insecure strings containing Python data structures?

2008-10-08 Thread Ben Finney
whatever) *any* instruction from an untrusted path; especially not arbitrary data from an input stream. -- \ “A hundred times every day I remind myself that […] I must | `\ exert myself in order to give in the same measure as I have | _o__)received and am still rece

Re: List Order of Initialization

2008-10-10 Thread Ben Finney
you know.” —Sassan Tat | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Python Project Structure

2008-10-10 Thread Ben Finney
s relative imports http://www.python.org/dev/peps/pep-0328>. See the “Timeline” section in that PEP for what import behaviour to expect under different Python versions. -- \ “Contentment is a pearl of great price, and whosoever procures | `\it at the expense of ten

Re: Question

2008-10-14 Thread Ben Finney
s and then *write some* yourself, present it here, and we can discuss it in public for the benefit of all. -- \ “Yesterday I told a chicken to cross the road. It said, ‘What | `\ for?’” —Steven Wright | _o__)

Re: python3 - the hardest hello world ever ?

2008-10-14 Thread Ben Finney
n1 : -- \ “Pinky, are you pondering what I'm pondering?” “I think so, | `\Brain, but don't you need a swimming pool to play Marco Polo?” | _o__) —_Pinky and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Unittest - adding a doctest suite to unittest.main

2008-10-14 Thread Ben Finney
e default search for individual test functions. -- \ “Remember: every member of your ‘target audience’ also owns a | `\ broadcasting station. These ‘targets’ can shoot back.” —Michael | _o__) Rathbun to advertisers, news.admin.net-abuse.email | Ben Finney -- http://mail.python.

Loosely-coupled development environment (was: IDE Question)

2008-10-15 Thread Ben Finney
x27;m pondering?” “I think so, | `\Brain, but I find scratching just makes it worse.” —_Pinky and | _o__) The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Loosely-coupled development environment

2008-10-15 Thread Ben Finney
\ “If I had known what it would be like to have it all... I might | `\ have been willing to settle for less.” —Jane Wagner, via Lily | _o__) Tomlin | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: messages from pylint - need some reasoning

2008-10-17 Thread Ben Finney
derstanding it.” —Upton Sinclair, | _o__) 1935 | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Python certification

2008-10-17 Thread Ben Finney
table.” —John | _o__)Kenneth Galbraith, 1962-03-02 | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Loosely-coupled development environment

2008-10-18 Thread Ben Finney
Jorgen Grahn <[EMAIL PROTECTED]> writes: > On Thu, 16 Oct 2008 07:47:36 +1100, Ben Finney <[EMAIL PROTECTED]> wrote: > > Instead, I find the greater gain comes from a working environment > > of *loosely-coupled* tools, with standard well-defined interfaces, > &g

Re: indentation

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

Re: a question about Chinese characters in a Python Program

2008-10-20 Thread Ben Finney
there yet and it would be a grave mistake for Python to falsely behave as though we were. -- \ “I went to a fancy French restaurant called ‘Déjà Vu’. The head | `\ waiter said, ‘Don't I know you?’” —Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: How to execute a makefile from LINUX system.

2008-10-20 Thread Ben Finney
es.” —Steven Wright | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: a question about Chinese characters in a Python Program

2008-10-21 Thread Ben Finney
red and green and has bells on it, and the ends | _o__) curl up.” —Steven Wright | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: IRC

2008-10-21 Thread Ben Finney
org/> useful. -- \ “Pinky, are you pondering what I'm pondering?” “I think so, | `\Brain, but this time *you* put the trousers on the chimp.” | _o__) —_Pinky and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: a question about Chinese characters in a Python Program

2008-10-21 Thread Ben Finney
John Machin <[EMAIL PROTECTED]> writes: > On Oct 21, 11:03 pm, Ben Finney <[EMAIL PROTECTED]> > wrote: > > John Machin <[EMAIL PROTECTED]> writes: > > > I don't understand the point or value of filtering out all byte values > > > greater th

Re: Porting VB apps to Python for Window / Linux use

2008-10-26 Thread Ben Finney
d. It said, ‘What | `\ for?’” —Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: "xxx.has_key(a)" vs "a in xxx"

2008-10-30 Thread Ben Finney
\ “The most common of all follies is to believe passionately in | `\the palpably not true. It is the chief occupation of mankind.” | _o__) —Henry L. Mencken | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Restricted Execution of untrusted code

2008-11-02 Thread Ben Finney
rpose. -- \“You can't have everything; where would you put it?” —Steven | `\ Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Structures

2008-11-03 Thread Ben Finney
her way, how would we ride a bicycle?” | _o__) —_Pinky and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: length of a tuple or a list containing only one element

2008-11-03 Thread Ben Finney
t;>> type( ('foo') ) However, for making a literal list, the brackets do matter: >>> type( ['foo', 'bar'] ) >>> type( ['foo',] ) >>> type( ['foo'] ) -- \ “The way to build larg

Re: Structures

2008-11-03 Thread Ben Finney
"Paulo J. Matos" <[EMAIL PROTECTED]> writes: > On Mon, Nov 3, 2008 at 12:32 PM, Ben Finney > <[EMAIL PROTECTED]> wrote: > > I'm wondering a more fundamental question: What are structures? > > That is, what do *you* mean by that term; without k

Re: How do I find the memory used by a python process

2008-11-03 Thread Ben Finney
nputs each time? -- \ “The right to use [strong cryptography] is the right to speak | `\ Navajo.” —Eben Moglen | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Which PostgreSQL adapter to use?

2008-11-04 Thread Ben Finney
To The Galaxy_, Douglas | _o__) Adams | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: False and 0 in the same dictionary

2008-11-04 Thread Ben Finney
n't have it installed)? Is there a later PEP that I've missed which finally makes ‘bool’ a type independent from ‘int’? -- \ “A ‘No’ uttered from deepest conviction is better and greater | `\ than a ‘Yes’ merely uttered to please, or what is worse, to | _o__) avoid trouble.” —Mahatma Gandhi | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a better/simpler way to filter blank lines?

2008-11-04 Thread Ben Finney
ation creates a generator; so it, too, won't need to load all the lines in memory at the same time -- \“Program testing can be a very effective way to show the | `\presence of bugs, but is hopelessly inadequate for showing | _o__) their a

Re: Is there a better/simpler way to filter blank lines?

2008-11-04 Thread Ben Finney
end because the file is finite size) never end, so feeding them to a constructor this way will never return. -- \ “It is far better to grasp the universe as it really is than to | `\persist in delusion, however satisfying and reassuring.” —Carl | _o__)

Re: Is there a better/simpler way to filter blank lines?

2008-11-04 Thread Ben Finney
xpression from surrounding syntax. -- \ “bash awk grep perl sed, df du, du-du du-du, vi troff su fsck | `\ rm * halt LART LART LART!” —The Swedish BOFH, | _o__)alt.sysadmin.recovery | Ben Finney -- http://mail.python.or

Re: Is there a better/simpler way to filter blank lines?

2008-11-04 Thread Ben Finney
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes: > On Wed, 05 Nov 2008 12:06:42 +1100, Ben Finney wrote: > > > Falcolas <[EMAIL PROTECTED]> writes: > > > >> Using the surrounding parentheses creates a generator object > > > >

Re: Is there a better/simpler way to filter blank lines?

2008-11-04 Thread Ben Finney
important that you do it.” —Mahatma Gandhi | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a better/simpler way to filter blank lines?

2008-11-04 Thread Ben Finney
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes: > On Wed, 05 Nov 2008 13:18:27 +1100, Ben Finney wrote: > > > Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes: > > > > Your example shows only that they're important for g

Re: Rewriting a bash script in python

2008-11-04 Thread Ben Finney
ful approach than trying to force-fit object-orientation to this procedural problem. -- \ “Some mornings, it's just not worth chewing through the leather | `\ straps.” —Emo Philips | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a better/simpler way to filter blank lines?

2008-11-05 Thread Ben Finney
calls with only one argument. It's a fair cop. Thanks for setting me straight. -- \ “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

Re: How to re-import a function from a module?

2008-11-05 Thread Ben Finney
ney’.” —Jack Handey | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: More __init__ methods

2008-11-06 Thread Ben Finney
smethod(_from_string) del _from_string without the intermediate binding of the ‘_from_string’ name. -- \ “The best way to get information on Usenet is not to ask a | `\ question, but to post the wrong information.” —Aahz | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: More __init__ methods

2008-11-06 Thread Ben Finney
r’ classmethod factory functions for other cases. The caller then needs to specify which case is being requested. -- \ “I was in the first submarine. Instead of a periscope, they had | `\ a kaleidoscope. ‘We're surrounded.’” —Steven Wright | _o__)

Re: More __init__ methods

2008-11-06 Thread Ben Finney
\ “Friendship is born at that moment when one person says to | `\another, ‘What! You too? I thought I was the only one!’” —C.S. | _o__)Lewis | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: More __init__ methods

2008-11-06 Thread Ben Finney
Arnaud Delobelle <[EMAIL PROTECTED]> writes: > Ben Finney <[EMAIL PROTECTED]> writes: > [...] > > All you need to know to understand the above is that it will have > > essentially the same result as: > > > > class A(object): > >

Re: Finding the instance reference of an object [long and probably boring]

2008-11-06 Thread Ben Finney
TW -- \ Eccles: “I'll get [the job] too, you'll see. I'm wearing a | `\Cambridge tie.” Greenslade: “What were you doing there?” | _o__) Eccles: “Buying a tie.” —The Goon Show, _The Greenslade Story_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: is there really no good gui builder

2008-11-09 Thread Ben Finney
ted certainly encourages readers to make such a false interpretation. -- \ “I know you believe you understood what you think I said, but I | `\ am not sure you realize that what you heard is not what I | _o__) meant.” —Robert J. McCloskey | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: [Newbie] Strange output from list

2008-11-10 Thread Ben Finney
xy object to a string, it displays like a tuple. See the documentation for other ways of accessing various attributes of a ResultProxy object. -- \ “What is it that makes a complete stranger dive into an icy | `\ river to save a solid gold baby? Maybe we'll never know.” —Jack | _o__)

Re: [Newbie] Strange output from list

2008-11-10 Thread Ben Finney
My apologies, my response was rather confused. Ben Finney <[EMAIL PROTECTED]> writes: > The result of an SQL SELECT is a sequence of tuples, where each item > in the tuple is a value for a column as specified in the SELECT > clause. This remains true. No matter how many columns

Re: [Newbie] Strange output from list

2008-11-10 Thread Ben Finney
.” —Voltaire | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Are there any FOSS Python Single-Sign-on Servers?

2008-11-11 Thread Ben Finney
up all night playing poker with tarot cards. I got a | `\ full house and four people died.” —Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple question about Python lists

2008-11-11 Thread Ben Finney
saw a sign: ‘Rest Area 25 Miles’. That's pretty big. Some | `\ people must be really tired.” —Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Null object pattern (was: Python 3.0 - is this true?)

2008-11-11 Thread Ben Finney
s world 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 -- http://mail.python.org/mailman/listinfo/python-list

Re: Are there any FOSS Python Single-Sign-on Servers?

2008-11-11 Thread Ben Finney
- \ “He who allows oppression, shares the crime.” —Erasmus Darwin, | `\ grandfather of Charles Darwin | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: best python unit testing framwork

2008-11-11 Thread Ben Finney
7;t impact the usefulness of the tests themselves on machines that don't have ‘nose’ installed. -- \“Holy contributing to the delinquency of minors, Batman!” —Robin | `\ | _o__)

Re: Are there any FOSS Python Single-Sign-on Servers?

2008-11-11 Thread Ben Finney
s. Right, so you should be providing these OpenIDs and OAuth profiles as part of whatever other data collection and account set-up needs to be done. -- \ “If you make people think they're thinking, they'll love you; | `\ but if you really make them think, they'll hate you

Re: Simple question about Python lists

2008-11-11 Thread Ben Finney
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Wed, 12 Nov 2008 10:08:45 +1100, Ben Finney wrote: > > > Eric <[EMAIL PROTECTED]> writes: > >> In MATLAB, if I just want the first, fifth and eighth element I > >> might do something like this: >

Re: Are there any FOSS Python Single-Sign-on Servers?

2008-11-12 Thread Ben Finney
t;. Good hunting! -- \ “I can picture in my mind a world without war, a world without | `\ hate. And I can picture us attacking that world, because they'd | _o__) never expect it.” —Jack Handey | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: duck-type-checking?

2008-11-13 Thread Ben Finney
tel times anything will still give you Zero | _o__) Mostel.” —_Pinky and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: using "private" parameters as static storage?

2008-11-13 Thread Ben Finney
- \ “I hope that after I die, people will say of me: ‘That guy sure | `\owed me a lot of money’.” —Jack Handey | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: unittest exits

2008-11-13 Thread Ben Finney
`\ flying forward into the future, it's probably best to avoid eye | _o__) contact.” —Jack Handey | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: using "private" parameters as static storage?

2008-11-13 Thread Ben Finney
you need to use a specific tool to get there. Instead, you're being shown that your assumption is false: there's a better tool available to achieve your goal. -- \ “Why, I'd horse-whip you if I had a horse.” —Groucho Marx | `\

Re: Python and Its Libraries--Who's on First?

2008-11-17 Thread Ben Finney
ing Slinkies on the escalators.” —Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Restricted Execution of untrusted code

2008-11-18 Thread Ben Finney
as far as others, it is because giants were | `\ standing on my shoulders.” —Hal Abelson | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: strange permission issue with nosetests

2008-11-20 Thread Ben Finney
rebellious, and immature.” —Tom Robbins | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: strange permission issue with nosetests

2008-11-20 Thread Ben Finney
they do | `\it from religious conviction.” —Blaise Pascal (1623-1662), | _o__) Pensées, #894. | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3 __cmp__ semantic change?

2008-11-20 Thread Ben Finney
comparisons are different in Python 3.0? -- \ “[Entrenched media corporations will] maintain the status quo, | `\ or die trying. Either is better than actually WORKING for a | _o__) living.” —ringsnake.livejournal.com, 2007-11-12 | Ben Finney -- http://mail.pyt

Re: Code in __init__.py, is it bad form?

2009-02-23 Thread Ben Finney
__) other enemas...” —Emo Philips | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: 'u' Obselete type – it is identical to 'd'. (7)

2009-02-24 Thread Ben Finney
Lord, make my enemies ridiculous!’ And God granted it.” | _o__) —Voltaire | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: what does this mean....?

2009-02-28 Thread Ben Finney
ead or my watch has stopped.” —Groucho Marx | `\ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about binary file reading

2009-03-04 Thread Ben Finney
“Pinky, are you pondering what I'm pondering?” “Wuh, I think | `\ so, Brain, but wouldn't anything lose its flavor on the bedpost | _o__) overnight?” —_Pinky and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about binary file reading

2009-03-04 Thread Ben Finney
“Pinky, are you pondering what I'm pondering?” “I think so, | `\ Brain, but if it was only supposed to be a three hour tour, why | _o__) did the Howells bring all their money?” —_Pinky and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: How to import Python files in the other directories?

2009-03-05 Thread Ben Finney
s.html#sys.path>, to have an entry for each path you want to be searched when importing a module. -- \ “The right to use [strong cryptography] is the right to speak | `\ Navajo.” —Eben Moglen | _o__)

Re: Modify an exception before re-raising it

2009-03-06 Thread Ben Finney
standard IIRC. No need to re-write the entire ‘args’. -- \“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 -- h

Re: Can Python do shopping cart?

2009-03-06 Thread Ben Finney
ard Buckminster Fuller, | `\ _Shelter_, 1932 | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: how to prevent python import from looking into the current directory

2009-03-06 Thread Ben Finney
ps/pep-0328/>. -- \ “All my life I've had one dream: to achieve my many goals.” | `\—Homer, _The Simpsons_ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Dao, the official 1.0 version is released

2009-03-06 Thread Ben Finney
-- \“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 Wright | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Dao, the official 1.0 version is released

2009-03-07 Thread Ben Finney
`\ danger, screaming and tripping and begging for mercy, then yes, | _o__) Mr. Brave man, I guess I'm a coward.” —Jack Handey | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: "/a" is not "/a" ?

2009-03-09 Thread Ben Finney
ven remotely true!” —Homer, _The Simpsons_ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

PEP 3143: Standard daemon process library (was: Writing a well-behaved daemon)

2009-03-20 Thread Ben Finney
Ben Finney writes: > Writing a Python program to become a Unix daemon is relatively > well-documented: there's a recipe for detaching the process and > running in its own process group. However, there's much more to a > Unix daemon than simply detaching. […] > My search

Re: PEP 3143: Standard daemon process library

2009-03-20 Thread Ben Finney
Ben Finney writes: > I've submitted PEP 3143 http://www.python.org/dev/peps/pep-3143/> > to meet this need, and have re-worked an existing library into a new > ‘python-daemon’ http://pypi.python.org/pypi/python-daemon/> > library, the reference implementation. > >

Re: PEP 3143: Standard daemon process library

2009-03-21 Thread Ben Finney
Claus is missing.” —Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3143: Standard daemon process library

2009-03-21 Thread Ben Finney
\ “Science shows that belief in God is not only obsolete. It is | `\also incoherent.” —Victor J. Stenger, 2001 | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3143: Standard daemon process library

2009-03-23 Thread Ben Finney
27;t setting the EUID and EGID something that is just as easily done *after* the program achieves a daemon process? -- \“If it ain't bust don't fix it is a very sound principle and | `\ remains so despite the fact that I have slavishly ignored it | _o__) all my life.” —Douglas Adams | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: Bash-like brace expansion

2009-03-24 Thread Ben Finney
7;m pondering?” “I think so, Brain, but | `\why would anyone want a depressed tongue?” —_Pinky and The | _o__) Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3143: Standard daemon process library

2009-03-24 Thread Ben Finney
Jean-Paul Calderone writes: > On Tue, 24 Mar 2009 15:42:46 +1100, Ben Finney > wrote: > >That sounds rather more specific than is needed for the generic > >library being proposed here. I'm wary of adding features to an API > >that is already quite complex. >

Re: Python 3 consistency proposal

2009-03-24 Thread Ben Finney
nefit in changing it. -- \“The number of UNIX installations has grown to 10, with more | `\ expected.” —Unix Programmer's Manual, 2nd Ed., 1972-06-12 | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3143: Standard daemon process library

2009-03-25 Thread Ben Finney
Ben Finney writes: > I've submitted PEP 3143 > http://www.python.org/dev/peps/pep-3143/> to meet this need, > and have re-worked an existing library into a new ‘python-daemon’ > http://pypi.python.org/pypi/python-daemon/> library, the > reference implementation. > &

Re: PID lockfile (was: PEP 3143: Standard daemon process library)

2009-03-26 Thread Ben Finney
(replying in ‘comp.lang.python’ for wider feedback on this issue) On 26-Mar-2009, Francis Irving wrote: > On Thu, Mar 26, 2009 at 12:51:06AM +1100, Ben Finney wrote: > > The ‘python-daemon’ distribution includes a module, > > ‘daemon.pidlockfile’. The ‘daemon.pidlockfile.PIDLoc

Re: PID lockfile

2009-03-26 Thread Ben Finney
Ben Finney writes: > (replying in ‘comp.lang.python’ for wider feedback on this issue) > > On 26-Mar-2009, Francis Irving wrote: > > ourlockfile.path = '/tmp/mydaemon.pid' > > context = daemon.DaemonContext( > > pidfile=ourlockfile, > &g

Re: Code anntotations (copyright, autor, etc) in your code

2009-03-26 Thread Ben Finney
plit()[2] The version of my works is usually a string that is set and changed manually and persists over many revisions, not something derived from the VCS. Here's a typical module header of mine: = $ cat gracie/server.py # -*- coding: utf-8 -*- # gracie/server.py # Part of Gracie, an

Re: PID lockfile

2009-03-28 Thread Ben Finney
a...@pythoncraft.com (Aahz) writes: > In article <87iqlwvemo@benfinney.id.au>, > Ben Finney wrote: > >In the case of the ‘lockfile’ library, Skip is aiming for a > >cross-platform solution, with atomic behaviour; he has implemented > >lock acquisition with

Re: PID lockfile

2009-03-28 Thread Ben Finney
modate it. -- \ “People come up to me and say, ‘Emo, do people really come up | `\to you?’” —Emo Philips | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

Re-raising exceptions with a different type and message, preserving existing information

2009-03-29 Thread Ben Finney
_o__) Ingersoll, _The Liberty of Man, Woman and Child_, 1877 | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list

<    26   27   28   29   30   31   32   33   34   35   >