Re: how to append cgi FieldStorage Class instance

2005-07-29 Thread Steve Holden
it represents user input and is therefore not intended to be writable. What exactly are you trying to achieve - some kind of default value? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Filtering out non-readable characters

2005-07-29 Thread Steve Holden
nslate table quite easily. Then >>> import string >>> ds = tt.translate(tt, string.printable) sets ds to be all the non-printable characters (according to the string module, anyway). Now you should be able to remove the non-printable characters from s by writing s = s.translate(tt, ds) regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: help with mysql cursor.execute()

2005-08-15 Thread Steve Holden
t;>parameters (deciding which indices to use, which tables to join >>first, ...), then reusing the plan for identical queries with >>different values. MySQL may not take advantage of this two-step >>approach, but the DB interface is designed to allow it, so >>the parameterization is constrained. >> >>See if something like this works: >> >>sql = 'select * from %s where cusid like ? ' % name >>Cursor.execute(sql, (recID,)) >> >>--Scott David Daniels >>[EMAIL PROTECTED] -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: cgi form validation problems

2005-08-15 Thread Steve Holden
uot;/var/www/users/senta/html/gobooks/cgi/form.py", line 99 > msg = ("From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n Feedback: > %s\r\n\r\n" % > ^ > SyntaxError: invalid syntax > > Just a simple assignation I did think it might have been an > indentation error, but I changed that around and got a message telling > me about an indentation problem, which this doesn't do. > > I have tried several different ways to assign the values, as you can > see by the commented out lines. Tried getting the values directly from > teh form, and also from the validated rev_fields dictionary. I'd be > extremely grateful to anyone who helps me through this. > > TIA > > Googleboy > Hope this helps. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Gadfly use (Newby)

2005-08-17 Thread Steve Holden
27;select id_m from mots where nom_m = %s', nom_m) > > > ? > > > > > I suspect he actually meant cursor.execute("select id_m from mots where nom_m = '%s'" % nom_m) or perhaps cursor.execute("select id_m from mots where nom_m = %s", (nom_m, )) regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: List copying idiom was Re: [Python-Dev] implementation of copy standard lib

2005-08-17 Thread Steve Holden
quickly in the interpreter. > You'd probably want a __copy__ hook for classes which want special > handling, and just do a normal deep copy for everything else. > Well yes, but given that module copy now exists (and will therefore have to continue ti exist until Py3) that would introduce some redundancy. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: socket setdefaulttimeout

2005-08-17 Thread Steve Holden
except socket.gaierror: > pass > if not timing_done: > end_time = time() > elapsed_time = end_time - start_time > debug("2nd try:Time elapsed for rDNS on bl_list: %f secs" % > elapsed_time) > I don't believe that gethos

Re: how do i add a new path into sys.path?

2005-08-18 Thread Steve Holden
apa wrote: > You can do it this way: > > sys.path.append("C:\Temp") > > Alejandro > Better: sys.path.append("C:\\Temp") or sys.path.append(r"C:\Temp") regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC

Re: Python for Webscripting (like PHP)

2005-08-18 Thread Steve Holden
e that the Python secret is getting out. Sharpen up your resumes, guys, you may not have to limit Python to home usage soon :-) regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Put a url in a browsers address bar

2005-08-18 Thread Steve Holden
anks for the quick reply. Do you know what module I would use to fill > out a form on an open web page? > > Thanks > > Colin You could take a look at John Lee's ClientForm module. Start at http://wwwsearch.sourceforge.net/ClientForm/ regards Steve -- Steve Ho

Re: Put a url in a browsers address bar

2005-08-18 Thread Steve Holden
uld involve using COM, I suspect. If so be careful, as what you implement may end up being browser-specific. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: how do i add a new path into sys.path?

2005-08-19 Thread Steve Holden
James Sungjin Kim wrote: > Steve Holden wrote: > >>sys.path.append(r"C:\Temp") > > > In this case, do I need to save the refined path, i.e, the original > paths + the new path (r"C:\Temp"), by using some command in order to use > it permanen

Re: Python jobs (was Re: Python for Webscripting (like PHP))

2005-08-19 Thread Steve Holden
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Steve Holden <[EMAIL PROTECTED]> wrote: > >>There's informal evidence that the Python secret is getting out. Sharpen >>up your resumes, guys, you may not have to limit Python to home usage >>soon

Re: Database of non standard library modules...

2005-08-19 Thread Steve Holden
ining what to expect. If I ask someone where I can find a piece of code and the direct me to the cheese shop, I might look for another language. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.pyt

Re: Database of non standard library modules...

2005-08-20 Thread Steve Holden
Nigel Rowe wrote: > Steve Holden wrote: > > >>Robert Kern wrote: >> >>>Jon Hewer wrote: >>> >>> >>>>Is there an online database of non standard library modules for Python? >>> >>> >>>http://cheeseshop.python

Re: Python Light Revisted?

2005-08-21 Thread Steve Holden
27;t want to > re-install those 20 packages. Anyway I haven't had time to research it > and it isn't pressing, even though I'd like to start trying decorators > and generator expressions. > Someone recently produced a distribution capable of running from a CD and designed to ma

Re: while c = f.read(1)

2005-08-21 Thread Steve Holden
roblem under consideration, and useless optimization work is avoided. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Related To Threads

2005-08-21 Thread Steve Holden
time out if it doesn't arrive. http://www.python.org/doc/faq/windows.html#how-do-i-check-for-a-keypress-without-blocking will be some help in the windows environment, select() is your friend under *nix. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC

Re: network programming

2005-08-21 Thread Steve Holden
Programming tutorial I wrote for LinuxWorld a couple of years ago. http://www.holdenweb.com/linuxworld/NetProg.pdf (student notes) http://www.holdenweb.com/linuxworld/NetProg.ppt (slides) http://www.holdenweb.com/linuxworld/ex.tar (code samples) regards Steve -- Steve Holden +44 150 684 7255 +1 800

Re: question about binary and serial info

2005-08-21 Thread Steve Holden
ou large amounts of time, and before you know it you'll be answering other people's questions. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Decorator and Metaclasses Documentation

2005-08-21 Thread Steve Holden
/download/Descriptor.htm > > > > Are descriptors the same thing as decorators? No. In brief: Decorators are a mechanism whereby a function or method can be transparently wrapped by another function. Descriptors are used to hook programmed functionality into the basic access mechanis

Re: Reg Python Byte code

2005-08-22 Thread Steve Holden
iled each execution. > Kindly clear me all the doubts regarding > byte code of python. > > with regards > Prabahar > > Hope this helps. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: while c = f.read(1)

2005-08-22 Thread Steve Holden
answer to say, the network connection > is still open but no data is available for the moment. '' here > would mean "nothing yet" while '' is now made into "nothing more" > Yes, but you are restricting the programmer's range of expression

Re: while c = f.read(1)

2005-08-22 Thread Steve Holden
; > > Our company is designing a new file type. *sigh*. Confidentiality > prevents me from saying any more, too. If that bugs you because it's > not open source, sorry I need a job. Don't worry though, I'm developing > an open source remote GUI for the code man

Re: network programming

2005-08-22 Thread Steve Holden
n.org/lib/module-socket.html > [...] But then Java's a bit of a mess as a language when compared with Python, I should say. While I know the language has many adherents, it also seems to have many programmers who only know enough to follow recipes. This latter feature is a symptom of the language's popularity, so I suppose we should expect the same problems in about twenty years when Python becomes more popular than Java. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-22 Thread Steve Holden
;-) > Not to mention the fact that if they are unix morons they probably have no idea what length the lines are anyway :-). If only everyone would do things Xah Lee's way we wouldn't have to see all his twaddle. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119

Re: Well, another try Re: while c = f.read(1)

2005-08-22 Thread Steve Holden
I posted it in the > first place. I care not a whit about decluttering the newgroup, an > impossible task. > It's clear that you care not a whit about it. Unfortunately the only way to preserve bandwidth on this (or any other) chanell is for those with nothing to say to not say it. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: loop in python

2005-08-22 Thread Steve Holden
preter (it's written in Python) follows: print 42 Why are you looking for a "fast language" without any regard for the kind of problems you actually want (or need) to solve? Speed of execution is so insignificant for the majority of programming problems that this obsession reveals

Re: Best way to 'touch' a file?

2005-08-22 Thread Steve Holden
is the > more likely interpretation. > Which we probably all can. It's a right bugger when you actually have to listen to what the customer wants, innit? ;-) regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Light Revisted?

2005-08-22 Thread Steve Holden
ation to get Google to bring it up. >> >>regards >> Steve > > > steve, > > are you thinking about moveable python? > > http://www.voidspace.org.uk/python/movpy/ > The very one, thanks. regards Steve -- Steve Holden +44 150 684 7255 +1

Re: up to date books?

2005-08-22 Thread Steve Holden
se them... > > > Alex > PyCon TX 2006? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to 'touch' a file?

2005-08-23 Thread Steve Holden
far as the rest of the list is concerned we are probably all three just being tiresome now. The OP can choose whichever best meets his real requirements, whether they were accurately stated or not. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: while c = f.read(1)

2005-08-23 Thread Steve Holden
es "success". Of course, this still leaves wiggle room to discuss whether success is True or False. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: py-serial + CSV

2005-08-23 Thread Steve Holden
in seeing other solutions you might consider it, and it does avoid the split when it's not necessary. while 1: line = s.readline() if line.startswith("$GPRMC"): words = line.split(",") print words[1], words[3], words[5] regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Sorta noob question - file vs. open?

2005-08-23 Thread Steve Holden
May 27 2005, 18:02:40) [GCC 3.3.3 (cygwin special)] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> open is file True >>> regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Machine Name

2005-08-23 Thread Steve Holden
t; from socket import gethostname >>> gethostname() 'bigboy' >>> regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: reg packages examples

2005-08-24 Thread Steve Holden
lso contains modules, which are regular Python files that are executed when the module is imported. So, in brief, packages are just a way to let you organize your code in to a set of mutually dependent modules and sub-packages, making source maintenance easier and allowing selective import of parts

Re: Email client in Python

2005-08-24 Thread Steve Holden
r no avail. > I'd recommend the poplib library. There is also imaplib, but that is much more difficult to use. Examples of use: http://docs.python.org/lib/pop3-example.html http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82233 http://effbot.org/zone/librarybook/network-protoc

Re: while c = f.read(1) [comment on news hosting]

2005-08-24 Thread Steve Holden
e (though heaven only knows why they chose to use a name other than comp.lang.python for the group: perhaps they were only aware of the list it gateways when they established the service). Anyway, ther price is certainly right. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-24 Thread Steve Holden
values. In a five-character string then -1 and 4 are effectively equivalent. What on earth makes you call this a bug? And what are you proposing that find() should return if the substring isn't found at all? please don't suggest it should raise an exception, as index() exists to prov

Re: MySQLdb module, method executemany with anything other than strings?

2005-08-25 Thread Steve Holden
t's just that you should use "%s" for *all* parameters, no matter what their type: >>> conn = db.connect() >>> curs = conn.cursor() >>> curs.execute(""" ... create table thingy( ...f1 char(10) primary key, ...f2 float)""") 0L >>> l = [('url1', 0.98999), ('url2', 0.89001)] >>> curs.executemany(""" ... insert into thingy (f1, f2) values (%s, %s)""", l) 2L >>> regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Should I move to Amsterdam?

2005-08-25 Thread Steve Holden
In The Netherlands you would at least get > a significant percentage of your money back. Not in Germany. > [...] Hitler must be turnng in his grave. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: while c = f.read(1)

2005-08-25 Thread Steve Holden
eces of code aren't equivalent. While you may be (strictly) correct, your assertion signally fails to add enlightenment to the discussion. I continue to look forward to the first post in which you actually accept someone else's point of view without wriggling and squirmin

Re: variable hell

2005-08-25 Thread Steve Holden
ecause the execute > method should be able to handle a list just as well as a tuple. > That depends on the database module. Some will insist in tuples, IIRC. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: variable hell

2005-08-25 Thread Steve Holden
;=' as a syntax error? > > >>> eval ('a=1') > Traceback (most recent call last): >File "", line 1, in ? >File "", line 1 > a=1 > ^ > SyntaxError: invalid syntax > > Thanks > Because eval() takes an expression as an argument, and assignment is a statement. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: variable hell

2005-08-26 Thread Steve Holden
Python that was a very rewarding aspect of this newsgroup. To this day it remains one of the friendliest tech-spots in cyberspace. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: ideas for university project ??

2005-08-26 Thread Steve Holden
oject for a university. It is software > and hardware related. > > Thomas > It would be a good final-year project, but you may want to try something that hasn't already been done ... see http://skreak.com/wrt54g/python.php regards Steve -- Steve Holden +44 150 6

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-26 Thread Steve Holden
Bryan Olson wrote: > Antoon Pardon wrote: > > Bryan Olson schreef: > > > >>Steve Holden asked: > >>>And what are you proposing that > >>>find() should return if the substring isn't found at all? please don't > >>>s

Re: Closing programs that use sockets

2005-08-26 Thread Steve Holden
nd that CTRL/Break works even when CTRL/C doesn't. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding Python in other programs

2005-08-26 Thread Steve Holden
Gregory Piñero wrote: > How do I get it into VB6? Now that's an answer that would save my life > many times over. > Use IronPython? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.pyth

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-26 Thread Steve Holden
most elegant method -- the most > elegant being "if". Where "if" does the job, it should be prefered > in my opinion. > Of course. But onc you (sensibly) decide to use an "if" then there really isn't much difference between -1, None, () and sys.maxint as a sentinel value, is there? Which is what I've been trying to say all along. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-26 Thread Steve Holden
Bryan Olson wrote: > Steve Holden wrote: > > Bryan Olson wrote: > >> Antoon Pardon wrote: > > >> > It probably is too late now, but I always felt, find should > >> > have returned None when the substring isn't found. > >> >

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-27 Thread Steve Holden
Paul Rubin wrote: > Steve Holden <[EMAIL PROTECTED]> writes: > >>If you want an exception from your code when 'w' isn't in the string >>you should consider using index() rather than find. > > > The idea is you expect w to be in the string. If w

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-27 Thread Steve Holden
Terry Reedy wrote: > "Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message > news:[EMAIL PROTECTED] > >>Steve Holden <[EMAIL PROTECTED]> writes: >> >>>Of course. But onc you (sensibly) decide to use an "if" then t

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-27 Thread Steve Holden
Paul Rubin wrote: > Steve Holden <[EMAIL PROTECTED]> writes: > >>A corrected find() that returns None on failure is a five-liner. > > > If I wanted to write five lines instead of one everywhere in a Python > program, I'd use Java. We are arguing about triv

Re: Experience regarding Python tutorials?

2005-08-27 Thread Steve Holden
man/listinfo/tutor regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Experience regarding Python tutorials?

2005-08-27 Thread Steve Holden
Sorry, that email address is [EMAIL PROTECTED] Steve Holden wrote: > Randy Bush wrote: > >>>There is also a python tutor newsgroup at gmane >>>(gmane.comp.python.tutor). >> >> >>is there a mailing list to which it is gated? >> >>randy

Cygwin font problems

2005-08-27 Thread Steve Holden
print statements that it's finding freetype21. The same code using (Fredrik's pre-built binary) on Windows runs correctly and produces correct images. Cygwin runs Python 2.4.1, Windows runs 2.4. Any light on this mystery gratefully received. regards Steve -- Steve Holden +44 150 6

Re: What are new-style classes?

2005-08-28 Thread Steve Holden
m object, so (if you know what you are doing) you can implement subclasses of the built-in types such as dict, float and str. Robert Kern has given you a link that explains the situation in detail. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-28 Thread Steve Holden
Bryan Olson wrote: > Steve Holden wrote: > > Paul Rubin wrote: > > We are arguing about trivialities here. Let's stop before it gets > > interesting :-) > > Some of us are looking beyond the trivia of what string.find() > should return, at an unfortu

Re: reg email packages work

2005-08-29 Thread Steve Holden
express then > this email message will display without any alignment. > If a user type 3 paragraph message > outlook express display as a single line. What > could be problem?. Kindly let me know ASAP > It's obvious you aren't using that EXACT code, because it doesn&

Re: close failed: [Errno 0] No error goes to stdout

2005-08-29 Thread Steve Holden
ory by running the program from the command line with standard AND error output redirection, verifying that no output at all apears on the console when you type cmd > /tmp/stdout 2>/tmp/stderr You are correct in supposing that popen3 is supposed to trap all stdout and stderr output. regar

Re: NYC Opening

2005-08-29 Thread Steve Holden
nior Technology Recruiter > Continuity Partners Inc. > (212) 624-9187 > www.cpi-search.com > [EMAIL PROTECTED] > - > > It seems like this bank expects much more of its programmers than it does of its recruitment consultants ..

Re: socket.gaierror from httplib

2005-08-29 Thread Steve Holden
eed to resolve to the same IP address, or indeed even any IP address). Having connected, all you need to present in the request() method call is the HTTP method and the URI relative to the server. This works for me: >>> import httplib; h=httplib.HTTPConnection('www.euronext.com

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-29 Thread Steve Holden
Antoon Pardon wrote: > Op 2005-08-27, Steve Holden schreef <[EMAIL PROTECTED]>: > >>> >>If you want an exception from your code when 'w' isn't in the string you >>should consider using index() rather than find. > > > Sometimes it is

Re: Cygwin font problems

2005-08-29 Thread Steve Holden
Robin Becker wrote: > Steve Holden wrote: > >>Is anyone aware of (a fix for) problems I'm having getting PIL 1.1.5 to >>create bitmaps using TrueType and openType fonts? When I create an image >>using the standard PIL fonts everything seems fine, but when I use >

Re: Writing Multithreaded Client-Server in Python.

2005-08-30 Thread Steve Holden
d in the base server classes). By "each client" I suspect the OP really meant "each session", and was ignoring the fact that the same client can have multiple sessions to the same server. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-30 Thread Steve Holden
Antoon Pardon wrote: > Op 2005-08-29, Steve Holden schreef <[EMAIL PROTECTED]>: > >>Antoon Pardon wrote: >> >>>Op 2005-08-27, Steve Holden schreef <[EMAIL PROTECTED]>: >>> >>> >>>>If you want an exception from your code when

Re: variable hell

2005-08-30 Thread Steve Holden
Fredrik Lundh wrote: > Steve Holden wrote: > > >>Yes. A large part of learning a language is discovering the many idioms >>that have already been established for doing certain things. These are a >>kind of shorthand, established by long convention, that allow one to &

Re: SpamBayes wins PCW Editors Choice Award for anti-spam software.

2005-08-30 Thread Steve Holden
uot;". The web page to which this link points unfortunately doesn't reapeat the Python reference in the page body. But they only miss the Python reference if they feel lucky and don't look at the browser title bar! regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: reg email packages work

2005-08-30 Thread Steve Holden
Sybren Stuvel wrote: > Steve Holden enlightened us with: > >>It's obvious you aren't using that EXACT code, because it doesn't >>formulate a three-paragraph message. So the bit we really need to >>see is how you capture and formulate the argument to set_p

Re: variable hell

2005-08-30 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Steve, can I quote you on that? > > "You can lead an idiot to idioms, but you can't make him think!" -- > Steve Holden 2005 > Looks like you just did :-). Feel free. regards Steve -- Steve Holden +44 150 684 7255

Re: reg email packages work

2005-08-30 Thread Steve Holden
praba kar wrote: > --- Sybren Stuvel > <[EMAIL PROTECTED]> wrote: > > >>Steve Holden enlightened us with: >> >>>It's obvious you aren't using that EXACT code, >> >>because it doesn't >> >>>formulate a three-para

Re: Jargons of Info Tech industry

2005-08-30 Thread Steve Holden
trolled or what. The harder you try the longer it > takes for it to stop. Either ignore the whole thing, or make a useful > contribution which might make setting the FollowUp-To: header work (but > don't get angry if it's ignored). > > Now lets hope that the rest gets the point. Thanks. > -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Code run from IDLE but not via double-clicking on its *.py

2005-08-31 Thread Steve Holden
less you have a specific reason for not doing so. But if you post your code (or even better a subset of your code that demonstrates the error so people can pick it apart for themselves) with a traceback from the interpreter or a full description of what you expected the code to do and what

Re: What are new-style classes?

2005-08-31 Thread Steve Holden
not true. >> >>Nonsense. > > > Given the rest of your post, I assume that this isn't meant as it sounds. > Remember, I'm > German, so please bear with my sense of humour. ;) > German? Humour? Surely some mistake :-) not-talking-about-the-war-ly y'rs - steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling ftp commands from python

2005-08-31 Thread Steve Holden
side? > > I don't want to use mount since I don't have permission. > > Thanks > Thierry > http://www.holdenweb.com/Python/PDCode/ftpStream.py shows you how to drive a remote FTP server using an object-oriented approach. Don;t know whether it'll help. regards

RE: SpamBayes wins PCW Editors Choice Award for anti-spam software.

2005-08-31 Thread Steve Holden
t have any problem at all with the site, and I know that SpamBayes does actually reflect kudos on the Python language in many people's minds. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenSource documentation problems

2005-08-31 Thread Steve Holden
open source world, but it's a sad fact of life that generally people are better-motivated to complain about documentation (and almost everything else) than to help improve it. Given that often people appear on this list for the first time without having used Google or the docs to try and find an answer to their questions, these complaints are likely to continue indefinitely ... regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: change date format

2005-08-31 Thread Steve Holden
;t asking for help. He's simply masturbating. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Attempting to use popen with mailx

2005-09-01 Thread Steve Holden
a.flush() > > The email never sends, and I have to kill the > processes. I am new to python, so I am sure I am > doing something wrong. > > Can anyone help? > > Thanks! > Does it help to add a.close() to the end of the code? regards Steve -- Steve Holden +

Re: 'isa' keyword

2005-09-01 Thread Steve Holden
es" of the language. I don't think a change to a message-passing paradigm would necessarily benefit Python at this stage. Some people are still under the misapprehension that message-passing is a fundamental of object-oriented programming because of Smalltalk, but they are wrong. The addition

Re: The penis is way too delicate for masturbation

2005-09-01 Thread Steve Holden
sholes. > - C&J Thank God they aren't all typical if that's the case. Personally I find that most individuals, no matter how misguided, have their hearts in the right place. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: cgi, reusing html. common problem?

2005-09-01 Thread Steve Holden
contains a navbar link to itself (a sign of web immaturity, but by no means inexcusable) then you don't even need to pass the page's path into the function. Hope this gives you a few ideas. This problem has been considered by many people, but clearly no outstanding solution has y

Re: Proposal: add sys to __builtins__

2005-09-01 Thread Steve Holden
port succeeded (possibly even from a path limited to the standard locations). That way none of the standard library modules would need to be imported before use. I can see that this would create problems as well as solving some, but it would be nice not to have to import the standard library modules. I don't personally find it a hardship, but some people do. though-i-could-just-be-raving-ly y'rs - steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenSource documentation problems

2005-09-01 Thread Steve Holden
Rocco Moretti wrote: > Steve Holden wrote: > > >>Every page of the docs links to "About this document", which contains >>the following: """If you are able to provide suggested text, either to >>replace existing incorrect or unclear material

Re: OpenSource documentation problems

2005-09-01 Thread Steve Holden
documentation is written in LaTeX, using > a rather advanced tool chain to get from sources to HTML, so the > librarybook approach won't really work "out of the box") > That's true, but (as I mentioned a few minutes ago in another post) the docs team will happily accept

Re: OpenSource documentation problems

2005-09-01 Thread Steve Holden
le anyone who has made any kind of contribution to Python (even Xah Lee has his place, though I tremble to think so). I just want more Python users to understand that there are many contributions they could make that are well within their capabilities, and to get off their butts and start doing

Re: pain

2005-09-01 Thread Steve Holden
ing to offend the pigs, of course. still-working-for-myself-ly y'rs - steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenSource documentation problems

2005-09-01 Thread Steve Holden
Fred L. Drake, Jr. wrote: > On Thursday 01 September 2005 22:53, Steve Holden wrote: > > So, probably the best outcome of this current dialogue would be a change > > to the bottom-of-page comment so instead of saying > > > > """Release 2.4, documenta

Re: problems with smtplib

2005-09-02 Thread Steve Holden
t; s.quit() > That's pretty strange: the second argument should be a list. Are you *sure* it worked? > Why do they (mail.ru) allow outsiders to use their service??? > Ask them! regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: HTML tags optimization

2005-09-02 Thread Steve Holden
is bold or italic, but i found it was too > complicated. > [etc ...] Are you expecting the answers to be different that they were two days ago? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug in string.find

2005-09-02 Thread Steve Holden
tain a processor that uses ones-complement arithmetic. > Ah, the good old Univac 418 ... [drools into beard and mumbles] > Step two: Port Python to said processor... > Unfortunately the 418 would probably come in at about a micro-pystone, so perhaps we should emulate it on somet

Re: problems with smtplib

2005-09-02 Thread Steve Holden
Peter Hansen wrote: > Steve Holden wrote: > >>n00m wrote: >> >> >>>I also can't get my SMTP (win2k) working with Python. >>>But... funnily this works fine: >>> >>>import smtplib >>>s = smtplib.SMTP('smtp.mail.ru'

Re: 'isa' keyword

2005-09-02 Thread Steve Holden
phil hunt wrote: > On Thu, 01 Sep 2005 20:39:14 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: > >>phil hunt wrote: >> >>>It could be argued of course, that an OOPL should allow methods to >>>be sent with a grammar: >>> >>> receiver s

Re: defining classes

2005-09-02 Thread Steve Holden
them, and in so doing accidentally corrected your error in the posting you made to the group? You seem to understand how classes should (and do) work, so it was probably a PICNIC error :-) regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC

Re: urllib.urlopen doesn't work

2005-09-02 Thread Steve Holden
to us about. Also you might try just starting a new browser session an entering the URL that gave you problems in your code. If the browser displays the page correctly then *either* it has cookies set that you aren't setting when you call urllib.urlopen() *or* I'm wro

Re: Problem with response object

2005-09-02 Thread Steve Holden
Harish Kotian wrote: > Hi Steve > I copied the lines from your mail and again got the error. > I am only pasting the relevant error lines below. > > • Error Type: > Python ActiveX Scripting Engine (0x80020009) > Traceback (most recent call last): File "

Re: Problem with response object

2005-09-02 Thread Steve Holden
n snippet. Also each code block stands alone, so you start afresh with no indentation whenever you open a new code-bracket. Try <% response.redirect("http://www.holdenweb.com/";) %> and see if that works. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: python logo

2005-09-03 Thread Steve Holden
if > > is this some decision that python should use various different logos? > > Xah > [EMAIL PROTECTED] > ∑ http://xahlee.org/ > Yes. -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

<    2   3   4   5   6   7   8   9   10   11   >