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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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

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: 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

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: 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: 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-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: 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: 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: 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: 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: 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]

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: anonymous functions/expressions without lambda?

2005-04-28 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Peter Hansen <[EMAIL PROTECTED]> wrote: >Paul Miller wrote: >> For example, let's say I have a function which binds a key to a function >> call. I want to do something "simple" in this function call, and I have >> a lot of bindings, so I don't want to have a ton o

Re: Getting the sender widget's name in function (Tkinter)

2005-04-28 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, tiissa <[EMAIL PROTECTED]> wrote: . . . >So far, the OP is proposed the choice to either use the event/bind >mecanism or use different callbacks for his different buttons (either >with the met

Re: Getting the sender widget's name in function (Tkinter)

2005-04-28 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Eric Brunel <[EMAIL PROTECTED]> wrote: >On 26 Apr 2005 13:37:29 -0700, infidel <[EMAIL PROTECTED]> wrote: > >> from Tkinter import Tk, Button >> >> def say_hello(event): >> print 'hello!' >> print event.widget['text'] >> >> root = Tk() >> button1 = Button(roo

Re: Python, Perl & PDF files

2005-04-27 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, rbt <[EMAIL PROTECTED]> wrote: >Cameron Laird wrote: >> In article <[EMAIL PROTECTED]>, >> rbt <[EMAIL PROTECTED]> wrote: >> . >> . >> . >&

Re: Python, Perl & PDF files

2005-04-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, rbt <[EMAIL PROTECTED]> wrote: . . . >Read and search them for strings. If I could do that on windows, linux >and mac with the *same* bit of Python code, I'd be very happy ;) Textual content,

Re: Python, Perl & PDF files

2005-04-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, rbt <[EMAIL PROTECTED]> wrote: . . . >OK, I'm done seeking to provoke. So, it's official. Perl has *much*, >*much* better support for dealing with PDF files than does Python.

Re: what is the best way to determine system OS?

2005-04-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: . . . >Anyway, checking the system name is the wrong way to build portable >programs. For one thing, as you've discovered, new systems won't work >properly.

Re: goto statement

2005-04-20 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Maxim Kasimov <[EMAIL PROTECTED]> wrote: . . . >>> if you need to comment a couple of code (and then uncomment ), what >>> are you doing then? >> >> >> Use comments? >> > >WOW, just greate!

Re: goto statement

2005-04-20 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Maxim Kasimov <[EMAIL PROTECTED]> wrote: >Simon Brunning wrote: >> On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote: >> >>>it would be quite useful for debuging porposes >> >> >> How does goto help you to remove bugs? >> >> I can certainly see how it helps yo

Re: newbie question

2005-04-20 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tiziano Bettio <[EMAIL PROTECTED]> wrote: . . . >If u want to achieve high performance you'd rather use c++ and directly >access libs like nvidias cg, ms directx or opengl...

Re: Variables variable

2005-04-19 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: >Adriano Monteiro wrote: >> Hi folks, >> >> Someone know how to make variables variable like in PHP? >> It's something like this: >> >> $a = 'hi' >> $$a = 'testing' >> echo $hi >> 'testing' > >You are most certainly w

Re: IronPython 0.7 released!

2005-04-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: . . . >Presumably when we get past the embracing and on to the extending Barry >can finally retrain Spambayes to reject penis enlargement emails?

Re: Sending keytrokes to Windows app

2005-04-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Simon Brunning <[EMAIL PROTECTED]> wrote: >On Apr 4, 2005 12:04 PM, Marten Hedman <[EMAIL PROTECTED]> wrote: >> I am trying to control a Windows application from a python script with >> SendKeys and Python 2.3. > >WATSUP might be worth a look, instead... > >http://w

Re: text analysis in python

2005-04-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Maurice Ling <[EMAIL PROTECTED]> wrote: . . . >In the Java world, there is GATE (general architecture for text >engineering) and it seems very impressive. Are there something like that >for Py

Re: Pseudocode in the wikipedia

2005-04-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Ivan Van Laningham <[EMAIL PROTECTED]> wrote: . . . >> >>> 25 >> 25 >> >>> (_ | _) >> 25 >> >>> >> >> There's clearly some interesting biometrics research to be done here, >> although there is

Re: list-comprehension and map question (simple)

2005-03-30 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, runsun pan <[EMAIL PROTECTED]> wrote: . . . >Secondly, [x+y for x,y in itertools.izip(xs, ys)] did go much faster >than map(lambda x,y: x+y, xs, ys). The latter is not only the slowest >one, but

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

2005-03-30 Thread Cameron Laird
QOTW: "This is a Python newsgroup. Assume that we all have been brainwashed." -- Peter Otten "[M]y experience porting Java to Jython is that it mostly involves deleting stuff :-)" -- Kent Johnson "[K]eep in mind, however, that not all problems in life can be solved with software." -- Roy Smith

Re: Python Cookbook, 2'nd. Edition is published

2005-03-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Trent Mick <[EMAIL PROTECTED]> wrote: >> > I don't have my copy yet. Can you give any guidance on how the 2'nd >> > edition compares to the 1'st edition? > >Here is an excerpt from the preface (typing errors are mine): > >If you already own the first edition, yo

Re: good design & method calls

2005-03-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Ron_Adam <[EMAIL PROTECTED]> wrote: >On Tue, 29 Mar 2005 09:09:37 -0500, Charles Hartman ><[EMAIL PROTECTED]> wrote: > >>I know the answer to this is going to be "It depends . . .", but I want >>to get my mind right. In Fowler's *Refactoring* I read: "Older >>lang

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

2005-03-29 Thread Cameron Laird
QOTW: "This is a Python newsgroup. Assume that we all have been brainwashed." -- Peter Otten "[M]y experience porting Java to Jython is that it mostly involves deleting stuff :-)" -- Kent Johnson "[K]eep in mind, however, that not all problems in life can be solved with software." -- Roy Smith

Re: What's the best GUI toolkit in Python,Tkinter,wxPython,QT,GTK?

2005-03-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dave Cook <[EMAIL PROTECTED]> wrote: . . . >wxPython seems to have the best cross-platform support among CPython >toolkits, but it never seemed very Pythonic to me. There's a higher-level >pack

Re: how do you use a closure in a class

2005-03-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul McGuire <[EMAIL PROTECTED]> wrote: >Well, I'm not sure "closure" is the Pythonic way. But in Python, you >can use functions to dynamically create other functions. Here's an >example of this feature (although there are far simpler ways to do >this), tallying vo

Re: Python & LEGO Mindstorm control...

2005-03-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, D H <[EMAIL PROTECTED]> wrote: . . . >I would use the graphical language environment that comes with Lego >Mindstorms. It was designed for kids. > >I haven't seen anyone show how to program mi

Re: Little Q: how to print a variable's name, not its value?

2005-03-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Bill Mill <[EMAIL PROTECTED]> wrote: . . . >(i.e. I respectfully disagree that mixing data with program code is a bad idea) . .

Re: character-filtering and Word (& company)

2005-03-27 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, John Machin <[EMAIL PROTECTED]> wrote: > >Charles Hartman wrote: >> I'm working on text-handling programs that want plain-text files as >> input. It's fine to tell users to feed the programs with plain-text >> only, but not all users know what this means, even after

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

2005-03-26 Thread Cameron Laird
as they got it formed, they elected Whitney Young as the chairman, and who [do] you think became the co-chairman? Stephen Currier, the white man, a millionaire. Powell was talking about it down at the Cobo [Hall] today. This is what he was talking about. Powell knows it happened. Randolph knows it

Re: breaking up is hard to do

2005-03-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, bbands <[EMAIL PROTECTED]> wrote: . [puzzlement about globals, on which several others have already aptly counseled] . . >camper with Python. I wa

Re: Getting the word to conventional programmers

2005-03-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >Maybe companies such as Intel, IBM, and Sun would devote resources to >optimizing Python on their hardware if the language had an ISO >standard, as do C, C++, a

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

2005-03-24 Thread Cameron Laird
QOTW: [Must be seen to be believed] http://groups-beta.google.com/group/comp.lang.python/msg/7613422265cdc010 "If you don't read answers, don't post questions :-/" -- bruno desthuilliers News from PyCon2005 emerges almost continuously. See, for example, this blog startpoint:

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

2005-03-23 Thread Cameron Laird
QOTW: [Must be seen to be believed] http://groups-beta.google.com/group/comp.lang.python/msg/7613422265cdc010 "If you don't read answers, don't post questions :-/" -- bruno desthuilliers News from PyCon2005 emerges almost continuously. See, for example, this blog startpoint:

Re: Getting the word to conventional programmers

2005-03-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Advocates of languages and programming methodologies sometimes compare >the current version of their favorite language to an old version of >their disfavored language, resulting in skewed comparisons. For >example, Conway writes > >"Inter

Re: Getting the word to conventional programmers

2005-03-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >It would have been nice to put in a blurb for some of the cool stuff >planned for 8.5. That way people could see that things are *happening* >in the Tcl world a

Getting the word to conventional programmers

2005-03-22 Thread Cameron Laird
*DevSource* profiles "The State of the Scripting Universe" in http://www.devsource.com/article2/0,1759,1778141,00.asp >. -- http://mail.python.org/mailman/listinfo/python-list

Re: Variable Variable

2005-03-19 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Kay Schluehr <[EMAIL PROTECTED]> wrote: > >Tanteauguri wrote: >> Hi List, is there in python a variable variable like in PHP ($$var)? >> >> What I want to do is something like that: >> >> pc=["a","b","c"] >> >> for i in pc: >> i = anyclass() >> >> a.shutdown() >

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

2005-03-18 Thread Cameron Laird
QOTW: "Python's best feature is comp.lang.python." -- Joerg Schuster "I learn something valuable from comp.lang.python every week, and most of it has nothing to do with Python." -- Richie Hindle Google writes successful (if suboptimal) applications. Google relies on Python: htt

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

2005-03-18 Thread Cameron Laird
QOTW: "Python's best feature is comp.lang.python." -- Joerg Schuster "I learn something valuable from comp.lang.python every week, and most of it has nothing to do with Python." -- Richie Hindle Google writes successful (if suboptimal) applications. Google relies on Python: htt

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

2005-03-08 Thread Cameron Laird
QOTW: "Really, of course, the only things you need to make explicit are the ones that readers don't understand." -- Steve Holden "Working with unicode objects in Python is so transparent, it's easy to forget about what a C extension would likely want." -- Kevin Dangoor "You take leadership in a

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

2005-03-07 Thread Cameron Laird
QOTW: "Really, of course, the only things you need to make explicit are the ones that readers don't understand." -- Steve Holden "Working with unicode objects in Python is so transparent, it's easy to forget about what a C extension would likely want." -- Kevin Dangoor "You take leadership in a

Re: resources

2005-03-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, shield0092005 <[EMAIL PROTECTED]> wrote: > >hi >i'v been searching 4 resources ,and study materials on PYTHON.If any >body has some suggestion for getting ebooks ,pdf,or tutorials kindly >let me know. >thankyou > > > If your search did not encounter http://python

Re: Calling python scripts from php

2005-03-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Michael Livingston <[EMAIL PROTECTED]> wrote: >Hi all, > >I'm currently working on a project to develop an online simulation model of >the juvenile justice system in Queensland. We've developed the simulation >model using the python module simPy and currently we're

Re: survey

2005-03-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Peter Hansen <[EMAIL PROTECTED]> wrote: >Dave Zhu wrote: >> Hello All, >> >> Is there any survey on scripting languages? I would >> like to get information on several scripting languages >> including Python, Perl, Ruby, Tcl, etc. > >What kind of information? ... P

Re: What's the cost of using hundreds of threads?

2005-03-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Przemys³aw Ró¿ycki <[EMAIL PROTECTED]> wrote: >Thanks for your comments on winXP threads implementation. You confirmed >me in conviction that I shouldn't use windows. >Personally I use linux with 2.6.10 kernel, so hopefully I don't have to >share your grief. ;) ?

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

2005-03-02 Thread Cameron Laird
Editor's note: "Python-URL!" is minimal. It doesn't support advertisements, we never allow the subscribers' addresses to be used for other purposes, we don't claim infallibility, and we even take a couple weeks off some years. Occasionally, though--not as often as the US enters a shooting war, sa

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

2005-03-01 Thread Cameron Laird
Editor's note: "Python-URL!" is minimal. It doesn't support advertisements, we never allow the subscribers' addresses to be used for other purposes, we don't claim infallibility, and we even take a couple weeks off some years. Occasionally, though--not as often as the US enters a shooting war, sa

Re: What's the cost of using hundreds of threads?

2005-03-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: . . . >> I've read somewhere (I cann't recall where, though, was it MSDN?) that >> Windows is not well suited to run more than 32 threads per process. Mo

Re: Flushing print()

2005-02-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Daniel Yoo <[EMAIL PROTECTED]> wrote: >gf gf <[EMAIL PROTECTED]> wrote: . . . >: If not, how can I flush it manually? sys.stdout.flush() didn't >: seem to work. > >H, that's odd. sys.stdou

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

2005-02-24 Thread Cameron Laird
QOTW: "Who's 'Guido'?" -- Ilias Lazaridis "I know this document. It has no relevance to me." -- Ilias Lazaridis, on http://www.catb.org/~esr/faqs/smart-questions.html > "Nobody asked them to do this (AFAIK), it's more that nobody could _stop_ them from doing it." -- timbot, on the work of Jason

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

2005-02-23 Thread Cameron Laird
QOTW: "Who's 'Guido'?" -- Ilias Lazaridis "I know this document. It has no relevance to me." -- Ilias Lazaridis, on http://www.catb.org/~esr/faqs/smart-questions.html > "Nobody asked them to do this (AFAIK), it's more that nobody could _stop_ them from doing it." -- timbot, on the work of Jason

Re: python tutorial/projects

2005-02-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Leif B. Kristensen <[EMAIL PROTECTED]> wrote: >Danny skrev: > >> Does anyone know of a good python tutorial? >> I was also looking for some non-trivial projects to do in python. > >There's a lot of projects on Sourceforge that are written in Python, >where you're fr

Re: Attaching to a Python Interpreter a la Tcl

2005-02-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Robin Becker <[EMAIL PROTECTED]> wrote: >DE wrote: >> Hello, >> >> Some long time ago, I used to use Tcl/Tk. I had an tcl embedded into my >> app. >> >> The coolest thing was however, I was able to attach to the interpreter >> (built in to my app) via a tcl shell

Re: kill a process in XP

2005-02-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dave Brueck <[EMAIL PROTECTED]> wrote: >Tor Erik Sønvisen wrote: >>>From my Python-program I spawn a new process. When using P_NOWAIT spawnl >> returns the pid but in windows it returns a process handle. >> Later I want to kill this process. How can I do this when

Re: low-end persistence strategies?

2005-02-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: >I've started a few threads before on object persistence in medium to >high end server apps. This one is about low end apps, for example, a >simple cgi on a personal web site that might get a dozen hits a day. >The idea

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

2005-02-15 Thread Cameron Laird
QOTW: "I've forgotten what we are arguing about, but I'm sure I'm right." -- Jive Dadson "I believe the best strategy against Identity theft is bad credit." -- Tom Willis "You can't live without unit tests. And once you have unit tests, the added value of declarations is tiny, and their cost re

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

2005-02-14 Thread Cameron Laird
QOTW: "I've forgotten what we are arguing about, but I'm sure I'm right." -- Jive Dadson "I believe the best strategy against Identity theft is bad credit." -- Tom Willis "You can't live without unit tests. And once you have unit tests, the added value of declarations is tiny, and their cost re

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

2005-02-14 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tim Peters <[EMAIL PROTECTED]> wrote: >[Ilias Lazaridis] >... . . . >That leaves volunteers, or a company that wants what you want enough >to pay for it on their own (which has happened, but not

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

2005-02-14 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: >> One of the most funny things within open-source is that switching: >> >> first: >> "we have powerfull solutions which beat this and that" >> >> then: >> "hey, this is just volunteer work" >> > >I don't see the contrad

Re: gui scripting

2005-02-14 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tonino <[EMAIL PROTECTED]> wrote: >HI, > >I have a 2 phase question: > >Phase 1 is I am needing to automate a report generation from a >proprietary product. Currently a person sits and input's the data into >a GUI frontend and clicks's the appropriate buttons to sta

Re: Considering python - have a few questions.

2005-02-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tim Roberts <[EMAIL PROTECTED]> wrote: >"Heather Stovold" <[EMAIL PROTECTED]> wrote: >> >>I need to make a GUI interface. Some of the screens need to be dynamically >>created, with the screen information in a database. Included in the database >>will be pictures (.

Pioneers of WIMPishness (was: A great Alan Kay quote)

2005-02-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Scott David Daniels <[EMAIL PROTECTED]> wrote: . [thoroughly appropriate focus on Engelbart and his Augment colleagues] . . >(or great) guess and

Re: newbie question

2005-02-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dan Perl <[EMAIL PROTECTED]> wrote: . . . >has the conciseness of the C statement. The pre- and post-increment >and -decrement in C/C++/Java are very powerful and I miss them in python. > > M

Re: Lambda

2005-02-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tim Leslie <[EMAIL PROTECTED]> wrote: . . . >* There is much debate as to just how useful lambda functions are and >they are likely to be removed from the language in the distant futute >(python

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

2005-02-01 Thread Cameron Laird
QOTW: "The right solution will end up being unique to Python though. It has to feel like Python." -- Guido van Rossum http://aws.typepad.com/aws/2005/01/amazon_devcon_g_4.html "Sparring with Alex Martelli is like boxing Mike Tyson, except that one experiences brain enhancement rather than brai

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

2005-01-31 Thread Cameron Laird
QOTW: "The right solution will end up being unique to Python though. It has to feel like Python." -- Guido van Rossum http://aws.typepad.com/aws/2005/01/amazon_devcon_g_4.html "Sparring with Alex Martelli is like boxing Mike Tyson, except that one experiences brain enhancement rather than brai

Re: variable declaration

2005-01-31 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: >Robert Brewer <[EMAIL PROTECTED]> wrote: > >> Bah. Nothing teaches you a new language like having your job depend upon >> it. People who study languages merely for "personal growth" learn 50% of >> the syntax and 1% of the co

Re: Coding style article with interesting section on white space

2005-01-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >One ought to do a little research before publishing an article. >Apparently, many authors and editors are too lazy to do so. > ... and/or ignorant or unculture

Dr. Dobb's Python-URL! - weekly Python news and links (Jan 28)

2005-01-28 Thread Cameron Laird
QOTW: "It might be nice if it was widely understood (in IT) that Python was a language any competent programmer could pick up in an afternoon, such that Java, C, and Perl shops would not be concerned about the need for their staff to learn a new language." -- Eric Pederson "What's kind of surpris

Dr. Dobb's Python-URL! - weekly Python news and links (Jan 28)

2005-01-28 Thread Cameron Laird
QOTW: "It might be nice if it was widely understood (in IT) that Python was a language any competent programmer could pick up in an afternoon, such that Java, C, and Perl shops would not be concerned about the need for their staff to learn a new language." -- Eric Pederson "What's kind of surpris

Re: Please suggest on the book to follow

2005-01-27 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, santanu <[EMAIL PROTECTED]> wrote: . . . >>From what you and Fyzzyman said, I guess when I am done with >Programming Python, graduating to the latest features would >be quite easy. Isn't it?

Entirely off-topic personal grumble unrelated to original poster (was: Point of Sale)

2005-01-27 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Andreas Pauley <[EMAIL PROTECTED]> wrote: . . . >Actually I just mean that I'm not looking for a 100% feature-fit, if I get >a 70% fit I'll jump in and develop the other 30%.

Re: Another scripting language implemented into Python itself?

2005-01-27 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Arthur <[EMAIL PROTECTED]> wrote: . . . >As long as we include the cost of treating adults as children, and >take it seriously as the kind of cost it is, I'm OK. > >I think Terry's point covers

Re: Point of Sale

2005-01-27 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Andreas Pauley <[EMAIL PROTECTED]> wrote: >Hi, > >My company has given me a rather cool project: >I have to provide them with an open-source python-based point-of-sale / >cash register system that can integrate with their existing ERP backend. > >The project will i

Re: Please suggest on the book to follow

2005-01-27 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fuzzyman <[EMAIL PROTECTED]> wrote: >We've only just had Python 2.4. Based on previous experience that means >it will be about 18 months before python 2.5. > >I learned to program from 'Programming Python'. Particularly the stuff >on Tkinter is very helpful. I do

Re: Another scripting language implemented into Python itself?

2005-01-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Terry Reedy <[EMAIL PROTECTED]> wrote: . . . >worrying about Python security seems superfluous. Why worry, for instance, >about os.unlink when the user can just do the same much easier in a tex

Re: limited python virtual machine (WAS: Another scripting language implemented into Python itself?)

2005-01-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Michael Spencer <[EMAIL PROTECTED]> wrote: . . . >Right - the crux of the problem is how to identify dangerous objects. My >point >is that if such as test is possible, then safe exec is very

Re: Another scripting language implemented into Python itself?

2005-01-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Quest Master <[EMAIL PROTECTED]> wrote: . . . >I know C/C++ might be better suited for a task of this kind, but most >of the modules in my application which need speed have already been >coded i

<    1   2   3   4   5   6   7   >