Finite State Machine GUI editor in python?

2007-12-15 Thread Hendrik van Rooyen
I have spent some time googling and on wiki and came up with pyFSA in python. It may end up being useful, but it is not directly what I am looking for, as there is no GUI that I can see. I know about SMC, but it is not Python, and I can't find the gui. This looks good, but it seems to be in a La

Re: Suggested Reading

2007-12-15 Thread Thin Myrna
Benoit wrote: > I got myself into programming late in the summer and have dabbled in > python for the most part in that time, recently beginning work on a > music player. In January, I start my minor in Information > Technology. I'd like to get ahead a bit, however, and over the break > would lik

Re: About Rational Number (PEP 239/PEP 240)

2007-12-15 Thread Steven D'Aprano
On Sat, 15 Dec 2007 17:42:26 -0800, Dennis Lee Bieber wrote: > On Sun, 16 Dec 2007 00:42:56 -, Steven D'Aprano > <[EMAIL PROTECTED]> declaimed the following in > comp.lang.python: > >> In the real world, people use fractions all the time, e.g. plumbers. >> (Not that I'm expecting plumbers to

Re: Allingn controls wxPython

2007-12-15 Thread Frank Millman
On Dec 15, 10:14 pm, SMALLp <[EMAIL PROTECTED]> wrote: > Hy. I need help. I'm using BoxSizer and i put TextCtrl and StaticText > next to each other and they gor alligned by top of TextCtrl and it looks > terrible. How can i make thm to be alligned by center of each controll. > > Thn

Re: Inter-process communication, how?

2007-12-15 Thread John Machin
On Dec 16, 2:34 pm, [EMAIL PROTECTED] wrote: > > If it is a one-shot (spawn sub, wait, retrieve results) you could > > generate a temporary file name in the parent, pass that name to the sub > > when invoking it, wait for the sub to complete (giving you a status > > code) and then read the

Re: Inter-process communication, how?

2007-12-15 Thread Steve Howell
--- [EMAIL PROTECTED] wrote: > TCP/IP sounds good but isn't it a bit too heavy? It depends on your judgment, of course. On a simplistic level, using TCP/IP shouldn't be any more work than what you'd do if you were reading and writing files, especially if everything you're doing is on the same bo

Re: Inter-process communication, how?

2007-12-15 Thread ecir . hana
On Dec 16, 2:42 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > Have you perused and been perplexed by the "Is Python a Scripting > Language" thread? Oh, no!! Script as in "shell script". > > Question: Are you creating both scripts from scratch? > Yes? Yes. Then you can de

ANN: Python Google Chart (pygooglechart) 0.1.2

2007-12-15 Thread Gerald Kaszuba
Python Google Chart is a complete wrapper to the Google Chart API. http://pygooglechart.slowchop.com/ * Added more examples * Fixed pie labels encoding * Fixed MANIFEST.in to allow examples and COPYING in the source distribution * Added more metadata in setup.py -- Gerald Kaszuba http://gera

Re: embedding filedialog in a frame in tkinter

2007-12-15 Thread Gabriel Genellina
On 15 dic, 04:30, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > i am trying out tkinter to make a gui..i want to have a frame with an > embedded file explorer next to a 'open directory' label..i tried out > FileDialog and tkFileDialog methods but they open as pop up dialogs.. > how do i make thi

Re: About Rational Number (PEP 239/PEP 240)

2007-12-15 Thread George Sakkis
On Dec 15, 6:52 pm, greg <[EMAIL PROTECTED]> wrote: > So while rationals might be useful to have available for > some things, you should have to explicitly ask for them. > Returning rationals from '/' applied to integers would > be a bad idea, for example. >From my reading of the PEP, it doesn't

Re: Tk Tkinter : multiple file selection dialog over multiple directories ?

2007-12-15 Thread dwblas
The simple/obvious way is click a "save" button which appends the files selected into a list. Then move on to the next directory and repeat. Is there a reason why this won't work? -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert a sequence of bits to a bit-string

2007-12-15 Thread Steven D'Aprano
On Sat, 15 Dec 2007 16:46:38 -0800, Dennis Lee Bieber wrote: > ... this becomes trivial... So trivial I'm going to include a solution, > even though it is a homework assignment... > inp = raw_input("Enter the sequence of 1 and 0: ") print inp > 1001101011101011101 print "The count is %s

in-client web server

2007-12-15 Thread David Montgomery
Hi, I am working on a thick-client application that serves a lot of content as locally generated and modified web pages. I'm beginning to look at serving (and updating, via AJAX) these pages from a web server running within the client (mostly to provide a more natural and powerful way of interact

Inter-process communication, how?

2007-12-15 Thread ecir . hana
Hi, let's say I have two scripts: one does some computations and the other one is a graphical front end for launching the first one. And both run in separate processes (front end runs and that it spawns a subprocess with the computation). Now, if the computation has a result I would like to display

Re: About Rational Number (PEP 239/PEP 240)

2007-12-15 Thread Steven D'Aprano
On Sat, 15 Dec 2007 15:44:26 -0800, Arnaud Delobelle wrote: > Rationals are not that simple. > > * Unless you are working under very controlled conditions, rationals > very quickly grow enormous numerators and denominators, hence require > arbitrary precision integers (which, I concede, are part

Re: Handling cookies without urllib2 and cookielib

2007-12-15 Thread Gabriel Genellina
On 14 dic, 23:44, Joshua Kugler <[EMAIL PROTECTED]> wrote: > I'm using HTTPlib to construct some functional tests for a web app we're > writing. We're not using urllib2 because we need support for PUT and > DELETE methods, which urllib2 does not do. > > We also need client-side cookie handling.

Re: About Rational Number (PEP 239/PEP 240)

2007-12-15 Thread greg
I think the main objection to rationals is that extensive computation with them tends to result in numbers requiring larger and larger amounts of storage. I believe that ABC made routine use of rationals, and this caused programs to get bogged down for no apparent reason, as rationals were being us

Re: opposite of zip()?

2007-12-15 Thread greg
[EMAIL PROTECTED] wrote: >map(append, arrays, tupl) > except there is no unbound append() (List.append() does not exist, > right?). Er, no, but list.append does: >>> list.append so you should be able to do map(list.append, arrays, tupl) provided you know that all the elements of 'arra

Re: About Rational Number (PEP 239/PEP 240)

2007-12-15 Thread Arnaud Delobelle
On Dec 15, 10:38 pm, Lie <[EMAIL PROTECTED]> wrote: [...] > > Yeah, that's why I consider them too complex for being included as a > core of a general programming language like Python. Nevertheless, > fraction datatype _IS_ elementary enough to be included as core > language feature. Rationals are

Re: Is Python really a scripting language?

2007-12-15 Thread Eric S. Johansson
John Nagle wrote: > Eric S. Johansson wrote: >> John Nagle wrote: >>> Yes. One of the basic design flaws of UNIX was that interprocess >>> communication was originally almost nonexistent, and it's still not >>> all that >>> great. It's easy to run other programs, and easy to send command li

Re: About Rational Number (PEP 239/PEP 240)

2007-12-15 Thread Lie
On Dec 16, 4:55 am, "Fredrik Johansson" <[EMAIL PROTECTED]> wrote: > On Dec 15, 2007 10:05 PM, Lie <[EMAIL PROTECTED]> wrote: > > > Random ramble past here: > > Actually, my vision would be not only fractions, but also rooted > > number (square root, cube root, etc), it could be possible to > > imp

Re: About Rational Number (PEP 239/PEP 240)

2007-12-15 Thread Fredrik Johansson
On Dec 15, 2007 10:05 PM, Lie <[EMAIL PROTECTED]> wrote: > Random ramble past here: > Actually, my vision would be not only fractions, but also rooted > number (square root, cube root, etc), it could be possible to > implement a type where a number consist of a rooted number times a > multiplier pl

Re: About Rational Number (PEP 239/PEP 240)

2007-12-15 Thread Lie
The easiest implementation of using fractional datatype is probably to add a new operator. Some scientific calculators provide a special operator to signify a fraction (somewhat on the shape of a small L in mine) and I strongly believe that their internal calculation probably used fractions even w

Re: About Rational Number (PEP 239/PEP 240)

2007-12-15 Thread [EMAIL PROTECTED]
On Dec 15, 2:00 pm, Lie <[EMAIL PROTECTED]> wrote: > I'm very surprised actually, to see that Python rejected the use of > fractional/rational numbers. However, when I read the PEP, I know > exactly why the proposal was rejected: People compared fractions with > integers, while it should be more fa

ANN: csvutils 0.1

2007-12-15 Thread George Sakkis
csvutils is a single Python module for easily transforming csv (or csv- like) generated rows. The release is available at http://pypi.python.org/pypi/csvutils/0.1. Regards, George What is csvutils? The standard csv module is very useful for parsing tabular data in CSV fo

Allingn controls wxPython

2007-12-15 Thread SMALLp
Hy. I need help. I'm using BoxSizer and i put TextCtrl and StaticText next to each other and they gor alligned by top of TextCtrl and it looks terrible. How can i make thm to be alligned by center of each controll. Thnaks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python really a scripting language?

2007-12-15 Thread John Nagle
Eric S. Johansson wrote: > John Nagle wrote: >> Yes. One of the basic design flaws of UNIX was that interprocess >> communication was originally almost nonexistent, and it's still not >> all that >> great. It's easy to run other programs, and easy to send command line >> parameters, but all

About Rational Number (PEP 239/PEP 240)

2007-12-15 Thread Lie
I'm very surprised actually, to see that Python rejected the use of fractional/rational numbers. However, when I read the PEP, I know exactly why the proposal was rejected: People compared fractions with integers, while it should be more fairly compared to floats. Arguments against: - When I use t

Suggested Reading

2007-12-15 Thread Benoit
I got myself into programming late in the summer and have dabbled in python for the most part in that time, recently beginning work on a music player. In January, I start my minor in Information Technology. I'd like to get ahead a bit, however, and over the break would like to do some reading. I

Re: Get()

2007-12-15 Thread Ramsey Nasser
The grid method of these widgets returns None. When you say something like: ent = Entry(root, fg = '#3a3a3a', bg = 'white', relief = 'groove').grid(row = 0, padx = 3, pady = 3) You're actually assigning the value of the last method on the right hand side (in this case, grid) to the variable on th

Re: lotus nsf to mbox

2007-12-15 Thread Brian Munroe
On Dec 15, 11:04 am, Fabian Braennstroem <[EMAIL PROTECTED]> wrote: > > thanks for your ideas! I actually thought of something like > a python parser, which just converts the nsf structure to an > mbox; could that work!? > Well, If you wish to go that route, I believe you will have to reverse eng

Informations about hardware, computers, configurations...

2007-12-15 Thread [EMAIL PROTECTED]
http://comp-hardware.blogspot.com/ If you looking for computer hardware... -- http://mail.python.org/mailman/listinfo/python-list

Get()

2007-12-15 Thread Sam Garson
Hello all I am a python "n00b", however I can't find a solution to this problem anywhere. I am using a simple setup - entry box, button and list box, the contents of the entry being inserted into the list box: from Tkinter import * def insert(): name = ent.get() box.insert(0, name)

ANN: eric 4.0.4 released

2007-12-15 Thread Detlev Offenbach
Hi, today I released version 4.0.4 of the eric4 Python IDE. This is a bug fix release. As usual it is available via http://www.die-offenbachs.de/eric/index.html What is eric? - eric is a Python (and Ruby) IDE written using PyQt. It comes with all batteries included. Please see the ab

Re: lotus nsf to mbox

2007-12-15 Thread Fabian Braennstroem
Hi to both, Dan Poirier schrieb am 12/15/2007 02:00 PM: > On Dec 15, 5:18 am, Fabian Braennstroem <[EMAIL PROTECTED]> wrote: >> I am wondering, if anyone tried to convert lotus nsf mails >> to a mbox format using python!? It would be nice, if anyone >> has an idea, how to do it on a linux machine.

Re: opposite of zip()?

2007-12-15 Thread rasmus
On Dec 15, 4:45 am, Gary Herron <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi folks, > > > Thanks, for all the help. I tried running the various options, and > > here is what I found: > > > from array import array > > from time import time > > > def f1(recs, cols): > > for r in r

Re: Convert a sequence of bits to a bit-string

2007-12-15 Thread [EMAIL PROTECTED]
On Dec 15, 10:39�am, [EMAIL PROTECTED] wrote: > First of all I'd like to thank you all for your advices. Before I check all > your hints I want to clarify what I'm trying to do. The question says > "write a function that takes a sequence of bits as an input and return how > many 1s are in the seque

Re: Convert a sequence of bits to a bit-string

2007-12-15 Thread Steven D'Aprano
On Sat, 15 Dec 2007 16:39:32 +, te509 wrote: > So what I want > to do is to write a generic version of a function that takes as an input > a sequence of 1s and 0s in any format. Given that there is an infinite number of possible formats, I suggest you lower your sights to something more prac

Re: Convert a sequence of bits to a bit-string

2007-12-15 Thread te509
First of all I'd like to thank you all for your advices. Before I check all your hints I want to clarify what I'm trying to do. The question says "write a function that takes a sequence of bits as an input and return how many 1s are in the sequence", nothing more. This is quite simple for string

Tkinter weirdness on Windows

2007-12-15 Thread Russell Blau
I have some Tkinter programs that I run on two different machines. On Machine W, which runs Python 2.5.1 on Windows XP, these programs run just fine. On Machine H, which runs Python 2.5.1 on Windows XP, however, the same programs crash regularly. The crashes are not Python exceptions, but rat

Re: Convert a sequence of bits to a bit-string

2007-12-15 Thread [EMAIL PROTECTED]
On Dec 15, 8:33�am, [EMAIL PROTECTED] wrote: > Hi guys, > does anybody know how to convert a long > sequence of bits to a bit-string? I want to avoid this: > > >>> bit=0011010111011101011�11001 > >>> str(bit) > > '949456129574336313917039111707606

Re: Convert a sequence of bits to a bit-string

2007-12-15 Thread Steven D'Aprano
On Sat, 15 Dec 2007 14:33:04 +, te509 wrote: > Hi guys, > does anybody know how to convert a long sequence of bits to a > bit-string? Can you explain what you actually mean? For instance... x = 1234567890 x is now a long sequence of bits. > I want to avoid this: > bit=001101

Re: Convert a sequence of bits to a bit-string

2007-12-15 Thread Grant Edwards
On 2007-12-15, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> does anybody know how to convert a long sequence of bits to a >>> bit-string? >> >>Yes! > > Would you like to help, please? You'll have to define 'sequence of bits' and 'bit string' for us. The example you showed didn't really make

Re: Convert a sequence of bits to a bit-string

2007-12-15 Thread te509
>> does anybody know how to convert a long >> sequence of bits to a bit-string? > >Yes! Would you like to help, please? >> I would appreciate a prompt reply because I have a python assessment to >> submit. > >Good luck, you're lucky you've got the whole weekend :) That's not the only assignment I

Re: Convert a sequence of bits to a bit-string

2007-12-15 Thread Tim Chase
> does anybody know how to convert a long > sequence of bits to a bit-string? I want to avoid this: > bit=00110101110111010001 I do not think this does what you think it does... http://docs.python.org/ref/integers.html The lead

Re: container.___le___ can use only <=?

2007-12-15 Thread Carl Banks
On Dec 15, 9:05 am, [EMAIL PROTECTED] wrote: > On Dec 15, 8:33 am, Carl Banks <[EMAIL PROTECTED]> wrote: > > > > > On Dec 14, 4:15 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote: > > > > When implementing the rich comparison operators for some sort of > > > container, it's tempting to save code by doin

Re: Convert a sequence of bits to a bit-string

2007-12-15 Thread Arnaud Delobelle
On Dec 15, 2:33 pm, [EMAIL PROTECTED] wrote: > Hi guys, Hi > does anybody know how to convert a long > sequence of bits to a bit-string? Yes! > > I would appreciate a prompt reply because I have a python assessment to > submit. Good luck, you're lucky you've got the whole weekend :) > Thanks,

Re: Passing arguments to exe

2007-12-15 Thread kyosohma
On Dec 14, 8:06 pm, John Machin <[EMAIL PROTECTED]> wrote: > > > The executable runs, > > how do you know it runs? > because the program's GUI appears on-screen. > > but no argument appears to get passed into it. > > appears?? > Since the TO field doesn't get populated with the email addres

Convert a sequence of bits to a bit-string

2007-12-15 Thread te509
Hi guys, does anybody know how to convert a long sequence of bits to a bit-string? I want to avoid this: >>> bit=00110101110111010001 >>> >>> str(bit) '949456129574336313917039111707606368434510426593532217946399871489' I would appreciate

Convert a sequence of bits to a bit-string

2007-12-15 Thread te509
Hi guys, does anybody know how to convert a long sequence of bits to a bit-string? I want to avoid this: >>> bit=00110101110111010001 >>> >>> str(bit) '949456129574336313917039111707606368434510426593532217946399871489' I would appreciate

Re: container.___le___ can use only <=?

2007-12-15 Thread Arnaud Delobelle
On Dec 15, 2:05 pm, [EMAIL PROTECTED] wrote: > My reasoning is (I hope) that the container ought to support every > comparison operation supported by the contained objects. This can be > ensured by being careful in the implementation. > If you're traversing two containers in parallel to compare t

Re: Pythonic way to add method alias in subclass

2007-12-15 Thread Carl Banks
On Dec 15, 8:03 am, Lee Harr <[EMAIL PROTECTED]> wrote: > I thought of several ways to add another name for > a method in a subclass ... > > #alias.py > class Foo(object): > def nod(self): > print "nodding" > > class Bar(Foo): > def __init__(self): > self.agree = self.nod >

Re: Is Python really a scripting language?

2007-12-15 Thread Eric S. Johansson
John Nagle wrote: > Yes. One of the basic design flaws of UNIX was that interprocess > communication was originally almost nonexistent, and it's still not all that > great. It's easy to run other programs, and easy to send command line > parameters, but all you get back is a status code, plu

Re: container.___le___ can use only <=?

2007-12-15 Thread cerutti
On Dec 15, 8:33 am, Carl Banks <[EMAIL PROTECTED]> wrote: > On Dec 14, 4:15 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote: > > > When implementing the rich comparison operators for some sort of > > container, it's tempting to save code by doing something like: > > > class LarchTree: > >... > >

Re: lotus nsf to mbox

2007-12-15 Thread Dan Poirier
On Dec 15, 5:18 am, Fabian Braennstroem <[EMAIL PROTECTED]> wrote: > I am wondering, if anyone tried to convert lotus nsf mails > to a mbox format using python!? It would be nice, if anyone > has an idea, how to do it on a linux machine. I've used jython to access notes databases through the Notes

Re: Pythonic way to add method alias in subclass

2007-12-15 Thread Bruno Desthuilliers
Lee Harr a écrit : > I thought of several ways to add another name for > a method in a subclass ... > > > #alias.py > class Foo(object): > def nod(self): > print "nodding" > > class Bar(Foo): > def __init__(self): > self.agree = self.nod Will create an instance attribute

Re: Pythonic way to add method alias in subclass

2007-12-15 Thread Steven D'Aprano
On Sat, 15 Dec 2007 13:03:33 +, Lee Harr wrote: > I thought of several ways to add another name for a method in a subclass ... > class Bar2(Foo): > agree = Foo.nod ... > I am leaning towards Bar2 since it has the least code. Sure, why not? Out of curiosity, what's wrong with just calli

Re: container.___le___ can use only <=?

2007-12-15 Thread Carl Banks
On Dec 14, 4:15 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote: > When implementing the rich comparison operators for some sort of > container, it's tempting to save code by doing something like: > > class LarchTree: >... >def __gt__(self, other): > # A lot of code to traverse the tree >

Pythonic way to add method alias in subclass

2007-12-15 Thread Lee Harr
I thought of several ways to add another name for a method in a subclass ... #alias.py class Foo(object): def nod(self): print "nodding" class Bar(Foo): def __init__(self): self.agree = self.nod class Bar2(Foo): agree = Foo.nod class Bar3(Foo): def agree(self):

Re: container.___le___ can use only <=?

2007-12-15 Thread cerutti
On Dec 14, 11:04 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Fri, 14 Dec 2007 21:15:44 +, Neil Cerutti wrote: > > When implementing the rich comparison operators for some sort of > > container, it's tempting to save code by doing something like: > > > class LarchTree

Re: Loops and things

2007-12-15 Thread ZeD
Jair Trejo wrote: > I was wondering how and if it's possible to write a > loop in python > which updates two or more variables at a time. For > instance, something > like this in C: > > for (i = 0, j = 10; i < 10 && j < 20; i++, j++) { > printf("i = %d, j = %d\n", i, j); > } >>> for i,j in z

Re: lotus nsf to mbox

2007-12-15 Thread Jarek Zgoda
Fabian Braennstroem pisze: > I am wondering, if anyone tried to convert lotus nsf mails > to a mbox format using python!? It would be nice, if anyone > has an idea, how to do it on a linux machine. You can try to read NSF databases using Lotus ActiveX controls. I am sure I saw an example few year

Re: Yet another comparison of Python Web Frameworks

2007-12-15 Thread Benoit
Gluon was made at my school? I seriously gotta start talking to the CTI department. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to detect if a image file has icc profile embeded?

2007-12-15 Thread has
On 15 Dec, 02:40, hi and hello <[EMAIL PROTECTED]> wrote: > thx. What OS? -- http://mail.python.org/mailman/listinfo/python-list

Re: How to read a binary file into a mysql table

2007-12-15 Thread Benoit
On Dec 14, 5:41 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 14 Dec 2007 12:19:41 -0300, Hans Müller <[EMAIL PROTECTED]> escribió: > > > I cannot read a binary file into a mysql database. Everything I tried > > did not succeed. > > > What I tried (found from various google lookups

Re: state machine and a global variable

2007-12-15 Thread Steven D'Aprano
On Sat, 15 Dec 2007 01:07:17 -0800, tuom.larsen wrote: ... > later in the library I would like to expose the > simplified interface as well: > > _machine = StateMachine() > function0 = _machine.function0 > function1 = _machine.function1 > function2 = _machine.function2 > ... > > Is there a way t

Re: opposite of zip()?

2007-12-15 Thread Gary Herron
[EMAIL PROTECTED] wrote: > Hi folks, > > Thanks, for all the help. I tried running the various options, and > here is what I found: > > > from array import array > from time import time > > def f1(recs, cols): > for r in recs: > for i,v in enumerate(r): > cols[i].append(v) >

Re: Compressing a text file using count of continous characters

2007-12-15 Thread makkalot
> > > XYZDEFAAcdAA --> XYZ8ADEF2Acd2A > (RLE), that saved a lot of googles I have written a rle in my first years in school. It compresses a bitmap image %50 compression is achivied :) The link : http://arilaripi.org/index.php?option=com_remository&Itemid=26&func=fileinfo&id=273 And i

Re: Is Python really a scripting language?

2007-12-15 Thread Piet van Oostrum
> John Nagle <[EMAIL PROTECTED]> (JN) wrote: >JN> There's CORBA, for example, and in theory >JN> you can script OpenOffice and Gnome via CORBA. But nobody does that. >JN> Exercise: write a Python program to convert a ".doc" file to a ".pdf" >JN> file by invoking OpenOffice via CORBA. At

Re: opposite of zip()?

2007-12-15 Thread igor . tatarinov
Hi folks, Thanks, for all the help. I tried running the various options, and here is what I found: from array import array from time import time def f1(recs, cols): for r in recs: for i,v in enumerate(r): cols[i].append(v) def f2(recs, cols): for r in recs:

lotus nsf to mbox

2007-12-15 Thread Fabian Braennstroem
Hi, I am wondering, if anyone tried to convert lotus nsf mails to a mbox format using python!? It would be nice, if anyone has an idea, how to do it on a linux machine. Regards! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: state machine and a global variable

2007-12-15 Thread tuom . larsen
On Dec 15, 1:50 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Fri, 14 Dec 2007 23:06:28 +0100, Bruno Desthuilliers wrote: > > Now the question is: why do you think it's so important for your users > > to only see functions ? What's so wrong with: > > > from state_machine im

Re: Is Python really a scripting language?

2007-12-15 Thread Piet van Oostrum
> Steven D'Aprano <[EMAIL PROTECTED]> (SD) wrote: >SD> I have repeatedly argued in the past that we do ourselves a disservice by >SD> describing Python as an interpreted language. Python is compiled. It has >SD> a compiler. It even has a built-in function "compile". It's just not >SD> compi

Re: Is Python really a scripting language?

2007-12-15 Thread Marc 'BlackJack' Rintsch
On Sat, 15 Dec 2007 01:59:16 +, Steven D'Aprano wrote: > In any case, I would say that your exercise is the Wrong Way to go about > it. A task as simple as "produce PDF output from this file" shouldn't > need access to the internals of the OpenOffice GUI application. The Right > Way (in som

Re: Changing argument value

2007-12-15 Thread Tim Roberts
Stargaming <[EMAIL PROTECTED]> wrote: > >Even though you have the assignment operator *in both cases*, it does >**not** issue the same thing. > >As Bruno pointed out, in the first case ``y = [3,4]`` it is *rebinding* >the name `y`. There have been two good replies to this, but I would like to p