Jacob S. wrote:
Hi everyone, sent this on to the list as told to.
cc to eri to verify my sending to list...
;-) Jacob
dear jacob,
sorry to send this to you but if you may, kindly send to tutor list as im
no longer subscribed. my problem is in the update dict portion: it just
doesnt update regardle
Michael Powe wrote:
Clash of the Titans
snip constructor discussions
Pilgrim is pedantically correct but Alan's comment matches how most of
us think about it.
Mundane Matters
I'm having a hard time with classes in python, but it's coming
slowly. One thing that I think is general
Michael Powe wrote:
Here's an example: in Java, I wrote an
application to track my travelling expenses (I'm a consultant; this
tracking of expenses is the itch I am constantly scratching. ;-)
I've also written this application in a perl/CGI web application as
well.) It's easy to see the outline
Kent Johnson tds.net> writes:
>
> Jacob S. wrote:
> >> sorry to send this to you but if you may, kindly send to tutor list as im
> >> no longer subscribed. my problem is in the update dict portion: it just
> >> doesnt update regardless how many contacts i add. kindly advise where
> >> my mistak
Eri Mendz wrote:
Kent Johnson tds.net> writes:
Jacob S. wrote:
sorry to send this to you but if you may, kindly send to tutor list as im
no longer subscribed. my problem is in the update dict portion: it just
doesnt update regardless how many contacts i add. kindly advise where
my mistake is or
Title: counting no of words
hi all,
Is it possible to write a program in python to calculate the number of words in a MS-Word document Page
Regards
gopi
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Michael Powe wrote:
Clash of the Titans
From "Dive into Python":
__init__ is called immediately after an instance of the class is
created. It would be tempting but incorrect to call this the
constructor of the class. It's tempting, because it looks like a
constructor (by convention, __init__ is the
Sure,
What you need are the win32 extensions for python
(http://starship.python.net/crew/mhammond/win32/Downloads.html), which
contain win32com. Through com, you can access almost anything in
windows. Check out
http://aspn.activestate.com/ASPN/docs/ActivePython/2.2/PyWin32/html/com/win32com/HTML/Q
Kent Johnson wrote:
The reason that is given for using accessors is that it gives you a
layer of flexibility; if you want to change the representation of the
data, or make it a computed attribute, you can do that without impacting
clients.
Python, instead, lets you change what attribute access
I have a sort of simple CMS system on my website made from a conglomeration of
scripts. On the left column, I want to add a feature that shows the last
five items updated (only html & exe files in the /var/www/html/ for example)
directory that I have updated, with each item as a link to the pag
It seems to me that if you want the five most recent changes, you don't have to keep a list of
modified dates. Just get the modified date for all the files of interest and sort by date, then pick
the top five.
You could do this as part of your process to build the web site maybe?
Kent
Jay Loden
Adding it into the PHP that creates the html would create too much overhead
since it loads each page individually upon request, and that would mean
running the modified time check on every page load.
But I was thinking about this after I sent the mail, and I think you have a
point with just o
Rumor has it that Bill Mill may have mentioned these words:
[snip]
Once you're connected to a word document, you'll have to figure out
what the command to count the words in the document is, but that's
just a matter of recording a macro in word where you count the words,
then repeating it in python
I'd take the easy way out and use winPython's COM objects to open the
doc in word, and save it as .txt
and then -
f=file("doc.txt",'r')
j=f.read()
j=j.split(" ")
print len(j)
On Thu, 20 Jan 2005 13:59:16 -0500, Roger Merchberger
<[EMAIL PROTECTED]> wrote:
> Rumor has it that Bill Mill may have
Hi, I'm now writing a simulation program in Python. Indeed, it's a
time-wasting program, a complete simulation will last several days.
Of course, the simulation result is easily stored in files, through file class
of Python.
Now, my partners require the simulation result to be printed on scr
Hi all,
(side note - the net is not a luxury when attempting to learn to code)
Just pondering my coding efforts, and just wanted to clarify something.
I've got a module called foo.py
foo.py -
import parrot
class Bar(model.Background):
def __initialize__(self, event):
#Ju
Oops,
and OT ~ Has anyone used Lisp? I've been reading Paul Graham's essays
on how great Lisp is, and how Python is near to implementing features
Lisp had in the 60's. Also found the concept of macros interesting.
Queries -
1) Anyone here familiar with both?
2) If so, which would you rate as m
Liam Clarke wrote:
Hi all,
I've got a module called foo.py
foo.py -
import parrot
class Bar(model.Background):
def __initialize__(self, event):
#Just a pythoncard variant on init
self.config=self.loadCfg()
def loadCfg():
#get some cfg stuff, return as di
The logging module is good for this. You can set it up to log to the screen and a file. You have to
do some setup and change your print statements to call a logger.
See this section of the docs and the one following for examples.
http://www.python.org/dev/doc/devel/lib/minimal-example.html
It's e
Liam Clarke said unto the world upon 2005-01-20 21:46:
Oops,
and OT ~ Has anyone used Lisp? I've been reading Paul Graham's
essays on how great Lisp is, and how Python is near to implementing
features Lisp had in the 60's. Also found the concept of macros
interesting.
Regards,
Liam Clarke
Hi Li
Danny! I couldn't resist trying threading again, now that the
mysterious single-threading behavior is gone.
I didn't put any locks anywhere.
And it runs like a champ.
Like a super champ.
Either I had to put back threading or I had to make a family of
socket-readers, or lose some functionality
Liam,
On Fri, 21 Jan 2005 15:46:19 +1300, Liam Clarke <[EMAIL PROTECTED]> wrote:
> Oops,
>
> and OT ~ Has anyone used Lisp? I've been reading Paul Graham's essays
> on how great Lisp is, and how Python is near to implementing features
> Lisp had in the 60's. Also found the concept of macros inter
Thank you, Kent
In fact, I followed the page you posted, but it seems not working at all,
maybe due to version or so.
But good hints, and I find it in Python Documentation 2.3.4.
http://www.python.org/doc/2.3.4/lib/node301.html
After some trials, I find the minimal ways to meet my need. Just
23 matches
Mail list logo