Re: Windows and python execution

2005-12-26 Thread Mark Carter
BartlebyScrivener wrote: > The installer can put python.exe in his PATH but if he's storing his > scripts in some oddball place then he has to tell Windows where to find > them. I think you're misunderstanding what I was after. python.exe is already in my PATH. What I was trying to do was execute

Re: Windows and python execution

2005-12-26 Thread Mark Carter
Bengt Richter wrote: >>>And there is a PATHEXT environment variable, >> >>Aha. You'bve provided a significant clue. >> >>What you need to do is include the following line in autoexec.bat: >>set .py=c:\python24\python.exe >> >>This will achieve the desired result. I'm suprised more people don't us

Re: Windows and python execution

2005-12-26 Thread Mark Carter
rzed wrote: > I should have asked which Windows version you had. XP Pro My bad. On Win2k > or XP, adding .py (for instance) to the PATHEXT variable means that > you can execute "myNeatProgram.py" with this command-line: > prompt>myNeatProgram Oh, now I see! It's beginning to make sense to me

python coding contest

2005-12-30 Thread Mark Dickinson
Here's a variant of André's brilliant idea that's 119 characters long, and fully printable: j=''.join;seven_seg=lambda z:j(j(' _ | |_ _|_|' [ord('^r|=Zm.:v\r'[int(a)])%u*2:][:3]for a in z) +"\n"for u in(3,7,8)) Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Filename case-insensitivity on OS X

2006-01-06 Thread Mark Jackson
e search box in Google, your AOL or Jabber buddy > list: all case-insensitive. Not all URLs. Compare, for example: http://www.python.org/doc/Summary.html http://www.python.org/doc/summary.html -- Mark Jackson - http://www.alumni.caltech.edu/~mjackson Those who can make you believe a

email.Utils.parseaddr() gives arcane result

2006-01-09 Thread Mark Sapiro
urned tuple. -- (for email use this address please - you can figure it out) Mark Sapiro msapiro -at- value netAny clod can have the facts; San Francisco Bay Area, Californiahaving opinions is an art. - C. McCabe, The Fearless Spectator -- http://mail.python.org/mailman/listinfo/python-list

ajax python module??

2006-01-12 Thread Mark Engstrom
Does anyone have a recommendation on the best AJAX python module? Thanks, Mark -- http://mail.python.org/mailman/listinfo/python-list

Bittorrent RPM Dependency Problem

2006-01-20 Thread Mark Sargent
why is this so, when I have 2.3.4. Is this RPM only compatible with 2.3, not 2.3.-4? Little confused. Cheers. Mark Sargent. -- http://mail.python.org/mailman/listinfo/python-list

httplib, threading, wx app freezing after 4 hours

2006-07-22 Thread Mark rainess
at is going on. I'm using httplib.HTTP instead of httplib.HTTPConnection because I don't find that HTTPConnection has readline(). Mark Rainess = class mjpeg_get(threading.Thread): def run(self): while 1: w

Re: httplib, threading, wx app freezing after 4 hours

2006-07-23 Thread Mark rainess
[EMAIL PROTECTED] wrote: > Mark rainess wrote: > [...] >> It runs perfectly for about 4 hours, then freezes. >> I'm stuck. How do I debug this? > [...] >> Can anyone suggest techniques to help me learn what is going on. > > By inspection: "errco

Why XP can not run Python after being setting the PATH?

2006-07-27 Thread Daniel Mark
Hello all: I have set the PATH for Python as follows: My Computer->Properties->Advanced->Environment Variables->System Variables->Path ...; C:\Program Files\Python24; Then I try to run python under command line C:\>python C:\>python.exe I got nothing:) It works iff I run as follows: C:\>"P

Re: Why XP can not run Python after being setting the PATH?

2006-07-28 Thread Daniel Mark
Hello Dennis: > A second suggestion would be: don't install Python in "Program > Files", but put it at the top level of the partition (ie; C:\Python24\) > I guess your comment is right. However, I would like to install Python under directory "C:\Program Files\Python24" Also, I list some scr

Re: Why XP can not run Python after being setting the PATH?

2006-07-28 Thread Daniel Mark
u, is Python there? > > Cheers > Ray > > Daniel Mark wrote: > > Hello all: > > > > I have set the PATH for Python as follows: > > > > My Computer->Properties->Advanced->Environment Variables->System > > Variables->Path > > >

Re: Why XP can not run Python after being setting the PATH?

2006-07-28 Thread Daniel Mark
Hello John: I did try, however, it doesn't work on my machine. Thank you -Daniel John Salerno wrote: > Daniel Mark wrote: > > > Maybe there is not solution to this problem:)? > > Did you not try Sybren's suggestion? Remove the space between the > semicolon and

Re: Why XP can not run Python after being setting the PATH?

2006-07-28 Thread Daniel Mark
Dear John: > Have a look in each of those folders (including the root!!) and see > what you find there. [If I were forced to bet, I'd put my money on > cygwin]. You are a genius!!! My machine was intalled python in cygwin:) I didn't expect that I could get so much helps from this forum. My hear

Re: (easy question) Find and replace multiple items

2006-08-08 Thread Mark Peters
do this. Thanks how about: >>> import string >>> text1 = "foo bar 12 spam joe876" >>> table = string.maketrans("0123456789","uydnwkdfpx") >>> text1.translate(table) 'foo bar yd spam joepfd' Mark Peters -- http://mail.python.org/mailman/listinfo/python-list

state of SOAP and python?

2006-08-09 Thread Mark Harrison
So I'm investigating doing some SOAP work... Any concensus on what the best python libraries are for doing this? Too bad, xmlrpc is choking on our long longs. :-( Many TIA, Mark -- Mark Harrison Pixar Animation Studios -- http://mail.python.org/mailman/listinfo/python-list

Re: state of SOAP and python?

2006-08-15 Thread Mark Harrison
Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Thursday 10/8/2006 03:38, Mark Harrison wrote: > > >So I'm investigating doing some SOAP work... Any concensus on > >what the best python libraries are for doing this? > > > >Too bad, xmlrpc is choking on o

no longer can set breakpoint on 'pass' statement?

2006-08-16 Thread Mark Winrock
Can someone point me to some documentation as to why pdb breakpoints are not working on 'pass' statements (at least on 2.4.1)? I was used to that working in the 2.2.3 build I was using up to this last year. I just cant seem to find anything on it. Thanks! -- http://mail.python.org/mailman/list

Re: How do I catch ExpatError exception?

2006-08-16 Thread Mark Winrock
Shuaib wrote: > Hey! > > I am getting this exception. > > xml.parsers.expat.ExpatError > > But I am not able to catch it with "except > xml.parsers.expat.ExpatError:" It says "NameError: global name 'xml' is > not defined". > > I am also not able to catch it with "except ExpatError:" Gives > "N

Dynamic objects

2006-08-17 Thread Mark Shewfelt
have implemented __init__ functions for all of the classes, but all they do is initialize some data that I haven't shown here. I think I'm trying to use a C++ way of doing this (without the new operator) so if anyone would be so kind as to help with the Python way of doing this sort of thing I will be eternally grateful. Cheers, Mark Shewfelt -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamic objects

2006-08-17 Thread Mark Shewfelt
Thanks a lot Tim! My __init__ functions didn't set the dictionaries like you did below (e.g. self.equipment = {} ). Newbie mistake - won't make that one again. Thanks again, Mark Tim wrote: > Mark Shewfelt wrote: > > Hello, > > > > I have implemented a s

How to draw line on Image?

2006-08-18 Thread Daniel Mark
Hello all: I want to draw some shapes, such as lines, circles on an image. The input to the program is an image and the output from the program is a superimposed image. what kind of document or functions I should take a look for searching this question? The program doesn't show the image, but

py2exe: cannot identify image file

2006-08-18 Thread Daniel Mark
Hello all: I have following code that works well under command line, but it doesn't work after I convert it as exe application. ### file: testPath.py import getopt, math, sys, os, Image, ImageDraw, aggdraw def processline(): try: imgDir = 'c:/' lumenImageName = '0

Re: preemptive OOP?

2006-10-04 Thread Mark Elston
* Kent Johnson wrote (on 10/4/2006 10:04 AM): > Mark Elston wrote: >> ... >> Without this prior planning, any expansion (not to mention bug fixing) >> becomes more difficult and makes the resulting code more brittle. While >> not all planning for the future requires OO,

Re: preemptive OOP?

2006-10-04 Thread Mark Elston
hrase "preemptive > OOP" ;) Oops. I couldn't resist. See my previous post. Mark -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cle

Re: Adding Worksheets to an Excel Workbook

2006-10-10 Thread Mark Elston
-list/2003-September/183367.html http://mathieu.fenniak.net/plotting-in-excel-through-pythoncom/ There are lots of others. Mark * John Machin wrote (on 10/10/2006 2:59 PM): > [EMAIL PROTECTED] wrote: >> All >> >> I'm a Python newbie, and I'm just getting to the

Re: How to execute a linux command by python?

2006-10-18 Thread Mark Elston
BTW, is there a version of pexpect that works with Windows? This package requires pty and termios which isn't supported on Windows. Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Komodo

2006-10-19 Thread Mark Elston
* SpreadTooThin wrote (on 10/19/2006 8:47 AM): > Why is it that (On MAC OS X) in Komodo 3.5 Professional, if I try to > find something in my script, > I am unable to change the text it is searching for? > Perhaps Emacs might work better ... :) Mark -- http://mail.python.org/mail

Re: enumerate improvement proposal

2006-10-30 Thread Mark Elston
> > Well, there's your problem. You need to C-x C-f a new mate. :) Mark (Emacs rules) -- http://mail.python.org/mailman/listinfo/python-list

How to test python extension modules during 'make check' / 'make distcheck'?

2006-11-02 Thread Mark Asbach
s targeted at C/C++ developers in the first degree and the python wrappers are just an add-on, there is no chance to migrate it away from automake to someting else (like distutils, etc.). Did someone solve a similar problem? Thanks in advance, Mark P.S.: I'll post a similar message to the au

Re: Unicode/ascii encoding nightmare

2006-11-06 Thread Mark Peters
> The string below is the encoding of the norwegian word "fødselsdag". > > >>> s = 'f\xc3\x83\xc2\xb8dselsdag' I'm not sure which encoding method you used to get the string above. Here's the result of my playing with the string in IDLE: >>> u1 = u'fødselsdag' >>> u1 u'f\xf8dselsdag' >>> s1 = u1.e

Re: Is python for me?

2006-11-14 Thread Mark Woodward
7;t want to start a Python/Ruby flame war. That's not the question. The question is "is one preferred over the other when contributing software and is this just a particular distros preference"? cheers, -- Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing to Registry

2006-11-16 Thread Mark Elston
Note: this is untested (since I don't like screwing around in the registry...) Have you tried using REG_DWORD? Mark * Samantha wrote (on 11/16/2006 3:48 PM): > I am working with this recipes: > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66011 > > The problem I am

Re: Download .jpg from web

2006-06-07 Thread Mark rainess
getfile() while 1: data=f.readline() if data[0:15]=='Content-length:': count=int(data[16:]) n=f.readline() # skip over Content-type: image/jpeg\n' n=f.readline() # skip over \n' s = f.read(count) p=file(tempfile,'wb') p.wr

PEP 314 - requirements for Python itself

2006-06-23 Thread Mark Nottingham
PEP 314 introduces metadata that explains what packages are required by a particular package. Is there any way to express what version of Python itself is required? Cheers, -- Mark Nottingham http://www.mnot.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 314 - requirements for Python itself

2006-06-23 Thread Mark Nottingham
Yep, I'm doing that (thanks!). I was looking for some normal (hopefully, machine-readable) way to indicate it so that people can figure out the version of Python required before they download the package. On 2006/06/23, at 11:04 AM, Serge Orlov wrote: > On 6/23/06, Mark Nottingham

Fwd: PEP 314 - requirements for Python itself

2006-06-23 Thread Mark Nottingham
I was thinking more about things where people can search for packages that need different versions of python, etc.; not so much for automation. On 2006/06/23, at 6:05 PM, Serge Orlov wrote: > On 6/23/06, Mark Nottingham <[EMAIL PROTECTED]> wrote: >> I was looking for some no

slow non-blocking reads

2006-06-29 Thread Mark Dufour
{ read(0, &c, 1); printf("%c", c); fflush(stdout); } } } the child sends a 'start' message and then echoes the parent. any thoughts about why this runs extr

Re: slow non-blocking reads

2006-07-03 Thread Mark Dufour
interestingly, leaving out the fcntl stuff makes it work much faster. it seems to block only sometimes now, for just a moment, but on the whole the performance is acceptable now. On 6/29/06, Mark Dufour <[EMAIL PROTECTED]> wrote: > hello all, > > I am trying to fire up a chil

Re: [Mailman-Developers] Parsing and Rendering rfc8222

2006-07-04 Thread Mark Sapiro
s/2005-January/017660.html> and points to a description of an algorithm at <http://www.jwz.org/doc/threading.html>. -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- http://mail.python.org/mailman/listinfo/python-list

Re: Built-in Exceptions - How to Find Out Possible Errno's

2006-07-05 Thread Mark Peters
10053, 10054, 10055, 10056, 10057, 10058, 10059, 10060, 10061, 10062, 10063, 10064, 10065, 10066, 10067, 10068, 10069, 10070, 10071, 10091, 10092, 10093, 10101] >>> print errno.errorcode[10] ECHILD or >>> import os >>> print os.strerror(10) No child processes Hope this helps, Mark Peters -- http://mail.python.org/mailman/listinfo/python-list

Re: Built-in Exceptions - How to Find Out Possible Errno's

2006-07-05 Thread Mark Peters
Gregory Piñero wrote: > Thanks Mark, that does help, but what is this errno module? I mean, > does it apply to OSError or to IOError or both? My guess is that the IOError will return the underlying operating system error, but that's just a guess (and no time to dig for the answe

Re: Built-in Exceptions - How to Find Out Possible Errno's

2006-07-05 Thread Mark Peters
A quick test: >>> try: f = open("foo","r") except IOError, error: print errno.errorcode[error.errno] ENOENT It looks to me like your if statement should be as simple as: if error.errno == errno.ENOENT: print os.strerror(error.errno) Mark -- h

How to handle wrong input in getopt package in Python?

2006-08-25 Thread Daniel Mark
Hello all: I am using getopt package in Python and found a problem that I can not figure out an easy to do . // Correct input D:\>python AddArrowOnImage.py --imageDir=c:/ // Incorrect input D:\>python AddArrowOnImage.py --imageDi Traceback (most recent call last): File "AddArrowOnImage.py", li

Re: Simple regex with whitespaces

2006-09-10 Thread Mark Peters
> Which of course does not work. I cannot express the fact: sentence > have 0 or 1 whitespace, separation of group have two or more > whitespaces. > > Any suggestion ? Thanks a bunch ! How about this: >>> import re >>> s = 'hello world how are you' >>> re.split(r"\s{2,}",s) [''

Colorado Python seminar in November

2006-09-13 Thread Mark Lutz
. Mark Lutz's Python Training Services is pleased to announce that our Fall 2006 public Colorado seminar is now open. This 5-day Python training event will be held November 6 through November 10. This year, our Fall seminar will be held at Historic Crag's Lodge, a

How to change font direction?

2006-09-15 Thread Daniel Mark
Hello all: I am using PIL to draw some graphics and I need to draw some texts in vertical direction rather than the default left-to-right horizontal direction. Is there anyway I could do that? Thank you -Daniel -- http://mail.python.org/mailman/listinfo/python-list

How to draw a rectangle with gradient?

2006-09-16 Thread Daniel Mark
Hello all: I am using PIL to draw a rectangle filled with color blue. Is there anyway I could set the fill pattern so that the drawn rectangle could be filled with gradient blue? Thank you -Daniel -- http://mail.python.org/mailman/listinfo/python-list

How to efficiently proceed addition and subtraction in python list?

2006-09-18 Thread Daniel Mark
Hello all: I have a list AAA = [1, 2, 3] and would like to subtract one from list AAA so AAA' = [0, 1, 2] What should I do? Thank you -Daniel -- http://mail.python.org/mailman/listinfo/python-list

Do we need to delete "ImageDraw.Draw" after using it?

2006-09-20 Thread Daniel Mark
Hello all: I am looking the sample code posted on PIL website http://www.pythonware.com/library/pil/handbook/imagedraw.htm <> import Image, ImageDraw im = Image.open("lena.pgm") draw = ImageDraw.Draw(im) draw.line((0, 0) + im.size, fill=128) dra

How to evaluate the memory usage of a python program?

2006-09-20 Thread Daniel Mark
Hello all: I have a python program and would like to find out the maximum memory used by this program. Does Python provide such module so I could check it easily? Thank you -Daniel -- http://mail.python.org/mailman/listinfo/python-list

How does IPython modify the sys.path?

2006-09-21 Thread Daniel Mark
Hello all: I installed IPython on my XP machine today and find that my sys.path has been changed as follows: >> import sys >> print sys.path ['', 'C:\\Program Files\\Python24\\scripts', 'C:\\WINDOWS\\system32\\python24.zip', 'C:\\Documents and Settings\\Daniel\\Desktop', 'C:\\Program Files\

Does Python provide "Struct" data structure?

2006-09-22 Thread Daniel Mark
Hello all: I have found a useful module in IPython, named 'from IPython.ipstruct import Struct". So I can use it as follows: from IPython.ipstruct import Struct mystruct = Struct(echo = 1, verb = 'Verbose', filedir

Question about the article "py2exe compiler" in Python Cookbook by Alexander Semenov

2006-09-22 Thread Daniel Mark
Hello all: I follow the following tutorial http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/108598 Description: script for making executables with py2exe ## from distutils.core import setup import sys, os, py2exe name = sys.argv[1] sys.argv[1] = 'py2exe' sys.path.append(os.pat

Re: Spliting a string on non alpha characters

2006-09-23 Thread Mark Peters
> I'm relatively new to python but I already noticed that many lines of > python code can be simplified to a oneliner by some clever coder. As > the topics says, I'm trying to split lines like this : > > 'foo bar- blah/hm.lala' -> [foo, bar, blah, hm, lala] > > 'foobbbar.. xyz' -> [foo, bbbar,

How to save High Quality JPG image by setting Image module from PIL

2006-09-25 Thread Daniel Mark
hello all: I am using Image module from PIL to save created image as JPG format. Is there any option I could set for function Image.save so that the stored image will have the highest quality. Thank you -Daniel -- http://mail.python.org/mailman/listinfo/python-list

remove the last character or the newline character?

2006-09-28 Thread Daniel Mark
Hello all: I have the following snippet: In [1]: fileName = 'Perfect Setup.txt\n' In [2]: fileName = fileName[0:len(fileName)-1)] # remove the '\n' character In [3]: fileName Out[3]: 'Perfect Setup.txt' Question one: Does python provide any function that can remove the last character of a stri

Mark Lutz Python interview

2006-09-29 Thread Mark Lutz
Python author and trainer Mark Lutz will be interviewed on the radio show Tech Talk this Sunday, October 1st, at 6PM Eastern time. He'll be answering questions about Python, his books, and his Python training services. For more details about the show, see Tech Talk's websi

Re: Mark Lutz Python interview

2006-09-30 Thread Mark Lutz
Fuzzyman wrote: > Mark Lutz wrote: > > Python author and trainer Mark Lutz will be interviewed > > on the radio show Tech Talk this Sunday, October 1st, > > at 6PM Eastern time. He'll be answering questions about > > Python, his books, and his Python training

Re: preemptive OOP?

2006-10-01 Thread Mark Elston
e. If the use of OO makes a simple solution *more* complex then it is being used inappropriately. It is not only necessary to have the correct tools for the job but, also, to be skilled in their use. Part of the skill of a SW developer is in picking the correct tool for the job - and then using it correctly. Mark -- http://mail.python.org/mailman/listinfo/python-list

regular expressions in the pexpect module for python

2006-10-02 Thread Mark Devine
HiI wonder if you can help me. I am using pexpect with python to access remote machines and run commands on them. I pass commands into code like so:def cmd(self, cmd):        pp=[ "|", "]", "[", "(", ")", "$", "?", "*", ".", ":"]         expcmd=cmd        for element in pp:            expcmd=expcmd

Re: Python-list Digest, Vol 37, Issue 23

2006-10-02 Thread Mark Devine
quot;Re: Contents of Python-list digest..."Today's Topics:   1. Re: Problems wth os.stat().st_mtime on Mac (Michael Glassford)   2. Re: Help with ConfigParser (TonyHa)   3. regular expressions in the pexpect module for python (Mark Devine)   4. commands.getstatusoutput result is not com

Re: python html rendering

2006-10-03 Thread Mark Peters
> Hi, Im looking for a way to display some python code > in html: with correct indentation, possibly syntax hiliting, dealing > correctly with multi-line comment, and... generating valid html code if > the python code itself deals with html (hence manipulates tag litterals. > Thanks for your help!

Re: basic python questions

2006-11-18 Thread Mark Peters
[EMAIL PROTECTED] wrote: > dict = {} As a general rule you should avoid variable names which shadow built in types (list, dict, etc.). This can cause unexpected behavior later on. Also, variable names should be more descriptive of their contents. Try word_dict or some such variant -- htt

Accessing feed history in an RSS Reader

2006-11-22 Thread Mark S.
Anyone know how to access feed history (items not contained in the current .xml file), so that an RSS Reader could display historical postings? Google Reader is able to do this. I'm interested in implementing kind of feature in Python. I've done quite a bit of searching to no avail. Any ideas?

who is maintainer of xml-rpc module?

2006-11-25 Thread Mark Harrison
patch for 64 bit int values. I'd like to get these into wider circulation if possible... what's the best way to do this? Many TIA! Mark -- Mark Harrison Pixar Animation Studios -- http://mail.python.org/mailman/listinfo/python-list

--enable-shared, how do i set the rpath?

2006-11-27 Thread Mark Harrison
I've built a python with --enable-shared in order to support mod_python, but now I have to set LD_LIBRARY_PATH to $prefix/lib. Worse, it seems mod_python will die on some import statements, I'm suspecting ones that need to pull in .so's. Any clues appreciated... Mark. -- Mark

Re: 6 Pick Bet Grouping

2006-11-28 Thread Mark Peters
> The totalizator system allows us to merge or group these four bets as > follows: > > 5 + 7 / 3 / 11 / 7 + 14 / 1 / 9 - $50 ($200 total) I'm still trying to get my head around what you're trying to do, but here's some code: ---snip- data = ["5 / 3 / 11 / 7 / 1 / 9 -

Re: why would anyone use python when java is there?

2006-12-01 Thread Mark Westwood
may I, as a former Englishman, say how proud we always were to be exploited by our betters many thanks guv Mark Jonathan Smith wrote: > gavino wrote: > > wtf > > Java is a coffee, and coffee comes from exploited Ethiopians (they do > have some damn fine coffee, though). Mo

Re: About alternatives to Matlab

2006-12-05 Thread Mark Morss
I doubt that anyone would dispute that even as boosted by Numpy/Scipy, Python will almost certainly be notably slower than moderately well-written code in a compiled language. The reason Numpy exists, however, is not to deliver the best possible speed, but to deliver enough speed to make it possib

Re: About alternatives to Matlab

2006-12-05 Thread Mark Morss
Hans >Langtangen<, rather. Mark Morss wrote: > I doubt that anyone would dispute that even as boosted by Numpy/Scipy, > Python will almost certainly be notably slower than moderately > well-written code in a compiled language. The reason Numpy exists, > however, is not t

Re: About alternatives to Matlab

2006-12-05 Thread Mark Morss
Carl, I agree with practically everything you say about the choice between Python and functional languages, but apropos of Ocaml, not these remarks: > > In the same way that a screwdriver can't prevent you from driving a > nail. Give me a break, we all know these guys (Haskell especially) are >

merits of Lisp vs Python

2006-12-08 Thread Mark Tarver
How do you compare Python to Lisp? What specific advantages do you think that one has over the other? Note I'm not a Python person and I have no axes to grind here. This is just a question for my general education. Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-08 Thread Mark Tarver
Paul Rubin wrote: > "Mark Tarver" <[EMAIL PROTECTED]> writes: > > How do you compare Python to Lisp? What specific advantages do you > > think that one has over the other? > ><http://google.com/search?q=python+lisp&btnI=I'm+feeling+lucky>

Re: merits of Lisp vs Python

2006-12-08 Thread Mark Tarver
Bill Atkins wrote: > "Mark Tarver" <[EMAIL PROTECTED]> writes: > > > How do you compare Python to Lisp? What specific advantages do you > > think that one has over the other? > > > > Note I'm not a Python person and I have no axes to grin

Re: merits of Lisp vs Python

2006-12-08 Thread Mark Tarver
Kaz Kylheku wrote: > Mark Tarver wrote: > > I don't mind controversy - as long as there is intelligent argument. > > And since it involves Python and Lisp, well it should be posted to both > > groups. The Lispers will tend to say that Lisp is better for sure - > >

Shed Skin 0.0.15

2006-12-09 Thread Mark Dufour
happy with minimized pieces of code that fail to compile or should produce a (better) error or warning message. http://mark.dufour.googlepages.com Mark. -- "One of my most productive days was throwing away 1000 lines of code" - Ken Thompson -- http://mail.python.org/mailman/listinfo/python-list

Re: About alternatives to Matlab

2006-12-11 Thread Mark Morss
> The [F#] source is avaliable, but it's under Microsoft's Shared Source > license, which isn't quite an open source license. There are some > restrictions on commercial usage. > You can call me a bigot, but it will be engraved upon my tombstone that I never used a proprietary Microsoft language.

Python training in Colorado, January 2007

2006-12-13 Thread Mark Lutz
Python author and trainer Mark Lutz will be teaching another 3-day Python class at a conference center in Longmont, Colorado, on January 23-25, 2007. This is a public training session open to individual enrollments, and covers the same topics as the 3-day onsite sessions that Mark teaches, with

Re: Shed Skin 0.0.15

2006-12-17 Thread Mark Dufour
option to ss.py (disables checking for negative indices) -several minor bug-fixes reported by users of 0.0.15 Thanks, Mark. On 12/9/06, Mark Dufour <[EMAIL PROTECTED]> wrote: > Hi all, > > After getting bogged down with work for a few months, I'm finally back > to Shed Skin d

RE: regexp

2006-12-19 Thread Mark Schoonover
h relative ease > with SGMLlib. > > Anyway, if you (Vertigo) want to use regular expressions to do this, > you can try and use some regular expression testing programs. I'm not > quite sure of the name but there is one that comes with KDE. > > - Jonathan Curran You have

Re: TypeError: cannot concatenate 'str' and 'NoneType' objects

2006-12-20 Thread Mark Peters
> # Begin going through the loop > Townshp = Townshps.next() > while Townshps !="": > #Set the output name to be the same as input > outName = outputPath + "/" + Townshp + "land" + ".img" > Output_table = outputPath + "/" + Townshp + "table" + ".dbf" > #For each extract by Mask >

13 second delay using select() with Popen3()

2006-12-21 Thread Jonathan Mark
the select loop wrong somehow, or what else might be wrong. Thanks!! Jonathan Mark --- import os, popen2, select def execCommand(cmd, mergeErrors = False): popen3 = popen2.Popen3(cmd, capturestderr = True) popen3.tochild.close() strOutput = '' strErrors = '

RE: [python-win32] Displaying contents of a file using PyWin

2006-12-21 Thread Mark Hammond
rror comes from 'template' which is yet to be assigned - but in that case RemoveDocTemplate should not be called as the NameError happens before. I don't recall (and grep doesn't show) that pythonwin ever raises this exception. Mark -- http://mail.python.org/mailman/listinfo/python-list

RE: rsync for python?

2006-12-28 Thread Mark Schoonover
I've been out on vacation, and just getting back to email. Thanks! Mark Schoonover IS Manager American Geotechnical V: 858-450-4040 - F: 714-685-3909 - C: 858-472-3816 "Stop the Earth!! I want off!!" -- http://mail.python.org/mailman/listinfo/python-list

Re: some OT: how to solve this kind of problem in our program?

2006-12-30 Thread mark . dufour
Shed Skin: 0.30 s Thanks, Mark Dufour. -- Shed Skin author, http://mark.dufour.googlepages.com -- http://mail.python.org/mailman/listinfo/python-list

Re: What is proper way to require a method to be overridden?

2007-01-05 Thread Mark Elston
* Paddy wrote (on 1/4/2007 10:20 PM): > belinda thom wrote: > >> On Jan 4, 2007, at 9:28 PM, Carl Banks wrote: >> >>> jeremito wrote: I am writing a class that is intended to be subclassed. What is the proper way to indicate that a sub class must override a method? >>> You can't (easily

Re: strange for loop construct

2007-01-05 Thread Mark Elston
u have a Python installation you should be able to find the "Whats New" section of the docs. List comprehensions are described pretty well in the "What's new in Python 2.0?" section. This gives some simple examples as well as the rationale behind them. Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: regex question

2007-01-08 Thread Mark Peters
> is there any way i would be successful then, in using raw string inside > my makeRE() function? Why do you think you even need a raw string? Just build and return the string 'a|b|c' (NOTE: DON'T add the quotes to the string) -- http://mail.python.org/mailman/listinfo/python-list

Re: regex question

2007-01-08 Thread Mark Peters
> yes, i suppose you are right. i can't think of a reason i would NEED a > raw string in this situation. It looks from your code that you are trying to remove all occurances of one string from the other. a simple regex way would be to use re.sub() >>> import re >>> a = "abc" >>> b = "debcabbde"

Re: MySQLdb - Query/fetch don't return result when it *theorically* should

2006-01-26 Thread Mark Hertel
InnoDB which activates transactions, so now the autocommit has to be turned on in mysqldb or explicit commit's have to be placed into the code. --Mark -- http://mail.python.org/mailman/listinfo/python-list

jython how to use Fit and Fitnesse

2006-01-26 Thread Mark Fink
that it is possible to use Fitnesse and Java Fit and involve Jython testcases with this configuration but I do not know how. Perhaps someone from this group has done this before and wants to share some tipps with me. Cheers, Mark Fink http://www.mark-fink.de -- http://mail.python.org/mailman

jython newbee general question docu / os.fstat

2006-02-05 Thread Mark Fink
ere please point me to this direction. I was not able to find it. Best Regards, Mark -- http://mail.python.org/mailman/listinfo/python-list

rexec in jython??

2006-02-05 Thread Mark Fink
for such tasks available? In general: how do I find such information by myself? Best Regards, Mark -- http://mail.python.org/mailman/listinfo/python-list

rexec in jython??

2006-02-05 Thread Mark Fink
for such tasks available? In general: how do I find such information by myself? Best Regards, Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: rexec in jython??

2006-02-05 Thread Mark Fink
sorry for the double post! It is the r_eval() functionality of the rexec module I am looking forward to replace -- http://mail.python.org/mailman/listinfo/python-list

Re: rexec in jython??

2006-02-05 Thread Mark Fink
this is really funny... I tried to use eval(String) as an replacement. It works now but the calculation results from my tests are not as expected: 2 + 3 = 23 !!! 2 - 3 = 2-3... I have the feeling that there is a really easy solution for this. Unfortunately I have no enough experience -- http://ma

Re: rexec in jython??

2006-02-05 Thread Mark Fink
This is the original code section of the library including the comments: class AutoAdapter(TypeAdapter): """ This adapter returns a type based on the format of the table cell contents, following python's rules for literals (plus a few others). We could fall back on this when we don'

Re: rexec in jython??

2006-02-05 Thread Mark Fink
:-))) it works! I replaced it to "return eval(s)" and the results look extremely well guess I should get one of this crystal balls myself. one minor issue is still left: correct me if I am wrong: result of 2/-3 is 0 (at least this is how it is defined in the testcase) In Jython 2.1.3: >>> 2/-3 -1

<    35   36   37   38   39   40   41   42   43   44   >