Re: Pre/Postconditions with decorators

2005-01-09 Thread Stephen Thorne
On 08 Jan 2005 15:50:48 -0800, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote: > Stephen Thorne <[EMAIL PROTECTED]> writes: > > Unresolved Problems: > > 1) How do you handle duck types, i.e. a method that accepts StringIO, > > cStringIO or any other

Re: Recent infoworld column

2005-01-09 Thread Stephen Waterbury
Roger Binns wrote: You may also find a talk I gave at baypiggies in July 2004 of interest. http://bitpim.org/papers/baypiggies/ It covers the various issues in doing a "real world" Python application, including packaging [etc -- lots of great stuff ...] *Very* nice presentation -- THANKS! Especia

Re: a new Perl/Python a day

2005-01-10 Thread Stephen Thorne
the python-list@python.org and I was extremely confused until you pointed out the crossposting. Maybe that mail2news gateway should be upgraded to point out crossposted usenet posts... Stephen. -- http://mail.python.org/mailman/listinfo/python-list

Re: else condition in list comprehension

2005-01-12 Thread Stephen Thorne
n't find it... > > for example: > z=[i+2 for i in range(10) if i%2==0] > what if I want i to be "i-2" if i%2 is not equal to 0? z = [i+2-(i%2)*4 for i in range(10)] C'mon, who needs an 'if' statement when we have maths! Stephen. -- http://mail.python.org/mailman/listinfo/python-list

Re: dict.updated

2005-01-12 Thread Stephen Thorne
#x27;: 10, 'c': 3}] > > But I'd like to put the "updated" method on the "dict" object, which is what > I can't seem to figure out. > Yeah I know that's "bad", but to my mind so is polluting the global > namespace with the "upda

Re: Octal notation: severe deprecation

2005-01-12 Thread Stephen Thorne
On 12 Jan 2005 16:21:29 -0800, PJDM <[EMAIL PROTECTED]> wrote: > Maybe P3K will have an integer literal like "n_b" for "the integer n in > base b". I would actually like to see pychecker pick up conceptual errors like this: import datetime datetime.datetime(2005,

Re: Refactoring; arbitrary expression in lists

2005-01-12 Thread Stephen Thorne
-src'), (re.compile(r'[Mm]akefile') , 'text/x-makefile'), ] for regexp, mimetype in extensionlist: if regexp.match(filename): return mimetype if you were really concerned about efficiency, you could use something like: class SimpleMatch: def __init__(self, pattern

Re: pyserial and com port interrupts

2005-01-12 Thread Stephen Thorne
= 9600'. The OP was more interested in how to write his program so he could react to com port input in a timely manner in the face of having blocking procedures elsewhere in his code. Regards, Stephen Thorne [1] http://pyserial.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Gecko bindings for Python?

2005-01-12 Thread Stephen Thorne
there's wxMozilla, which is for embedding mozilla's rendering engine (I assume that's what you mean by 'Gecko') within wxpython/wxwidgets. Stephen. On 11 Jan 2005 07:10:57 -0800, Cordula's Web <[EMAIL PROTECTED]> wrote: > Hello, > > I'd l

Re: Refactoring; arbitrary expression in lists

2005-01-12 Thread Stephen Thorne
On Thu, 13 Jan 2005 05:18:57 GMT, Bengt Richter <[EMAIL PROTECTED]> wrote: > On Thu, 13 Jan 2005 12:19:06 +1000, Stephen Thorne <[EMAIL PROTECTED]> wrote: > > >On Thu, 13 Jan 2005 01:24:29 GMT, Bengt Richter <[EMAIL PROTECTED]> wrote: > >> extensiondict

Re: newbie q

2005-01-12 Thread Stephen Thorne
> for i in [x for x in os.listdir(src) if os.path.isfile(os.path.join(src, > x)) and len(x.split('.')) > 1 and x.split('.')[-1].lower() == 'm3u']: > os.remove(os.path.join(src, i)) > > if __name__ == '__main__': > _test() import g

Re: finding/replacing a long binary pattern in a .bin file

2005-01-12 Thread Stephen Thorne
kay, given the requirements. f = file('mybinfile') contents = f.read().replace(oldbinstring, newbinstring) f.close() f = file('mybinfile','w') f.write(contents) f.close() Will do it, and do it accurately. But it will also read the entire file into memory. Stephen. -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie q

2005-01-13 Thread Stephen Thorne
On Thu, 13 Jan 2005 17:05:39 +1000, Egor Bolonev <[EMAIL PROTECTED]> wrote: > > "Stephen Thorne" <[EMAIL PROTECTED]> ÑÐÐÐÑÐÐ/ÑÐÐÐÑÐÐÐ Ð > > ÑÐÐÐÑÑÑÐÐ: news:[EMAIL PROTECTED] > On Thu, 13 Jan 2005 15:55:10 +1000, Egor Bolonev <[EMAIL PROTE

Re: Python.org, Website of Satan

2005-01-14 Thread Stephen Waterbury
Michael Hoffman wrote: Denis S. Otkidach wrote: Certainly, it can be done more efficient: Yes, of course. I should have thought about the logic of my code before posting. But I didn't want to spend any more time on it than I had to. ;-) Bah, you satanic types are so lazy. -- http://mail.python.org

Re: Native widgets for Python

2005-01-17 Thread Stephen Thorne
there's someone writing 'dabo', which is apparently "wxpython but more python". Stephen. On Mon, 17 Jan 2005 15:13:07 +0100, A. Klingenstein <[EMAIL PROTECTED]> wrote: > Which other GUI library for Python other than wxpython has native > widgets for MS Wi

Re: Advice to a Junior in High School?

2005-01-18 Thread Stephen Waterbury
collegebabe2004 wrote: wow! Aren't we getting ahead of ourselves? ... Well I'm like "yuhhh!" Like, you know, Japanese ... oh I am *so* shur! -- http://mail.python.org/mailman/listinfo/python-list

Re: generator expressions: performance anomaly?

2005-01-18 Thread Stephen Thorne
60*24; } Parse Error, neither is anything except + and -: class Foo { var $bar = 256 & 18; } Parse Error, and definately not variables: $baz = 12; class Foo { var $bar = $baz*2; } I compute 60*60*24 every time around the loop: foreach ($myarray as $value) { $x = 60*60*24*$value; } Thankful, Former PHP Programmer, Stephen Thorne. -- http://mail.python.org/mailman/listinfo/python-list

Re: simultaneous multiple requests to very simple database

2005-01-18 Thread Stephen Thorne
e easily wrapped around with a simple, pythonic wrapper. It even has a .createTable() function for those times when you don't even want to log into the database. Regards, Stephen Thorne. -- http://mail.python.org/mailman/listinfo/python-list

Re: generator expressions: performance anomaly?

2005-01-18 Thread Stephen Thorne
ts_kwargs): def decorator(f) def closure(*arg, **kwargs): kwargs.update(constants_kwargs) return f(*arg, **kwargs) return closure return decorator Regards, Stephen Thorne -- http://mail.python.org/mailman/listinfo/python-list

Re: File objects? - under the hood question

2005-01-18 Thread Stephen Thorne
read any data, but at this point if the file wasn't there, the OS would have throw you an error. > (2) >>> hesjustsleeping = f.read() The entire file is read directly into a single python str. Regards, Stephen Thorne. -- http://mail.python.org/mailman/listinfo/python-list

Re: list item's position

2005-01-19 Thread Stephen Thorne
t = list(itertools.dropwhile(dropPredicate, mylist)) assert mylist == ['somecontentsxxx', 'd', 'e', 'f'] This will drop everything at the start of the list for which 'dropPredicate' returns true. This will mean that even if dropPredicate retu

wxPython unicode/ansi builds [was Re: ElementTree cannot parse UTF-8 Unicode?]

2005-01-20 Thread Stephen Waterbury
Martin v. LÃwis wrote: Jarek Zgoda wrote: So why are there non-UNICODE versions of wxPython??? To save memory or something??? Robin Dunn has an explanation here: http://wiki.wxpython.org/index.cgi/UnicodeBuild ... which is the first hit from a Google search on "wxpython unicode build". Also, from t

Re: Print a string in binary format

2005-01-20 Thread Stephen Thorne
function that actually fulfills the requirements. This can be used in the original poster's situation to output data in (almost) readable binary format using something like the following: f = file('myfile', 'rb') while 1: bytes = f.read(8) if not bytes: break print ' '.join([bstr(ord(c)) for c in bytes]) Regards, Stephen Thorne -- http://mail.python.org/mailman/listinfo/python-list

Re: Unbinding multiple variables

2005-01-20 Thread Stephen Thorne
On 20 Jan 2005 19:24:43 -0800, Johnny Lin <[EMAIL PROTECTED]> wrote: > Hi! > > Is there a way to automate the unbinding of multiple variables? Say I > have a list of the names of all variables in the current scope via > dir(). Is there a command using del or something like that that will > itera

Re: What YAML engine do you use?

2005-01-22 Thread Stephen Waterbury
Steve Holden wrote: It seems to me the misunderstanding here is that XML was ever intended to be generated directly by typing in a text editor. It was rather intended (unless I'm mistaken) as a process-to-process data interchange metalanguage that would be *human_readable*. The premise that XML

[OT] XML design intent [was Re: What YAML engine do you use?]

2005-01-22 Thread Stephen Waterbury
Fredrik Lundh wrote: Stephen Waterbury wrote: The premise that XML had a coherent design intent stetches my credulity beyond its elastic limit. the design goals are listed in section 1.1 of the specification. see tim bray's annotated spec for additional comments by one of the team me

Re: [OT] XML design intent ... further musings

2005-01-22 Thread Stephen Waterbury
Peter Hansen wrote: If merely thinking about the purpose of XML doesn't make it clear where Steve got that idea ... I meant no disparagement of Steve, and it is quite clear where he got that (correct!) idea ... It's also clear that the XML user community sees that as part of *their* purpose in appl

Re: [OT] XML design intent ... further musings

2005-01-23 Thread Stephen Waterbury
Paul Rubin wrote: Stephen Waterbury <[EMAIL PROTECTED]> writes: I should note that I have to deal with XML a lot, but always kicking and screaming (though much less now because of Fredrik's Elementtree package ;). Thanks, Fredrik and Peter, for the references. ;) I love this old ran

Re: Memory Usage

2005-01-24 Thread Stephen Kellett
ht all the same. Either launch Python from VM Validator, or inject VM Validator into your running Python.exe process. Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon.co.uk/rsi.html -- http://mail.python.org/mailman/listinfo/python-list

Re: is there better 32 clock() timing?

2005-01-25 Thread Stephen Kellett
otally accurate (multiple execution pipelines, plus multithreading considerations). You have to choose the system that works best for you. In many cases RDTSC works OK. Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon

Re: is there better 32 clock() timing?

2005-01-25 Thread Stephen Kellett
due to power management. Try running multiple apps at the same time you are doing your measurement, each of which has a variable loading. Each of these apps is contributing to the count returned by RDTSC. That is what I was referring to. Stephen -- Stephen Kellett Object Media Limited

Re: Python with no significant whitespace

2005-01-25 Thread Stephen Thorne
espace is good or bad, just > want to know. http://logix.livelogix.com/ don't know why you'd bother tho. any competant programmer already indents code exactly like python requires you to. Stephen -- http://mail.python.org/mailman/listinfo/python-list

Re: is there better 32 clock() timing?

2005-01-26 Thread Stephen Kellett
n the lead, oh look! The Ferrari has blue screened. The new regulations to reduce speeds in F1 are working, that has really slowed him down... Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon.co.uk/rsi.html -- http://mail.python.org/mailman/listinfo/python-list

Re: is there better 32 clock() timing?

2005-01-26 Thread Stephen Kellett
ad assumed Python would call for simplicity). Hence the differing results. Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon.co.uk/rsi.html -- http://mail.python.org/mailman/listinfo/python-list

Re: python memory blow out

2005-01-26 Thread Stephen Thorne
out this limitation disappearing in python :). Regards, Stephen Thorne -- http://mail.python.org/mailman/listinfo/python-list

Re: String Fomat Conversion

2005-01-26 Thread Stephen Thorne
t(x) y = float(y) Or, more concisely: for line in f.readlines(): x, y = map(float, line.split()) Regards, Stephen Thorne -- http://mail.python.org/mailman/listinfo/python-list

Re: String Fomat Conversion

2005-01-27 Thread Stephen Thorne
On Thu, 27 Jan 2005 00:02:45 -0700, Steven Bethard <[EMAIL PROTECTED]> wrote: > Stephen Thorne wrote: > > f = file('input', 'r') > > labels = f.readline() # consume the first line of the file. > > > > Easy Option: > > for line in f.readli

Re: Profiling python 2.3

2005-01-28 Thread Stephen Kellett
(beta) http://www.softwareverify.com/pythonPerformanceValidator/index.html Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon.co.uk/rsi.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Profiling and speed up

2005-01-28 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Franz Steinhaeusler <[EMAIL PROTECTED]> writes best if it would be graphical like performance analysis from DevPartner for Visual C++? Python Performance Validator http://www.softwareverify.com/pythonPerformanceValidator/index.html Stephen -- Stephen Ke

Re: The next Xah-lee post contest

2005-01-29 Thread Stephen Thorne
not a beginner being stupid, but somone who has been around long enough to know better. Stephen. -- http://mail.python.org/mailman/listinfo/python-list

Re: limited python virtual machine

2005-01-29 Thread Stephen Thorne
bject, > Alex> 'subclasses'.join(['_'*2]*2)...?-) > > Now he has two problems. ;-) I nearly asked that question, then I realised that 'getattr' is quite easy to remove from the global namespace for the code in question, and assumed that they had already

Re: Problem with loading textfiles into dictionaries.

2005-01-30 Thread Stephen Thorne
= line.split() if len(elems) == 1: raise ValueError, "Invalid line in file %r" % line sitelist[elem[0]] = elem[1:] :) Stephen -- http://mail.python.org/mailman/listinfo/python-list

Re: Want to meet any of these people? They are registered for PyCon

2005-01-31 Thread Stephen Thorne
all_names)) which would not have worked correctly, it would have thrown an exception because "Aahz\n".split()[1] does not exist. I guess the second iteration would use name[1:] instead... unfortunately-not-going-to-pycon-ly y'rs. Stephen Thorne -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] string pattern matching

2005-02-01 Thread Stephen Thorne
ny of us to move on without worrying > about the effect that the perl-python postings may have on these newcomers. I'd just like the python-list@python.org mailing list to drop his posts on the floor so I don't have to read them. But thats me. Stephen. -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] string pattern matching

2005-02-01 Thread Stephen Thorne
ddesk* I'm using gmail, and I can set up the filter trivially (from:[EMAIL PROTECTED] -> delete), but I just wasn't thinking clearly. I was cursing not having the ability to use a procmail filter while the solution was right in front of me. Regards, Stephen. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's idiom for function overloads

2005-02-02 Thread Stephen Thorne
fort. http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/5b50153e3fb84862 http://tinyurl.com/4awat type(arg1) == types.IntType def multi_type(t): return multi(lambda x:type(x) == t) @multi_type(types.IntType) def foo(x): return someOperationOnInt(x) @multi_type(types.F

Re: IDLE history, Python IDE, and Interactive Python with Vim

2005-02-02 Thread Stephen Waterbury
Daniel Bickett wrote: This is certainly a worthy topic. There are several IDEs for Python (one I like very much being Komodo) that have plenty of fancy debugging features and advanced operations, however I have yet to encounter (elsewhere) the convenience that comes with being able to press F5 and

Re: [EVALUATION] - E01: The Java Failure - May Python Helps?

2005-02-05 Thread Stephen Kellett
d similar threads in comp.lang.ruby and comp.lang.java.*. You are a troll. Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon.co.uk/rsi.html -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E01: The Java Failure - May Python Helps?

2005-02-06 Thread Stephen Kellett
n that website without scrolling. Use Google or a different search engine to find the obvious website. Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon.co.uk/rsi.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Office COM automatisation - calling python from VBA

2005-06-24 Thread Stephen Prinster
guy lateur wrote: > So, ideally, I'd like to program as much as possible in python (I'm > pretty new to that, too, btw), and only use VBA if needed - say, to > call python objects/methods (+ wxGUI, please). > If you are new to Python and want to use it with COM, definitely get yourself a copy of

Re: Tracing down segfault

2005-06-25 Thread Stephen Kellett
http://www.softwareverify.com Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk/software.html Computer Consultancy, Software Development Windows C++, Java, Assembler, Performance Analysis, Troubleshooting -- http://mail.python.org/mailman/listinfo/python-list

Photo layout

2005-06-26 Thread Stephen Boulet
Is there a python solution that someone could recommend for the following: I'd like to take a directory of photos and create a pdf document with four photos sized to fit on each (landscape) page. Thanks. Stephen -- http://mail.python.org/mailman/listinfo/python-list

Re: Thoughts on Guido's ITC audio interview

2005-06-28 Thread Stephen Kellett
increases in software productivity they are hiring the wrong people. Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk/software.html Computer Consultancy, Software Development Windows C++, Java, Assembler, Performance Analysis, Troubleshooting -- http://mail.python.org/mailman/listinfo/python-list

Re: Thoughts on Guido's ITC audio interview

2005-06-29 Thread Stephen Kellett
from refactoring tools are the least of your worries. Hiring good staff that know how to write, test and debug software is very much more important than the amount of time a refactoring tool will save. Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk/software.htm

Re: Thoughts on Guido's ITC audio interview

2005-06-30 Thread Stephen Kellett
st factor in at a fraction of 1% of productivity. I don't really class improvements at that level as much to be shouted about :-) Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk/software.html Computer Consultancy, Software Development Windows C++, Java, As

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-07-02 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes >T can be silent in England too .. > >frui' >cricke' Both of those words (fruit and cricket) have the letter T sounded. Stephen (Nationality: English). -- Stephen Kellett Object Media Limitedhtt

Re: f*cking re module

2005-07-04 Thread Stephen Harris
new Wrox book besides the O'Reilly/Friedl Owl book. http://www.uhacc.org/tech_docs/guides/regex1.php also regex2.php, and regex3.php Only the delimiters have been changed to protect the innocent, Stephen -- http://mail.python.org/mailman/listinfo/python-list

correct email

2005-07-05 Thread Stephen Martin
Bah, sorry about the incorrect email and name! -- http://mail.python.org/mailman/listinfo/python-list

Re: SSL problem... SSL23_GET_SERVER_HELLO:unknown protocol

2005-07-17 Thread Stephen Illingworth
John Reese wrote: > Morning. I've been running into an error message pertaining to SSL > that I don't understand, and I was hoping someone had some insight. > Gmail provides POP access over SSL on port 587, so I tried to use > poplib.POP_SSL, with the following results: [snip] > Any suggestions

Re: SSL problem... SSL23_GET_SERVER_HELLO:unknown protocol

2005-07-17 Thread Stephen Illingworth
John Reese wrote: > Morning. I've been running into an error message pertaining to SSL > that I don't understand, and I was hoping someone had some insight. > Gmail provides POP access over SSL on port 587, so I tried to use > poplib.POP_SSL, with the following results: GMail uses port 995. -- h

Re: Who uses input()? [was Re: question on "input"]

2005-07-17 Thread Stephen Thorne
put", so I > guess that would be a Py3K idea, and maybe the whole I/O concept > will be rethought then (if the "print" statement is going to go away, > anyway). I don't see as "break input() using code" -> "not until py3k" as a logical cause/ef

Re: wanna stop by my homemade glory hole?

2005-08-19 Thread Stephen Kellett
>wanna stop by my homemade glory hole? I don't think anyone on this group will be interested in trying their Python with that. Take it somewhere else. -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk/software.html Computer Consultancy, Software Development W

Re: Python library/module for MSAccess

2005-08-26 Thread Stephen Prinster
Jonathon Blake wrote: > [ Editing/creating msaccess databases on a Linux Box, and WINE _not_ > installed.] I'm pretty sure I don't understand what you are wanting to do. You say you have "msaccess databases on a Linux Box" and you are not using the Jet Database engine. As far as I know, MS A

Re: python profiling, hotspot and strange execution time

2005-09-06 Thread Stephen Kellett
things up >implementing some of the functions in C. So I need profiling. You haven't said which platform you are on. If you are on Windows you may want to try Python Performance Validator. http://www.softwareverify.com Stephen -- Stephen Kellett Object Media Limitedhttp:/

Re: global interpreter lock

2005-09-14 Thread Stephen Thorne
eLongRunningOperation() print somereturnvalue http://svn.twistedmatrix.com/cvs/sandbox/radix/newdefgen.py?view=markup&rev=14348 -- Stephen Thorne Development Engineer -- http://mail.python.org/mailman/listinfo/python-list

Re: "optimizing out" getattr

2005-09-14 Thread Stephen Thorne
t a significant percentage of your programs time is being spent inside this function? If you don't, then you're wasting your time doing unnecessery optimisation. -- Stephen Thorne Development Engineer -- http://mail.python.org/mailman/listinfo/python-list

Re: Would you pls tell me a tool to step debug python program?

2005-09-21 Thread Stephen Kellett
es, parameters and return values. Python Bug Validator. http://www.softwareverify.com Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk/software.html Computer Consultancy, Software Development Windows C++, Java, Assembler, Performance Analysis, Troubleshooting --

Re: Loop in list.

2005-02-08 Thread Stephen Thorne
ation. The equivilence actually looks like: '> a = [] '> l1 = range(4) '> l2 = range(3) '> for b in l1: '> for i in l2: '> a.append(i*2*b) Stephen -- http://mail.python.org/mailman/listinfo/python-list

That horrible regexp idiom

2005-02-09 Thread Stephen Thorne
ltiple regular expressions. The following is still incredibly hideous. '>>> for m in xsearch(foo_pattern, subject): '>>> pass '>>> else: '>>> for m in xsearch(bar_pattern, subject): '>>> pass '>>> else: '>>> pass Thankyou for your time. Stephen Thorne [1] Actual confusement may vary. -- http://mail.python.org/mailman/listinfo/python-list

Re: convert list of tuples into several lists

2005-02-10 Thread Stephen Thorne
ation. > >>> def f(*args,**kw): > ... print args, kw > ... > >>> f(*[1,2]) > (1, 2) {} > >>> f(*[1,2],x=1) >File "", line 1 > f(*[1,2],x=1) > ^ > SyntaxError: invalid syntax the * and ** must occur at the end. f(x=1, *[1,2]) is valid. Stephen. -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
ou go. Failed the test. He is an AI. A human wouldn't make this mistake. Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon.co.uk/rsi.html -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
Ruby crowd almost seemed incendiary - pretty much accused them of having a lame language. Most newcomers do not carry around a sense of entitlement that could flatten a small village. That has to rate as one of the funniest things I've read on usenet in years. Cheers Stephen -- Stephen Kell

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Ilias Lazaridis <[EMAIL PROTECTED]> writes And yet there is not one company that has someone devoted full-time to developing Python. Not even Guido. Who's "Guido"? LOL Falling off my chair!! -- Stephen Kellett O

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
. As others have said, "do some work yourself". Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon.co.uk/rsi.html -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
Ruby. It was less time than he has spent complaining - and that included rebuilding Python/Ruby, inspecting the source for what I needed and performing many experiments before I succeeded. Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Stephen Kellett <[EMAIL PROTECTED]> writes Hi Robert, Weird, you hit "reply" and the newsreader does a "post". C'est la vie. -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:htt

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
pect them to purchase a .NET compiler or go through a See above. Regards Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon.co.uk/rsi.html -- http://mail.python.org/mailman/listinfo/python-list

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Stephen Kellett <[EMAIL PROTECTED]> writes Studio Express (downloadable from the Microsoft's website). This DLL is (to my understanding) part of Visual Studio 7.1 and Visual Studio Express. My mistake. Visual Studio Express is going to be part of

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
its obvious you have put some effort in before making your comments. In other words I am not behaving in a contradictory way to what I specified above. Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon.co.uk/rsi.html -- http://mail.python.org/mailman/listinfo/python-list

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
x27;m not sure I'm the person you are addressing (until I saw the above, now I'm confused). Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon.co.uk/rsi.html -- http://mail.python.org/mailman/listinfo/python-list

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
hrough a bunch of configuration hassle that scares me away from What configuration hassle? Can't be any harder than specifying a different CRT surely? Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon.

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
ed elsewhere, I'd love a link to that resource, if you have it. I'm probably not the best person to answer such a question. I'm mainly a C/C++ (with Java under protest) person dabbling in Python/Ruby. Stephen -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Stephen Kellett <[EMAIL PROTECTED]> writes In message <[EMAIL PROTECTED]>, Pat <[EMAIL PROTECTED]> writes if I have both versions of Python installed - 2.3.5 and 2.4? Is there an easy way to detect this and switch between the two dlls? Eas

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
n't even start work without them, so I had them "taken for granted" in my thoughts. I can see your problem :-) but I have no easy answer. Sorry. -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon.co.uk/rsi.html

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
x27;t correctly follow this at the moment, IIRC). Lots of points from Tony stating a different point of view. I'll assume you are correct. However, surely if you Python 2.4 installed they'll have this DLL anyway, so the point is moot, unless of course, Python 2.4 is in breach as well.

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
to tell you). Of course, based on your behaviour here (and currently in comp.lang.ruby where you are spinning a nice yarn in not bothering to read up on the answers people give you, even when their answers are detailed), I have not much hope of you taking the above approach. Stephen -- Stephen Ke

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Steve Horsley <[EMAIL PROTECTED]> writes Stephen Kellett wrote: Who's "Guido"? LOL Falling off my chair!! I think the expression you are looking for is ROFL! :-) Yes, but with that I could've been standing up before ending u

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Stephen Kellett
t this threshold today) until you mend your ways. Do 1 and 2 and you'll get your questions answered much faster than your current approach. The most amazing thing is the number of times you've been told this by so many different people and so many different newsgroups and yet you *st

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Ilias Lazaridis <[EMAIL PROTECTED]> writes MinGW compatibility is not [only] my need. It is an community need [at least partially] Clearly not. If it was, using your logic, it would already exist. -- Stephen Kellett Object Media Lim

Re: "perl -p -i -e" trick in Python?

2005-02-15 Thread Stephen Thorne
..to this/g'" trick looks handy. > Does Python have a similar trick? Or, is there a shorter Python recipe for > the given problem? sure. python -c 'import os; os.system("sed -i s/change this/...tothis/g")' Using-the-right-tool-for-the-job-ly-y'rs Stephen -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - ULTIMATE RECIPE TO RESOLVE ALL ISSUES

2005-02-17 Thread Stephen Kellett
ates your arrogance, selfishness and utter contempt for those replying to you. And then you have the gall to blame your failure on others... Next you'll be telling me the world is flat and held up by an infinite array of tortoises. -- Stephen Kellett Object Media Limitedhttp://www.objmedi

Re: [EVALUATION] - E02 - ULTIMATE RECIPE TO RESOLVE ALL ISSUES

2005-02-17 Thread Stephen Kellett
ing code that interacts with the library to see how best to use it. I think its a bit like going back to a book after a few years. Its worth returning because you will have forgotten some of what was so good first time around. Stephen -- Stephen Kellett Object Media Limitedhttp://www.objm

Re: [EVALUATION] - E02 - ULTIMATE RECIPE TO RESOLVE ALL ISSUES

2005-02-18 Thread Stephen Kellett
le as his network news postings. One of the first things I did was check out his website. I didn't gain a lot as it is written in his typical automaton style. It actively discourages you from engaging. Thats quite an achievement for a static piece of text. Stephen -- Stephen Kellett O

Re: [EVALUATION] - E02 - ULTIMATE RECIPE TO RESOLVE ALL ISSUES

2005-02-18 Thread Stephen Kellett
on my hands I'd try to write an IlliasBot to see how far I got before I was found out. But I'm way too busy, so someone else will have to do it. I just hope they do it in Python or Ruby so that these languages get more publicity. Stephen -- Stephen Kellett Object Media Limitedhttp:

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-23 Thread Stephen Kellett
people are just poking you with a stick to > watch you jump? jump: [EVALUATION] - E02 - Support for MinGW Open Source Compiler Essence: http://groups-beta.google.com/group/comp.lang.python/msg/5ba2a0ba55d4c102 Lol, this guy is hopeless :-) Who's Guido? -- Stephen Kellett Object Media Limi

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-23 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Ilias Lazaridis <[EMAIL PROTECTED]> writes Stephen Kellett wrote: [...] Who's Guido? Guido is the one, who should care by time about the status of the python-community. Who is care by time? -- Stephen Kellett Object Media Limitedhttp://www.obj

Re: Attaching to a Python Interpreter a la Tcl

2005-02-23 Thread Stephen Thorne
twisted's 'Manhole', which allows you to execute code in the server process. It may require twisted-ising your application however. Stephen -- http://mail.python.org/mailman/listinfo/python-list

Re: Yet another logo design...

2005-02-25 Thread Stephen Waterbury
Mark wrote: Long story short here is a contemporary logo design by myself: http://www.imagezilla.com/img.php?im=1182129642_logo.png Any comments welcome... *runs* Heh. As a graphic design, I think it's very nice. Unfortunately, it's probably a bit too "scary" as a logo for Python the language

Re: Question - What is a faster alternative to recursion?

2005-03-02 Thread Stephen Thorne
for x in range(repeats): value = value ** .5 + 1000*x + 46 return value [EMAIL PROTECTED] tmp]$ cat recursive.py def rec(afunc,n,x): y = afunc(x) if n == 0: return y else: return rec(afunc,n-1,y) def myfunc(x): return x**.5 + 1000 * x + 46. def calculate(r

Re: Distributing applications

2005-03-02 Thread Stephen Thorne
isn't exactly the way I ended up doing it, due to the application (all on a LAN, not the internet) I'm actually pulling the 'real' program every time and leaving it in a directory under tempfile.gettempdir() Its a bit messy, but it actually works on both windows and linux

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