Re: Help. HOW TO guide for PyQt installation

2013-03-21 Thread jmfauth
On 20 mar, 11:38, Phil Thompson wrote: > On Wed, 20 Mar 2013 03:29:35 -0700 (PDT), jmfauth > wrote: > > > > > > > > > > > On 20 mar, 10:30, Phil Thompson wrote: > >> On Wed, 20 Mar 2013 02:09:06 -0700 (PDT), jmfauth > >> wrote: > > >> > On 20 mar, 01:12, "D. Xenakis" wrote: > >> >> Hi there, >

Oracle

2013-03-21 Thread amani . abdulhadi
Oracle In Classical Antiquity, an oracle was a person or agency considered to be a source of wise counsel or prophetic predictions or precognition of the future, inspired by the gods. As such it is a form of divination. The word oracle comes from the Latin verb ōrāre "to speak" and properly ref

Re: "monty" < "python"

2013-03-21 Thread Terry Reedy
On 3/20/2013 10:03 AM, franzferdinand wrote: Ok, thanks everybody! Threads are like the Sorcerer's Apprentice. You can start 'em, but you cannot stop 'em ;-) -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list

free and nonlocal variables

2013-03-21 Thread bartolome . sintes
In Python 3, "free variable" and "nonlocal variable" are synonym terms? Or is there a difference, like "a free variable is a variable that is not a local variable, then nonlocal variables and global variables are both free variables"? Thanking you in advance, Bartolomé Sintes -- http://mail.pyt

Re: Help. HOW TO guide for PyQt installation

2013-03-21 Thread jmfauth
On 20 mar, 11:29, jmfauth wrote: > On 20 mar, 10:30, Phil Thompson wrote: - > > > Strangely, I had not problem (if I recall correctly) with a > very basic application (QMainWindow + QLineEdit). ADDENDUM, CORRECTION It fails too. I forgot to rename PySide --> PyQt4 ! I tried to collect ot

Re: free and nonlocal variables

2013-03-21 Thread 88888 Dihedral
bartolom...@gmail.com於 2013年3月21日星期四UTC+8下午4時52分17秒寫道: > In Python 3, "free variable" and "nonlocal variable" are synonym terms? Or is > there a difference, like "a free variable is a variable that is not a local > variable, then nonlocal variables and global variables are both free > variables"

Re: Vowels [was Re: "monty" < "python"]

2013-03-21 Thread David H Wild
In article , Larry Hudson wrote: > The word "apron" was originally "napron", and over the years the phrase > "a napron" mutated to "an apron". So that became the accepted word. Similarly, the snake was a nadder - congruent with the natterjack toad. -- David Wild using RISC OS on broadband www.

Re: Vowels [was Re: "monty" < "python"]

2013-03-21 Thread Chris Angelico
On Thu, Mar 21, 2013 at 8:36 PM, David H Wild wrote: > In article , Larry Hudson > wrote: >> The word "apron" was originally "napron", and over the years the phrase >> "a napron" mutated to "an apron". So that became the accepted word. > > Similarly, the snake was a nadder - congruent with the n

Re: free and nonlocal variables

2013-03-21 Thread Steven D'Aprano
On Thu, 21 Mar 2013 01:52:17 -0700, bartolome.sintes wrote: > In Python 3, "free variable" and "nonlocal variable" are synonym terms? > Or is there a difference, like "a free variable is a variable that is > not a local variable, then nonlocal variables and global variables are > both free variabl

encoding for colon-separated hex?

2013-03-21 Thread Mathias Kőrber
is there a built-in encoding (for encode/decode methods) that as colon-separated hex (01:02:03:04...)? 'hex' seems to encode as '01020304' and while one can postprocess that to insert the colons, if a single operation exists, I'd rather use that. -- http://mail.python.org/mailman/listinfo/python-

Re: free and nonlocal variables

2013-03-21 Thread Terry Reedy
On 3/21/2013 4:52 AM, bartolome.sin...@gmail.com wrote: In Python 3, "free variable" and "nonlocal variable" are synonym terms? Yes, but that is idiosyncratic to Python. Or is there a difference, like "a free variable is a variable that is not a local variable, then nonlocal variables and glo

Re: x += ... is not the same than x = x + ... if x is mutable

2013-03-21 Thread Colin J. Williams
On 21/03/2013 12:27 AM, Nobody wrote: On Wed, 20 Mar 2013 07:17:08 -0700, bartolome.sintes wrote: I thought that x += ... was the same than x = x + ..., but today I have realized it is not true when operating with mutable objects. It may or may not be the same. x += y will invoke x.__iadd__(y

Re: x += ... is not the same than x = x + ... if x is mutable

2013-03-21 Thread Steven D'Aprano
On Thu, 21 Mar 2013 08:35:26 -0400, Colin J. Williams wrote: > On 21/03/2013 12:27 AM, Nobody wrote: >> On Wed, 20 Mar 2013 07:17:08 -0700, bartolome.sintes wrote: >> >>> I thought that x += ... was the same than x = x + ..., but today I >>> have realized it is not true when operating with mutable

Re: "monty" < "python"

2013-03-21 Thread Roy Smith
In article , Terry Reedy wrote: > On 3/20/2013 10:03 AM, franzferdinand wrote: > > Ok, thanks everybody! > > Threads are like the Sorcerer's Apprentice. You can start 'em, but you > cannot stop 'em ;-) Of course you can stop threads. Just call _exit(). No more threads! -- http://mail.pytho

Re: "monty" < "python"

2013-03-21 Thread Chris Angelico
On Thu, Mar 21, 2013 at 11:45 PM, Roy Smith wrote: > In article , > Terry Reedy wrote: > >> On 3/20/2013 10:03 AM, franzferdinand wrote: >> > Ok, thanks everybody! >> >> Threads are like the Sorcerer's Apprentice. You can start 'em, but you >> cannot stop 'em ;-) > > Of course you can stop threa

Re: "monty" < "python"

2013-03-21 Thread Wayne Werner
On Thu, 21 Mar 2013, Roy Smith wrote: In article , Terry Reedy wrote: On 3/20/2013 10:03 AM, franzferdinand wrote: Ok, thanks everybody! Threads are like the Sorcerer's Apprentice. You can start 'em, but you cannot stop 'em ;-) Of course you can stop threads. Just call _exit(). No more

Re: "monty" < "python"

2013-03-21 Thread Dave Angel
On 03/21/2013 08:55 AM, Chris Angelico wrote: On Thu, Mar 21, 2013 at 11:45 PM, Roy Smith wrote: In article , Terry Reedy wrote: On 3/20/2013 10:03 AM, franzferdinand wrote: Ok, thanks everybody! Threads are like the Sorcerer's Apprentice. You can start 'em, but you cannot stop 'em ;-)

Re: Vowels [was Re: "monty" < "python"]

2013-03-21 Thread istjanichtzufassen
Am Donnerstag, 21. März 2013 10:36:20 UTC+1 schrieb David H Wild: > In article , Larry Hudson > > wrote: > > > The word "apron" was originally "napron", and over the years the phrase > > > "a napron" mutated to "an apron". So that became the accepted word. > > > > Similarly, the snake was a

Re: Vowels [was Re: "monty" < "python"]

2013-03-21 Thread Chris Angelico
On Fri, Mar 22, 2013 at 12:26 AM, wrote: > Am Donnerstag, 21. März 2013 10:36:20 UTC+1 schrieb David H Wild: >> In article , Larry Hudson >> >> wrote: >> >> > The word "apron" was originally "napron", and over the years the phrase >> >> > "a napron" mutated to "an apron". So that became the acc

tkinter: invisible PanedWindow "sashes" on OS X

2013-03-21 Thread Arnaud Delobelle
Hi Python List, I'm trying to use PanedWindow on OS X (10.8.3). I've started with the effbot docs example (http://effbot.org/tkinterbook/panedwindow.htm), namely: -- from Tkinter import * m = PanedWindow(orient=VERTICAL) m.pack(fill=BOTH, expand=1) top = Label(m, text="top pane") m.add

Re: SOAPpy.Types.faultType: Cannot use object of type stdClass as array

2013-03-21 Thread Chris Angelico
On Thu, Mar 21, 2013 at 6:06 AM, Tamer Higazi wrote: > SOAPpy.Types.faultType: type stdClass as array> stdClass looks like a PHP error. Check out the server's requirements; perhaps you need to provide something as a list that you're providing as a dict, or something. I'd look at that loginData,

Re: Vowels [was Re: "monty" < "python"]

2013-03-21 Thread Grant Edwards
On 2013-03-21, Steven D'Aprano wrote: > By the way, the "n" in "an" is not the only such "bridging" sound. In > Shakespearean times, it was usual to use "mine" in the same fashion: In many (most?) modern, non-rhotic, dialects of English one inserts an "intrusive" bridging "R" sound after a word

Re: tkinter: invisible PanedWindow "sashes" on OS X

2013-03-21 Thread Christian Gollwitzer
Am 21.03.13 15:37, schrieb Arnaud Delobelle: Hi Python List, I'm trying to use PanedWindow on OS X (10.8.3). I've started with the effbot docs example (http://effbot.org/tkinterbook/panedwindow.htm), namely: -- from Tkinter import * m = PanedWindow(orient=VERTICAL) m.pack(fill=BOTH, e

Re: free and nonlocal variables

2013-03-21 Thread Nobody
On Thu, 21 Mar 2013 01:52:17 -0700, bartolome.sintes wrote: > In Python 3, "free variable" and "nonlocal variable" are synonym terms? "Free variable" is a computer science term. A variable is free if it is not bound. E.g. x and y are free in "x+y", x is bound and y is free in "lambda x: x+y", x a

problem with function

2013-03-21 Thread leonardo selmi
hi all, i wrote the following code: def find(word, letter): index = 0 while index < len(word): if word[index] == letter: return index index = index + 1 return -1 if i run the program i get this error: name 'word' is not defined. how can i solve it? than

Re: problem with function

2013-03-21 Thread Chris Angelico
On Fri, Mar 22, 2013 at 5:31 AM, leonardo selmi wrote: > hi all, > > i wrote the following code: > > def find(word, letter): > index = 0 > while index < len(word): > if word[index] == letter: > return index > index = index + 1 > return -1 > > if i run the pr

Binary for numpy 1.7.0 with Python 2.7.3

2013-03-21 Thread Colin J. Williams
How do I find the binaries on Source Forge? I'm trying to update to both 2.7.3 and Numpy 1.7.0. Colin W -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with function

2013-03-21 Thread Dave Angel
On 03/21/2013 02:31 PM, leonardo selmi wrote: hi all, i wrote the following code: def find(word, letter): index = 0 while index < len(word): if word[index] == letter: return index index = index + 1 return -1 if i run the program i get this error: n

Re: Binary for numpy 1.7.0 with Python 2.7.3

2013-03-21 Thread Dave Angel
On 03/21/2013 03:40 PM, Colin J. Williams wrote: How do I find the binaries on Source Forge? I'm trying to update to both 2.7.3 and Numpy 1.7.0. Colin W Best answer might depend on what OS you're running, and what implementation of Python you're after. Why would you look on SourceForge for

Re: Binary for numpy 1.7.0 with Python 2.7.3

2013-03-21 Thread Kwpolska
On Thu, Mar 21, 2013 at 8:40 PM, Colin J. Williams wrote: > How do I find the binaries on Source Forge? > > I'm trying to update to both 2.7.3 and Numpy 1.7.0. > > Colin W > -- > http://mail.python.org/mailman/listinfo/python-list You don’t. First off, nobody really likes nor uses SourceForge to

Re: problem with function

2013-03-21 Thread Alex
leonardo selmi wrote: > hi all, > > i wrote the following code: > > def find(word, letter): > index = 0 > while index < len(word): > if word[index] == letter: > return index > index = index + 1 > return -1 > > if i run the program i get this error: name '

Windows Deployment Of Python Modules

2013-03-21 Thread Adam Tauno Williams
Python itself is easy to deploy on Windows; just toss the MSI in your local update server and away it goes. That's slick; LSUS is awesome. But that gives you Python with no pip, easy_install, etc... And *that* is not packaged appropriately. Is there s

Re: free and nonlocal variables

2013-03-21 Thread Jussi Piitulainen
Nobody writes: > On Thu, 21 Mar 2013 01:52:17 -0700, bartolome.sintes wrote: > > > In Python 3, "free variable" and "nonlocal variable" are synonym > > terms? > > "Free variable" is a computer science term. A variable is free if it > is not bound. E.g. x and y are free in "x+y", x is bound and y

Re: tkinter: invisible PanedWindow "sashes" on OS X

2013-03-21 Thread Arnaud Delobelle
On 21 March 2013 18:42, Christian Gollwitzer wrote: > Am 21.03.13 15:37, schrieb Arnaud Delobelle: > >> Hi Python List, >> >> I'm trying to use PanedWindow on OS X (10.8.3). I've started with the >> effbot docs example (http://effbot.org/tkinterbook/panedwindow.htm), >> namely: >> >> -- >

Re: Vowels [was Re: "monty" < "python"]

2013-03-21 Thread Peter Pearson
On Thu, 21 Mar 2013 21:09:52 +1100, Chris Angelico wrote: > On Thu, Mar 21, 2013 at 8:36 PM, David H Wild wrote: >> In article , Larry Hudson >> wrote: >>> The word "apron" was originally "napron", and over the years the phrase >>> "a napron" mutated to "an apron". So that became the accepted w

Re: Vowels [was Re: "monty" < "python"]

2013-03-21 Thread Chris Angelico
On Fri, Mar 22, 2013 at 8:52 AM, Peter Pearson wrote: > On Thu, 21 Mar 2013 21:09:52 +1100, Chris Angelico wrote: >> On Thu, Mar 21, 2013 at 8:36 PM, David H Wild wrote: >>> In article , Larry Hudson >>> wrote: The word "apron" was originally "napron", and over the years the phrase "a

Re: problem with function

2013-03-21 Thread Ian Kelly
On Mar 21, 2013 1:35 PM, "leonardo selmi" wrote: > > hi all, > > i wrote the following code: > > def find(word, letter): > index = 0 > while index < len(word): > if word[index] == letter: > return index > index = index + 1 > return -1 > More efficient: def

Re: Binary for numpy 1.7.0 with Python 2.7.3

2013-03-21 Thread Colin J. Williams
On 21/03/2013 4:00 PM, Dave Angel wrote: On 03/21/2013 03:40 PM, Colin J. Williams wrote: How do I find the binaries on Source Forge? I'm trying to update to both 2.7.3 and Numpy 1.7.0. Colin W Best answer might depend on what OS you're running, and what implementation of Python you're after

Re: Windows Deployment Of Python Modules

2013-03-21 Thread Adam Tauno Williams
David Robinow wrote: >On Thu, Mar 21, 2013 at 4:14 PM, Adam Tauno Williams > wrote: >> >> Python itself is easy to deploy on Windows; just toss the MSI in >your >> local update server and away it goes. >> >> That's slick; LSUS is awesome. >> >> >> But tha

Re: Windows Deployment Of Python Modules

2013-03-21 Thread David Robinow
On Thu, Mar 21, 2013 at 6:23 PM, Adam Tauno Williams wrote: > David Robinow wrote: >>On Thu, Mar 21, 2013 at 4:14 PM, Adam Tauno Williams >> wrote: >>> >>> Python itself is easy to deploy on Windows; just toss the MSI in >>your >>> local update server and away it goes. >>> >>> That's slick; LSU

How can I wrap a binary file-like object with an IO stream?

2013-03-21 Thread Will McGugan
Hi, I am looking in to improving Python 3.X support for PyFilesystem (https:// code.google.com/p/pyfilesystem/). There is provisional Python 3 support in there, but a stumbling block is that I would like the open method to work like io.open in Py3 -- specifically returning text mode streams tha

Re: Vowels [was Re: "monty" < "python"]

2013-03-21 Thread Terry Reedy
On 3/21/2013 1:31 PM, Grant Edwards wrote: http://en.wikipedia.org/wiki/Linking_and_intrusive_R Is the Python language rhotic or non-rhotic? Python uses American rather that British English, which would make it rhotic. I never imagined that there were people who would mix up 'tuner' and

Re: problem with function

2013-03-21 Thread Terry Reedy
On 3/21/2013 2:31 PM, leonardo selmi wrote: i wrote the following code: def find(word, letter): index = 0 while index < len(word): if word[index] == letter: return index index = index + 1 return -1 Since this is a learning exercise, consider the f

Global NameError Fix?

2013-03-21 Thread maiden129
Hello, I'm using the version 3.2.3 of Python and I am having an issue in my program and I don't know how to fix it: counterLabel["text"] = str(counter) NameError: global name 'counterLabel' is not defined Here is my program: from tkinter import * class CounterButton(Button): def __init_

Re: Vowels [was Re: "monty" < "python"]

2013-03-21 Thread Roy Smith
In article , Terry Reedy wrote: > On 3/21/2013 1:31 PM, Grant Edwards wrote: > > > http://en.wikipedia.org/wiki/Linking_and_intrusive_R > > > Is the Python language rhotic or non-rhotic? > > Python uses American rather that British English, which would make it > rhotic. > > I never imagine

Re: Global NameError Fix?

2013-03-21 Thread Dave Angel
On 03/21/2013 07:43 PM, maiden129 wrote: Hello, I'm using the version 3.2.3 of Python and I am having an issue in my program and I don't know how to fix it: counterLabel["text"] = str(counter) NameError: global name 'counterLabel' is not defined Please include the entire traceback when repo

Re: Global NameError Fix?

2013-03-21 Thread David Robinow
On Thu, Mar 21, 2013 at 7:43 PM, maiden129 wrote: > Hello, > > I'm using the version 3.2.3 of Python and I am having an issue in my program > and I don't know how to fix it: > > counterLabel["text"] = str(counter) > NameError: global name 'counterLabel' is not defined > > Here is my program: > >

Re: Binary for numpy 1.7.0 with Python 2.7.3

2013-03-21 Thread Miki Tebeka
> I'm trying to update to both 2.7.3 and Numpy 1.7.0. Updating Python is from python.org If you're on 64bit windows, see http://www.lfd.uci.edu/~gohlke/pythonlibs/ -- http://mail.python.org/mailman/listinfo/python-list