Re: Screen Scraping for Modern Applications?

2006-06-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >For a side project I'm working on I need to be able to scrape a modern >computer desktop. Is there any basic material already available to do >this? I'd rather

Re: how to get the length of a number

2006-06-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Felipe Almeida Lessa <[EMAIL PROTECTED]> wrote: . . . >math.floor(math.log(x, 10)) + 1 > >-- >Felipe. > ... and you're restricting to the positive integers, I take it? I still have rounding pr

Re: First question on extending Python...

2006-06-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Larry Bates <[EMAIL PROTECTED]> wrote: >Redefined Horizons wrote: . . . >> There is a third-party application that I need to work with. It is >> closed-source, but it exposes a C API. I want to

Re: Screen Scraping for Modern Applications?

2006-06-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >Scrape means simply scraping pixel colors from locations on the screen. >I'll worry about assembling it into meaningful information. > >Previously, I used Java,

Dr. Dobb's Python-URL! - weekly Python news and links (Jun 12)

2006-06-12 Thread Cameron Laird
QOTW: "Check out BeautifulSoup -- you will never write HTMLParser-based screen scrapers again. :)" - Jonathan Ellis "You clearly need something instead of XML." - Paul McGuire http://groups.google.com/group/comp.lang.python/msg/09e943c8dbf1e8c5? Johann C. Rocholl donates a PNG manager i

Re: Making a Label that looks the same as a button.

2006-06-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Grayson, John <[EMAIL PROTECTED]> wrote: > > > >Buttons can look like labels without the need to create another object - >just remove the >Command binding, set state to DISABLED and disabledforeground='same >color as NORMAL'... > >This demonstrates how to play with

Re: convert floats to their 4 byte representation

2006-06-14 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, godavemon <[EMAIL PROTECTED]> wrote: >I've been a member for a while but I had no idea how helpful this form >is. I had a one hour meeting and when I came back there were 4 >replies. Thanks for your help! > > >Scott David Daniels wrote: >> godavemon wrote: >> > I n

Re: Date Subtraction

2006-06-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >In <[EMAIL PROTECTED]>, >rsutradhar_python wrote: > >> How to subtract date which is stored in string variable? >> >> Example: >> >> date1="2006-01-10" >> date2="2005-12-15" >> date = date1 - date2 >> should giv

Re: download file from intranet linux server to windows clients

2006-06-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Luis P. Mendes <[EMAIL PROTECTED]> wrote: . . . >I'm building an intranet web server in Linux for around 40 windows >clients with Django. > >The problem is that I want to build an excel file base

Re: Passing data to system command

2006-06-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Chris Hieronymus <[EMAIL PROTECTED]> wrote: . . . >input. How do I get the data into the system call? I used to do >things in csh and awk, >i.e., something like > >awk '{; print $1, $2}' fil

Re: Getting output from external programs...

2006-06-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Ten <[EMAIL PROTECTED]> wrote: . . . >You can do this in various ways, ranging from the very simple and not very good > >from commands import getoutput > >x=getoutput(command) > > >- to your mor

Formatting practices (was: Passing data to system command)

2006-06-19 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Chris Hieronymus <[EMAIL PROTECTED]> wrote: . . . > msg = str(x)+" "+str(y)+"\n" > p1.stdin.write(msg) . . . While Py

Re: OS specific command in Python

2006-06-20 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] a écrit : > >> So basically, instead of typing in on the command line argument I want >> to have it in a python program and let it do the action. > >Try exec() and execfile() from the standard library (IIRC) > >> >> for

Dr. Dobb's Python-URL! - weekly Python news and links (Jun 20)

2006-06-20 Thread Cameron Laird
ANNOUNCEMENT: we had an incident with backups of the "Python-URL!" mailing list. It's possible we lost one or two transactions from the last week. If you aren't receiving an e-mailed copy of this weekly news digest that you should, or are receiving one when you shouldn't, please alert me through

Re: How to generate all permutations of a string?

2006-06-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Girish Sahani <[EMAIL PROTECTED]> wrote: >Hi guys, > I want to generate all permutations of a string. I've managed to >generate all cyclic permutations. Please help :) > >def permute(string): >l= [] >l.append(string) >string1 = '' >for i in range(0,l

Re: Network Programming in Python

2006-06-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >I have Python 2.4.2 on windows and Linux both. I got an import error. >how can we obtain the twisted libraries ? . . . Look for "Downloading" under http://twistedmatr

Re: Network Programming in Python

2006-06-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Grant Edwards <[EMAIL PROTECTED]> wrote: >On 2006-06-23, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> How will Pyon help my cause ? > >What's Pyon? . . . A misreading of "Pyro". Pyro http:

Re: Opening a file with system default application

2006-06-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >In <[EMAIL PROTECTED]>, >BartlebyScrivener wrote: > It would probably break like mad under *nix >> >> I bet it would work the same way on linux or os x; it's the equivalent >> of double-clicking on the file.

Re: Absolute noob to Linux programming needs language choice help

2006-06-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: ><[EMAIL PROTECTED]> wrote: > >> Hey guys, >> >> I am absolutely new to Linux programming, with no w##s programming >> experience except a small amount of C++ console apps. >> Reasonably new to Linux, BSD etc, got good so

Re: Absolute noob to Linux programming needs language choice help

2006-06-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Ben C <[EMAIL PROTECTED]> wrote: . . . >My favourite's Python, but Tcl is definitely worth a look. It's been >around a bit longer than Python (so more time for every conceivable >problem to have

Re: 2Qs

2006-06-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, SuperHik <[EMAIL PROTECTED]> wrote: >1st question: > >If a make an exe with i.e. py2exe, can I get any kind of error/bug >report from the exe file saved into a file error.log and how? . . . Yes

Python is fun and useful (was: Python is fun (useless social thread) ; -))

2006-06-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Carl Trachte <[EMAIL PROTECTED]> wrote: . . . >Yes. I was a production geologist in a copper mine in the mid 90's. Our >mine planning software vendor Mintec (www.mintec.com) had chosen it as >t

Re: Python taught in schools?

2006-06-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, MilkmanDan <[EMAIL PROTECTED]> wrote: >I'll be a college freshman this fall, attending Florida Institute of >Tech studying electrical engineering. > >I was considering taking some classes in programming and computer >science, and I happened to notice that everything

Re: error with string (beginner)

2006-06-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alex Pavluck <[EMAIL PROTECTED]> wrote: >Hello. I get the following error with the following code. Is there >something wrong with my Python installation? > >code: >import types >something = input("Enter something and I will tell you the type: ") > >if type(something

Re: Absolute noob to Linux programming needs language choice help

2006-06-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tim Roberts <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Cameron Laird) wrote: >> >>Tcl's maturity advantage is tiny--*maybe* two years. Both began at >>the end of the '80s. There've been close to two deca

Dr. Dobb's Python-URL! - weekly Python news and links (Jun 26)

2006-06-26 Thread Cameron Laird
QOTW: "In short, it's never what you think it is ;-)" - timbot, probably on the subject of performance "Real efficiency comes from elegant solutions, not optimized programs. Optimization is always just a few correctness-preserving transformations away." - Jonathan Sobel http://www.cs.indiana.

Re: Making a time series analysis package in python - advice or assistance sought

2006-07-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Ray Tomes wrote: >> Hi Folks >> >> I am an old codger who has much experience with computers >> in the distant past before all this object oriented stuff. >> Also I have loads of software in such languages as FORTRAN >> and BASIC, QBASIC

Re: first book about python

2006-07-08 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, IOANNIS MANOLOUDIS <[EMAIL PROTECTED]> wrote: >I want to learn python. >I plan to buy a book. I always find printed material more convenient than >reading on-line tutorials. >I don't know PERL or any other scripting language. I only know some BASH >programming. I am

Re: syslog best practices -- when to call closelog?

2006-07-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, J Rice <[EMAIL PROTECTED]> wrote: > >I have a question: > >When should syslog.closelog() be called? I have a daemon that spends >most of its time asleep and quiet, but writes messages to the mail log >when active. Should I open the log at the start and keep it open

Re: Restricted Access

2006-07-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, iapain <[EMAIL PROTECTED]> wrote: . . . >Does that mean there is no way to implement restricted enviorment? . . . The most

Re: Help me use my Dual Core CPU!

2006-09-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tim Golden <[EMAIL PROTECTED]> wrote: . . . >| I know threads won't help (in CPython at least) so I'm investigating >| other types of concurrency which I might be able to use. I really like >| th

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Sep 14)

2006-09-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Jack Diederich <[EMAIL PROTECTED]> wrote: . . . >More than you ever wanted to know about the types of regular expression >engines and their history. > >http://groups.google.com/g

Re: tcl list to python list?

2006-09-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul McGuire <[EMAIL PROTECTED]> wrote: ><[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> Hi, >> >> I have a file that contains a "tcl" list stored as a string. The list >> members are >> sql commands ex: >> { begin { select * from foo >>

Re: tcl list to python list?

2006-09-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Hi, > >I have a file that contains a "tcl" list stored as a string. The list >members are >sql commands ex: > { begin { select * from foo >where baz='whatever'} > {select * from gooble } end > { insert into bar values('

Re: tcl list to python list?

2006-09-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul McGuire <[EMAIL PROTECTED]> wrote: . . . >Er? Thanks for the nice comments re: pyparsing, sometimes I feel a little >self-conscious always posting these pyparsing snippets. So I'm glad yo

Re: How to return an "not string' error in function?

2006-09-21 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Thank you so much it answers my humble question perfectly:) > HOWEVER, to answer you final question, yes, there is a different and, in general, better, way. While there's a lot to say about good Python style and typing, I'll summarize a

str() vs. repr() (was: How to return an "not string' error in function?)

2006-09-21 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >PS: Is str() the same as repr() ? . . . No http://www.thescripts.com/forum/thread19556.h

Re: Don't use regular expressions to "validate" email addresses (was: Ineed some help with a regexp please)

2006-09-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Damjan <[EMAIL PROTECTED]> wrote: >>> you'd create something to allow anyone to >>> potentially spam the hell out of a system... >> >> I'm sorry, but I fail to see how validating (or not) an email address >> could prevent using a webmail form for spamming. Care to

Re: Running Python script from C++ code(.NET)

2006-09-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, volcano <[EMAIL PROTECTED]> wrote: . . . >But here is another question for gurus: sometimes my script fails, and >I cannot figure out why. OK, I can - especially since I terminate it >with "sys.e

Dr. Dobb's Python-URL! - weekly Python news and links (Sep 27)

2006-09-26 Thread Cameron Laird
QOTW: "It's not out of the kindness of our hearts that we help. Heck, I don't know what it is. Probably I just like reading my own drivel on the internet and occasionally helping others is a good excuse." - Neil Cerutti "Well, if you're only watching mtv, it's easy to think that there's obviou

Re: tkinter to mpeg

2006-10-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Thomas Jollans <[EMAIL PROTECTED]> wrote: >On Mon, 02 Oct 2006 09:18:13 -0700, "dug" <[EMAIL PROTECTED]> let this >slip: > >> Hi, >> >> I have a small program that moves some shapes around a tkinter canvas. >> Is there any way to save the output in a movie file, may

Re: Manipulate PDFs

2006-10-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Simon Brunning <[EMAIL PROTECTED]> wrote: >On 10/3/06, Weko Altamirano <[EMAIL PROTECTED]> wrote: >> Hi Everyone, am a developer using Zope and wanted to know if any of you have >> ever implemented a pdf generating/creating system using python? This just >> means mos

Re: python threading and timing

2006-10-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Laurent Pointal <[EMAIL PROTECTED]> wrote: . . . >May use Python for some -non realtime- parts, but I would not use any >scripting language (not specific to Python) for real-time work (prefer >C

Dr. Dobb's Python-URL! - weekly Python news and links (Oct 4)

2006-10-03 Thread Cameron Laird
QOTW: "If you want your objects to know their name, give them a name as an attribute." - Georg Brandl "Unfortunately forty years of programming experience has taught me that there's an essentially infinite supply of mistakes to make ... your mistakes just get smarter most of the time." - Steve

Re: Manipulate PDFs

2006-10-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, I misled the newsgroup by writing: . . . >On a large, Very Important Zope site I maintain, though, one which >delivers thousands of dynamically-generated PDF images (not to be >confused with the

Re: Ruby/Python/REXX as a MUCK scripting language

2006-11-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On Fri, 24 Nov 2006 18:11:21 -0600, Tony Belding <[EMAIL PROTECTED]> >declaimed the following in comp.lang.python: > >> the security issue that really worries me. . . I have to be able to >> limit what the interpreter

Re: Dynamic function execution

2006-11-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >Andy Wu wrote: > >> def func(seconds = None, minutes = None, hours = None): >> ... >> >> In my program I can get a string object('seconds', 'minutes', 'hours') >> to specify which parameter to use, the problem is I don'

Re: Python v PHP: fair comparison?

2006-11-27 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, I reported: . . . >I appreciate your clarification. I can report back that we >certainly move in different circles; I, for example, knew of >people with multi-million-dollar budgets deciding on

Re: Ruby/Python/REXX as a MUCK scripting language

2006-11-30 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Laurent Pointal <[EMAIL PROTECTED]> wrote: >Fred Bayer a écrit : >> >> Tony Belding wrote: >>> I'm interested in using an off-the-shelf interpreted language as a >>> user-accessible scripting language for a MUCK. I'm just not sure if I .

Re: Ruby/Python/REXX as a MUCK scripting language

2006-12-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Laurent Pointal <[EMAIL PROTECTED]> wrote: >> . >> . >> . > there's the security issue that really worries me. . . I have to be > able to limit what the interpreter can execute. I can't have my

Re: Window, Windows, Linux, client and server...

2006-12-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >At Thursday 7/12/2006 05:28, nelson - wrote: > >> i'm trying to implement an appllication with this two requirements. >>I have a server and some clients. I want to be able to launch an >>application (openoffice impress

Re: Window, Windows, Linux, client and server...

2006-12-08 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, MRAB <[EMAIL PROTECTED]> wrote: . . . >I think he wants to be able to show the server desktop on a client (for >example, to show a user how to do something) and also be able to see a >client desk

Re: problem with PIPE

2006-12-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Felix Benner <[EMAIL PROTECTED]> wrote: >Dhika Cikul schrieb: >> Hello, >> >> I'm new in Python, i don't know my subject is correct or wrong. I have >> problem with my script. I want to change password with passwd password >> in python without user submitted anythi

Re: OT: introduction to computing clusters?

2006-01-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, I asked: >In article <[EMAIL PROTECTED]>, > <[EMAIL PROTECTED]> wrote: . . . >The first step I recommend is to be clear on the benefits >you're targetting. For you, is clustering about >A. HPC

Re: Mining strings from a HTML document.

2006-01-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Derick van Niekerk <[EMAIL PROTECTED]> wrote: . . . >I suppose very few books on python start off with HTML processing in >stead of 'hello world' :p .

Re: Hi reliability files, writing,reading,maintaining

2006-02-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Martin P. Hellwig <[EMAIL PROTECTED]> wrote: >John Pote wrote: > >> So my request: >> 1. Are there any python modules 'out there' that might help in securely >> writing such files. >> 2. Can anyone suggest a book or two on this kind of file management. (These >> kind

Re: get output of cmd-line command under MS windows

2006-02-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Bernard Lebel <[EMAIL PROTECTED]> wrote: >You should give a go to os.popen( ). Article >6.1.2 and 6.1.3 in the Python Library doc. > >I recently wrote a program that would create a pipe using the popen() >method, and would enter a while loop. At each iteration, it

Re: Tkinter, X-windows and ebay

2006-02-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Bob Greschke <[EMAIL PROTECTED]> wrote: >When you post something on eBay (and other places) you can use a 'browse' >button on a web page to send a picture file from your hard drive to them for >inclusion in your listing. Can the same kind of thing (not the same ex

Re: Hi reliability files, writing,reading,maintaining

2006-02-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, John Pote <[EMAIL PROTECTED]> wrote: . . . >The motivation to look at http: is the widespread avaiability of internet >connections and standard servers able to run CGI scripts. In particular the

Re: Tkinter, X-windows and ebay

2006-02-10 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Bob Greschke <[EMAIL PROTECTED]> wrote: > >"Paul Rubin" wrote in message >news:[EMAIL PROTECTED] >> "Bob Greschke" <[EMAIL PROTECTED]> writes: >>> What I came up with was the user can just create a text file (a kind >>> of a transaction lo

Re: Is python very slow compared to C

2006-02-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Luis M. González <[EMAIL PROTECTED]> wrote: . . . >> Python helps you write shorter code with fewer bugs, much quicker, than C. >> If you discover a specific problem that runs too slow in Python,

Re: Netstat in python. Does it's possible?

2006-02-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Martin v. Löwis <[EMAIL PROTECTED]> wrote: >Jorgen Grahn wrote: >> There might still be a problem for people doing things like this: netstat >> might use unstable or non-public APIs to find the things it lists. This is >> fine because it's typically your OS vendor wh

Is Forth for real?

2006-02-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Steven D'Aprano <[EMAIL PROTECTED]> wrote: . . . >on the web for each language. By comparison, even Forth gives 13 million >plus hits, and who uses Forth? .

Arcane deployment considerations (was: Single-file executables)

2006-02-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Thomas Heller <[EMAIL PROTECTED]> wrote: . . . >Usually the bundle=1 option in py2exe can create a single file exe, but it also >allows to have a separate shared library.zip file, which is usefu

Dr. Dobb's Python-URL! - weekly Python news and links (Feb 13)

2006-02-13 Thread Cameron Laird
QOTW: "Dangit! I need to find a less honest programming language. Anyone have a Perl cookbook handy? ..." - Lonnie Princehouse "The pursuit of orthogonality, while admirable, can lead to insanity if pushed too far." - Steve Holden One of this week's half-dozen examples of the, "Is there a

Dr. Dobb's Python-URL! - weekly Python news and links (Feb 13)

2006-02-13 Thread Cameron Laird
QOTW: "Dangit! I need to find a less honest programming language. Anyone have a Perl cookbook handy? ..." - Lonnie Princehouse "The pursuit of orthogonality, while admirable, can lead to insanity if pushed too far." - Steve Holden One of this week's half-dozen examples of the, "Is there a

Re: Is python very slow compared to C

2006-02-14 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: . . . >Javascript has leveraged its early advantage in the Netscape browser to >become the only "universally available" language for client-side "in the >

Re: Python advocacy in scientific computation

2006-02-14 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Michael Tobis <[EMAIL PROTECTED]> wrote: . . . >Among the Python components and Python bindings of special interest to >scientists are the elegant and powerful matplotlib plotting package, >which

Re: Print a PDF transparently

2006-02-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Daniel Crespo <[EMAIL PROTECTED]> wrote: >Hi to all, > >I want to print a PDF right from my python app transparently. With >"transparently" I mean that no matter what program handles the print >petition, the user shouldn't be noticed about it. > >For example, when I

Re: Print a PDF transparently

2006-02-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: >> Based on all this, I have been investigating about postscript files. I >> realize that printers do handle this language, so I think if I have a >> .ps file and send it directly to the printer, it should do the job, >> ri

Re: embedding python in HTML

2006-02-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, John Salerno <[EMAIL PROTECTED]> wrote: >bruno at modulix wrote: > >> You've got to understand that Python is *not* a 'ServerPage' language >> (-> php, asp, jsp etc) in itself. Your server can now run python, fine, >> but *how* ? CGI ? FastCGI ? mod_python ? other ?

Re: HTTP & tcl

2006-02-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fuzzyman <[EMAIL PROTECTED]> wrote: > >alf wrote: >> Hi >> >> I would like to convert the wctpXml-1.3.py program to Tcl (line by >> line). >> See http://sourceforge.net/project/showfiles.php?group_id=29217 >> This program sends pages using WCTP. I know nothing about

Re: commenting out blocks of code

2006-02-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul McNett <[EMAIL PROTECTED]> wrote: . . . >IMO this is a missing feature in Python. However, if the block of code >you are wanting to comment out doesn't happen to contain any >triple-quote

Re: Python vs. Lisp -- please explain

2006-02-19 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Roy Smith <[EMAIL PROTECTED]> wrote: >DH <[EMAIL PROTECTED]> wrote: >> -python has true closures (although nothing like ruby's blocks) > >What is a "true closure"? Or, maybe what I'm asking is what kind of >closure wouldn't be a true closure? Is there some kind o

Re: define loop statement?

2006-02-19 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, David Isaac <[EMAIL PROTECTED]> wrote: . . . >Admiration wins out over revulsion. ;-) >Thanks, >Alan Isaac > >PS Here's the motivation. Python closely resembles pseudocode. With >a very little

Re: Python vs. Lisp -- please explain

2006-02-20 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alexander Schmolck <[EMAIL PROTECTED]> wrote: . . . >However I don't find it at all implausible to assume that had Guido known all >the stuff that say, David Ungar and Guy Steele were aware of a

Re: Python vs. Lisp -- please explain

2006-02-20 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, I wondered: >In article <[EMAIL PROTECTED]>, >Alexander Schmolck <[EMAIL PROTECTED]> wrote: > . > . > . >>However I don't find it at all implausible to assume that had Guido known all >>the stuff that

Dr. Dobb's Python-URL! - weekly Python news and links (Feb 20)

2006-02-20 Thread Cameron Laird
QOTW: "On the other hand, lousy testing is practically worthless." - Steve D'Aprano "Komodo adds no goo to your code." - Trent Mick A nice if implicit comparison of stylish use of a regular expression vs. an equally stylish procedural approach: which is easier for *you* to maintain

Dr. Dobb's Python-URL! - weekly Python news and links (Feb 20)

2006-02-20 Thread Cameron Laird
QOTW: "On the other hand, lousy testing is practically worthless." - Steve D'Aprano "Komodo adds no goo to your code." - Trent Mick A nice if implicit comparison of stylish use of a regular expression vs. an equally stylish procedural approach: which is easier for *you* to maintain

Re: What are COM-enabled applications?

2006-02-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tempo <[EMAIL PROTECTED]> wrote: >As the subject of this post suggests, I have one question; what are >COM-enabled applications? I believe Microsoft Word is one of these >apps, but what else? Is a web browser, Paint, Solitare, games, etc? I'm >not sure if it varies f

Re: Tkinter canvas size determination

2006-02-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dean Allen Provins <[EMAIL PROTECTED]> wrote: >I need to determine the size of a canvas while the process is running. >Does anyone know of a technique that will let me do that? . . . Does >>>

Re: HTTP & tcl

2006-02-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, alf <[EMAIL PROTECTED]> wrote: . . . >I actually did post in comp.lang.tcl. Please search for "wctp" -- the >3 results are all mine. Apparently, I am the only person interested in >implementing

Re: What are COM-enabled applications?

2006-02-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Duncan Booth <[EMAIL PROTECTED]> wrote: >Cameron Laird wrote: > >> Python has good COM abilities. While, to my surprise, I just >> realized that I'm unaware of anyone having put together a COM >> "explorer"

Pythonic exceptionalism (was: A C-like if statement)

2006-02-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Steven D'Aprano <[EMAIL PROTECTED]> wrote: >On Thu, 23 Feb 2006 12:04:38 -0700, Bob Greschke wrote: > >>> try: >>>i = a.find("3") >>>print "It's here: ", i >>> except NotFound: >>>print "No 3's here" >> >> Nuts. I guess you're right. It wouldn't be pr

Re: Is Python a Zen language?

2006-02-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Kay Schluehr <[EMAIL PROTECTED]> wrote: . . . >Lucid in the mid 80s that gone down a few years later. As it turned out >that time Lisp was not capable to survive in what we call today a >"heterog

Dr. Dobb's Python-URL! - weekly Python news and links (Feb 27)

2006-02-27 Thread Cameron Laird
QOTW: "Actually, Python has the distinction of being both a great tool language *and* a great Zen language. That's what makes Python so cool ;-)))" - Ron Stephens "It is probably possible to do the whole thing with a regular expression. It is probably not wise to do so." - John Zenger (among MANY

Dr. Dobb's Python-URL! - weekly Python news and links (Feb 27)

2006-02-27 Thread Cameron Laird
QOTW: "Actually, Python has the distinction of being both a great tool language *and* a great Zen language. That's what makes Python so cool ;-)))" - Ron Stephens "It is probably possible to do the whole thing with a regular expression. It is probably not wise to do so." - John Zenger (among MANY

Re: Python advocacy in scientific computation

2006-02-28 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Georg Brandl <[EMAIL PROTECTED]> wrote: >Michael Tobis wrote: >> Someone asked me to write a brief essay regarding the value-add >> proposition for Python in the Fortran community. Slightly modified to >> remove a few climatology-related specifics, here it is. > >Gr

Dr. Dobb's Python-URL! - weekly Python news and links (Mar 6)

2006-03-06 Thread Cameron Laird
QOTW: "This PyCon has been better in so many respects than the three that preceded it. ... PyCon will continue to improve." - Steve Holden, chairman of PyCon 2003-2005 http://holdenweb.blogspot.com/ "Design patterns are kind of like sarcasm: hard to use well, not always appropriate, and di

My personal candidate for QOTW (was: Python interpreter in Basic or a Python-2-Basic translator.)

2005-05-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Engineer <[EMAIL PROTECTED]> wrote: . . . >The security 'droids have decided that since the MS Office Suite is a >"standard" application then software written in MS Office VBA must be >"safe." A

Re: Listing of declared variables and functions

2005-05-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fernando Perez <[EMAIL PROTECTED]> wrote: >ohms377 wrote: > >> Dear python users, >> >> In interactive mode, I was wondering if there is a way to list all >> declared variables and functions (and from global workspace). > >In [1]: def foo(): pass > ...: > >In [2]

Re: Using TCL files in Python ?

2005-05-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Peter Moscatt <[EMAIL PROTECTED]> wrote: >I am reasonably new to programming in Python. [Using LINUX] > >Up until now I have been using GUI widgets supplied by 'Tkinter' but >starting to realise that Tkinter have limited widgets. > >I have been given the lead that I

Re: pyvm -- faster python

2005-05-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Roger Binns <[EMAIL PROTECTED]> wrote: >> could You tell us a bit more about Your motivation to create an >> alternative C-Python interpreter? > >I'd also be curious to know if the performance gains would remain >once it gets fleshed out with things like closures, lo

Re: Compiling Tcl apps redux

2005-05-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >Absolutely! Looking at the wiki there are a bunch of solutions, all of >which work in specialized circumstances. Nothing like, say the "freeze" >script of Pyt

Re: Faster GUI text control

2005-05-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Jeremy Bowers <[EMAIL PROTECTED]> wrote: >On Fri, 13 May 2005 15:44:24 -0500, none wrote: > >> I'm trying to decide what is the best replacement for the control. I >> was originally planning on redoing the GUI with wxpython, but I've seen >> people indicate I wou

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, john67 <[EMAIL PROTECTED]> wrote: >The company I work for is about to embark on developing a commercial >application that will cost us tens-of-millions to develop. When all is >said and done it will have thousands of business objects/classes, some >of which will ha

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dave Brueck <[EMAIL PROTECTED]> wrote: . . . >Just because the app itself is very OO, it doesn't always follow that the >database level needs to be - there are lots and lots of problems for whi

Re: Is Python suitable for a huge, enterprise size app?

2005-05-19 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, vincent wehren <[EMAIL PROTECTED]> wrote: . . . >If the application is really huge, you should consider using >a set of programming languages that do the particular job best. >That is, go for a c

Re: Dr. Dobb's Python-URL! - weekly Python news and links (May 24)

2005-05-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Rocco Moretti <[EMAIL PROTECTED]> wrote: >Simon Brunning wrote: >> QOTW: "If you're sick of answering newbie questions, and don't think you >> can do so politely, for the sake of the community, DON'T! You're not that >> necessary." - Joal Heagney > >Taken out of co

Re: Has ComboBox ctrl in Tkinter?

2005-05-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >"ÒÊÃÉɽÈË" <[EMAIL PROTECTED]> wrote: > >>i have not find the ComboBox in Tkinter,has it? where to get the doc about >> how to use combobox ctrl? > >the Tix add-on contains a combobox: > >http://docs.python.org/lib/node72

<    1   2   3   4   5   6   7   >