Re: Help with choice of suitable Architecture

2005-05-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: . . . >good reason" exception. I dunno about "suggest". I do see that . . .

Re: How do you drive-by-wire a car using Python ?

2005-05-31 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >Please note we had to avoid trash cans when the DARPA folks came to >visit us. Our vehicle aims at being a garbage avoidance system instead >:-) > >Igor. > Python clearly is unsuitable for Grand Challenges, as I believe

Alternative history (was: prime number)

2005-05-31 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: . . . >If it isn't a homework assignment, and you're honestly in such, then >you should know there's been a lot of research in this area, because >primes ar

Re: prime number

2005-05-31 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, lostinpython <[EMAIL PROTECTED]> wrote: >It is a homework assignment from a book but not for a class. I'm >trying to teach my self some basic programming before I have to take it >in college. If I show enough understanding of the subject, my advisor >will let me fo

Re: calling ksh script from python

2005-06-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Donn Cave <[EMAIL PROTECTED]> wrote: . . . >Meanwhile, it might be worthwhile to reconsider the use >of ksh here, if you have any choice in the matter. Ksh >is fine for interactive use, but has

Re: PYSH? (was:Re: calling ksh script from python)

2005-06-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul McNett <[EMAIL PROTECTED]> wrote: . . . >I keep wondering how difficult it would be to make a Python shell that >exposes all of Python but also includes some builtin commands such as >cd,

Re: implicit variable declaration and access

2005-06-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Peter Dembinski <[EMAIL PROTECTED]> wrote: >Benji York <[EMAIL PROTECTED]> writes: > >[snap] > >>> code = x + '= 0' >>> exec(code) >> >> You should generally stay away from exec for lots of reasons. > >Code 'refactorizability' is one of them. There's an affirmative

Re: implicit variable declaration and access

2005-06-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Ali Razavi <[EMAIL PROTECTED]> wrote: >Tom Anderson wrote: >> On Mon, 13 Jun 2005, Ali Razavi wrote: >> >>> Is there any reflective facility in python that I can use to define a >>> variable with a name stored in another variable ? .

Re: Where is Word?

2005-06-14 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tomasz Lisowski <[EMAIL PROTECTED]> wrote: . . . >import win32com.client >wordCOMID = "Word.Application" > >word = win32com.client.Dispatch(wordCOMID) > >Then you can use the methods of the word

Re: Dealing with marketing types...

2005-06-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Kay Schluehr <[EMAIL PROTECTED]> wrote: . . . >less expensive. Arguing that a Python project definitely needs less >programmers than the Java counterpart ( which is very cost effective >because y

Re: What language to manipulate text files

2005-06-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >ross wrote: >> Roose wrote: >> > Why do people keep asking what language to use for certain things in the >> > Python newsgroup? Obviously the answer is going to biased. >> > >> > Not that it's a bad thing because I love Python, but it d

Re: implicit variable declaration and access

2005-06-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Christopher Subich <[EMAIL PROTECTED]> wrote: . . . >Out of curiosity, where would you classify interpreters for secondary >app-specific programming languages? Specifically, mud-client stored

Re: Dealing with marketing types...

2005-06-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Kay Schluehr <[EMAIL PROTECTED]> wrote: >Sorry, Cameron, if I twist meanings. > >Thomas argues that Python programmers are more expensive than Java >ones. But if one needs more Java programmers to fit into the project >plan one needs probably more managenment/admistr

Re: Back to the future - python to C++ advice wanted

2005-06-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, bruno modulix <[EMAIL PROTECTED]> wrote: >George Sakkis wrote: . . . >> learned in similar situations. How one can avoid the frustration of >> having to work with a low level language once he ha

Re: Updated Jython Bibliography

2007-06-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >To celebrate jython's recent progress I've updated my Jython >Bibliography to include new resources I've tripped over in the last >little while. Its available here: http://www.fishandcross.com/blog/?p=194 >Please let me

Re: subexpressions (OT: math)

2007-06-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Leonhard Vogt <[EMAIL PROTECTED]> wrote: >>> Yes, I understand that, but what is the geometrical >>> meaning of the square root of an arc length? >> >> That's a different question to your original question, which was asking >> about the square root of an angle. >

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Ross Ridge <[EMAIL PROTECTED]> wrote: >Steve Howell <[EMAIL PROTECTED]> wrote: >>about Japan: >>major linguistic influences: Chinese, English, >>Dutch > >English and Dutch are minor linguistic influences. . .

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, ahlongxp <[EMAIL PROTECTED]> wrote: . . . >I'm a Chinese. >Language/English is really a big problem for Chinese programmers. >If python can be written in Chinese, it may become the most popul

Re: How do you htmlentities in Python

2007-06-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Adam Atlas <[EMAIL PROTECTED]> wrote: >As far as I know, there isn't a standard idiom to do this, but it's >still a one-liner. Untested, but I think this should work: > >import re >from htmlentitydefs import name2codepoint >def htmlentitydecode(s): >return re.su

Re: How do you htmlentities in Python

2007-06-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Adam Atlas <[EMAIL PROTECTED]> wrote: >As far as I know, there isn't a standard idiom to do this, but it's >still a one-liner. Untested, but I think this should work: > >import re >from htmlentitydefs import name2codepoint >def htmlentitydecode(s): >return re.su

Re: How do you htmlentities in Python

2007-06-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Matimus <[EMAIL PROTECTED]> wrote: >On Jun 4, 6:31 am, "js " <[EMAIL PROTECTED]> wrote: >> Hi list. >> >> If I'm not mistaken, in python, there's no standard library to convert >> html entities, like & or > into their applicable characters. >> >> htmlentitydefs prov

Python for industrial control (was: Who uses Python?)

2007-06-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: > "walterbyrd" <[EMAIL PROTECTED]> wrote: > >> Anything else? Finance? Web-analytics? SEO? Digital art? > >Industrial control and alarm annunciation . .

Re: Tkinter - resize tkMessageBox

2007-06-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Glenn Hutchings <[EMAIL PROTECTED]> wrote: >On 4 Jun, 21:29, [EMAIL PROTECTED] wrote: >> Is there a way to resize the width of the "tkMessageBox.askyesno" >> dialog box, so that the text does not wrap to the next line. > >You can use the Tk option database, either e

Re: Tkinter - resize tkMessageBox

2007-06-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, jim-on-linux <[EMAIL PROTECTED]> wrote: >On Monday 04 June 2007 16:29, [EMAIL PROTECTED] >wrote: >> Hi, >> Is there a way to resize the width of the >> "tkMessageBox.askyesno" dialog box, so that the >> text does not wrap to the next line. Thanks >> Rahul >I don't

Re: which "GUI module" you suggest me to use?

2007-06-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, ZioMiP <[EMAIL PROTECTED]> wrote: >Hi to all... > >I'm actually using Tkinter for my GUI... but I need to "put a piece of a >web-page in a widget" how can I do? > >which GUI module do you suggest me to use for do that? > >or which GUI module do you suggest me to us

Re: which "GUI module" you suggest me to use?

2007-06-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > >ZioMiP je napisao/la: >> Hi to all... >> >> I'm actually using Tkinter for my GUI... but I need to "put a piece of a >> web-page in a widget" how can I do? >> >> which GUI module do you suggest me to use for do that? >> >> or which GUI

Re: Python for embedded systems with memory constraints

2007-06-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, vishnu <[EMAIL PROTECTED]> wrote: >Hi there, > >I am embedding python 2.5 on embedded system running on RTOS where I >had strict memory constraints. >As python is a huge malloc intensive application, I observed huge >memory fragmentation in my system which is leadin

Re: Who uses Python?

2007-06-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: > >"Stef Mientki" <[EMAIL PROTECTED]> wrote: > >> I use Python as a replacement for MatLab, >> and intend to use it as replacement for Delphi, AutoIt, PHP, VB. >> And I'ld love to use it as a replacement for micro contro

Re: Bragging about Python

2007-06-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mathias Panzenboeck <[EMAIL PROTECTED]> wrote: >Steve Howell schrieb: >> --- "[EMAIL PROTECTED]" >> <[EMAIL PROTECTED]> wrote: >> >>> Is there a resource somewhere on the net that can be >>> used to quickly >>> and effectively show Python's strengths to >>> non-Pyt

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-10 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, I asked: >In article <[EMAIL PROTECTED]>, >ahlongxp <[EMAIL PROTECTED]> wrote: > . > . > . >>I'm a Chinese. >>Language/English is really a big problem for Chinese programmers. >>If python can be writ

Re: Tkinter - resize tkMessageBox

2007-06-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, I wondered: >In article <[EMAIL PROTECTED]>, >Glenn Hutchings <[EMAIL PROTECTED]> wrote: >>On 4 Jun, 21:29, [EMAIL PROTECTED] wrote: >>> Is there a way to resize the width of the "tkMessageBox.askyesno" >>> dialog box, so that the text does not wrap to the next line

Re: DFW Pythoneers Meeting THIS Saturday

2007-06-20 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: >Joe Riopel wrote: > >>> Precisely what? You complained that the OP didn't provide the location >>> of the event, which he did. >> >> Well, where is DFW? > >Google, first hit: > >The Dallas Ft. Worth Pythoneers > >They eve

Re: Reading image dimensions before it is loaded from a web form using python.

2007-06-30 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Evan Klitzke <[EMAIL PROTECTED]> wrote: >On 6/30/07, Norman Khine <[EMAIL PROTECTED]> wrote: >> Hello, >> I am writing an application using python that allows the user to upload >> an image to a folder on the server. >> >> Is there a way to get the size of the file b

Re: Tiny/small/minimalist Python?

2007-07-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, rtk <[EMAIL PROTECTED]> wrote: >I'm looking for information on building a tiny/small/minimalist/ >vanilla python interpreter. One that implements the core language and >a few of the key modules but isn't tied to any specific operating >system. > >I guess I'm asking

Python-URL! - weekly Python news and links (Jul 2)

2007-07-02 Thread Cameron Laird
QOTW: "Modules are objects too - they're a good example of singletons. If you want to create a class containing only static methods: use a module instead. If you want to create a class having a single instance (a singleton), most of the time you can use a module instead. Functions don't *have* to

Re: Probably simple syntax error

2007-07-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mark Peters <[EMAIL PROTECTED]> wrote: . . . >Square brackets indicate the index into a sequence (like a list) > I'm wary of this line, especially in isolation. I hope it reduces, rather than

Re: what is the PythonWin

2007-07-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, O.R.Senthil Kumaran <[EMAIL PROTECTED]> wrote: >* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2007-07-01 15:53:30]: > >> In PythonWin, select Tools | COM MakePy utility | Microsoft Speech >> Object Library 5.1). >> >> I can't find PythonWin .. Does anybody know what this

Re: The best platform and editor for Python

2007-07-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, kimiraikkonen <[EMAIL PROTECTED]> wrote: >Thanks for the replies so far. Also i have to learn: > >What is the most reliable and easy way to start learning Ptyhon? >Books? Trusted code sammples(where?)? . .

Re: The best platform and editor for Python

2007-07-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Kay Schluehr <[EMAIL PROTECTED]> wrote: >On Jul 3, 8:12 pm, [EMAIL PROTECTED] (Cameron Laird) wrote: > >> Python is simply easier than C++; you might >> well find that a debugger, for example, doesn't feel as essential >> as

Re: The best platform and editor for Python

2007-07-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Gregor Horvath <[EMAIL PROTECTED]> wrote: >kimiraikkonen schrieb: > >> My another aim is: Can i develop graphical applications (like in >> Windows) which contain menus, interactive dialog boxes etc. using >> Ptyhon? >> >> I got it quite but not sure. I don't know P

Re: Tiny/small/minimalist Python?

2007-07-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Irmen de Jong <[EMAIL PROTECTED]> wrote: >Paul Rubin wrote: >> rtk <[EMAIL PROTECTED]> writes: >>> FYI.. I wanted a simple version of Python to run on an ancient DEC >>> Alpha box. I got VMS Python 2.5 up and running but it is too slow to >>> use. It takes *minute

Re: connecting to serial port + python

2007-07-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Japan Shah <[EMAIL PROTECTED]> wrote: >Hello, > >I am trying to connect my Nokia 6610 using usb cable, >I have installed usb-serial driver of it. > > >I hv tested it with Hyperterminal and it works fine. > >but when I wrote a python script I am not able to receive t

Re: Technology solutions for Ruby?

2007-07-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >wxPython uses the native widgets of the platform it is running on in >most (if not all) cases, so if you want the "native look & feel", than >that is the way I

Re: How to organize control access to source code ?

2007-07-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul Boddie <[EMAIL PROTECTED]> wrote: >On 17 Jul, 01:16, [EMAIL PROTECTED] wrote: >> >> Thanks for your response, >> But I want to know if there is a process or best practices, to give >> not the access to all of the project. in other words, must every >> developer

Re: Python-URL! - weekly Python news and links (Jul 16)

2007-07-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Kay Schluehr <[EMAIL PROTECTED]> wrote: > >Gabriel Genellina schrieb: >> QOTW: "That's a property of open source projects. Features nobody really >> needs are not implemented." - Gregor Horvath > >It's a good QOTW but social romantic nonsense nevertheless. > >Not s

Re: Future Python Gui?

2007-04-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: . . . >I wouldn't mind using just Tkinter, despite it's primative look, >except that it doesn't support more advanced widgets like "notebook".

Python-URL! - weekly Python news and links (Apr 18)

2007-04-20 Thread Cameron Laird
QOTW: "I can't say enough about Python and agile programming. Piecing together small, well-documented, well-tested pieces of software makes solving big problems easier." - Shannon Behrens of Foxmarks; May DDJ http://www.ddj.com/dept/architect/198800578 "Automatic type inference may be su

Re: Testing GUI's

2007-04-20 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Stephen Lewitowski <[EMAIL PROTECTED]> wrote: >Can any of you guy's out there point me to information on automating >GUI's that use Tkinter. > >I would like to find out more and possibly get involved if there are any > projects under development.

Re: No speedup on multi-processor machine?

2007-04-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, John Nagle <[EMAIL PROTECTED]> wrote: >Caleb Hattingh wrote: >> On Apr 21, 11:02 pm, [EMAIL PROTECTED] wrote: >> >>>Hi, >>>I am using Python Thread library for my parallel processing course >>>project. I am doing matrix convolution on a multi-processor machine >>>r

Python-URL! - weekly Python news and links (Apr 23)

2007-04-23 Thread Cameron Laird
QOTW: "The users." - Ali, answering a question on what's special about Emacs. "Dynamic languages look at WSDL and shrug - another example of the hoops that static typing forces humans to go through." - Gordon Weakliem http://lists.community.tummy.com/pipermail/frpythoneers/2007-April/001342.

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Grant Edwards <[EMAIL PROTECTED]> wrote: >I need to be able to generate a PDF report which consists >mostly of vector images (which I can generate as encapsulated >Postscript, PDF, or SVG). What I need is a way to combine >these figures into a single PDF document.

Re: Python Screen Scraper

2007-04-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Michael Bentley <[EMAIL PROTECTED]> wrote: > >On Apr 24, 2007, at 11:50 AM, James Stroud wrote: > >> Hello, >> >> Does anyone know of an example, however modest, of a screenscraper >> authored in python? I am using Firefox. >> >> Basically, I am answering problems v

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Grant Edwards <[EMAIL PROTECTED]> wrote: . . . >part of a Win32 application. You can pretty much except a >Linux platform to have ghostscript available, but for Win32 >users it'll have to be bu

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Grant Edwards <[EMAIL PROTECTED]> wrote: >>> >>> In fairness to ReportLab I'd like to say that their *commercial* >>> products can do everything the OP asks for and more besides, but >>> unfortunately they are mostly targeted at the "enterprise" (read: big >>> mo

Re: Store variable name in another variable

2007-04-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Laurent Pointal <[EMAIL PROTECTED]> wrote: >loial a écrit : >> I need to store a list of variable names in a dictionary or list. I >> then later need to retrieve the names of the variables and get the >> values from the named variables. The named variables will alre

Re: : Re-ocurring Events

2007-04-27 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Robert Rawlins - Think Blue <[EMAIL PROTECTED]> wrote: . . . >I've been thinking about the possibility of using a combination of xpath to >search the XML with some loops which change the date. As

Python-URL! - weekly Python news and links (Apr 30)

2007-04-30 Thread Cameron Laird
QOTW: "That is just as feasible as passing a cruise ship through a phone line." - Carsten Haese, on transporting a COM object across a network. Less vividly but more formally, as he notes, "A COM object represents a connection to a service or executable that is running on one computer. Transferrin

Re: Python-URL! - weekly Python news and links (Apr 30)

2007-04-30 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Roger Upole <[EMAIL PROTECTED]> wrote: >Cameron Laird wrote: >> QOTW: "That is just as feasible as passing a cruise ship through a phone >> line." - Carsten Haese, on transporting a COM object across a network. >> Less viv

Re: Python-URL! - weekly Python news and links (Apr 30)

2007-05-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Roger Upole <[EMAIL PROTECTED]> wrote: > >"Cameron Laird" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> In article <[EMAIL PROTECTED]>, >> Roger Upole <[EMAIL PROTECTED]> wrote: >

Re: Read and Write the same file

2007-05-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Ian Clark <[EMAIL PROTECTED]> wrote: . . . >the file, overwriting the oringinal copy. Now, this only really works >if you're dealing with small files. .

Re: How can I get the ascii code of a charter in python?

2007-05-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, John Machin <[EMAIL PROTECTED]> wrote: >On May 2, 7:06 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >> How can I get the ascii code of a charter in python? > >E.g. download from here: >http://www.gutenberg.org/ebooks/1 >then in Python, use: >text = open(

Re: Is it possible to determine what a function needs for parameters -

2007-05-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Chris Mellon <[EMAIL PROTECTED]> wrote: >On 2 May 2007 09:41:56 -0700, rh0dium <[EMAIL PROTECTED]> wrote: >> On May 2, 8:25 am, Gary Herron <[EMAIL PROTECTED]> wrote: >> > rh0dium wrote: . . . >T

Re: gpp (conditional compilation)

2007-05-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Duncan Booth <[EMAIL PROTECTED]> wrote: >"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >> I'm trying to use the gpp utility (Gnu points to >> http://en.nothingisreal.com/wiki/GPP) to do conditional compilation in >> Python, and I'm running into a problem: the sam

Re: invoke user's standard mail client

2007-05-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >Hello, > >the simplest way to launch the user's standard mail client from a >Python program is by creating a mailto: URL and launching the >webbrowser: > >def mailto_url(to=None,subject=None,body=None,cc=None): >""" >

Re: invoke user's standard mail client

2007-05-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Cameron Laird <[EMAIL PROTECTED]> wrote: >In article <[EMAIL PROTECTED]>, >[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>Hello, >> >>the simplest way to launch the user's standard mail client from a >>Py

Re: c macros in python.

2007-05-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] a écrit : >> Hey, >> >> I'm writing a script to generate code. I'm a bit tired of typing >> outfile.write(). Does python have a way to c-like macros? Every >> instance of o(...) in the code will

Python-URL! - weekly Python news and links (May 7)

2007-05-07 Thread Cameron Laird
QOTW: "As a general rule, *ALL* multithread operations are at least that troublesome, and most are far more so." - Gary Herron "I'm a recent, belated convert from Perl. I work in a physics lab and have been using Python to automate a lot of measurement equipment lately. It works fabulously for

Re: Trying to choose between python and java

2007-05-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Terry Reedy <[EMAIL PROTECTED]> wrote: > >"Anthony Irwin" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] . . . >| #5 someone said that they used to use python but stopped because t

Re: Trying to choose between python and java

2007-05-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul Melis <[EMAIL PROTECTED]> wrote: >Anthony Irwin wrote: >> Hi All, >> >> I am currently trying to decide between using python or java and have a >> few quick questions about python that you may be able to help with. >> >> #1 Does python have something like ja

Re: Trying to choose between python and java

2007-05-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul Melis <[EMAIL PROTECTED]> wrote: . . . >your program comes out on the other platforms. You could use a GUI >toolkit that draws its own widgets instead of one that uses the native >control

Python-URL! - weekly Python news and links (May 16)

2007-05-16 Thread Cameron Laird
QOTW: "Sometimes you just have to take the path of least distaste". - Grant Edwards "I want to choose my words carefully here, so I'm not misunderstood. They're a bunch of fucking idiots." - Charles Wang, billionaire chairman of software giant Computer Associates, asked to assess the quality of

Re: Python-URL! - weekly Python news and links (May 16)

2007-05-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >> PythonWare complements the digest you're reading with the >> marvelous daily python url >> http://www.pythonware.com/daily > >Ha, ha, ha... > >That is a good joke! > > > 'Wasn't meant that way. While he doesn't make i

Re: Python-URL! - weekly Python news and links (May 16)

2007-05-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: >Steve Holden wrote: >> Beliavsky wrote: >>> On May 16, 2:45 pm, "Cameron Laird" <[EMAIL PROTECTED]> wrote: >>>> QOTW: "Sometimes you just have to take the p

Re: alternative to eclipse [ python ide AND cvs ]

2007-05-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, yomgui <[EMAIL PROTECTED]> wrote: >Hi, > >Eclipse is just not really working on linux 64 bit >(I tried ubuntu and centos, it is freesing and crashing >and extremly slow) > >I use eclipse for python and cvs, what is "the" good alternative ? .

Re: Python compared to other language

2007-05-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Beliavsky <[EMAIL PROTECTED]> wrote: >On May 18, 3:04 pm, scott <[EMAIL PROTECTED]> wrote: >> Hi all, >> >> I have been looking at the various programming languages available. >> I >> have programed in Basic since I was a teenager and I also have a basic >

Re: python shell

2007-05-19 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paddy <[EMAIL PROTECTED]> wrote: >On May 16, 6:38 pm, Krypto <[EMAIL PROTECTED]> wrote: >> I have been using python shell to test small parts of the big program. >> What other ways can I use the shell effectively. My mentor told me >> that you can virtually do anyth

Re: How to convert a number to binary?

2007-05-19 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Lyosha <[EMAIL PROTECTED]> wrote: . . . >While I agree with this general statement, I think remembering a >particular one-liner to convert a number to a binary is more valuable >to my brain than

What is deployment? (was: A Few More Forrester Survey Questions)

2007-05-19 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Jeff Rush <[EMAIL PROTECTED]> wrote: . . . >2) How easy is it to install an application written in the language? > How is the application deployed? > > I'm having some trouble understanding

Re: [dfwPython] A Few More Forrester Survey Questions

2007-05-19 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Brad Allen <[EMAIL PROTECTED]> wrote: >At 10:22 AM -0500 5/18/07, Jeff Rush wrote: . . . >>3) What is the value of the language to developers? >> >>Yeah, a very common, slippery question. T

Sysad tasks (was: Python compared to other language)

2007-05-21 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: . . . >Ruby is probably far better than Python at sys-admin tasks. And, while . .

Re: Python and GUI

2007-05-21 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > >Just wondering on what peoples opinions are of the GUIs avaiable for >Python? > >All I am doing is prompting users for some data (listbox, radio >buttons, text box, ect...). Then I will have some text output, maybe >a scrolling text me

Re: python shell/Intermediate Python tools.

2007-05-21 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paddy <[EMAIL PROTECTED]> wrote: . . . >Sometimes you have to mess with the case of letters in wiki pages >which is the case here, but I did actually cut-n-paste the address >from Wikipedia as I

Re: Shared Memory Space - Accross Apps & Network

2007-05-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tim Golden <[EMAIL PROTECTED]> wrote: . . . >PyLinda - http://www-users.cs.york.ac.uk/~aw/pylinda/ > >This implements the tuplespace paradigm. It's great >fun to use, but as far as I know this i

Re: need advice on building core code for python and PHP

2007-05-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, digimotif <[EMAIL PROTECTED]> wrote: >All, >I'm currently working with a small development company on a PHP >application they already have. There are several processing tasks >that could be scripted in Python and run in the background to modify a >database, instead

Re: Module listing in order.

2007-05-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: . . . >Good God! Is there *anything* that python does not already do? I hardly >feel the need to write programs anymore ... >Its really 80% like

Ancient projectiles (was: Muzzle Velocity (was: High resolution sleep (Linux))

2007-05-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: . . . >> Did you know that the first military smokeless powder >> round was for the French Lebel? - It threw a bronze >> ball, and could punch throu

Re: Muzzle Velocity (was: High resolution sleep (Linux)

2007-05-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On Sun, 6 May 2007 10:15:26 +0200, "Hendrik van Rooyen" ><[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > >> A rifle bullet can travel at around 5000 feet per second. > > You've got some fast ri

Re: Muzzle Velocity (was: High resolution sleep (Linux)

2007-05-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: . . . >2) That the old NATO round (.308 Winchester) travels at >around 2500 fps. - and this was some forty years ago, >when I did my stint of milit

Re: PHP5 programmer learning Python

2007-05-27 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >En Sun, 27 May 2007 12:41:36 -0300, romiro <[EMAIL PROTECTED]> escribió: > >> Anyway, my first question was if anyone knows of a tutorial that >> focuses on PHP -> Python learning, in such that there might be a block >> o

Re: Where do they tech Python officialy ?

2007-07-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, NicolasG <[EMAIL PROTECTED]> wrote: >Hi, > >I want to be a professional python programmer, unfortunately I'm >working on technical support and don't have the time/patience to start >making projects my self. I tried to apply to some Python positions but >unfortunatel

Re: Where do they tech Python officialy ?

2007-07-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, NicolasG <[EMAIL PROTECTED]> wrote: . . . >Yes true , I'm already a programmer.. doing technical support for my >company products in a call center. I hate my job, I hate the moment I >have to wa

Re: Closures / Blocks in Python

2007-07-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Jason <[EMAIL PROTECTED]> wrote: . [good detail] . . >If you can't find a way of doing what you want with iterators, >comprehensions, or lambda, consider writing a little functio

Re: Submit form, open result in a browser

2007-07-27 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tina I <[EMAIL PROTECTED]> wrote: >theju wrote: >>> Is there a way to submit a form and then open the resulting page in the >>> default browser? (Writing the form submission code is not a problem by >>> the way) >> >> There is a library called "Client Form" that do

Re: standalone process to interact with the web

2007-07-31 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: >beginner wrote: >> Hi Everyone, >> >> I am looking for a way to allow a standalone python process to easily >> interactive with a few web pages. It has to be able to easily receive >> requests from the web and post data to t

Re: Python end of file marker similar to perl's __END__

2007-08-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Neil Cerutti <[EMAIL PROTECTED]> wrote: >On 2007-08-01, beginner <[EMAIL PROTECTED]> wrote: >> Thanks everyone for responding. It doesn't look like python has >> it. I would definitely miss it. As Steve said, the nice thing >> about __END__ is that things below __EN

Re: XML Processing

2007-08-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >On Aug 2, 2:09 pm, Jay Loden <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >> > On Aug 2, 1:45 pm, Roman <[EMAIL PROTECTED]> wrote: >> >> Is there a package that converts a string that contains special >> >> characters in xml to

Re: Best way to capture output from an exec'ed (or such) script?

2007-08-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >En Thu, 02 Aug 2007 16:48:06 -0300, <[EMAIL PROTECTED]> escribió: > >> In any case. I've added some minor scripting support, so that you can >> write dynamic pages in Python. To do this, I use execfile(), and pass >> the

Issues of state (was: Tkinter or wxpython?)

2007-08-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Chris Mellon <[EMAIL PROTECTED]> wrote: . [scores of lines of vigorous debate] . . >Moreover, if you *don't* need global access or zero-deployment >(zero-deploymen

Which GUI toolkit (was: Tkinter or wxpython?)

2007-08-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Bryan Hepworth <[EMAIL PROTECTED]> wrote: . [waaay too much quoted text for my taste] . . >> I'm not trying to claim that there are no benefit

Re: Tkinter or wxpython?

2007-08-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: . . . >I should also add: there is also the possibility of running a Python >program with an embedded http server on the same desktop as the >browser

<    1   2   3   4   5   6   7   >