I'm using Windows XP, using IDLE (which was mentioned already)
in the context of editing/displaying code, not executing it. Does the
problem occur before or after you edit a file with IDLE?
Actually, neither. I'm not editing the code. I open it in IDLE in 2.5
and attempt to run it through the
On Jan 5, 3:56 am, [EMAIL PROTECTED] wrote:
Hi,
When Python 2.5 first came out, I eagerly downloaded it and
immediately had issues with getting it to run my 2.4 code. So I just
stuck to 2.4. However, I decided this week that I really should try to
get 2.5 to work. Does anyone know why code
On Jan 4, 2:06 pm, John Machin [EMAIL PROTECTED] wrote:
On Jan 5, 3:56 am, [EMAIL PROTECTED] wrote:
Hi,
When Python 2.5 first came out, I eagerly downloaded it and
immediately had issues with getting it to run my 2.4 code. So I just
stuck to 2.4. However, I decided this week that I
On Jan 5, 8:05 am, [EMAIL PROTECTED] wrote:
On Jan 4, 2:06 pm, John Machin [EMAIL PROTECTED] wrote:
On Jan 5, 3:56 am, [EMAIL PROTECTED] wrote:
Hi,
When Python 2.5 first came out, I eagerly downloaded it and
immediately had issues with getting it to run my 2.4 code. So I just
Hi Anna !
Please post your code, so we can take a look to see what is happening.
See ya !
Em Quarta 08 Junho 2005 23:36, Anna M. escreveu:
Hello, i am very new to this. Only heard of python a week ago and have
never posted before anywhere. But I am trying to rewrite a program that I
made
Thank you so much
and so it goes . . .
from random import randint
def idxLargest(list, n):
idxMx = 0
for i in range(1, n, 1):
if list[i] list[idxMx]:
idxMx = i
return idxMx
def radixSort(data):
sorting = [data]
tmp = []
for i in range(10):
Hi Anna !
idx = idxLargest(data, len(data)
In this line we have a missing ), for me, this was the problem.
Anyway,
Check this line too:
passes = len(max) + 1
It is giving me an error.
See ya !
--
Douglas Soares de Andrade
http://douglasandrade.cjb.net - dsa at unilestemg.br
On Mon, 20 Dec 2004 13:00:39 -0600, John Roth
[EMAIL PROTECTED] wrote:
Tabnanny is intended to check whether indentation
has mixed tabs and spaces. Files with mixed tabs
and spaces _can_ compile just fine if the editor
that produced them agrees with the compiler about
the number of spaces that a
Franz Steinhaeusler wrote:
Thanks for your explanation.
I tried an found:
def a():
-print
-.print
where point is a space.
tabnanny here complains and python compile it just fine.
really? that's a syntax error (you cannot change indentation nillywilly
inside a block), and the Python
On Tue, 21 Dec 2004 10:24:40 +0100, Fredrik Lundh
[EMAIL PROTECTED] wrote:
Franz Steinhaeusler wrote:
Thanks for your explanation.
I tried an found:
def a():
-print
-.print
where point is a space.
tabnanny here complains and python compile it just fine.
really? that's a syntax error
Franz Steinhaeusler wrote:
On Tue, 21 Dec 2004 10:24:40 +0100, Fredrik Lundh
[EMAIL PROTECTED] wrote:
Franz Steinhaeusler wrote:
Thanks for your explanation.
I tried an found:
def a():
-print
-.print
where point is a space.
tabnanny here complains and python compile it just fine.
really? that's
On Tue, 21 Dec 2004 08:36:31 -0500, Steve Holden [EMAIL PROTECTED]
wrote:
Franz Steinhaeusler wrote:
[...]
Oh sorry, I meant
def a():
-print
..-print
C:\Python23\Libtabnanny.py -v c:\franz.py
'c:\\franz.py': *** Line 3: trouble in tab city! ***
offending line: ' \tprint\n'
indent not
Franz Steinhaeusler wrote:
On Tue, 21 Dec 2004 08:36:31 -0500, Steve Holden [EMAIL PROTECTED]
wrote:
Franz Steinhaeusler wrote:
[...]
Oh sorry, I meant
def a():
-print
..-print
C:\Python23\Libtabnanny.py -v c:\franz.py
'c:\\franz.py': *** Line 3: trouble in tab city! ***
offending line: '
On Tue, 21 Dec 2004 09:34:47 -0500, Steve Holden [EMAIL PROTECTED]
wrote:
Hello Steve,
I've used drpython, and liked it.
thank you, I'm sure, our project Admin will be pleased to hear this :)
I think it would be a good way for
people to start to use the language,
yes, this project is
Steve Holden [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Do you think tabnanny is a useful piece of code now? I used it a lot when
I first started using Python, and still run it over code from unknown
sources (no pun intended) from time to time.
I think it's a lot less useful
John Roth wrote:
[...]
I know what I would like to see in an editor:
First, it autodetects whether the module uses
tabs consistently, spaces consistently or a
mixture. If it uses tabs consistently, it then
uses the current default.
If it uses spaces consistently, it should also
autodetect the
On Tue, 21 Dec 2004 09:06:12 -0600, John Roth
[EMAIL PROTECTED] wrote:
Steve Holden [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Do you think tabnanny is a useful piece of code now? I used it a lot when
I first started using Python, and still run it over code from unknown
I'm told Tabnanny was inspired by lint, the Unix utiltity to check C sources
(and probably others). Lint was primarily useful in days long ago when CPUs
were slow and a compile used a significant amount of resources. In a
multiuser environment (we ran an Intel 286 in multiuser mode!!), the
Yet Another Mike [EMAIL PROTECTED] writes:
I'm told Tabnanny was inspired by lint, the Unix utiltity to check C sources
(and probably others). Lint was primarily useful in days long ago when CPUs
were slow and a compile used a significant amount of resources. In a
multiuser environment
Franz Steinhaeusler [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi, I looked at tabnanny to check
a python source file.
But I didn't find anything, tabnanny
is able to find, what couldn't be found
by compile command.
Or have I missed something?
Tabnanny is intended to check whether
20 matches
Mail list logo