Re: Compiling Python 2.5.2 on AIX 5.2

2008-05-10 Thread Martin v. Löwis
> Opening mmap with access=ACCESS_COPY > Modifying copy-on-write memory map. > Traceback (most recent call last): > File "Lib/test/test_mmap.py", line 393, in > test_both() > File "Lib/test/test_mmap.py", line 247, in test_both > m.flush() > EnvironmentError: [Errno 22] Invalid arg

Re: Keeping two lists aligned after processing

2008-05-10 Thread philly_bob
On May 11, 2:32 am, Paul Rubin wrote: > philly_bob <[EMAIL PROTECTED]> writes: > > algs=['AlgA', 'AlgB', 'AlgC', 'AlgD', 'AlgE'] > > accs=[] > > for alg in algs: > >thisacc=getattr(alg.accuracy)() # picked this technique on > > comp.lang.python last month > >acc

Re: Keeping two lists aligned after processing

2008-05-10 Thread Dan Bishop
On May 11, 1:22 am, philly_bob <[EMAIL PROTECTED]> wrote: > > I have a population of five algorithms. Each Alg has a method, > Alg.accuracy(), which calculates its accuracy. Running the accuracy > method on each Alg, I end up with a list of accuracies like [0.75, > 0.10, 0.45, 0.80, 0.45] > > Now I

Re: Keeping two lists aligned after processing

2008-05-10 Thread Paul Rubin
philly_bob <[EMAIL PROTECTED]> writes: > algs=['AlgA', 'AlgB', 'AlgC', 'AlgD', 'AlgE'] > accs=[] > for alg in algs: >thisacc=getattr(alg.accuracy)() # picked this technique on > comp.lang.python last month >accs.append(thisacc) I think what you mean is (untested): algs = [AlgA, Alg

Keeping two lists aligned after processing

2008-05-10 Thread philly_bob
""" I have a population of five algorithms. Each Alg has a method, Alg.accuracy(), which calculates its accuracy. Running the accuracy method on each Alg, I end up with a list of accuracies like [0.75, 0.10, 0.45, 0.80, 0.45] Now I want to store the algorithms and associated accuracies in a file,

Keeping two lists aligned after processing

2008-05-10 Thread philly_bob
""" I have a population of five algorithms. Each Alg has a method, Alg.accuracy(), which calculates its accuracy. Running the accuracy method on each Alg, I end up with a list of accuracies like [0.75, 0.10, 0.45, 0.80, 0.45] Now I want to store the algorithms and associated accuracies in a file,

Re: firefox add-on to grab python code handily?

2008-05-10 Thread Kam-Hung Soh
On Sat, 10 May 2008 17:58:12 +1000, CM <[EMAIL PROTECTED]> wrote: I encounter a fair number of small Python scripts online, and usually try them out by copying them to the clipboard, pasting into Notepad, saving them, and either running them directly or opening them in IDLE. And so I was wonder

Re: do you fail at FizzBuzz? simple prog test

2008-05-10 Thread Mensanator
On May 11, 12:04 am, John Machin <[EMAIL PROTECTED]> wrote: > On May 11, 1:24 pm, Mensanator <[EMAIL PROTECTED]> wrote: > > > > > > > On May 10, 8:12�pm, globalrev <[EMAIL PROTECTED]> wrote: > > > >http://reddit.com/r/programming/info/18td4/comments > > > > claims people take a lot of time to write

Re: Is using range() in for loops really Pythonic?

2008-05-10 Thread Paul Rubin
John Salerno <[EMAIL PROTECTED]> writes: > for x in range(10): > #do something 10 times > > is unPythonic. The reason I ask is because the structure of the for loop > seems to be for iterating through a sequence. It seems somewhat > artificial to use the for loop to do something a certain numb

Re: Mathematics in Python are not correct

2008-05-10 Thread Paddy
On May 10, 9:56 pm, [EMAIL PROTECTED] wrote: > I have two another interesting things to discuss about, for which I'll > open new posts on this group. Look for "Python doesn't recognize quote > types" and "Python, are you ill?". Hi, You might try making your titles a little more descriptive to hel

Re: firefox add-on to grab python code handily?

2008-05-10 Thread Paddy
On May 10, 8:58 am, CM <[EMAIL PROTECTED]> wrote: > I encounter a fair number of small Python scripts online, and usually > try them out by copying them to the clipboard, pasting into Notepad, > saving them, and either running them directly or opening them in > IDLE. > > And so I was wondering if a

Re: Is using range() in for loops really Pythonic?

2008-05-10 Thread Paddy
On May 11, 3:19 am, John Salerno <[EMAIL PROTECTED]> wrote: > I know it's popular and very handy, but I'm curious if there are purists > out there who think that using something like: > > for x in range(10): > #do something 10 times > > is unPythonic. The reason I ask is because the structure o

Re: People still using Tkinter?

2008-05-10 Thread castironpi
On May 10, 1:57 pm, Kenneth McDonald <[EMAIL PROTECTED]> wrote: > The only trick it that sometimes it isn't obvious how to make the Tcl/ > Tk call via Python. > > Ken > > On May 10, 2008, at 11:27 AM, Martin v. Löwis wrote: > > > > >> I am, but "still" isn't the word, I just started.  Good, *comple

Re: Now what!?

2008-05-10 Thread Rilindo Foster
I don't know the context of the discussion, since I just joined the list, but: On May 10, 2008, at 11:05 PM, hdante wrote: On May 10, 8:22 pm, notbob <[EMAIL PROTECTED]> wrote: On 2008-05-10, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: So... in short, you'd need to have been reading a

Re: do you fail at FizzBuzz? simple prog test

2008-05-10 Thread John Machin
On May 11, 1:24 pm, Mensanator <[EMAIL PROTECTED]> wrote: > On May 10, 8:12�pm, globalrev <[EMAIL PROTECTED]> wrote: > > > > >http://reddit.com/r/programming/info/18td4/comments > > > claims people take a lot of time to write a simple program like this: > > > "Write a program that prints the number

Module python-magic on/for Windows?

2008-05-10 Thread Larry Hale
I've heard tell of a Python binding for libmagic (file(1) *nixy command; see http://darwinsys.com/file/). Generally, has anybody built this and worked with it under Windows? The only thing I've been able to find is the python-magic module at http://hupp.org/adam/hg/python-magic/. [1] Is this

Re: do you fail at FizzBuzz? simple prog test

2008-05-10 Thread Ivan Illarionov
On Sun, 11 May 2008 04:26:10 +, Ivan Illarionov wrote: > On Sat, 10 May 2008 18:12:37 -0700, globalrev wrote: > >> http://reddit.com/r/programming/info/18td4/comments >> >> claims people take a lot of time to write a simple program like this: >> >> >> "Write a program that prints the numbe

Re: Now what!?

2008-05-10 Thread castironpi
On May 10, 10:05 pm, hdante <[EMAIL PROTECTED]> wrote: > On May 10, 8:22 pm, notbob <[EMAIL PROTECTED]> wrote: > > > On 2008-05-10, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > > >    So... in short, you'd need to have been reading a tutorial specific > > > to "shell" scripting... > > > I have

Re: do you fail at FizzBuzz? simple prog test

2008-05-10 Thread Ivan Illarionov
On Sat, 10 May 2008 18:12:37 -0700, globalrev wrote: > http://reddit.com/r/programming/info/18td4/comments > > claims people take a lot of time to write a simple program like this: > > > "Write a program that prints the numbers from 1 to 100. But for > multiples of three print "Fizz" instead of

hai dear

2008-05-10 Thread ramu
hai friends, "each day is a new adventure to dream search and discover" www.goodhistory5.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

hai dear

2008-05-10 Thread chandran . ram28
hai friends, "each day is a new adventure to dream search and discover" www.goodhistory5.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Prettyprinting SQL statements

2008-05-10 Thread Mensanator
On May 10, 10:23�pm, MooJoo <[EMAIL PROTECTED]> wrote: > I'm building a Python app that will be making queries to a MySQL server > using the MySQLdb module. The app will need to create SQL statements on > the fly which, in addition to going to the server, will occasionally > need to be displayed to

Re: multiple Python versions, but on Windows (how to handle registry updates)

2008-05-10 Thread Banibrata Dutta
I realized that my query was not making much sense, or a bit convoluted. A simler form of the question: For packages which do contain .dlls & .pyd's (not pure Python) their latest version may be compatible with -- say Python 2.5, whereas I need the version compatible for Python2.2. Is this a compl

Re: How to call a file

2008-05-10 Thread Gabriel Genellina
En Sat, 10 May 2008 12:32:47 -0300, Gary Herron <[EMAIL PROTECTED]> escribió: > Chris Sprinkles wrote: >> I'm still having trouble with calling a text file and I know its so >> simple here is the code >> >> work = open('C:\Documents and Settings

Re: multiple Python versions, but on Windows (how to handle registry updates)

2008-05-10 Thread Banibrata Dutta
Thanks Gabriel & Terry. Those explanations make perfect sense. What is the recommended way, to find the "compatible" packages that include .dll's / .pyd's or dependencies that are Python release specific ? For example, is there a 'yum' or other automatic dependency checking mechanism which works a

Re: observer pattern (notification chain synchronization)

2008-05-10 Thread Alan Isaac
J. Cliff Dyer wrote: looks like a good approach to me OK, thanks. Another approach is to begin with a set of stocks and remove them as they report. You can then trigger a report with the empty set instead of repeatedly calling ``all``. After a report the set can be "refilled". Cheer

Re: Free Memory

2008-05-10 Thread Patrick Mullen
Yeah I don't know much about locals or globals. I've never used them before, just know they are there. But anyway, to illustrate what I meant by the interesting behavior, here is the output (and sorry for it being so long): IDLE 2.6a2 >>> globals() {'__builtins__': , '__name__': '__main__', '__d

Re: Now what!?

2008-05-10 Thread notbob
On 2008-05-11, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > on the Amiga, it could be any of those applications). ahhh the Amiga, the demise of which was one of the great calamaties of our cyber time. (sniff) nb -- http://mail.python.org/mailman/listinfo/python-list

Re: Free Memory

2008-05-10 Thread Gabriel Genellina
En Fri, 09 May 2008 12:44:21 -0300, Patrick Mullen <[EMAIL PROTECTED]> escribió: > I had some very interesting results with this code to do what is asked: > > for key in globals().keys(): > del globals()[key] > for key in locals().keys(): > del locals()[key] Removing items from locals() h

Re: Compiling Python 2.5.2 on AIX 5.2

2008-05-10 Thread Randy Galbraith
On Apr 22, 11:17 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > test test_mmap crashed -- : [Errno > > 22] Invalid argument > > You should run this with -v. This is too little detail to know what > exactly failed. Sorry it took so long to get back to you. At this point, I'm going to attempt

Re: do you fail at FizzBuzz? simple prog test

2008-05-10 Thread Grant Edwards
On 2008-05-11, John Machin <[EMAIL PROTECTED]> wrote: >> "Write a program that prints the numbers from 1 to 100. But for >> multiples of three print "Fizz" instead of the number and for the >> multiples of five print "Buzz". For numbers which are multiples of >> both three and five print "FizzBuzz

Re: do you fail at FizzBuzz? simple prog test

2008-05-10 Thread Mensanator
On May 10, 8:12�pm, globalrev <[EMAIL PROTECTED]> wrote: > http://reddit.com/r/programming/info/18td4/comments > > claims people take a lot of time to write a simple program like this: > > "Write a program that prints the numbers from 1 to 100. But for > multiples of three print "Fizz" instead of t

Prettyprinting SQL statements

2008-05-10 Thread MooJoo
I'm building a Python app that will be making queries to a MySQL server using the MySQLdb module. The app will need to create SQL statements on the fly which, in addition to going to the server, will occasionally need to be displayed to the user. While these queries are not too complex, they st

Re: Now what!?

2008-05-10 Thread hdante
On May 10, 8:22 pm, notbob <[EMAIL PROTECTED]> wrote: > On 2008-05-10, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > >    So... in short, you'd need to have been reading a tutorial specific > > to "shell" scripting... > > I have been.  I'm also trying to learn bash shell scripting, not to mentio

Re: Is using range() in for loops really Pythonic?

2008-05-10 Thread 7stud
On May 10, 8:19 pm, John Salerno <[EMAIL PROTECTED]> wrote: > I know it's popular and very handy, but I'm curious if there are purists > out there who think that using something like: > > for x in range(10): >     #do something 10 times > > is unPythonic. The reason I ask is because the structure o

Re: Is using range() in for loops really Pythonic?

2008-05-10 Thread Daniel Fetchinson
I know it's popular and very handy, but I'm curious if there are purists > out there who think that using something like: > > for x in range(10): >#do something 10 times > > is unPythonic. The reason I ask is because the structure of the for loop > seems to be for iterating through a sequence.

Re: Is using range() in for loops really Pythonic?

2008-05-10 Thread Matt Nordhoff
John Salerno wrote: > I know it's popular and very handy, but I'm curious if there are purists > out there who think that using something like: > > for x in range(10): > #do something 10 times > > is unPythonic. The reason I ask is because the structure of the for loop > seems to be for itera

Re: python newbie: some surprises

2008-05-10 Thread Gabriel Genellina
En Fri, 09 May 2008 10:37:30 -0300, v4vijayakumar <[EMAIL PROTECTED]> escribió: > On May 9, 1:48 pm, Bruno Desthuilliers [EMAIL PROTECTED]> wrote: >> v4vijayakumar a écrit : >> >> > When I started coding in python, these two things surprised me. >> >> > 1. my code is inconsistently indented with

Is using range() in for loops really Pythonic?

2008-05-10 Thread John Salerno
I know it's popular and very handy, but I'm curious if there are purists out there who think that using something like: for x in range(10): #do something 10 times is unPythonic. The reason I ask is because the structure of the for loop seems to be for iterating through a sequence. It seems so

Re: anagram finder / dict mapping question

2008-05-10 Thread Kam-Hung Soh
On Sat, 10 May 2008 18:06:17 +1000, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: "Kam-Hung Soh" <[EMAIL PROTECTED]> writes: On Sat, 10 May 2008 07:19:38 +1000, <[EMAIL PROTECTED]> wrote: > What would be the best method to print the top results, the one's that > had the highest amount of a

Re: Can I "delete" the namespace of a module that i import?

2008-05-10 Thread Gabriel Genellina
En Fri, 09 May 2008 11:06:49 -0300, gbin,Zhou <[EMAIL PROTECTED]> escribió: >I see from "http://docs.python.org/tut/node11.html"; that "Name > spaces are created at different moments and have different lifetimes. > The namespace containing the built-in names is created when the Python > interp

Re: do you fail at FizzBuzz? simple prog test

2008-05-10 Thread Kam-Hung Soh
On Sun, 11 May 2008 11:12:37 +1000, globalrev <[EMAIL PROTECTED]> wrote: http://reddit.com/r/programming/info/18td4/comments claims people take a lot of time to write a simple program like this: "Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" in

Re: do you fail at FizzBuzz? simple prog test

2008-05-10 Thread John Machin
globalrev wrote: http://reddit.com/r/programming/info/18td4/comments claims people take a lot of time to write a simple program like this: "Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "

RE: firefox add-on to grab python code handily?

2008-05-10 Thread Ryan Ginstrom
> On Behalf Of Larry Bates > Since most of us keep Idle or some other Python IDE open > nearly 100% of the time we just copy from webpage, paste into > new Python document, and run in the IDE. > While you could clearly write a plug-in for FF to achieve > this, IMHO I doubt many people would act

Re: implementation for Parsing Expression Grammar?

2008-05-10 Thread George Neuner
On Fri, 9 May 2008 22:52:30 -0700 (PDT), "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >In the past weeks i've been thinking over the problem on the practical >problems of regex in its matching power. For example, often it can't >be used to match anything of nested nature, even the most simple >n

do you fail at FizzBuzz? simple prog test

2008-05-10 Thread globalrev
http://reddit.com/r/programming/info/18td4/comments claims people take a lot of time to write a simple program like this: "Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers

Re: The Importance of Terminology's Quality

2008-05-10 Thread George Neuner
On Fri, 09 May 2008 22:45:26 -0500, [EMAIL PROTECTED] (Rob Warnock) wrote: >George Neuner wrote: > >>On Wed, 7 May 2008 16:13:36 -0700 (PDT), "[EMAIL PROTECTED]" >><[EMAIL PROTECTED]> wrote: > >>>• Functions [in Mathematica] that takes elements out of list >>>are variously named First, Rest, Las

Re: multiple Python versions, but on Windows (how to handle registry updates)

2008-05-10 Thread Gabriel Genellina
En Sat, 10 May 2008 01:38:24 -0300, Banibrata Dutta <[EMAIL PROTECTED]> escribió: > given that I already have Python2.5 installed & will install Python2.4, will > copying the ../Lib/site-packages/ from 2.5 into 2.4's, work ? > i think the answer is "no", but still asking. is it package specific ?

Re: Initializing a subclass with a super object?

2008-05-10 Thread frankdmartinez
Hi, Terry. Yeah, no. If we think of the inherited B as an object nested within a1, I'm attempting to initialize that B with b1 by accessing the B, say, via a function call. I don't see how using a python factory achieves this. -- http://mail.python.org/mailman/listinfo/python-list

Re: Mathematics in Python are not correct

2008-05-10 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |I am stunned that this simple misunderstanding of mine ended in a | mathematical clash of a sort. :) You guys really blew me away wih | your mathematical knowledge. And also the 0**0 is a thing I've never | thought about trying, until

paypal wholesale, NBA,adidas ( paypal accept ) ( www.honest-shop.cn )

2008-05-10 Thread 128
paypal wholesale, NBA,adidas ( paypal accept) ( www.honest-shop.cn ) paypal wholesale, NBA,adidas ( paypal accept ) ( www.honest-shop.cn ) paypal wholesale, NBA,adidas ( paypal accept ) ( www.honest-shop.cn ) paypal wholesale, NBA,adidas ( paypal accept ) ( w

paypal wholesale, NBA,adidas ( paypal accept ) ( www.honest-shop.cn )

2008-05-10 Thread 128
paypal wholesale, NBA,adidas ( paypal accept) ( www.honest-shop.cn ) paypal wholesale, NBA,adidas ( paypal accept ) ( www.honest-shop.cn ) paypal wholesale, NBA,adidas ( paypal accept ) ( www.honest-shop.cn ) paypal wholesale, NBA,adidas ( paypal accept ) ( w

paypal wholesale, bape, air jordan ( paypal accept ) ( www.honest-shop.cn )

2008-05-10 Thread 128
paypal wholesale,bape,air jordan (paypal accept ) (www.honest-shop.cn ) paypal wholesale,bape,air jordan(paypal accept ) (www.honest-shop.cn ) paypal wholesale,bape,air jordan (paypal accept ) (www.honest-shop.cn ) paypal wholesale,bape,air

Re: Find more than one error at once

2008-05-10 Thread John Machin
Diez B. Roggisch wrote: Joseph Turian schrieb: Is it possible to coax python to find more than one error at once? What kind of errors? Syntax-errors? Then use one of the python source code analyzers, such as pylint or pychecker. I don't know about pylint, but "PyChecker works in a combinati

Re: Initializing a subclass with a super object?

2008-05-10 Thread Terry
On May 11, 7:22 am, [EMAIL PROTECTED] wrote: > Class A inherits from class B. Can anyone point me in the direction > of documentation saying how to initialize an object of A, a1, with an > object of B, b1? This is called a 'factory'in design patterns. Search 'python factory', you will get a lot o

Re: implementation for Parsing Expression Grammar?

2008-05-10 Thread Barb Knox
In article <[EMAIL PROTECTED]>, Lars Rune Nøstdal <[EMAIL PROTECTED]> wrote: > Hi, > Finite automata works for "nested things". Only in the special case when the depth of nesting is bounded ahead of time. If it's unbounded then there is an unbounded amount of "stack" information that the aut

Initializing a subclass with a super object?

2008-05-10 Thread frankdmartinez
Class A inherits from class B. Can anyone point me in the direction of documentation saying how to initialize an object of A, a1, with an object of B, b1? -- http://mail.python.org/mailman/listinfo/python-list

Re: Now what!?

2008-05-10 Thread notbob
On 2008-05-10, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > So... in short, you'd need to have been reading a tutorial specific > to "shell" scripting... I have been. I'm also trying to learn bash shell scripting, not to mention sed/awk, php, etc. I should have started this a long time

Re: how to reference my own module ?

2008-05-10 Thread Stef Mientki
Terry Reedy wrote: "Stef Mientki" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | hello, | | I've a library that I import as | |import ppygui.api as gui | | the reason for this construct is that I've to use different libraries | for different platforms. | | Now I like to write

Re: Now what!?

2008-05-10 Thread Patrick Mullen
On Sat, May 10, 2008 at 3:57 PM, Grant Edwards <[EMAIL PROTECTED]> wrote: > On a Linux system (and I presume on other Unixes), the kernel > itself (if built with the proper options) knows know how start > a "script" file that starts with the characters "#!". When the > kernel is told to execute a

Re: Find more than one error at once

2008-05-10 Thread Joseph Turian
On May 10, 8:13 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > What kind of errors? Syntax-errors? Then use one of the python source > code analyzers, such as pylint or pychecker. Great! -- http://mail.python.org/mailman/listinfo/python-list

Re: Now what!?

2008-05-10 Thread Grant Edwards
On 2008-05-10, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >> These are the minute details that bedevil the poor noob. I've >> read dozens of tutorials on different prog langs and have >> never read a single thing on white space or blank lines >> preceding a shebang. Till now. I always get > >

Re: how to reference my own module ?

2008-05-10 Thread Terry Reedy
"Stef Mientki" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | hello, | | I've a library that I import as | |import ppygui.api as gui | | the reason for this construct is that I've to use different libraries | for different platforms. | | Now I like to write some examples in the

test

2008-05-10 Thread Colin J. Williams
test -- http://mail.python.org/mailman/listinfo/python-list

test

2008-05-10 Thread Colin J. Williams
test -- http://mail.python.org/mailman/listinfo/python-list

Re: Python doesn't recognize quote types

2008-05-10 Thread John Machin
On May 11, 6:56 am, [EMAIL PROTECTED] wrote: > There's a thing that bugs me in Python. Look at this... > > >>> print "Testing\" > > SyntaxError: EOL while scanning single-quoted string > > Please focus on the part of the error message that states "while > scanning single-quoted string". How can Pyt

Re: The Importance of Terminology's Quality

2008-05-10 Thread Lew
Sherman Pendley wrote: Lew <[EMAIL PROTECTED]> writes: You guys are off topic. None of the million groups to which this message was posted are about netiquette. Netiquette has come up at one point or another in pretty much every group I've ever read. It's pretty much a universal meta-topic.

Re: Python, are you ill?

2008-05-10 Thread Matt Nordhoff
[EMAIL PROTECTED] wrote: > You > can't get out of the code block with pressing the Enter key; you have > to press Ctrl+Z (if you're in Linux) in order to get out of that code > block, which then throws you back to the Linux command line, but > before that it prints this line > > [1]+ Stopped

Special INFORMATION – a must read

2008-05-10 Thread law
Interesting information found at PASGOM. Just click on; http://www.pasgom.org/traffic.html http://www.pasgom.org/Stores.html You may look at this important INFO, view the short but interesting movies, and even share with others. Interestingly, Registration for all these is FREE. Nkaw -- http://mai

Re: Python doesn't recognize quote types

2008-05-10 Thread Nicolas Dandrimont
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2008-05-10 13:56:39 -0700]: > There's a thing that bugs me in Python. Look at this... > > >>> print "Testing\" > SyntaxError: EOL while scanning single-quoted string > > > Please focus on the part of the error message that states "while > scanning single

Re: Python, are you ill?

2008-05-10 Thread Nicolas Dandrimont
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2008-05-10 13:59:37 -0700]: > If you are in the interactive prompt of the Python interpreter and you > do this > > print """Testing\""" or print '''Testing\''' > > you get three dots [...] as if Python expects a code block. If you > press Enter, you g

Re: Python, are you ill?

2008-05-10 Thread John Henderson
[EMAIL PROTECTED] wrote: > If you are in the interactive prompt of the Python interpreter > and you do this > > print """Testing\""" or print '''Testing\''' > > you get three dots [...] as if Python expects a code block. If > you press Enter, you get three dots again, and again, and > again.

Re: Python, are you ill?

2008-05-10 Thread John Machin
On May 11, 6:59 am, [EMAIL PROTECTED] wrote: > If you are in the interactive prompt of the Python interpreter and you > do this > > print """Testing\""" or print '''Testing\''' > > you get three dots [...] as if Python expects a code block. If you > press Enter, you get three dots again, and ag

Re: Python, are you ill?

2008-05-10 Thread Ludwig
This is not a bug, this is how it should work. A triple quoted string ends only with another triple quoted string (which can extend over multiple lines) In your example you are escaping the first quote character at the end of the line, thus leaving just two quotes that do not end the string. Anoth

Python, are you ill?

2008-05-10 Thread wxPythoner
If you are in the interactive prompt of the Python interpreter and you do this print """Testing\""" or print '''Testing\''' you get three dots [...] as if Python expects a code block. If you press Enter, you get three dots again, and again, and again... You can't get out of the code block wit

Python doesn't recognize quote types

2008-05-10 Thread wxPythoner
There's a thing that bugs me in Python. Look at this... >>> print "Testing\" SyntaxError: EOL while scanning single-quoted string Please focus on the part of the error message that states "while scanning single-quoted string". How can Python claim it scanned a single-quoted string when I fed it

Re: Mathematics in Python are not correct

2008-05-10 Thread wxPythoner
I am stunned that this simple misunderstanding of mine ended in a mathematical clash of a sort. :) You guys really blew me away wih your mathematical knowledge. And also the 0**0 is a thing I've never thought about trying, until now that is. If the mathematical rule is that EVERYTHING raised to th

Re: Any other UI kits with text widget similar to that in Tk?

2008-05-10 Thread Stef Mientki
Kenneth McDonald wrote: I'm wondering if any of the other GUI kits have a text widget that is similar in power to the one in Tk. wxWindows, from what I can tell, doesn't offer nearly the options the Tk widget does. I'm less familiar with Qt. Any feedback would be most appreciated. Thanks, Ken

Any other UI kits with text widget similar to that in Tk?

2008-05-10 Thread Kenneth McDonald
I'm wondering if any of the other GUI kits have a text widget that is similar in power to the one in Tk. wxWindows, from what I can tell, doesn't offer nearly the options the Tk widget does. I'm less familiar with Qt. Any feedback would be most appreciated. Thanks, Ken -- http://mail.pytho

Re: Is there a PyPI API?

2008-05-10 Thread Mike Driscoll
On May 10, 2:23 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > I just can't figure out how to get the metadata, I guess. > > See > > http://wiki.python.org/moin/PyPiXmlRpc > > Regards, > Martin Ah-so. Most helpful, Martin. Thanks a lot! Mike -- http://mail.python.org/mailman/listinfo/python

Re: Now what!?

2008-05-10 Thread notbob
On 2008-05-10, notbob <[EMAIL PROTECTED]> wrote: > BTW, anyone know a better cli news client/editor combo than slrn/jed (don't > even think vi!)? When I cp/past code (or most anything else) to jed, all > the lines become stair-stepped. This is no biggie for a most stuff, but for > idented code,

how to reference my own module ?

2008-05-10 Thread Stef Mientki
hello, I've a library that I import as import ppygui.api as gui the reason for this construct is that I've to use different libraries for different platforms. Now I like to write some examples in the library (activated by if __name__ == '__main__' :) and I would that these examples can b

Re: Is there a PyPI API?

2008-05-10 Thread Martin v. Löwis
> I just can't figure out how to get the metadata, I guess. See http://wiki.python.org/moin/PyPiXmlRpc Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: People still using Tkinter?

2008-05-10 Thread Kenneth McDonald
The only trick it that sometimes it isn't obvious how to make the Tcl/ Tk call via Python. Ken On May 10, 2008, at 11:27 AM, Martin v. Löwis wrote: I am, but "still" isn't the word, I just started. Good, *complete* docs seem to be hard to find, but using a combination of the free resources a

Re: list object

2008-05-10 Thread Terry Reedy
"member thudfoo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | On 5/10/08, Gandalf <[EMAIL PROTECTED]> wrote: | > my manual contain chapter about lists with python. when i try to copy | > paste : | > | > li = ["a", "b", "mpilgrim", "z", "example"] (1) | > | > | > it i get this

Is there a PyPI API?

2008-05-10 Thread Mike Driscoll
Hi, I am experimenting on creating a GUI wrapper for easy_install and I would like to be able to allow the user the browse PyPI topically. However, I am having some trouble figuring out how to get the information in a topical manner. I can get the list of classifiers easily using urllib2 like so:

Re: multiple Python versions, but on Windows (how to handle registry updates)

2008-05-10 Thread Terry Reedy
"Banibrata Dutta" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | given that I already have Python2.5 installed & will install Python2.4, will | copying the ../Lib/site-packages/ from 2.5 into 2.4's, work ? | i think the answer is "no", but still asking. is it package specific ? I

Re: Now what!?

2008-05-10 Thread notbob
On 2008-05-10, Ivan Illarionov <[EMAIL PROTECTED]> wrote: > Shebang is certainly broken, possible causes: > 1. Wrong line endings (should be \n) Nope. Not it. > 2. Whitespace before the shebang BINGO! we have a winner. ;) I thought for sure that was not correct. No white space before t

Re: list object

2008-05-10 Thread member thudfoo
On 5/10/08, Gandalf <[EMAIL PROTECTED]> wrote: > my manual contain chapter about lists with python. when i try to copy > paste : > > li = ["a", "b", "mpilgrim", "z", "example"] (1) > > > it i get this errore: > > "TypeError: 'list' object is not callable" > > i was wondering if their is any s

list object

2008-05-10 Thread Gandalf
my manual contain chapter about lists with python. when i try to copy paste : li = ["a", "b", "mpilgrim", "z", "example"] (1) it i get this errore: "TypeError: 'list' object is not callable" i was wondering if their is any special module I should import before i use this function i know i as

Re: Newbie to python --- why should i learn !

2008-05-10 Thread Aahz
In article <[EMAIL PROTECTED]>, Gary Herron <[EMAIL PROTECTED]> wrote: > >With Python, you can program with a smile on your face. +1 QOTW >(Truly, when I found Python, programming became fun again.) "Again"? Looking back over the years, after I learned Python I realized that I never really

Re: Now what!?

2008-05-10 Thread Ivan Illarionov
On 10 май, 21:22, notbob <[EMAIL PROTECTED]> wrote: > On 2008-05-10, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > > > notbob schrieb: > >> script the same way ($ ./helloworld) and it works fine. Same shebang, same > >> dir, same permission, etc. > > > I'm pretty sure you misse the correct shebang

Re: Now what!?

2008-05-10 Thread notbob
On 2008-05-10, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > notbob schrieb: >> script the same way ($ ./helloworld) and it works fine. Same shebang, same >> dir, same permission, etc. > > I'm pretty sure you misse the correct shebang - Sorry. Both exactly the same. I checked 5 times. hello

Re: Simple question

2008-05-10 Thread Gandalf
Thanks guys I think you miss understood me. i have been mining to use python to create a none web application. And i found out that i can ran python scripts by calling them from CMD or just raning them from windows -- http://mail.python.org/mailman/listinfo/python-list

Orlando Florida Python Tutor Needed

2008-05-10 Thread vbgunz
I will pay anyone for a face-to-face tutoring in the Orlando Florida area. I will pay $20.00 per hour (minimum 2 hours needed). What I need are lessons in Decorators and Class methods. If I can walk away with at least 5 lessons taught in both subjects I will be happy to offer an additional $20.00.

Re: Now what!?

2008-05-10 Thread Matias Surdi
Diez B. Roggisch escribió: notbob schrieb: Grrr I'm following A Byte of Python and into the while loops chap. I cp/paste while.py to a file and give 777 perms. I mv while.py to while and run it (./while) as a standalone script. I get errors. Here is the script: while.py http://www.i

Re: People still using Tkinter?

2008-05-10 Thread Martin v. Löwis
> I am, but "still" isn't the word, I just started. Good, *complete* > docs seem to be hard to find, but using a combination of the free > resources and going back and forth between them seems to work all > right so far. IMO, the trick really is to also have a Tk documentation around. If you need

Re: The Importance of Terminology's Quality

2008-05-10 Thread Sherman Pendley
Lew <[EMAIL PROTECTED]> writes: > You guys are off topic. None of the million groups to which this > message was posted are about netiquette. Netiquette has come up at one point or another in pretty much every group I've ever read. It's pretty much a universal meta-topic. sherm-- -- My blog:

Re: Now what!?

2008-05-10 Thread Diez B. Roggisch
notbob schrieb: Grrr I'm following A Byte of Python and into the while loops chap. I cp/paste while.py to a file and give 777 perms. I mv while.py to while and run it (./while) as a standalone script. I get errors. Here is the script: while.py http://www.ibiblio.org/swaroopch/byteofpy

Now what!?

2008-05-10 Thread notbob
Grrr I'm following A Byte of Python and into the while loops chap. I cp/paste while.py to a file and give 777 perms. I mv while.py to while and run it (./while) as a standalone script. I get errors. Here is the script: while.py http://www.ibiblio.org/swaroopch/byteofpython/read/while-st

  1   2   >