Re: Hot to split string literals that will across two or more lines ?

2005-11-22 Thread Steve Holden
string > with an empty string thus > """.replace('\n','') > Of course there's also the alternative of escaping the newlines out in the literal. The replace result above is exactly """\ lots of text hundreds of characters long\ more text on another line but we really don't want any line breaks\ in our final string\ so we replace newlines in this multiline string\ with an empty string thus\ """ regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Why are there no ordered dictionaries?

2005-11-23 Thread Steve Holden
rs to favour any one of the several reasonable alternatives that might be chosen. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: python gui using boa

2005-11-23 Thread Steve Holden
if this isn't an option for you. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: mxODBC sql MSAccess

2005-11-23 Thread Steve Holden
L or mxODBC? > And how can I get just simple tab-delimited records with a standard > carriage return separating the records? > > Thanks so much for any help. > > bs > Well you know that answer now. You might also consider using the recipe at http://a

Re: Hot to split string literals that will across two or more lines ?

2005-11-23 Thread Steve Holden
en you print it - the SQL interpreter certainly won't care. Many SQL statements are so long that it actually helps readability to have newlines in them. There have been plenty of solutions presented in the earlier posts in this thread if you really do need to represent multi-line strings.

Re: wxPython Licence vs GPL

2005-11-23 Thread Steve Holden
the wxPython Licence is compatible with the GPL -- if not, > do we just cosmetically change any remaining lines, so none remain from > the orignal?) > That won't stop your code from being a derivative work. You'll need to take licensing and copyright issues a little more seriously

Re: asyncore question

2005-11-23 Thread Steve Holden
> > >>>>d.__class__ > > > >>>>d is None > > False > >>>>^Z > > > why > >>>>print d > > prints None ? > > > >Thanks for your answers, > > > At a guess, because it has

Re: return in loop for ?

2005-11-23 Thread Steve Holden
feel safe returning from inside a loop. Just as a matter of interest, how else would you propose to implement the functionality Mike showed: > >>>def f(): > > ... for i in range(20): > ... if i > 10: return i > ... > Python is supposed to cleanly express the

Re: Using Cron to run a python program

2005-11-23 Thread Steve Holden
e we're guessing, *my* guess would be that the cron-triggered runs are running in some directory other than the one the manually-triggered jobs are, and that there is a separate update.log file in that directory. The fix, of course, would be to use an absolute path to identify the log file (if

Re: Unicode in MIMEText

2005-11-23 Thread Steve Holden
t_codec: > return unicode(s, self.input_codec).encode(self.output_codec) > +elif isinstance(s, unicode): > +return s.encode(self.output_codec) > else: > return s > > > > > ... and being concerned to improve the lib

Re: Python as Guido Intended

2005-11-23 Thread Steve Holden
ore considerate of the feelings of the proposers, but life is short and we are all imperfect. The fact that naive expressions of opinion about such matters are traditionally accorded respect and answered politely is one of the reasons why so many people find this list a helpful plac

Re: Python as Guido Intended

2005-11-23 Thread Steve Holden
it could be pointed out. > I think Mike (the Mike I imagine, anyway) merely intended to point out that since we can't live in each others' heads all communication is with an imaginary person, whose actual thoughts and feelings are unavailable to us. regards Steve -- Steve Holden

Re: Why is dictionary.keys() a list and not a set?

2005-11-23 Thread Steve Holden
rator, not a list: >>> d = dict.fromkeys(range(5)) >>> d.iteritems >>> d.iteritems() >>> [x for x in d.iteritems()] [(0, None), (1, None), (2, None), (3, None), (4, None)] >>> regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119

Re: wxPython Licence vs GPL

2005-11-24 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Steve Holden wrote: > >>Whether or not some fragments of code remain unchanged at the end of >>your project, if you start out with a piece of source code lifted from >>wxPython then what you have created is definitely a "derivative work&q

Re: return in loop for ?

2005-11-24 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Steve Holden wrote: > > >>Yomgui: I am not a language lawyer, but I think you can feel safe >>returning from inside a loop. Just as a matter of interest, how else >>would you propose to implement the functionality Mike showed: >> >&

Re: wxPython Licence vs GPL

2005-11-24 Thread Steve Holden
Steven D'Aprano wrote: > Steve Holden wrote: > > >>The thrust of my original remarks was to try to persuade the OP that the >>original comment about changing the code was ingenuous. If you take some >>code under license as a starting point then even if no line

Re: return in loop for ?

2005-11-24 Thread Steve Holden
ry of. First, no verification program can verify itself; secondly the requirements sepcifications for formal verification are way beyond what a normal user is capable of specifying, making them an even worse tool for specification. regards Steve -- Steve Holden

Re: defining the behavior of zip(it, it) (WAS: Converting a flat list...)

2005-11-24 Thread Steve Holden
ple different ways of expressing the same idea. > That you extend this Python philosophy even to english > and newsgroup posting is fascinating... > I think Fredrik was trying to make a point about the need to be accurate in discussing language features, but I could be wrong. >

Re: defining the behavior of zip(it, it) (WAS: Converting a flat list...)

2005-11-25 Thread Steve Holden
Magnus Lycka wrote: > [EMAIL PROTECTED] wrote: > >>Oh, find a need to shut other up ? >> > > Oh, find a need to get the last word? > > /Magnus > > P.S. Yes, this *is* a test. Looks like you hooked him, Magnus ;-) -- Steve Holden +44 150 684

Re: return in loop for ?

2005-11-25 Thread Steve Holden
to do with the Halting Problem at all. A very simple possible verification program is one that outputs True for any input. This will also verify itself. Unfortunately its output will be invalid in that and many other cases. I maintain that we cannot rely on any program's assertions about it

Re: Guification of console app

2005-11-25 Thread Steve Holden
you how to keep a Tkinter GUI running with parallel worker threads. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: sending all key events to wx.panel?

2005-11-25 Thread Steve Holden
ow containing the panel? If the panel ignores keyboard events they'll just rise to the containing window, won't they? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: return in loop for ?

2005-11-25 Thread Steve Holden
to do with the Halting Problem at all. A very simple possible verification program is one that outputs True for any input. This will also verify itself. Unfortunately its output will be invalid in that and many other cases. I maintain that we cannot rely on any program's assertions about it

Re: Help need

2005-11-25 Thread Steve Holden
ock > make[2]: *** [swapped.out] Error 1 > make[1]: *** [ant_final_target] Error 2 > make: *** [rest] Error 2 > > > Any Help? > The "except" clause requires an indented suite, which you've commented out. You might also want to look a

Re: return in loop for ?

2005-11-26 Thread Steve Holden
Steven D'Aprano wrote: > On Fri, 25 Nov 2005 08:36:48 +0000, Steve Holden wrote: [...] > >>I maintain that we cannot rely on any program's assertions about its own >>formal correctness. > > > There are two ways of understanding that statement. > > I

Re: Unicode in MIMEText

2005-11-26 Thread Steve Holden
ch will ultimately be decided by the maintainer who considers your submission (in all probability Barry Warsaw, but not necessarily). Thanks for taking the time to improve the quality of the Python library. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC

Re: Which License Should I Use?

2005-11-26 Thread Steve Holden
ur own time" you have sole rights to it, or even a right to redistribute, is likely to lead to trouble and I would recommend against that course of action. Apart from that, as others have suggested it looks like a BSD-style license would suit you best. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Fractal curve

2005-11-27 Thread Steve Holden
curve. > http://www.google.com/search?q=dragon+curve+python -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Which License Should I Use?

2005-11-28 Thread Steve Holden
official advice of the PSF is that the unmodified Python license should *not* (and, really, can not) be used to license any other software. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: General question about Python design goals

2005-11-29 Thread Steve Holden
w projects are in progress. But my bike > still is getting wet and anyway, it's still bothering me. > Yes, but that's the academic world, and bike sheds are a real-world requirement so they will tend to be ignored indefinitely. regards Steve --

Re: Help!!! On Tkinter Menu problem!!!

2005-11-30 Thread Steve Holden
http://effbot.org/tkinterbook/menu.htm Are these top-level windows you are deleting? If so, look under "Protocol" in http://effbot.org/zone/tkinter-events-and-bindings.htm for details of how to handle WM_DELETE_WINDOW. The handler for each window can delete the appropriate menu item. re

Re: Nested loop

2005-11-30 Thread Steve Holden
ng process. Either way, it > better be done outside of the outer loop. > The solution, as already proposed, is to bind the list of lines to a nanme so it can be reused. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Nested loop

2005-11-30 Thread Steve Holden
ed, but I personally don't see a way to persuade difflib to compare the lines of one file with the fourth field of lines in another. Do you know something I don't? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com

Re: python speed

2005-11-30 Thread Steve Holden
:) > I don't see why this is so funny. A good C compiler with optimization typically produces better code than an equivalent assembly language program. As compilation techniques improve this gap is likely to widen. There's less and less reason to use assembler language with e

Re: General question about Python design goals

2005-12-01 Thread Steve Holden
patch to implement the required methods and see if it were accepted (though wibbling is a much easier alternative). Personally I find the collective wisdom of the Python developers, while not infallible, a good guide as to what's pythonistic and what's not. YMMV. regards Steve --

Re: General question about Python design goals

2005-12-01 Thread Steve Holden
Here you could use the count() method. > Bearing in mind the (likely) performance impact of using these items as dict keys don't you think some other representation would be preferable? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: General question about Python design goals

2005-12-01 Thread Steve Holden
rings have always been anomalous in this respect. > > If it happens all the time, you shouldn't have any trouble nameing a > number of things that a majority of users think are misfeatures that > aren't being fixed. Could you do that? > Doubtless he could. Paul's a

Re: Is Python string immutable?

2005-12-02 Thread Steve Holden
the situation. Are you, for example, holding the HTML for every spidered page? As a side note, both C# and Java also use garbage collection, so if your algorithm exhibits the same problem in all three languages this merely confirms that the problem really is your algorithm, and not the language

Re: Need help on designing a project

2005-12-02 Thread Steve Holden
pts would be something like: conn = db.open() try: #do CGI stuff finally: conn.close() to make sure that the connection is always closed. Would this help, do you think? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib on windows machines

2005-12-04 Thread Steve Holden
econds: > Minimum = 22ms, Maximum = 23ms, Average = 22ms > Something is clearly wrong. here's *my* XP system connecting to Google: C:\Steve>python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credit

Re: how to handle two forms in cgi?

2005-12-04 Thread Steve Holden
session state, but it isn't impossible to maintain it yourself in CGI scripts once you understand the problem. Good luck! regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: ADD HTML to the code

2005-12-05 Thread Steve Holden
\n' % (a, c, d)]) st.append('var mrk%s = new GMarker( bldg%s );\n' % (a, a)) st.append('var htm%s = "%s";\n' % (a, b)) st.append('GEvent.addListener(mrk%s,"click",function() {' % a) st.append('mrk%s.openInfoWi

Re: Constructing RFC2822 Message

2005-12-05 Thread Steve Holden
ll may be getting in your way. (It may already trust Java). You don't report the actual error, so it's difficult to say waht's going wrong. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006

Re: how to handle two forms in cgi?

2005-12-05 Thread Steve Holden
you have to remember that the hidden items are available to anyone using "view source" in their browser (or writing a client program to do the equivalent thing), so your mechanism will be quite obvious to hackers. regards Steve -- Steve Holden +

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread Steve Holden
f adding an optional > "dumbed-down" format will help then that might be an improvement in the > big picture. > But you don't want it to be Python, is all. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython : getting started

2005-12-05 Thread Steve Holden
o wxPython. See: http://wiki.python.org/moin/PyCon2006/Tutorials/GettingStartedWithWxPython regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Bitching about the documentation...

2005-12-05 Thread Steve Holden
hanges that will get Fred and Skip more help on the documentation I'll try to make those too. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: what's wrong with "lambda x : print x/60,x%60"

2005-12-05 Thread Steve Holden
ction definition? > > > def mult_by_five(): >def somefunc(x): return x*5 >return somefunc > > is multi-line, as opposed to: > > def mult_by_five(): return lambda x: x*5 Again I'm a little tired of suggestions that reducing things t

Re: tricky time interval billing problem

2005-12-05 Thread Steve Holden
umber are the same and the start date of the second is less than or equal to the end date of the first, repeatedly until either there's no date overlap or a new service and/or client is started. This shouldn't need any intermediate storage of results: if the row you've just read can

Re: Bitching about the documentation...

2005-12-05 Thread Steve Holden
e author was happy to help me by answering questions, and this did make the docs better than they'd otherwise have been. -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Xah's Edu Corner: Examples of Quality Technical Writing

2005-12-05 Thread Steve Holden
any inappropriate network newsgroups. -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: what's wrong with "lambda x : print x/60,x%60"

2005-12-06 Thread Steve Holden
nty of code I wouldn't necessarily write myself on this list, but as long as it solves the poster's problem and doesn't contain any egregious errors I'm happy to let it by. For the record, this includes uses of reduce, map and filter: I don't naturally favour a function

Re: Force Focus in Tkinter

2005-12-06 Thread Steve Holden
ore I hit the ENTER key - the ENTER acts as a button press on the dialog's default button and I have no idea whether I just cancelled some actions or agreed to it. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com Py

Re: what's wrong with "lambda x : print x/60,x%60"

2005-12-06 Thread Steve Holden
r irony detector up a little - it looks like hte gain is currently way too low :o) regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: how to handle two forms in cgi?

2005-12-06 Thread Steve Holden
e way, do you write a book "Python Web Programming"? It is on my > desk. It's a great book. > That was me. Glad you like it! regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006

Re: i=2; lst=[i**=2 while i<1000]

2005-12-06 Thread Steve Holden
false, so the loop is endless. It will probably eventually terminate by throwing a MemoryError exception when lst and its element values use up all available space. Don't you have an interpreter you could run the code in to verify that it does indeed loop interminably? You seem to be as

Re: i=2; lst=[i**=2 while i<1000]

2005-12-06 Thread Steve Holden
Carsten Haese wrote: > On Tue, 2005-12-06 at 10:44, Steve Holden wrote: > >>Daniel Schüle wrote: >> >>>>>i=2 >>>>>lst=[] >>>>>while i<1000: >>>>> i**=2 >>>>> lst.append(i) >>>>>

Re: Documentation suggestions

2005-12-06 Thread Steve Holden
s important enough to work on. It would be a good idea next year, too. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

PyCon Sponsorship

2005-12-06 Thread Steve Holden
rg/sponsor/ regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Bitching about the documentation...

2005-12-07 Thread Steve Holden
g system will help get more work out of them. If you wanted to build a better tracking system than the one on SourceForge I could certainly support that, but historically there hasn't been much volunteer effort available to switch to something like Roundup which might be preferred. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Force Focus in Tkinter

2005-12-07 Thread Steve Holden
ice the choice between Tkinter and wxPython, PyGtk and the like is often either a religious issue or a choice based on the first tool that could be manipulated to providing the required results. Ideally you want to structure your program so that the GUI can be changed without too much effect on

Re: Documentation suggestions

2005-12-07 Thread Steve Holden
gt; familiar with C." > > Most of the site has been laid out by programmers, for programmers, who > apparently want to keep it that way, based upon what I've seen. > I think the Python community as a whole should take this on board as fair criticism. It would be r

Re: what's wrong with "lambda x : print x/60,x%60"

2005-12-07 Thread Steve Holden
arance of a module to be tidy I just use __all__. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python string immutable?

2005-12-08 Thread Steve Holden
Frank Potter wrote: > Thank you very much. > Steve Holden, I post my soucecode at my blog here: > http://hiparrot.wordpress.com/2005/12/08/implementing-a-simple-net-spider/ > <http://hiparrot.wordpress.com/2005/12/08/implementing-a-simple-net-spider/> > I wish you can

Re: Bitching about the documentation...

2005-12-08 Thread Steve Holden
t "I called the Honorable member a liar it is true and I am sorry for it", adding that the Honorable member could insert the punctuation wherever he so chose. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: what's wrong with "lambda x : print x/60,x%60"

2005-12-08 Thread Steve Holden
makes a difference, but ask yourself how many bytes you are saving by allowing the code for that function to be collected. Having said this, neither do I have any objection to your continuing to anally tidy up your namespace, but then I'm a slob whose partner is a neat freak, so I'm well u

Re: what's wrong with "lambda x : print x/60,x%60"

2005-12-08 Thread Steve Holden
Paul Rubin wrote: > Steve Holden <[EMAIL PROTECTED]> writes: > >>>All joking aside, when I have names (temporary variables or scaffolding >>>functions) that I need to initialise a module or data structure, but then >>>outlive their usefulness, I del th

Re: sql escaping module

2005-12-08 Thread Steve Holden
though. > (I'd also like to see a better granularity; the current connection/cursor > model is a > bit limited; a connection/cursor/query/result set model would be nicer, but I > guess > ODBC gets in the way here...) > Yes, it would at least be nice to include some o

Re: sql escaping module - Frank Millman Followup

2005-12-09 Thread Steve Holden
David Bear wrote: >>Steve Holden wrote: > > >>Fredrik Lundh wrote: >> >>>Frank Millman wrote: >>> >>> >>> >>>>Each of the API's includes the capability of passing commands in the >>>>form of 'string +

Re: Moving a package in cygwin

2005-12-09 Thread Steve Holden
libraries as (or at least a compiler and libraries that are binary compatible with) the Python interpreter. Since the Cygwin interpreter was built with Cygwin gcc + Cygwin libraries and the Windows interpreter was built with Microsoft's Visual Studio compiler and libraries there's very little chance of a non-source migration of the Windows package to Cygwin. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: slice notation as values?

2005-12-09 Thread Steve Holden
#x27;): > Do you mean for key, value in tree.items()['alfa.': 'beta.']: What would this mean? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: heartbeats

2005-12-09 Thread Steve Holden
> > > Which python functions would be the most convenient for this application? > > Best regards, > Yves http://www.google.com/search?q=python+recipe+heartbeat => http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52302 regards Steve -- Steve Holden +44 150 68

Re: Dectecting dir changes

2005-12-09 Thread Steve Holden
t I can tell > this isn't supported on Solaris. > [...] > > Suggestions? > Write an FTP server in Python, then it will know exactly when each file transfer is complete, and it can do the mailing itself! regards Steve -- Steve Holden +44 150 684 7255

Re: How to find the type ...

2005-12-09 Thread Steve Holden
: >>> getInt("3.14159") Traceback (most recent call last): File "", line 1, in ? File "", line 5, in getInt ValueError: getInt called with non-integer value >>> getInt(3.14159) 3 >>> which may or may not be what you want

Re: Proposal: Inline Import

2005-12-10 Thread Steve Holden
> idioms that are completely different from standard Python usage; my code > would become unmaintainable. Thus a prerequisite for using inline > import is broad approval. > > Shane Good luck. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-10 Thread Steve Holden
My advice would be to stop using punch cards and start using a sensible text editor. Your use case is somewhat unconvincing in the 21st century. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-10 Thread Steve Holden
Zeljko Vrba wrote: > On 2005-12-10, Steve Holden <[EMAIL PROTECTED]> wrote: > >>My advice would be to stop using punch cards and start using a sensible >>text editor. >> > > Such as..? > Since choice of text editor tends to be a religious issue, that w

Re: The Industry choice

2004-12-31 Thread Steve Holden
erates against the adoption of technologies that the big boys effectively keep to themselves by keeping quiet about? Google's use of Python , while not a closely-kept a secret as Oracle's use of Tcl, certainly isn;t as well-known as it deserves to be. regards Steve -- Steve Holden

PyCon submission about to close

2004-12-31 Thread Steve Holden
Just a quick reminder for the laggards among us that you now have approximately SEVEN HOURS in which to submit your proposals for a talk at PyCon. Thanks to all who have already taken the trouble to do so, and to the rest of you: GET ON WITH IT! happy-new-year-ly y'rs - steve -- Steve H

Quoting code [was: OT: spacing of code in Google Groups]

2004-12-31 Thread Steve Holden
ts used on the ##python IRC channel a lot, and it does make sharing very easy. Having said which, there's still a lot going for just using spaces instead of tabs. though-i-don't-know-what-ggogle-does-to-that-ly y'rs - steve -- Steve Holden http://www.holdenweb.co

Re: what is lambda used for in real code?

2005-01-01 Thread Steve Holden
Adam DePrince wrote: [...] In sort, we must preserve the ability to create an anonymous function simply because we can do so for every other object type, and functions are not special enough to permit this special case. And you'd create an anonymous type how, exactly? regards Steve --

Re: The Industry choice

2005-01-01 Thread Steve Holden
s and rough edges, without realizing that it can't reasonably be called complete without a lot more work. ^Python^open source^ regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 80

Re: The Industry choice

2005-01-01 Thread Steve Holden
s and rough edges, without realizing that it can't reasonably be called complete without a lot more work. ^Python^open source^ regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 80

Re: The Industry choice

2005-01-01 Thread Steve Holden
onceit it career advancement is one's primary goal. which-is-why-i-run-my-own-business-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: what is lambda used for in real code?

2005-01-01 Thread Steve Holden
Alex Martelli wrote: Steve Holden <[EMAIL PROTECTED]> wrote: Adam DePrince wrote: [...] In sort, we must preserve the ability to create an anonymous function simply because we can do so for every other object type, and functions are not special enough to permit this special case. And you&#x

Re: The Industry choice

2005-01-01 Thread Steve Holden
s way too large a motivator in large organizations, and it leads to many forms of sub-optimal decision making. 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: The Industry choice

2005-01-02 Thread Steve Holden
Paul Rubin wrote: Steve Holden <[EMAIL PROTECTED]> writes: It seems to me that IDLE and a lot of the rest of Python are examples of someone having a cool idea and writing a demo, then releasing it with a lot of missing components and rough edges, without realizing that it can't re

Re: The Industry choice

2005-01-02 Thread Steve Holden
ns but has come to regard them as the horror that they are. I've learned to just write "throws Exception" at the declaration of every method. Pretty sloppy, though, no? And surely the important thing is to have a broad handler, not a broad specification of raisable exceptions

Re: The Industry choice

2005-01-02 Thread Steve Holden
something. They'll probably just move to .NET, which allows them to write .aspx pages using VB. 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: Continuations Based Web Framework - Seaside.

2005-01-02 Thread Steve Holden
ins some of the advantages of maintaining state and why the "back" button is an obnoxious anachronism :-) 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: UserDict deprecated

2005-01-03 Thread Steve Holden
olfgang Good for you! When you've fixed that up, you might want to take a look at cgi.py, dumbdbm.py, shelve.py and weakref.py as well ;-) regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703

Re: Advice request for project

2005-01-03 Thread Steve Holden
ne. I'm sure you'll get other suggestions as well, but that'll get you started thinking pythonically. 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: Continuations Based Web Framework - Seaside.

2005-01-03 Thread Steve Holden
Ian Bicking wrote: Steve Holden wrote: I did actually do some sort-of-related work in this area, which I presented at PyCon DC 2004 - you can access the paper at http://www.python.org/pycon/dc2004/papers/18/Setting_A_Context.pdf An audience member mentioned the Smalltalk and Scheme-based work

Re: Continuations Based Web Framework - Seaside.

2005-01-03 Thread Steve Holden
Kendall Clark wrote: On Sun, Jan 02, 2005 at 10:03:10AM -0500, Steve Holden wrote: I did actually do some sort-of-related work in this area, which I presented at PyCon DC 2004 - you can access the paper at http://www.python.org/pycon/dc2004/papers/18/Setting_A_Context.pdf An audience member

Re: The Industry choice

2005-01-03 Thread Steve Holden
Terry Reedy wrote: "Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Well clearly there's a spectrum. However, I have previously written that the number of open source projects that appear to get stuck somewhere between release 0.1 and release 0

Re: The Industry choice

2005-01-03 Thread Steve Holden
Aahz wrote: In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: Aahz wrote: In article <[EMAIL PROTECTED]>, Paul Rubin <http://[EMAIL PROTECTED]> wrote: I was pretty skeptical of Java's checked exceptions when I first used them but have been comin

Re: What can I do with Python ??

2005-01-03 Thread Steve Holden
is to be able to track changes and thereby discourage defacement, which was starting to happen of a depressingly regular basis. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800

Re: Developing Commercial Applications in Python

2005-01-03 Thread Steve Holden
ely been happening in the licensing space. 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: Python! Is! Truly! Amazing!

2005-01-03 Thread Steve Holden
and a chance, simply because of the rebarbative syntax one must use to express even relatively simple algorithms and data structures. While the language has a lot going for it in the hands of an experienced and determined LISPer, the average programmer just isn't going to "get it".

Re: input record sepArator (equivalent of "$|" of perl)

2005-01-03 Thread Steve Holden
them a 2 x 4 is still a 2 x 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

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