No more Python support in NetBeans 7.0

2011-03-24 Thread Kees Bakker
Hi,

Sad news (for me, at least), in the upcoming version 7.0 of NetBeans
there will be no Python plugin anymore.

I have been using NetBeans for Python development for a while now
and I was very happy with it.

See this archive for details:
http://netbeans.org/projects/www/lists/nbpython-dev/archive/2010-11/message/0
http://netbeans.org/projects/www/lists/nbpython-dev/archive/2011-01/message/0
-- 
Kees

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python newbie: some surprises

2008-05-15 Thread Kees Bakker
Gabriel Genellina wrote:

> 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 the combination of tabs and
>>> > spaces. Even lines looked intended, but it is not.
>>>
>>> Then you have a problem with your code editor - not with Python.
>>>
>>
>> Editors can not be wrong. :)
>>
>> I think there should be some way to say python compiler, to consider
>> tab and two blank spaces equal, when tab space = 2.
> 
> It already considers tab = 8 spaces, and when invoked with -tt it rejects 
> mixed tabs+spaces. (I would like Python rejected *any* tab used for 
> indenting...)
> There is a tool 'reindent.py' -somewhere on your Python install-, and an 
> indentation checker 'tabnanny.py' (this one in the standard library).
> 

That's one of the reasons why I like Python :-)

Still too many people don't know that you must set a TAB to 8 in
your editor. Anything other than 8 for a TAB will, at some point,
confuse somebody.

Don't confuse indentation with TAB setting.

Many editors are not helpfull either. Pydev, for example, has a setting
for TAB, but it is used for indentation. It is just luck (I think) that
pydev has an option to say that you only want spaces. (Take a look at
the main preferences of Pydev.)

So far, I have seen only one editor that understands the difference between
TABs and indentation, and that is Emacs.
-- 
Kees

--
http://mail.python.org/mailman/listinfo/python-list


Re: problem parsing lines in a file

2007-12-12 Thread Kees Bakker
barronmo wrote:

> I'm having difficulty getting the following code to work.  All I want
> to do is remove the '0:00:00' from the end of each line.  Here is part
> of the original file:
> 
> 3,3,"Dyspepsia NOS",9/12/2003 0:00:00
>...
> 20,3,"Bubonic plague",11/11/2003 0:00:00
> 
> output = open('my/path/ProblemListFixed.txt', 'w')
> for line in open('my/path/ProblemList.txt', 'r'):
>  newline = line.rstrip('0:00:00')
>  output.write(newline)
> output.close()
> 
> 
> This result is a copy of "ProblemList" without any changes made.  What
> am I doing wrong?  Thanks for any help.

You should feel lucky that it didn't work :-) If you would have used
newline = line.rstrip('0:00:00\n')
you would not have found the problem, nor the solution.
--
Kees

-- 
http://mail.python.org/mailman/listinfo/python-list