Re: Just finished reading of What’s New In Python 3.0

2011-03-14 Thread D'Arcy J.M. Cain
trolls. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python fails on math

2011-02-24 Thread D'Arcy J.M. Cain
J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter polling example: file copy with progress bar

2010-12-14 Thread D'Arcy J.M. Cain
for a more portable version. I guess I missed the beginning of this thread but can someone tell me why one needs to download a whole other program in order to do this? open(out_fn, 'w').write(open(in_fn).read()) -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http

Re: Tkinter polling example: file copy with progress bar

2010-12-14 Thread D'Arcy J.M. Cain
On Tue, 14 Dec 2010 16:25:54 + (UTC) Harishankar v.harishan...@gmail.com wrote: On Tue, 14 Dec 2010 10:57:40 -0500, D'Arcy J.M. Cain wrote: open(out_fn, 'w').write(open(in_fn).read()) Or what about shutil? Isn't that the higher level file operation module? At least that's

Re: Comparison with False - something I don't understand

2010-12-04 Thread D'Arcy J.M. Cain
out. So far it doesn't seem too bad. Open minds are good. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman

Re: Backup postgresql database from python

2010-12-04 Thread D'Arcy J.M. Cain
as to the requirements. Any other details would be good too. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo

Re: sqlite autoincrement of primary key

2010-11-29 Thread D'Arcy J.M. Cain
On Mon, 29 Nov 2010 13:19:19 -0500 Mel mwil...@the-wire.com wrote: tinauser wrote: '''INSERT INTO foo VALUES (NULL, ?)''' Does this work in SQLite: INSERT INTO foo (name) VALUES ('xxx') That's the standard SQL way. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves

Re: sqlite autoincrement of primary key

2010-11-29 Thread D'Arcy J.M. Cain
missed that. However reading the OP's message I am still confused. How does removing the field name and adding a positional NULL or None improve readability. I now wonder if it was more of an assignment requirement rather than a real one. -- D'Arcy J.M. Cain da...@druid.net

Re: Scheme as a virtual machine?

2010-11-23 Thread D'Arcy J.M. Cain
investigated Haskell before choosing to focus on CL. That would make his opinion carry more weight, not less. Remind me, how is this relevant to Python? -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1

Re: Learning Pyhton - Functional Programming - How intersect/difference two dict with dict/values? fast!

2010-11-09 Thread D'Arcy J.M. Cain
. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list

Re: http error 301 for urlopen

2010-11-07 Thread D'Arcy J.M. Cain
to find the problem. You may have to put in a bug request with the New York Times. Good luck with that. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's

Re: Silly newbie question - Carrot character (^)

2010-11-06 Thread D'Arcy J.M. Cain
a new reference manual? How about just that one section on operators that's missing from the tutorial. Remember, Python is we, not they. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212

Re: Silly newbie question - Carrot character (^)

2010-11-05 Thread D'Arcy J.M. Cain
caret, not carrot. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list

Re: Compare source code

2010-11-05 Thread D'Arcy J.M. Cain
offering no solutions. Why would I since I don't see a problem? -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org

Re: Compare source code

2010-11-05 Thread D'Arcy J.M. Cain
On 05 Nov 2010 20:14:47 GMT Seebs usenet-nos...@seebs.net wrote: I can just see how well this attitude must work in other circumstances: I guess this message ends the topic for me. Bye. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy

Re: Compare source code

2010-11-04 Thread D'Arcy J.M. Cain
the same reason. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list

Re: Compare source code

2010-11-04 Thread D'Arcy J.M. Cain
that the breakage is somewhat friendlier to some types of files is interesting but irrelevant. What would you say to a file transfer program that changed Word documents? What about executable files? -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy

Re: Compare source code

2010-11-04 Thread D'Arcy J.M. Cain
On Thu, 4 Nov 2010 19:37:25 + (UTC) Tim Harig user...@ilthio.net wrote: On 2010-11-04, D'Arcy J.M. Cain da...@druid.net wrote: You are the one who seems to be on a crusade against against braces. It You totally misunderstand me. I am not on a crusade of any sort. I am happy with Python

Re: Best method for a menu in a command line program?

2010-11-04 Thread D'Arcy J.M. Cain
a matter of not knowing or caring how to change the default. Mine says Sent from my brain. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner

Re: What people are using to access this mailing list

2010-11-03 Thread D'Arcy J.M. Cain
. Failing that look for a forum dedicated to your email client. There is nothing specific about Python in this regard. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082

Re: What people are using to access this mailing list

2010-11-03 Thread D'Arcy J.M. Cain
would have got a more focussed response. This applies to asking any questions here or elsewhere. The more information you provide in your question, the more relevant the responses will be. By the way, I am seeing two copies of every message from you. How are you posting? -- D'Arcy J.M. Cain da

Re: Compare source code

2010-11-02 Thread D'Arcy J.M. Cain
On 02 Nov 2010 17:58:06 GMT Seebs usenet-nos...@seebs.net wrote: On 2010-11-02, D'Arcy J.M. Cain da...@druid.net wrote: No one knows why email is being magically transformed? Yay for a large company IT department with both MS and Blackberry stuff involved. Large is no excuse

Re: Compare source code

2010-11-02 Thread D'Arcy J.M. Cain
is right. However, there is a use for such comments: if foo: bar else: baz if snafu: cookie #endif snafu quux #endif foo Useful in more complicated code, of course. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three

Re: Compare source code

2010-11-02 Thread D'Arcy J.M. Cain
On Wed, 3 Nov 2010 00:41:46 + (UTC) Tim Harig user...@ilthio.net wrote: On 2010-11-02, D'Arcy J.M. Cain da...@druid.net wrote: Actually, I have found similar markers to be useful everywhere. I don't like the way my editor tries to fold Python code, so I started inserting folding markers

Re: Compare source code

2010-11-02 Thread D'Arcy J.M. Cain
to jump to the other end of a block.) But I can see the other end of the block in Python. I don't need any tricks to make sure that it is the end. And if your block is too big to see the structure easily then that just means that some code should be factored out to a method. -- D'Arcy J.M. Cain

Re: Would you recommend python as a first programming language?

2010-11-01 Thread D'Arcy J.M. Cain
On Sat, 30 Oct 2010 19:16:10 + brad...@hotmail.com wrote: I was thinking of recommending this to a friend but what do you all think? Of course! But then, what did you expect from this group. :-) -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net

Re: Compare source code

2010-11-01 Thread D'Arcy J.M. Cain
even see the problem because it's hidden in a badly defined macro. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org

Re: stdout in subprocess

2010-10-27 Thread D'Arcy J.M. Cain
2.py prints correct value. ### 1.py ## from subprocess import * out = open('foo.t', 'w') a = Popen('ls -l', shell = True, stdout = out) If you drop the a = part it will work. If you need the object then simply delete it (del a) when you are done with it. -- D'Arcy J.M. Cain da

Re: Generating PDF file in Python

2010-10-26 Thread D'Arcy J.M. Cain
, there is always reportlab. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with sets

2010-10-12 Thread D'Arcy J.M. Cain
article for a discussion of the word's application to computer science. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http

Re: Testing for changes on a web page (was: how to find difference in number of characters)

2010-10-09 Thread D'Arcy J.M. Cain
answer you would for a given set of inputs. Better yet, write the unit tests for us. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner

Re: SQLite is quite SQL compliant

2010-10-02 Thread D'Arcy J.M. Cain
a few bits of SQL functionality, I'd call it perhaps a slightly incomplete implementation rather than a nonstandard variant. If you are looking for better wording I suggest ...an almost complete implementation... instead. Sounds more positive. -- D'Arcy J.M. Cain da...@druid.net

Re: Python in Linux - barrier to Python 3.x

2010-09-21 Thread D'Arcy J.M. Cain
default and you can use .pth files to have separate local libraries. Pkgsrc is designed to run on all OSs including Linux distros. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD

Re: State Machines in Python

2010-09-04 Thread D'Arcy J.M. Cain
In state 3, counter = %(counter)d % d return state1 state = state1 while True: state = state(data) -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's

Re: State Machines in Python

2010-09-04 Thread D'Arcy J.M. Cain
. for example, in my sample code every state uses the counter but only two states use the flag element. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner

Re: State Machines in Python

2010-09-04 Thread D'Arcy J.M. Cain
On Sat, 04 Sep 2010 19:13:28 +0100 MRAB pyt...@mrabarnett.plus.com wrote: I suppose that if they are that similar then you could generate the code from a list or table of the states. They generally aren't as simple as the little example script that I cobbled together. -- D'Arcy J.M. Cain da

Customizing cgitb

2010-09-02 Thread D'Arcy J.M. Cain
is abridging the value. I need to see all of the variables in the dictionary. Is there any way I can wrap cgitb and get the behaviour I want or do I have to write my own method for sys.excepthook? -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy

Re: Customizing cgitb

2010-09-02 Thread D'Arcy J.M. Cain
with the internals of modules imported by a module. I'll give it a shot though. import pydoc def cram(text, maxlen): return text pydoc.cram = cram Or... import pydoc pydoc.cram = lambda text,maxlen: text Thanks. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http

Re: palindrome iteration

2010-08-28 Thread D'Arcy J.M. Cain
at a cost of very little code. It seems unnecessary to me. Even if you can't figure it out through simple inspection, it takes seconds to fire up Python and type print 'abc'[::-1] into it to see what that does. Then you have another tool in your toolbox. -- D'Arcy J.M. Cain da...@druid.net

Re: palindrome iteration

2010-08-27 Thread D'Arcy J.M. Cain
On Fri, 27 Aug 2010 11:49:42 -0400 D'Arcy J.M. Cain da...@druid.net wrote: is_palindrome = lambda x: x == x.lower()[::-1] Oops. Simple and wrong. is_palindrome = lambda x: x.lower() == x.lower()[::-1] -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http

Re: palindrome iteration

2010-08-27 Thread D'Arcy J.M. Cain
? is_palindrome = lambda x: len(x) 0 and x == x.lower()[::-1] Note that the above assumes that single characters are palindromes but empty strings are not. I'm not 100% sure that that last is true. If not then this can be simplified. is_palindrome = lambda x: x == x.lower()[::-1] -- D'Arcy J.M. Cain da

Re: palindrome iteration

2010-08-27 Thread D'Arcy J.M. Cain
On Fri, 27 Aug 2010 12:02:39 -0400 D'Arcy J.M. Cain da...@druid.net wrote: On Fri, 27 Aug 2010 11:49:42 -0400 D'Arcy J.M. Cain da...@druid.net wrote: is_palindrome = lambda x: x == x.lower()[::-1] Oops. Simple and wrong. is_palindrome = lambda x: x.lower() == x.lower()[::-1] slightly

Re: Overload print

2010-08-25 Thread D'Arcy J.M. Cain
(): ... def __repr__(self): ... return hello ... x = foo_class() x hello -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http

Re: psycopg2 for insertion of binary data to PostgreSQL database

2010-08-21 Thread D'Arcy J.M. Cain
/except altogether and see what the traceback says. That may explain your problem right off the bat. If it doesn't then repost with the traceback. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416

Re: 79 chars or more?

2010-08-18 Thread D'Arcy J.M. Cain
format) 2010/9/1 2010 9 1 12/25/2010 25/12/2010 2010/12/25 It fails on the following. sep 31 2010 (impossible) 2010/25/12 (impossible - Y/D/M never happens) 9/1/2010 (ambiguous - there is no consistiency when year is last field) foo (not a date) -- D'Arcy J.M. Cain da...@druid.net

Re: 79 chars or more?

2010-08-18 Thread D'Arcy J.M. Cain
On Wed, 18 Aug 2010 10:57:00 +0200 Jean-Michel Pichavant jeanmic...@sequans.com wrote: D'Arcy J.M. Cain wrote: You can extend this if there are complicated sub-calls. Probably overkill for this example but here is the idea. self.expiration_date = translate_date

Re: 79 chars or more?

2010-08-17 Thread D'Arcy J.M. Cain
( find( response, 'MPNExpirationDate', ).text, '%Y-%m-%d', '%m%d%Y' ) I also moved the closing brace down to align with the line that opened that block. -- D'Arcy J.M. Cain da...@druid.net | Democracy

Re: Opposite of split

2010-08-16 Thread D'Arcy J.M. Cain
tried first. Some questions have been asked and answered so many times that a search of the archives finds what you want without waiting for an answer. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1

Re: Opposite of split

2010-08-16 Thread D'Arcy J.M. Cain
the solution is 2 pages of code. In Python it is 8 lines. Beautiful! I guess the real entry level test here is that you have to be smart enough to choose Python since it is the best language. You pass. :-) -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy

Re: Opposite of split

2010-08-15 Thread D'Arcy J.M. Cain
of time because I knew that twenty people would jump in with the correct answer because of finally, one that I can answer syndrome. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD

Re: Long rant about Python in Education

2010-08-12 Thread D'Arcy J.M. Cain
stopped reading your message and added you to my blacklist. Goodbye. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http

Re: Python why questions

2010-08-10 Thread D'Arcy J.M. Cain
On Tue, 10 Aug 2010 13:51:17 +0200 Jean-Michel Pichavant jeanmic...@sequans.com wrote: Pardon the response to the response. I missed Ben's message. Ben Finney wrote: D'Arcy J.M. Cain da...@druid.net writes: No. You are giving me math and logic but the subject was common sense

Re: Python why questions

2010-08-07 Thread D'Arcy J.M. Cain
dictates differently and there might be confusion why the second element in a list has index 1. Would said beginner also be surprised that a newborn baby is zero years old or would it be more natural to call them a one year old? Zero based counting is perfectly natural. -- D'Arcy J.M. Cain da

Re: Python why questions

2010-08-07 Thread D'Arcy J.M. Cain
, etc.) would be the unnatural thing, would confuse Aunt Martha and make her spoil her apple pie and no one wants that. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082

Re: measuring a function time

2010-07-29 Thread D'Arcy J.M. Cain
() print time() - t, clock() 0.000596046447754 0.03 sleep(3) print time() - t, clock() 3.03474903107 0.03 x = open(BIGFILE).read() print time() - t, clock() 10.2008538246 1.42 -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy

Re: Cannot send email

2010-07-15 Thread D'Arcy J.M. Cain
on a list dedicated to administrating email. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-06 Thread D'Arcy J.M. Cain
officially supports 2.3 and up. That means that we can't use from __future__. We might be able to bump that to 2.4 in the next release but I wouldn't want to jump all the way to 2.6 in one version release. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread D'Arcy J.M. Cain
could get started on the transition sooner. Or is there no change at the C level? That would make things easy. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP

Re: Lua is faster than Fortran???

2010-07-04 Thread D'Arcy J.M. Cain
certainly wouldn't say no to a faster Python :) Ditto, ditto, ditto and ditto. It's not like this is a race, and speed is not the only thing which a language is judged by. Otherwise you'd be programming in C, not Python, right? Or assembler. -- D'Arcy J.M. Cain da...@druid.net

Re: Lua is faster than Fortran???

2010-07-04 Thread D'Arcy J.M. Cain
On Sun, 4 Jul 2010 23:46:10 +0900 David Cournapeau courn...@gmail.com wrote: On Sun, Jul 4, 2010 at 11:23 PM, D'Arcy J.M. Cain da...@druid.net wrote: Which is 99% of the real-world applications if you factor out the code already written in C or other compiled languages. This may be true

Re: Lua is faster than Fortran???

2010-07-04 Thread D'Arcy J.M. Cain
On Sat, 3 Jul 2010 20:30:30 -0700 (PDT) sturlamolden sturlamol...@yahoo.no wrote: CPython 64.6 By the way, I assume that that's Python 2.x. I wonder how Python 3.1 would fare. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy

Re: The real problem with Python 3 - no business case for conversion

2010-07-03 Thread D'Arcy J.M. Cain
? -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list

Re: The real problem with Python 3 - no business case for conversion

2010-07-03 Thread D'Arcy J.M. Cain
below the 2.6 one. The page is generated from pkg_info(1) and includes everything we have installed from FreeBSD ports. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082

Re: The real problem with Python 3 - no business case for conversion

2010-07-03 Thread D'Arcy J.M. Cain
On 03 Jul 2010 14:24:49 GMT Steven D'Aprano st...@remove-this-cybersource.com.au wrote: Pfft! Facts! You can prove anything you like with facts! Argumentum ad Dragnet? -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy

Re: The real problem with Python 3 - no business case for conversion

2010-07-03 Thread D'Arcy J.M. Cain
isn't very useful. Well, it isn't useless. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-02 Thread D'Arcy J.M. Cain
On 2 Jul 2010 15:00:17 -0700 a...@pythoncraft.com (Aahz) wrote: 5. Get at least two major hosting services to put up Python 3. webfaction.com has python3.1 So does http://www.Vex.Net/ so there's your two. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves

Re: Ignorance and Google Groups (again)

2010-07-01 Thread D'Arcy J.M. Cain
...@websiteburo.invalid -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list

Re: Ignorance and Google Groups (again)

2010-07-01 Thread D'Arcy J.M. Cain
miss you if you won't go away. :-) As I explained, I don't block just because you are on gmail.com. I only block if you use Google Groups to post via news. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting

Re: Ignorance and Google Groups (again)

2010-06-30 Thread D'Arcy J.M. Cain
in the procmail recipe I will be using, here it is in all it's glory. :0: Hir * ^List-Id:.*python-list.python.org * ^From:@gmail.com * ^Newsgroups: /dev/null Cheers. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep

Re: Ignorance and Google Groups (again)

2010-06-30 Thread D'Arcy J.M. Cain
through the news gateway. People sending from gmail.com directly to the mailing list don't get picked up. I'm pretty sure that that defines everyone using Google Groups only. I am definitely open to correction though. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http

Re: Ignorance and Google Groups (again)

2010-06-30 Thread D'Arcy J.M. Cain
On Wed, 30 Jun 2010 17:25:55 -0400 geremy condra debat...@gmail.com wrote: If you get this, you get the gmail-but-not-google-groups stuff. Hello. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416

Re: Ignorance and Google Groups (again)

2010-06-30 Thread D'Arcy J.M. Cain
On Wed, 30 Jun 2010 14:18:55 -0700 Stephen Hansen me+list/pyt...@ixokai.io wrote: Okay, un-Bye :) Nice to be back. :-) -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread D'Arcy J.M. Cain
need to capture the output and parse it. Look at the subprocess module. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http

Re: value of: None is None is None

2010-06-26 Thread D'Arcy J.M. Cain
Really True :-) -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list

Re: importing modules from higher level directory

2010-06-26 Thread D'Arcy J.M. Cain
signature after your response. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread D'Arcy J.M. Cain
On Sat, 26 Jun 2010 12:04:38 +0100 Nobody nob...@nowhere.com wrote: Ask anyone with a surname like O'Neil, O'Connor, O'Leary, etc; they've probably broken a lot of web apps *without even trying*. At least it isn't a problem with the first name field. Oh, wait... -- D'Arcy J.M. Cain da

Re: use python as a calculator

2010-06-24 Thread D'Arcy J.M. Cain
Type help, copyright, credits or license for more information. 1.0/10**10 1e-10 -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http

Re: Should I Learn Python or Ruby next?

2010-06-22 Thread D'Arcy J.M. Cain
pseudocode. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list

Re: I run into a problem in opening a file in Python

2010-06-18 Thread D'Arcy J.M. Cain
to read the file that you opened in append mode? By the way, your email address doesn't work. I get a relay access denied message. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD

Re: I run into a problem in opening a file in Python

2010-06-18 Thread D'Arcy J.M. Cain
On Fri, 18 Jun 2010 17:22:00 -0400 D'Arcy J.M. Cain da...@druid.net wrote: By the way, your email address doesn't work. I get a relay access denied message. Ignore that. It was a local problem that I fixed before sending but forgot to remove this paragraph. -- D'Arcy J.M. Cain da

Re: math.erfc OverflowError

2010-06-14 Thread D'Arcy J.M. Cain
it to do the right thing virtually 100% of the time. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman

Re: math.erfc OverflowError

2010-06-13 Thread D'Arcy J.M. Cain
with a period should be chucked. This ain't the seventies where people had to format their input exactly as the computer demanded. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD

Re: grep command

2010-06-10 Thread D'Arcy J.M. Cain
not on topic for this list. I'm surprised that there is anyone left who hasn't killfiled this guy. He/she hasn't made any effort to understand the group. Why bother even answering him? Just filter him and enjoy the silence. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves

Re: GUIs - A Modest Proposal

2010-06-09 Thread D'Arcy J.M. Cain
On 09 Jun 2010 06:05:43 GMT Steven D'Aprano steve-remove-t...@cybersource.com.au wrote: I think the only way to end this pointless discussion is this: Hitler would have loved Tkinter! Sorry, Quirk's Exception to Godwin's Law says that you can't invoke Godwin's Law on purpose. -- D'Arcy J.M

Re: sir

2010-06-09 Thread D'Arcy J.M. Cain
On Wed, 9 Jun 2010 14:24:50 +0530 madhuri vio madhuri@gmail.com wrote: sir i am wanted to know more in detail about expressions ..if u can give an abstract idea... Please read this before posting again. http://www.catb.org/~esr/faqs/smart-questions.html -- D'Arcy J.M. Cain da

Re: sir

2010-06-09 Thread D'Arcy J.M. Cain
On Wed, 9 Jun 2010 09:50:18 -0400 D'Arcy J.M. Cain da...@druid.net wrote: On Wed, 9 Jun 2010 14:24:50 +0530 madhuri vio madhuri@gmail.com wrote: sir i am wanted to know more in detail about expressions ..if u can give an abstract idea... Please read this before posting again. http

Re: map is useless!

2010-06-06 Thread D'Arcy J.M. Cain
: x+1 return [func(g, x) for x in args] foo(map, [[4, 6, 3], [6, 3, 2], [1, 3, 5]]) foo = lambda x: [y + 1 for y in x] [foo(x) for x in [[4, 6, 3], [6, 3, 2], [1, 3, 5]]] Didn't seem like such a long walk. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http

Re: map is useless!

2010-06-06 Thread D'Arcy J.M. Cain
the same answer and you didn't actually state the problem I'm not sure how you can make that statement. Show me the unit test that defines the problem. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1

Re: Python Forum

2010-06-06 Thread D'Arcy J.M. Cain
of that is Google groups which I can easily filter out. By the way, what is the generic term for Usenet groups, mailing lists and forums? They all have a common overall purpose and it seems as if there should be a word. Hey, we could all go back to FIDO-Net. :-) -- D'Arcy J.M. Cain da...@druid.net

Re: map is useless!

2010-06-06 Thread D'Arcy J.M. Cain
On Mon, 07 Jun 2010 10:16:19 +1000 Lie Ryan lie.1...@gmail.com wrote: On 06/07/10 09:56, D'Arcy J.M. Cain wrote: Show me the unit test that defines the problem. that you must use foo() and you can't change foo() (since foo is very complex), and you give the same result as the original

Re: Python Forum

2010-06-06 Thread D'Arcy J.M. Cain
On Mon, 07 Jun 2010 11:02:21 +1000 Lie Ryan lie.1...@gmail.com wrote: On 06/07/10 10:45, D'Arcy J.M. Cain wrote: That's a great list of features. But they all apply to mailing lists as well. I think Ben Finney was making comparison between Usenet/Mailing-List vs Forum. The argument

Re: Python Forum

2010-06-04 Thread D'Arcy J.M. Cain
is pretty close to infinite no matter how many people they reach. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org

Re: Python vs. Fedora and CentOS

2010-05-29 Thread D'Arcy J.M. Cain
. Linux is for the desktop. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list

Re: dbf files and indexes

2010-05-29 Thread D'Arcy J.M. Cain
that you are running a decent *cough* PostgreSQL *cough* database engine. Readable is good. If you have a problem with your queries chances are that reorganizing your data or adding proper indexes will do more for you than contorted SQL will. -- D'Arcy J.M. Cain da...@druid.net

Re: dbf files and indexes

2010-05-27 Thread D'Arcy J.M. Cain
= dbf.Table('DogLovers') petcount = dbf.Table('NumberOfPets') I guess you should tell us what dbf is. It doesn't seem to be a standard module and it doesn't look like DB-API. It's hard to answer your question without knowing what these functions do. -- D'Arcy J.M. Cain da...@druid.net

Re: Error

2010-05-26 Thread D'Arcy J.M. Cain
the regular expression module? What is mpmath? It isn't in the standard distribution. My guess is that it has an object called re that is overwriting the re module. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep

Re: to prevent reveres engineering for Python

2010-05-25 Thread D'Arcy J.M. Cain
secret sauce, it wouldn't be difficult for me to do that. Yes, in fact the only people inconvenienced are your paying clients. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082

Re: function that counts...

2010-05-20 Thread D'Arcy J.M. Cain
On Thu, 20 May 2010 19:53:42 + (UTC) Grant Edwards inva...@invalid.invalid wrote: Since Python is interactive, and you don't get charged for each time you run your deck through the reader, that's easy enough to check: Whoa! For a moment there I thought it was 1969. :-) -- D'Arcy J.M

Re: Teaching Programming

2010-05-04 Thread D'Arcy J.M. Cain
to test this. Another way that Python excels. However, I am pretty sure that the above would compile. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's

Re: Teaching Programming

2010-05-04 Thread D'Arcy J.M. Cain
in the right places. In fact, they add indentation so that they can use the visual layout to check the brace layout. Braces are the added step. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425

<    1   2   3   4   5   >