Re: Python is incredible!

2005-12-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tolga <[EMAIL PROTECTED]> wrote: . . . >Actually I loved Lisp and still don't want to throw it away beacuse of >my interest of artificial intelligence, but using Python is not >programming, it IS

Re: Python is incredible!

2005-12-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tom Anderson <[EMAIL PROTECTED]> wrote: >On Mon, 12 Dec 2005, Cameron Laird wrote: > >> While there is indeed much to love about Lisp, please be aware >> that meaningful AI work has already been done in Python > >Wai

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

2005-12-14 Thread Cameron Laird
QOTW: "If I feel the need for languages that enforce my design decisions, I know where to find them." - Mike Meyer "There's ... unavoidable complexity involved in managing a software distribution composed of third party software packages. At the very least, you've got the original sources and t

Re: Python packages on OS X vs Windows

2005-12-14 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Kenneth McDonald <[EMAIL PROTECTED]> wrote: . . . >And on a somewhat related note, do people find ipython to be a decent >replacement >on Windows for the fact that the Windows shell is brainde

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

2005-12-15 Thread Cameron Laird
QOTW: "If I feel the need for languages that enforce my design decisions, I know where to find them." - Mike Meyer "There's ... unavoidable complexity involved in managing a software distribution composed of third party software packages. At the very least, you've got the original sources and t

Re: Dectecting dir changes

2005-12-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, chuck <[EMAIL PROTECTED]> wrote: . . . >While I do appreciate the suggestions but I have to say that if the >twisted folks spent half the time writing documentation as they do code >- twisted wou

Re: lambda (and reduce) are valuable

2005-12-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: . . . ># create numeric pad >digit("7", 1, 1); digit("8", 2, 1); digit("9", 3, 1) >digit("4", 1, 2); digit("5", 2, 2); digit("6", 3, 2) >d

Nested loops, cross products, and so on (was: new in programing)

2005-12-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dan Bishop <[EMAIL PROTECTED]> wrote: >Cameron Laird wrote: >... >> for hextuple in [(i, j, k, l, m, n) >> for i in range(1, lim + 1) \ >> for j in range (1, lim + 2) \ >> for k in range (1, lim

Re: expect-like package

2005-12-21 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Stephen Thorne <[EMAIL PROTECTED]> wrote: >On 21/12/05, Eric McCoy <[EMAIL PROTECTED]> wrote: >> So for HTTP, for example, I'd use something >> like this: >> >> send "HEAD / HTTP/1.0" >> send "Host: server.host.name" >> send "" >> expect ... >> "^HTTP/1\.0 200.*"

Dr. Dobb's Python-URL! - weekly Python news and links (Dec 21)

2005-12-21 Thread Cameron Laird
QOTW: "[P]ortability is an n-way street." - Paul McGuire "Python's polymorphism support is so good that it makes inheritance much less important than it is in other languages." - Ben Sizer Skip Montanaro presents the affirmative case for Python as a unit-testing framework for C++:

Re: Guido at Google

2005-12-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >Well, this may be the CPython way of open source but I don't know if >that is "Open source" in general. Another way is that if someone(or >group) don't like the

Dr. Dobb's Python-URL! - weekly Python news and links (Dec 21)

2005-12-22 Thread Cameron Laird
QOTW: "[P]ortability is an n-way street." - Paul McGuire "Python's polymorphism support is so good that it makes inheritance much less important than it is in other languages." - Ben Sizer Skip Montanaro presents the affirmative case for Python as a unit-testing framework for C++:

Herds of cats (was: Guido at Google)

2005-12-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Nicola Musatti <[EMAIL PROTECTED]> wrote: . . . >Ah, the closed source days! Back then you could just buy the company >and be done with it. Now you have to chase developers one by one all >over t

Python's ontology and governance (was: Guido at Google)

2005-12-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >The question is, can anyone just fork a new one using the python name, >as part of the project, without the permission from the foundation ? >Say for example, a

The Varieties of Pythonic Experience (was: Guido at Google)

2005-12-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Graham Fawcett <[EMAIL PROTECTED]> wrote: . . . >...though not a lot of forks/variations that have persisted past the >early-alpha phase. Many of those projects are stale or defunct, alas. > >Per

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

2005-12-27 Thread Cameron Laird
QOTW: "My wild-ass guess is that, same as most other Open Source communities, we average about one asshole per member." - Tim Peters http://groups.google.com/group/comp.lang.python/msg/02236cc5ab54fd90?hl=en "[T]he only fundamentally new concept that has been added since Python 1.5.2 is gener

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

2005-12-28 Thread Cameron Laird
QOTW: "My wild-ass guess is that, same as most other Open Source communities, we average about one asshole per member." - Tim Peters http://groups.google.com/group/comp.lang.python/msg/02236cc5ab54fd90?hl=en "[T]he only fundamentally new concept that has been added since Python 1.5.2 is gener

Late binding and late execution (was: Beautiful Python)

2005-12-28 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On Tue, 27 Dec 2005 21:35:46 -0600, [EMAIL PROTECTED] declaimed the >following in comp.lang.python: > >> Wow ?! I've only started looking at python but that sounds like very >> dangerous programming ! Can you give an

Re: how to tell the version of tk shipped with Python

2005-12-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] wrote: > >> I am a newbie to the Python and wonder how I can know version of tk >> bound with Python >> >> Can some one tell me? > import Tkinter print Tkinter.TclVersion >8.4 > > > > > ... and, i

Re: Python or Java or maybe PHP?

2006-01-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: . [much valuable and correct detail that somehow managed to avoid mentioning Forth or Smalltalk]

Re: Python or Java or maybe PHP?

2006-01-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: . [valuable remarks on scientific evidence and so on] . . >Finally, there's a camp that pushes static typin

Re: python concurrency proposal

2006-01-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Peter Tillotson <[EMAIL PROTECTED]> wrote: >I'd really like to see a concurrency system come into python based on >theories such as Communicating Sequential Processes (CSP) or its >derivatives lambda or pi calculus. These provide an analytic framework >for develo

Re: Tkinter Scrollbar not working

2006-01-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dustan <[EMAIL PROTECTED]> wrote: >BTW, experience tells me it is necessary for me to explicitly state >that I'm a newbie (otherwise I get rude people saying I should already >know such-and-such). > That experience generalize poorly to comp.lang.python. -- http://m

Re: Any wing2.0 users here?

2006-01-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alvin A. Delagon <[EMAIL PROTECTED]> wrote: . . . >A little bit OT, I too have been programming python without a debugger, >I got used to php's lack of debugger. Thanks again guys! ?! With NuS

Re: Hypergeometric distribution

2006-01-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Raven <[EMAIL PROTECTED]> wrote: >Well, what to say? I am very happy for all the solutions you guys have >posted :-) >For Paul: >I would prefer not to use Stirling's approximation > > >The problem with long integers is that to calculate the hypergeometric >I need to

Re: Application architecture (long post - sorry)

2006-01-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] writes: > >> In response to Mike's post... >> >> I know exactly where you're coming from and you are right a web based >> solution is the simplest and would be the fastest to develop and >> rollout etc. but..

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

2006-01-03 Thread Cameron Laird
QOTW: "People who are smart and care about correctness -- the 'reality-based community' -- often don't realise just how many decisions are made on the basis of unfacts ..." - Steven D'Aprano QOTW: "[PyPy will not bring about the Singularity.] But if it did, imagine how cool that would look on t

Re: Groupkit and python

2006-01-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >Hi, >I've built an app using this great software called groupkit >(http://www.groupkit.org/) based on tcl/tk language, now I'd like to >test python possibilities for groupware. Anyone knows about this, I >have made a goo

Re: JINI service -- Python client

2006-01-10 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Roedy Green <[EMAIL PROTECTED]> wrote: >On 6 Jan 2006 11:17:58 -0800, [EMAIL PROTECTED] wrote, >quoted or indirectly quoted someone who said : > >>does anybody knows how to use JINI service from Python? > >IF you use it from JPython, it is almost identical to using

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

2006-01-10 Thread Cameron Laird
QOTW: "I'm a huge fan of single digit numbers ..." - Jim Hugunin, illustrating his undiminished grasp on the Pythonic ethos "It's hard to say exactly what constitutes research in the computer world, but as a first approximation, it's software that doesn't have users." - Paul Graham Microsof

Re: OT: introduction to computing clusters?

2006-01-20 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > >Sorry for the off-topic post, but I know of no better collection of brains >than this one. I'm starting to investigate clustering as a means to address >some growing computing needs at work, but know essentially zip about the >concept.

Re: tkinter cursors name&display reference

2006-07-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >I made a document on Tkinter cursors (mouse pointers?), pairing the >cursor image with its name... >Not a great deal of magic here since anyone can program something to >see the different cursors on screen rather easily... BUT to have a >

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

2006-07-11 Thread Cameron Laird
QOTW: "Write code, not usenet posts." - Fredrik Lundh "If an embedded return isn't clear, the method probably needs to be refactored with 'extract method' a few times until it is clear." - John Roth The comp.lang.python collective has become quite expert at answering "Which book should

Re: Python for Embedded Systems?

2006-07-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Jack <[EMAIL PROTECTED]> wrote: >Yes, I mean Lua, not Loa :-p > >Lua is a nice language. Like you said, it doesn't have many libraries >as Python does. Plus, it's still evolving and the libraries are changing. >I found a few functions not working last time I tried k

Re: Python for Embedded Systems?

2006-07-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Carl J. Van Arsdall <[EMAIL PROTECTED]> wrote: . . . >This raises a good question. Is there a need for python to change >somewhat to work better in an embedded profile? Are there many people

Re: Python for Embedded Systems?

2006-07-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul Rubin <http://[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Cameron Laird) writes: >> Yes and no. Python could thrive for the next decade while >> utterly surrendering the small-and-embedded domain to Forth, >> Lua, Tcl, Sche

Re: Embedding exe file

2006-07-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Bayazee <[EMAIL PROTECTED]> wrote: >hi,ThanX >but i dont want to save the exe file in temp file and run it . i want >to run it directly from python . maybe such this : >exec("file("test.exe","rw").read())") >i want write a cd lock with python tp protect an binary fil

Re: how to know if socket is still connected

2006-07-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Grant Edwards <[EMAIL PROTECTED]> wrote: >On 2006-07-16, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> serverhost = 'xxx.xxx.xxx.xxx' >> serverport = 9520 >> aeris_sockobj = socket.socket(socket.AF_INET, socket.SOCK_STREAM) >> aeris_sockobj.connect((serverhost,s

Re: solving equation system

2006-07-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, TG <[EMAIL PROTECTED]> wrote: >Hi there. > >Anyone knows how to use numpy / scipy in order to solve this ? > >* A is an array of shape (n,) >* X is a positive float number >* B is an array of shape (n,) >* O is an array of shape (n,) containing only zeros. > >A.X - B

Re: Commercial Programming

2006-07-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Ben Finney <[EMAIL PROTECTED]> wrote: >"Boomshiki" <[EMAIL PROTECTED]> writes: > >> I am aware that someone can recreate what we have done, but for them >> to cut, paste, sell is kind of a rip off. > >Unless you factor that into your business model, and create compe

Re: Commercial Programming

2006-07-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, K.S.Sreeram <[EMAIL PROTECTED]> wrote: >-=-=-=-=-=- > >Boomshiki wrote: >> And trust me, I am not worried about 16 yr olds using it without paying, why >> would they want to? I am worried about them cracking in to where their >> grades are kept. > >what you need i

Dr. Dobb's Python-URL! - weekly Python news and links (Jul 17)

2006-07-17 Thread Cameron Laird
QOTW: "Alas, Python has extensive libraries and [is] well documented to boot." - Edmond Dantes "Locking files is a complex business." - Sybren Stuvel File-locking *sounds* like an easy thing; it just isn't so in any operating system that often appears on desktops. Take advantage of t

Re: execute a shell script from a python script

2006-07-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Simon Forman <[EMAIL PROTECTED]> wrote: >spec wrote: >> Thanks, actually there are no args, is there something even simpler? >> >> Thanks >> Frank > >you could try os.system() > >>From the docs: > >system(command) . [more detai

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

2006-07-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Cameron Laird <[EMAIL PROTECTED]> wrote: . . . >John Machin illustrates the rudiments of embedding: > > http://groups.google.com/group/comp.lang.python

Re: execute a shell script from a python script

2006-07-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Thomas Nelson <[EMAIL PROTECTED]> wrote: >As described in the docs I pointed to before: >subprocess.call("foo.sh",shell=True) >Is the way to do it without args. I think it is simplest to learn the >subprocess module because (quoting from the docs) this module intend

Re: How to automate user input at the command prompt?

2006-07-21 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >In that case, the OP can probably use cygwin's version of python. >pexpect definitely works there. . . . I suspect there are easier approaches--but

Re: Which Pyton Book For Newbies?

2006-07-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > >W. D. Allen wrote: >> I want to write a retirement financial estimating program. Python was >> suggested as the easiest language to use on Linux. I have some experience >> programming in Basic but not in Python. >> >> I have two questio

Re: Search within running python scripts

2006-07-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Simon Forman <[EMAIL PROTECTED]> wrote: >gmax2006 wrote: . . . >> > Yes, there are several ways. What OS are you using? >> > >> > ~Simon >> >> I have to use an os-independent approach. >> >> At

Re: Using Python for my web site

2006-08-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, northband <[EMAIL PROTECTED]> wrote: >Just spoke with my department and looks like we still want to go with a >server scripting method. Although MVC may be better fit, for the sake >of the learning curve, we want to use a PSP style method. .

Re: Multiple Telnet sessions through one script

2006-08-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Carl J. Van Arsdall <[EMAIL PROTECTED]> wrote: >Well, although you spawn seperate telnet processes there is still only >one thread of control in your pythons script. If you need to do two >things simultaneously you'll need to setup a parallel control >mechanism.

Dr. Dobb's Python-URL! - weekly Python news and links (Aug 2)

2006-08-01 Thread Cameron Laird
QOTW: "[U]sing Python is not programming, it IS a fun!" - Tolga "The reason for making complex a builtin is _not_ to ease a single program, but to create a convention allowing different modules which operate on complex numbers to communicate." -Scott David Daniels Komodo 4.0 debuted at last

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

2006-08-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Cameron Laird <[EMAIL PROTECTED]> wrote: . . . >Python2.5final is under two weeks away. Watch for it. . .

Re: Something for PyPy developers?

2006-08-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paddy <[EMAIL PROTECTED]> wrote: >I just found this: > http://www.cs.princeton.edu/~dpw/popl/06/Tim-POPL.ppt >And thought of you... :-) > >called "The Next Mainstream Programming Languages", Tim Sweeney of Epic >Games presents on problems that game writers see and m

Re: current recursion level

2006-08-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Simon Forman <[EMAIL PROTECTED]> wrote: >David Bear wrote: >> Is there an easy way to get the current level of recursion? I don't mean . . . >import sys > >def getStackDepth(): >'''Return the

Re: Are there any AOP project in python community?

2006-08-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, hiaips <[EMAIL PROTECTED]> wrote: >steve wrote: >> I mean Aspect-Oriented Programming. >> If any please give me some of links. >> Thanks a lot. > >See http://en.wikipedia.org/wiki/Aspect-oriented_programming. >There is a list of AOP implementations for a number of la

Re: Static Variables in Python?

2006-08-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paddy <[EMAIL PROTECTED]> wrote: . [substantial thread with many serious alternatives] . . >You can do things with function attributes > >def foo(x

Re: Are there any AOP project in python community?

2006-08-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, I teased: . . . >with Python. I'd emphasize that Python *needs* AOP less >than do Java and C++. I've been asked in private e-mail if I "mean that Python is aspect-oriented from its beginning."

Re: semi-Newbie question

2006-08-10 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, len <[EMAIL PROTECTED]> wrote: >I appoligize I don't think I have done a very good job of explaining my >problem. . . . >The program I am writing is nothing more than a conversion program to >tak

Re: hide python code !

2006-08-10 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Steven D'Aprano <[EMAIL PROTECTED]> wrote: >On Thu, 10 Aug 2006 17:03:51 -0700, Bayazee wrote: > >> hi >> in compiled languages when we compile a code to an executable file it >> convert to a machine code so now we cant access to source ... > >There are disassembler

Re: error handling

2006-08-10 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Chris <[EMAIL PROTECTED]> wrote: >I want to do this because there are several spots in my program where >an error might occur that I want to handle the same way, but I don't >want to rewrite the try..except block again. Is that clearer? .

Re: semi-Newbie question

2006-08-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, len <[EMAIL PROTECTED]> wrote: . . . >I have done some more reading and I think the code I need is as >follows; > >mycode = "TagToSQL['mySQLfieldname'] = Tagfile['Value']" >exec mycode > >This is

Re: hide python code !

2006-08-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Bayazee <[EMAIL PROTECTED]> wrote: >Hi, >ThnaX for Your Answers ... >i am an open source programmer ... ! and i never like to write a closed >source app or hide my codes ! it just a question that i must >answer/solve it! >one of site ( www.python.ir ) users asked thi

Re: Python/Tk not working in Linux

2006-08-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >In <[EMAIL PROTECTED]>, BinnyVA wrote: > >> I am using Fedora Core 3 Linux and I have a problem with Tk in Python. >> Whenever I try to run a tk script, I get the error... >> >> --- >> Traceback (most

Re: yet another noob question

2006-08-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: >mike_wilson1333 <[EMAIL PROTECTED]> wrote: > >> I would like to generate every unique combination of numbers 1-5 in a 5 >> digit number and follow each combo with a newline. So i'm looking at .

Re: round not rounding to 0 places

2006-08-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tim Leslie <[EMAIL PROTECTED]> wrote: >On 16 Aug 2006 00:19:24 -0700, Fuzzydave <[EMAIL PROTECTED]> wrote: >> I have been using a round command in a few places to round >> a value to zero decimal places using the following format, >> >> round('+value+', 0) >> >> but

Subprocess confusion: how file-like must stdin be?

2006-08-17 Thread Cameron Laird
Question: import subprocess, StringIO input = StringIO.StringIO("abcdefgh\nabc\n") # I don't know of a compact, evocative, and # cross-platform way to exhibit this behavior. # For now, depend on cat(1). p = subprocess.Popen(["cat"], stdout = subprocess.PIPE,

Re: Subprocess confusion: how file-like must stdin be?

2006-08-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >> On Thu, 17 Aug 2006 17:16:25 +, [EMAIL PROTECTED] (Cameron Laird) >> declaimed the following in comp.lang.python: >> >> &

Re: Subprocess confusion: how file-like must stdin be?

2006-08-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >Cameron Laird wrote: > >> Your interactive session does indeed exhibit the behavior that >> puzzles me. My expectation was that StringIO and the std* >> parameters to Popen() were

Re: Find out the name of a variable passed as an argument

2006-10-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >Andreas Huesgen wrote: > >> is there a way to receive the name of an object passed to a function >> from within the function. > >objects don't have names, so in general, you cannot do that. see: > >http://pyfaq.infogami.co

Re: Where is Python in the scheme of things?

2006-10-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, James Stroud <[EMAIL PROTECTED]> wrote: . . . >I'm a complete windows novice (as in I've forced myself to forget my >experiences with it), but does windows not run vim?

Re: Where is Python in the scheme of things?

2006-10-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, hg <[EMAIL PROTECTED]> wrote: . . . >Code in Python and decide for yourself ... but again, nowadays, you're >to compare with C#, VB ... if you want to be in; that is. > >hg > One of the points

Re: tkinter newsgroup or mailing list

2006-10-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: >Franz Steinhaeusler wrote: >> Hello NG, >> >> I'm asking this, (although I know a mailing list on gmane >> gmane.comp.python.tkinter and there is so little traffic >> compared to the mailing list of wxPython also mirrored >>

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

2006-10-09 Thread Cameron Laird
QOTW: "... [N]ow that I've made the switch to python, I'm several orders of magnitude more productive ..." - Rob Knapp http://groups.google.com/group/comp.lang.python/msg/8a4efd549bfb451a "Hanging out around the Python community will make you a better VB, dotNet or C++ programmer ..." - Carl

Re: [Newbie] error handling

2006-10-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fulvio <[EMAIL PROTECTED]> wrote: >*** >Your mail has been scanned by InterScan MSS. >*** > > >Hello there, > >Simple question : how do I manage errors by the use "try/except" clause. >Example: >If I'd like to catch error comi

Re: always raise syntax error!

2006-10-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Larry Bates <[EMAIL PROTECTED]> wrote: >daniel wrote: . . . >> well, I would say, the reason why I could not position the error code >> may partly due to the ambiguous message that python provid

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

2006-10-16 Thread Cameron Laird
QOTW: "Well, I haven't yet seen a definition of 'Integrated Development Environment' which would exclude Emacs..." - Slawomir Nowaczyk "Let me tell you: There are times when I'm really glad that as a German, I'm not supposed to possess any sense of humour at all." - Georg Brandl Pythoneers

Re: Unicode/ascii encoding nightmare

2006-11-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, John Machin <[EMAIL PROTECTED]> wrote: > >Thomas W wrote: >> Ok, I've cleaned up my code abit and it seems as if I've >> encoded/decoded myself into a corner ;-). My understanding of unicode >> has room for improvement, that's for sure. I got some pointers and >> ini

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

2006-11-07 Thread Cameron Laird
QOTW: "If you want to become a good Python programmer, you really need to get over that 'I need a oneliner' idea." - Fredrik Lundh http://groups.google.com/group/comp.lang.python/msg/9e10957173a20e73 "It is the shortsightedness of the Python core developers that keeps the palindrome related f

Re: Python deployment options.

2006-11-08 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Richard Charts <[EMAIL PROTECTED]> wrote: . . . >Well on a Win machine, probably. >Almost every Linux machine you come across will have (most likely a >fairly recent build of) python. For Macs,

Re: PDF to text script

2006-11-10 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Vyz <[EMAIL PROTECTED]> wrote: >I am looking for a PDF to text script. I am working with multibyte >language PDFs on Windows Xp. I need to batch convert them to text and >feed into an encoding converter program > >Thanks for any help in this regard > http://phaseit.

Help with gateway

2006-11-12 Thread Cameron Laird
Who knows and/or manages bag.python.org? My e-mail server and the clp gateway are having a configuration disagreement that I'd like to solve. Please e-mail me privately. I'll report back to the group as appropriate. -- http://mail.python.org/mailman/listinfo/python-list

Re: range syntax

2006-11-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Colin J. Williams <[EMAIL PROTECTED]> wrote: . . . >Your point about iterators is well taken, but it seems that the range is >used sufficiently frequently that some syntactic form would be helpf

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

2006-11-13 Thread Cameron Laird
QOTW: "It is humbling to see how simple yet powerfull python`s view on things is" - Éric Daigneault http://groups.google.com/group/comp.lang.python/msg/bbd842715bb5b6eb "[I]f a machine is expected to be infallible, it cannot also be intelligent." - Alan Turing, 20 February 1947, lecture

Re: Is python for me?

2006-11-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, lennart <[EMAIL PROTECTED]> wrote: >Hi, > >I'm planning to learn a language for 'client' software. Until now, i >'speak' only some web based languages, like php. As a kid i programmed >in Basic (CP/M, good old days :'-) ) Now i want to start to learn a >(for me) new

Re: Is python for me?

2006-11-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, lennart <[EMAIL PROTECTED]> wrote: . . . >At least: i use the dutch portal http://python.startpagina.nl/ to start >with. Can you advice me a good Python interpreter, or a good startpage >(as in P

Re: Python v PHP: fair comparison?

2006-11-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Luis M. González <[EMAIL PROTECTED]> wrote: . . . >Then look no further. Learn python and go kick php developers asses in >the market place. >There are thousands of php developers out there. Do y

Re: Python v PHP: fair comparison?

2006-11-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Luis M. González <[EMAIL PROTECTED]> wrote: >> . >> . >> . >> Perhaps it's timely to clarify the "newer" above: Guido >> made Python public in '89-90, and Rasmus showed PHP to >> others in '94-95. > >OK.

Re: About alternatives to Matlab

2006-11-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, sturlamolden <[EMAIL PROTECTED]> wrote: >Boris wrote: >> Hi, is there any alternative software for Matlab? Although Matlab is >> powerful & popular among mathematical & engineering guys, it still >> costs too much & not publicly open. So I wonder if there's similar >

Re: Any other config parsing modules besides ConfigParser ?

2006-05-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paddy <[EMAIL PROTECTED]> wrote: >ConfigObj? > http://www.voidspace.org.uk/python/configobj.html . . . Depending on what the original questioner meant by "general", I'm always happy to recommend

Re: access serial port in python

2006-05-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >hi >i hav written a code in python to send an SMS from a nokia 3310 >connected to my PC... >i wanted to receive a msg on my PC. In order to do so, the PC must know >when it has to read data frm the serial port ...thus an interrupt must >b

Re: Watching serial port activity.

2006-05-30 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Grant Edwards <[EMAIL PROTECTED]> wrote: >On 2006-05-30, xkenneth <[EMAIL PROTECTED]> wrote: > >> I'm using linux. > >[It's generally considered good practice to quote enough context >so that your post makes sense to people without access to older >postings.] > >Und

Re: Watching serial port activity.

2006-05-30 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, I confused matters with: > . > . > . >!? I hadn't realized there's no such monitor ... What do you >think of http://wiki.tcl.tk/moni >? Ugh. Please ignore, all; this was a first draft of what was

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

2006-05-30 Thread Cameron Laird
QOTW: "Making a user class work anywhere you can put a mapping in Perl is deep magic, but easy in Python. Creating types that act like files and can be used wherever a file is used is SOP in Python; I'm not even sure it's possible in Perl (probably is, but it's again deep magic)." - Mike Meyer ".

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

2006-05-31 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fuzzyman <[EMAIL PROTECTED]> wrote: . . . >> Fuzzyman advertises yet another convenience of Movable Python: >> http://groups.google.com/group/comp.lang.python/msg/35baaa3af891c12f

Re: Tkinter - changing existing Dialog?

2006-06-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Michael Yanowitz <[EMAIL PROTECTED]> wrote: >Hello: > > > I have a Tkinter GUI Dialog with many buttons and labels and text >widgets. >What I would like to do is, can I: > >1) Disable/deactivate/hide a button, text widget that is already drawn (and > of course th

Re: Tkinter - changing existing Dialog?

2006-06-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Michael Yanowitz <[EMAIL PROTECTED]> wrote: . . . >2) Change the text of a label or button that is already drawn? > > based on actions taken by the user. Can it be done without destroying >the p

Re: Python less error-prone than Java

2006-06-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: >You will often hear that for reasons of fault minimization, you should >use a programming language with strict typing: >http://turing.une.edu.au/~comp284/Lectures/Lecture_18/lecture/node1.html > >I just came across a

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

2006-06-06 Thread Cameron Laird
QOTW: "You can gain substantial speed-ups in very certain cases, but the main point of Pyrex is ease of wrapping, not of speeding-up." - Simon Percivall "The rule of thumb for all your Python Vs C questions is ... 1.) Choose Python by default. . . ." - Ravi Teja Do you remember Python's ea

Re: Test tool for python code.

2006-06-08 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Is there any tool available that will tell me what are the different >test paths for any python code? . . . http://groups.google.com/groups?as_q=coverage&num=10&sc

Re: How to extract 2 integers from a string in python?

2006-06-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Klaus Alexander Seistrup <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] skrev: > >> how can I extract 2 integers from a string in python? >> >> for example, my source string is this: >> Total size: 173233 (371587) >> >> I want to extract the integer 173233 and 371587

<    1   2   3   4   5   6   7   >