Re: Numeric root-finding in Python

2012-02-20 Thread David Monaghan
On Sun, 12 Feb 2012 10:20:17 -0500, inq1ltd wrote: > > >I don't know the first thing about this math problem however, > >if I were to code this I might try ; > > except ZeroDivisionError: > assert w = -1 > >rather than; > > except ZeroDivisionError: > assert w == -1 Why? DM

Re: MOST COMMON QUESTIONS ASKED BY NON-MUSLIMS ?????????

2012-01-07 Thread David Monaghan
On Tue, 3 Jan 2012 09:57:50 -0800 (PST), John Ladasky wrote: >On Jan 3, 7:40 am, BV wrote: >> MOST COMMON QUESTIONS ASKED BY NON-MUSLIMS > >Q0. Why do thousand-line religious posts appear in comp.lang.python? You know, I would never have seen this post if you hadn't "authenticated" it by starti

Re: Spamming PyPI with stupid packages

2012-01-02 Thread David Monaghan
On Mon, 2 Jan 2012 02:52:06 -0500, Devin Jeanpierre wrote: >> Perhaps I'm just slow, but what is sexist about this package? Do you even >> know what the package does? > >The dependencies are "car", "house", and "money" (and "workhard", of >course). The joke being that women only care about how we

Re: Need A script to open a excel file and extract the data using autofilter

2011-10-04 Thread David Monaghan
On Tue, 04 Oct 2011 19:42:06 +0100, Chris Withers wrote: >On 01/10/2011 23:00, David Monaghan wrote: >>> after opening the text.xls file i need to filter all the rows in which >>> the status column is passed and copy the whole sheet to another sheet >> >> I don&

Re: Need A script to open a excel file and extract the data using autofilter

2011-10-01 Thread David Monaghan
On Sat, 01 Oct 2011 23:00:07 +0100, David Monaghan wrote: >from win32com.client import Dispatch >xlApp = Dispatch("Excel.Application") >xlWbook = xlApp.Workbooks.Open(r"C:\Users\Administrator\Desktop\test.xls") >xlApp.Visible = 1 >xlWorksheet = xlWbook.Work

Re: Need A script to open a excel file and extract the data using autofilter

2011-10-01 Thread David Monaghan
On Sat, 1 Oct 2011 10:35:06 -0700 (PDT), Prakash wrote: >On Oct 1, 10:25 pm, Prakash wrote: >> Need  A script to open a excel file and extract the data using >> autofilter and write it in a new sheet or new file like I have to >> select all rows in which all the columns contain pass as status >

Re: Ten rules to becoming a Python community member.

2011-08-16 Thread David Monaghan
On Tue, 16 Aug 2011 16:12:53 -0700 (PDT), rantingrick wrote: >On Aug 16, 4:55 pm, David Monaghan wrote: >> On Tue, 16 Aug 2011 13:13:10 -0700 (PDT), rantingrick >> >> wrote: >> >If conciseness is all you seek then perhaps you prefer the following? >> >&g

Re: Ten rules to becoming a Python community member.

2011-08-16 Thread David Monaghan
On Tue, 16 Aug 2011 13:13:10 -0700 (PDT), rantingrick wrote: >If conciseness is all you seek then perhaps you prefer the following? > >ORIGINAL: "I used to wear wooden shoes" >CONCISE: "I wore wooden shoes" >ORIGINAL: "I have become used to wearing wooden shoes" >CONCISE: "I like wearing woode

Re: Coolest Python recipe of all time

2011-05-02 Thread David Monaghan
On Mon, 2 May 2011 14:58:50 -0600, Ian Kelly wrote: >On Mon, May 2, 2011 at 2:48 PM, David Monaghan > wrote: >> On Mon, 2 May 2011 10:33:31 -0700 (PDT), Raymond Hettinger >> wrote: >> >>>I think it is time to give some visibility to some of the instru

Re: Coolest Python recipe of all time

2011-05-02 Thread David Monaghan
On Mon, 2 May 2011 10:33:31 -0700 (PDT), Raymond Hettinger wrote: >I think it is time to give some visibility to some of the instructive >and very cool recipes in ActiveState's python cookbook. > >My vote for the coolest recipe of all time is: > > > http://code.activestate.com/recipes/365013-

Re: python to exe

2010-03-14 Thread David Monaghan
On Sun, 14 Mar 2010 13:10:32 -0600, John Bokma wrote: >David Monaghan writes: > >> of Google. If they haven't used it, I don't really consider the gentle >> reminder that LMGTFY gives too harsh. If you do, you're too much of a gentle >> soul to be on the

Re: python to exe

2010-03-13 Thread David Monaghan
On Sat, 13 Mar 2010 12:52:39 -0600, John Bokma wrote: >Steven D'Aprano writes: > >> As the old proverb goes: give a man a fish, and you feed him for a day. >> Teach him how to fish, and he has food forever. > >True, but you don't teach someone fishing by poking an eye out with a >fishing rod. >

Re: Python 3 minor irritation

2010-02-04 Thread David Monaghan
On Thu, 04 Feb 2010 00:39:01 +, David Monaghan wrote: >I have a small program which reads files from the directory in which it >resides. It's written in Python 3 and when run through IDLE or PythonWin >works fine. If I double-click the file, it works fine in Python 2.6, but

Python 3 minor irritation

2010-02-03 Thread David Monaghan
I have a small program which reads files from the directory in which it resides. It's written in Python 3 and when run through IDLE or PythonWin works fine. If I double-click the file, it works fine in Python 2.6, but in 3 it fails because it looks for the files to load in the Python31 folder, not

Re: Microsoft Office Word and Python (Win XP)

2010-01-09 Thread David Monaghan
On Sat, 9 Jan 2010 11:18:12 -0800 (PST), "3lvss0...@gmail.com" <3lvss0...@gmail.com> wrote: >Dennis Lee Bieber: Im not familiar with python, also Im not >programmer. What you want to do isn't complicated, but it isn't simple either, unless you're familiar with VBA/VBS. I approach these problems b