Re: Repainting

2004-12-28 Thread Steve Holden
out to all that have been patient with me while helping me learn wxpython. Well, the logical approach would seem to be to freeze, add a hundred items, thaw, freeze, add a hundred items, thaw ... [rinse and repeat]. Basically, control the repainting so it only occurs (relatively) infrequently. regar

Re: DB-API format string conventions

2004-12-28 Thread Steve Holden
dule authors for significant amounts of work, which may not be forthcoming under all circumstances. Also be aware that there have been various post-2.0 proposals for the DB API, which you might want to look up on Google and fold in to the current campaign. regards Steve -- Steve Holden

[Fwd: Re: DB-API format string conventions]

2004-12-28 Thread Steve Holden
[posted after mailing response in error] Craig Ringer wrote: On Tue, 2004-12-28 at 21:16, Steve Holden wrote: So ... anybody for a DB-API 2.1 with mandatory pyformat support and a tuple dbmodule.paramstyles for supported styles? Well, you can certainly put me down as supporting less variability

Re: code Generator Help

2004-12-28 Thread Steve Holden
EMAIL PROTECTED] Injection-Info: z14g2000cwz.googlegroups.com; posting-host=203.215.172.162; posting-account=7YudzA0fMdqpJCBHcNyqldiXgatK Xref: cox.net comp.lang.python:394356 X-Received-Date: Tue, 28 Dec 2004 10:56:24 EST (news1.east.cox.net) -- Steve Holden http://www.holdenweb.co

Re: consequences of not calling object.__init__?

2004-12-28 Thread Steve Holden
per object creation. You'll have to decide how significant that is. regards Steve [1]: Freaky - I had just typed this when the doorbell went, and it was the UPS driver delivering the new laptop! -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems installing MySQLdb on Windows [newbie]

2004-12-28 Thread Steve Holden
er site-packages, and download and run http://pydish.holdenweb.com/pwp/MySQL-python.exe-1.0.0.win32-py2.4.exe That's a ready-to-go no-compilation-required installer for Windows Python 2.4, and will get you going straight away. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

MySQLdb Windows Installer (2.4) published [was: Problems installing MySQLdb on Windows [newbie]]

2004-12-29 Thread Steve Holden
eb.com/Python/index.html -- that way Google might pick it up, who knows. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Why tuples use parentheses ()'s instead of something else like <>'s?

2004-12-29 Thread Steve Holden
>>> print 4, 4 >>> regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter vs wxPython

2004-12-29 Thread Steve Holden
rather than a tool, but I patched 0.7 to fix that, and I believe it will be possible to patch the 0.8 series to operate the same way. Whether I'll ever persuade Kevin Altis to include the patch in a live release is, of course, a question for another day :-) regards Steve -- S

Re: Other notes

2004-12-29 Thread Steve Holden
ry about binding order. At the very least, you can specify that all new operators bind left to right. But that might not be what you want. Associativity and precedence will also have to affect the parsing of the code, of course. Overall this would be a very ambitious change. regards Steve -- S

Re: Other notes

2004-12-29 Thread Steve Holden
Mike Meyer wrote: Steve Holden <[EMAIL PROTECTED]> writes: [...] Well, perhaps you can explain how a change that's made at run time (calling the decorator) can affect the parser's compile time behavior, then. At the moment, IIRC, the only way Python code can affect the parser'

Re: calling functions across threads

2004-12-29 Thread Steve Holden
st at python-win32@python.org - it's listed on www.python.org should you choose to subscribe, and the volume isn't generally high (maybe 5-10 messages per day). regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Hold

Re: Why tuples use parentheses ()'s instead of something else like <>'s?

2004-12-29 Thread Steve Holden
of the same error are apparently impossible to come by. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: what would you like to see in a 2nd edition Nutshell?

2004-12-29 Thread Steve Holden
x27;t have to go download stuff before beginning to noodle round with GUIs. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/p

Re: Other notes

2004-12-30 Thread Steve Holden
Bengt Richter wrote: On Wed, 29 Dec 2004 13:11:43 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: [...] Well, perhaps you can explain how a change that's made at run time (calling the decorator) can affect the parser's compile time behavior, then. At the moment, IIRC, the only way

Re: Problem in threading

2004-12-30 Thread Steve Holden
er, they each also have their own GIL, and so the operating system will be able to schedule the processes in parallel on separate CPUs. Long Journey ahead... Indeed, but an interesting one, no doubt. Good luck. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Pro

Re: Confusion About Classes

2004-12-30 Thread Steve Holden
ce variables they will curse you if you've mangled them. unwrapping-that-mangling-isn't-pretti-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter vs wxPython

2004-12-30 Thread Steve Holden
different parts of the window are decorated by different toolkits. That's always going to be ugly. remembering-motif-under-open-windows-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703

Re: standard IDE in python 3000 (or beyond)? *semi-newbie*

2004-12-30 Thread Steve Holden
S *is* a tough act to beat, though certainly not impossible. I wish there *were* something equivalent. If Jim Hugunin can persuade Microsoft to fully support Python in Visula Studio .NET they'd have at least one more customer. regards Steve -- Steve Holden http://www.h

Re: Why would I use inspect.isclass()?

2004-12-30 Thread Steve Holden
a Class? You should Google for "duck typing" and stop worrying so much about what your functions//methods have been passed. At least, that's the traditional Python approach. I suspect you are still trying to program in C in Python :-) regards Steve -- Steve Holden h

Re: Why would I use inspect.isclass()?

2004-12-30 Thread Steve Holden
rams do. But it isn't really a novice topic, and many programmers spend entire careers quite happily without using introspection. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: portable text user interface

2004-12-30 Thread Steve Holden
is normally set up for you. Perhaps you are just telnetting in from a remote system? regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: standard IDE in python 3000 (or beyond)? *semi-newbie*

2004-12-30 Thread Steve Holden
Aahz wrote: In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: With respect it wouldn't, since IDLE doesn;t include a GUI builder. I think Mike's cri-de-couer is for a tool that makes it as easy as Visual Studio to put a GUI-based application togeth

Re: PyQT installation

2004-12-30 Thread Steve Holden
vents me from seeing?). regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Probleme mit der Installation der openSource Bittorrent.... python vs JAVA

2004-12-30 Thread Steve Holden
.py, and I can certainly remember both French and Esperanto threads in the past. Ease up, it's hard enough if you're German ;-) be-polite-or-don't-write-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/

Re: Why would I use inspect.isclass()?

2004-12-30 Thread Steve Holden
ill be passed down from above. In the old days, we go out of the way to do that so programs don't fail in mysterous ways. Don't worry. Soon you will understand the Way of Python, and all will become clear :-) probably-won't-stop-you-top-posting-though-ly y'rs - steve [1] OK,

Re: standard IDE in python 3000 (or beyond)? *semi-newbie*

2004-12-30 Thread Steve Holden
PythonCard interface. Well worth the dosh, IMHO. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQT installation

2004-12-30 Thread Steve Holden
Phil Thompson wrote: On Thursday 30 December 2004 4:13 pm, Steve Holden wrote: Phil Thompson wrote: On Thursday 30 December 2004 2:34 pm, Nanoscalesoft wrote: hi phil... py-->2.4 pyqt-->3.3 I assume you mean PyQt-win-nc-msvc-3.13.exe qt-->2.3.0 I assume you mean the non-commercial edi

Re: The Industry choice

2004-12-30 Thread Steve Holden
against managers and stuff. :) [...] Right, what have the managers ever done for us? regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: novice regular expression question

2004-12-30 Thread Steve Holden
ensure that only the strings that get matched are included in the groups, not the separators, even though they must be grouped together. The list *must* be separated by ", ", but you could alter the pattern to allow zero or more whitespace characters. >>> s.match(r'"s1

Re: need some help with threading module...

2004-12-30 Thread Steve Holden
lt and will give very confusing results just-a-guess-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: need some help with threading module...

2004-12-30 Thread Steve Holden
M.E.Farmer wrote: Steve Holden wrote: [snip] Could be the OP is using Cygwin, which won't support threading by default and will give very confusing results Thanks Steve, Well your guess was better then mine :) I didn't know Cygwin did not support threads by default , I will have to rem

Re: Why tuples use parentheses ()'s instead of something else like <>'s?

2004-12-31 Thread Steve Holden
ears since I worked in *that* environment. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Urgently need Elecronic version of book:Python Network programming by John Goerz

2004-12-31 Thread Steve Holden
rom building it from scratch. But if you don;t tell us what you need to do, we'll never know. Or perhaps you just want to publish an unauthorized Indian edition of "Python Network Programming". How can we tell? regards Steve -- Steve Holden http://www.holdenwe

Re: Text-to-speech

2005-03-20 Thread Steve Holden
e read before the entire PyCon audience. Get to it! regards Steve -- Meet the Python developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: inline comparison

2005-03-21 Thread Steve Holden
Steve -- Meet the Python developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python becoming less Lisp-like

2005-03-22 Thread Steve Holden
#x27;m not going to argue this. Great. I though you were going to start up with the snails again ... :-) regards Steve -- Meet the Python developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: xmlrpc with Python and large datases

2005-03-22 Thread Steve Holden
m :-) regards Steve -- Meet the Python developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Pre-PEP: Dictionary accumulator methods

2005-03-22 Thread Steve Holden
ts my +1. regards Steve -- Meet the Python developers and your c.l.py favorites March 23-25 Come to PyCon DC 2005 http://www.pycon.org/ Steve Holden http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: [Newbie] How do I get better at Python programming?

2005-03-28 Thread Steve Holden
e I still lurk, but there's always something going on. Finally, don't be afraid to think about problems you don't yet know how to solve. Stretch to grow. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/

Re: author index for Python Cookbook 2?

2005-03-28 Thread Steve Holden
's emailed this list before, so someone should be able to ask Jonathon. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: AttributeError: 'module' object has no attribute 'setdefaulttimeout'

2005-03-31 Thread Steve Holden
o get Tom O'Malley's tiemoutsocket module, which I used in several applications until 2.3 integrated the functionality. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.

Re: redundant imports

2005-03-31 Thread Steve Holden
;s for the correct magic number before ignoring them. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Stylistic question about inheritance

2005-03-31 Thread Steve Holden
re I understand why you asked the question in the first place - unless it's really an anthropological inquiry. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: System bell

2005-03-31 Thread Steve Holden
ld cause heart attacks! regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Grouping code by indentation - feature or ******?

2005-04-01 Thread Steve Holden
ears, and since a change would break 30% of the existing codebase, you clearly can't be advocating change. So, what's the point of this thread now? regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web P

Re: [python-perl] Translation review?

2005-04-01 Thread Steve Holden
(0x40BA541813CECF0323A994C40AA00) ,ham(412853488783846916352+ 20980637114201*10**21 )])))])])] == END OF CODE -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC

Re: New to programming question

2005-04-01 Thread Steve Holden
x27;Ben'] ...if not t or iter([]).next())] Okay, now in my opinion, that's just too complex to give to a newbie as a suggested implementation. :) Joal I suppose this would be far too easy to understand, then: pr =['Guess my name', 'Wrong, try again', 'La

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Steve Holden
syntactic sugar. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Steve Holden
to a programming problem. A disciplined programmer will write well-structured code with whatever tools come to hand. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ --

Re: that is it is not it (logic in Python)

2005-04-01 Thread Steve Holden
even on first April. But you also wrote in your original post: Seriously on an April fool's day. which would seem to be falsely denying that your post was an April Fool's prank. Rather bad form, old chap ;-) regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Hold

Re: Installing Python on a Windows 2000 Server

2005-04-01 Thread Steve Holden
e same Python binaries, so there shouldn't be any problems. If I'm wrong this message will bring Tim Peters into the conversation, and his opinion can safely be regarded as authoritative (right, Tim?). regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 311

Re: How to reload local namespace definitions in the python interpreter?

2005-04-04 Thread Steve Holden
ld, of course, require the user to qualify the names by prefixing them with "op.". regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Newsgroup Programming

2005-04-04 Thread Steve Holden
i that has been split up into separate messages? If so then you'll need to concatenate all the message bodies and use uudecode on the result, I suspect. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Pr

Re: How to reload local namespace definitions in the python interpreter?

2005-04-04 Thread Steve Holden
Bill Mill wrote: On Apr 4, 2005 11:10 AM, Steve Holden <[EMAIL PROTECTED]> wrote: Tim Jarman wrote: [EMAIL PROTECTED] wrote: Hi, I am a beginner using the python interpreter. To reduce typing effort, I created a module called "aliases.py" containing some aliases for objects I c

Real ython Poetry [was: Re: boring the reader to death...]

2005-04-04 Thread Steve Holden
able under Poetic License* # Voice only the alphanumeric tokens from itertools import repeat for feet in [3,3,2,2,3]: print " ".join("DA-DA-DUM" for dummy in [None] for foot in repeat("metric", feet)) *thanks to Peter Hansen regards Steve -- Steve Holden

Re: text analysis in python

2005-04-04 Thread Steve Holden
t of "trickery" involved is rather less, though clearly there is some (automated conversion b etween Java and Pythin data types where appropriate, and automated signature-based selection of the appropriate Java method being the two most obvious). regards Steve -- Steve Holden

Re: Decorator Base Class: Needs improvement.

2005-04-04 Thread Steve Holden
pack when given to a function as an argument. Any way to force it? class Decorator(object): [...] Perhaps we need to get back to basics? Do you understand what I mean when I say a decorator should take one function as its argument and it should return a function? regards Steve -- Steve Holden

Re: Insert database rows from CSV file

2005-04-05 Thread Steve Holden
", for example. This depends on the module's "paramstyle". Also, don't forget to commit the changes! regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python & MySQL

2005-04-05 Thread Steve Holden
onnect and query the info isn't there. Info inserted from SQLyog is persistant. Has anyone had any problems like this before? thanks, jason I suspect you are forgetting to commit your changes to the database, so they are being rolled back when you close your connection. regards Steve

Re: Python & MySQL

2005-04-05 Thread Steve Holden
onnect and query the info isn't there. Info inserted from SQLyog is persistant. Has anyone had any problems like this before? thanks, jason I suspect you are forgetting to commit your changes to the database, so they are being rolled back when you close your connection. regards Steve

Real ython Poetry [was: Re: boring the reader to death...]

2005-04-05 Thread Steve Holden
able under Poetic License* # Voice only the alphanumeric tokens from itertools import repeat for feet in [3,3,2,2,3]: print " ".join("DA-DA-DUM" for dummy in [None] for foot in repeat("metric", feet)) *thanks to Peter Hansen regards Steve -- Steve Holden

Re: IronPython 0.7 released!

2005-04-05 Thread Steve Holden
g Barry can finally retrain Spambayes to reject penis enlargement emails? regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Best editor?

2005-04-05 Thread Steve Holden
asure is important, allowing you to place all editors on a single straight line and declare the one that appears furthest to the left or right the "best". In practice, of course, different people value different editor characteristics, so there are a multitude of opinions about whi

Re: Decorator Base Class: Needs improvement.

2005-04-05 Thread Steve Holden
Ron_Adam wrote: On Tue, 05 Apr 2005 02:55:35 -0400, Steve Holden <[EMAIL PROTECTED]> wrote: Ron_Adam wrote: Ok, that post may have a few(dozen?) problems in it. I got glitched by idles not clearing variables between runs, so it worked for me because it was getting values from a previo

Re: ignoring keywords on func. call

2005-04-06 Thread Steve Holden
only way they can be informed they aren't writing to your standard, surely? regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: formatting file

2005-04-06 Thread Steve Holden
ay be very obvious to you, we aren't inside your head with it! regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Decorator Base Class: Needs improvement.

2005-04-06 Thread Steve Holden
quirement. I can understand it if you are merely pursuing this topic because of your fascination with the capabilities of Python, but I don't have the feeling that there are legion Python programmers out there waiting impatiently to be able to build wrapped functions. People have been doing that as n

Re: Calling a Perl Module from Python ( future direction of Python)

2005-04-06 Thread Steve Holden
r dedication to Python so explicitly that they'll already be working on this problem :-) You might also look at the work Richard Jones and others did on PyPI during their PyCon sprint. Richard was confident that PyPI regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 H

Re: Python sleep doesn't work right in a loop?

2005-04-06 Thread Steve Holden
a specific call before each sleep to tell wxPython to update the display, since the sleep doesn't give control back to the display subsystem. I think the call you need is app.Yield(), but the docs will confirm that. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Steve Holden
harder to plan for. -paradoxically yrs- Robin Becker Not at all - we just apply the same division techniques to the buffer space until we can map the pieces of cake one-to-one onto the buffers. stick-that-in-your-cakehole-ly y'rs - steve -- Steve Holden+1 703 861 4237 +1 800 494

Re: How to name Exceptions that aren't Errors

2005-04-07 Thread Steve Holden
be able to continue a loop from an except clause). As long as the intent of the code is obvious to the casual reader I suspect it's very unlikely you'll get complaints. except CommentLine: pass seems reasonably comprehensible, so time spent arguing about it would be better devote

Re: How to name Exceptions that aren't Errors

2005-04-07 Thread Steve Holden
Roy Smith wrote: [...] I think my code is clearer, but I wouldn't go so far as to say I'm violently opposed to your code. I save violent opposition for really important matters like which text editor you use. +1 QOTW regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3

Re: curious problem with large numbers

2005-04-07 Thread Steve Holden
quot;copyright", "credits" or "license" for more information. >>> 1e1 Inf >>> regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: [JIM_SPAM] Microsoft supporting a .NET version of Python...

2005-04-07 Thread Steve Holden
Jim Hargrave wrote: http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742 You really shoud try and get out more: http://www.pycon.org/dc2005/talks/keynote regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http

Re: Interpreter problem

2005-04-08 Thread Steve Holden
). I have another file, myotherfile.py which starts with the exact same line (#!/usr/bin/python) but I get : bad interpreter: No such file or directory There's almost certainly a carriage return as well as a newline in the shebang line. [...] regards Steve -- Steve Holden+1 703 8

Re: Interpreter problem

2005-04-08 Thread Steve Holden
rbt wrote: Steve Holden wrote: Greg Lindstrom wrote: I am using python 2.3.5 on a Linux system and have an odd problem dealing with the 'sha-bang' line. I have a file, driver.py which starts with #!/usr/bin/python and works fine (that is, when I type in ./driver.py at the command

Re: How to name Exceptions that aren't Errors

2005-04-08 Thread Steve Holden
Leif K-Brooks wrote: Steve Holden wrote: I've even used an exception called Continue to overcome an irksome restriction in the language (you used not to be able to continue a loop from an except clause). Out of curiosity, how could you use an exception to do that? I would think you would ne

Re: Interpreter problem

2005-04-08 Thread Steve Holden
rbt wrote: Steve Holden wrote: rbt wrote: Steve Holden wrote: Greg Lindstrom wrote: I am using python 2.3.5 on a Linux system and have an odd problem dealing with the 'sha-bang' line. I have a file, driver.py which starts with #!/usr/bin/python and works fine (that is, when

Re: Interpreter problem

2005-04-08 Thread Steve Holden
regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Can dictionary values access their keys?

2005-04-08 Thread Steve Holden
rbage collector has to solve this problem, but you *really* don't want to be doing this stuff in Python unless you absolutely *must*. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Can dictionary values access their keys?

2005-04-08 Thread Steve Holden
Matthew Thorley wrote: Steve Holden wrote: while not impossible (using Python's excellent introspection facilities) is way beyond what most people would consider practical. Obviously the garbage collector has to solve this problem, but you *really* don't want to be doing this stuff

Re: Can dictionary values access their keys?

2005-04-08 Thread Steve Holden
Matthew Thorley wrote: Steve Holden wrote: I think that since each Datapoint appears to be unique, the simplest thing to do is to include a reference to the parent object as an attribute of the datapoint. Presumably when you create the Datapoint you already know which Device and Mib it's goi

Re: Equivalent string.find method for a list of strings

2005-04-08 Thread Steve Holden
o do it, I was hoping for something simpler as I wrote earlier. Thanks for your help, Jeremy If you want line numbers,. of course, then you can use for linenum, line in enumerate(myfile.readlines()): ... Remember that true to Python's philosophy numbering will start at zero. regards

Re: Equivalent string.find method for a list of strings

2005-04-08 Thread Steve Holden
jeremit0 wrote: Steve Holden wrote: jeremit0 wrote: harold fellermann wrote: file.readlines() returns a list of lines. You can either call find on each element in this list, like: for line in myfile.readlines() : if line.find('my particular string') : do_something() I h

Re: Thoughts on some stdlib modules

2005-04-08 Thread Steve Holden
tly half-baked is it 0.4-baked or 0.6-baked? Does "more half-baked" actually mean "less baked"?) regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

NYZPUG: Does it still exist?

2005-04-10 Thread Steve Holden
Following the NYZPUG link at www.python.org gives a Server Application Error (this for a very simple link: http://www.nyzpug.org/). Does anyone know if it's still active? regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenwe

Re: templating system

2005-04-10 Thread Steve Holden
record in records%> <%=record.title%> <%end for%> From what I saw Cheetah seems to be the only one that can do it. I was hoping there might be alternatives that I've missed :) Thanks! http://www.reportlab.org/preppy.html regards Steve -- Steve Holden+1 703 861 4237 +1 800 49

Re: args attribute of Exception objects

2005-04-11 Thread Steve Holden
he values,... Seb Wouldn't it actually be better to use a namespace that reported attempts to use its members? Then when you evaluated an expression you would be in control of how the attempted accesses were recorded, and could provide exactly the needed information. regards Steve -- Steve H

Re: database in python ?

2005-04-11 Thread Steve Holden
e two databases your information about MySQL is somewhat out of date - for example, it has supported transactions for almost two years now. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming

Re: smtplib does not send to all recipients

2005-04-11 Thread Steve Holden
.5 ... Recipient ok send: 'rcpt TO:\r\n' reply: '250 2.1.5 ... Recipient ok\r\n' reply: retcode (250); Msg: 2.1.5 ... Recipient ok In which case the Python is working perfectly correctly and you need to take the matter up with whoever runs the SMTP server. Are you sure the address is

Re: Problem with import "from omniORB import CORBA, PortableServer"

2005-04-11 Thread Steve Holden
:\\omniORB\\omniORB-4.0.3\\lib\x86_win32'] What am i doing wrong ? Well it look like you might be trying to use an OminORB from Python 2.3 with Python 2.4, though I couldn't swear to it. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: web authoring tools

2005-04-12 Thread Steve Holden
s-implemented-post.html to determine whether the overall approach would work for you. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: HTTPSConnection script fails, but only on some servers (long)

2005-04-12 Thread Steve Holden
ilityId='1466') print "done!" # EOF So... what the heck is wrong here? at-wits-end-ly y'rs, Paul Winkler Paul: I don't claim to have analyzed exactly what's going on here, but the most significant difference between the two is that you are accessing site

Re: How to minimize the window

2005-04-12 Thread Steve Holden
m's GUI. This could toggle to "Normal Iconisation" when the window only appeared int he system tray. Or, you could do what the Windows Task Manager does, and provide both a standard icon *and* a system tray icon. Noticed you seem to be pretty new to c.l.py, so while I have your a

Re: Python license (2.3)

2005-04-12 Thread Steve Holden
ense Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003 Python Software Foundation; All Rights Reserved" are retained in Python 2.3 alone or in any derivative version prepared by Licensee.""" Should we wait until you publish tube and then remove *

Re: Cannot import mod_python modules

2005-04-12 Thread Steve Holden
quot;Hello World!") return apache.OK Why doesn't this work? or rather what have I missed? Usually this is a permissions issue, often because you installed mod_python as a non-administrator. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC

Re: web authoring tools

2005-04-12 Thread Steve Holden
Brandon J. Van Every wrote: Steve Holden <[EMAIL PROTECTED]> wrote in Brandon J. Van Every wrote: I believe Dreamweaver-esque. I see myself writing articles and eventually doing snazzy eye candy layouts. I do not see myself engaging in elaborate flow control or anything terribly programma

Re: exporting imports to reduce exe size?

2005-04-12 Thread Steve Holden
ter the imports and then reload the name space in place of the imports later? This would be quite a feat of introspection if you could do it. Cheers, Ron As another respondent suggested the savings of this technique would likely not be a reasonable return on the development and support effo

Re: singleton objects with decorators

2005-04-12 Thread Steve Holden
e would set True and False themselves in order to make their pre-2.4 code readable, however, this may overstress backward compatibility. regards Steve -- Steve Holden+1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydis

<    6   7   8   9   10   11   12   13   14   15   >