Re: Python editor/IDE on Linux?

2007-04-14 Thread mystilleef
On Apr 13, 6:20 pm, "Jack" <[EMAIL PROTECTED]> wrote: > I wonder what everybody uses for Python editor/IDE on Linux? > I use PyScripter on Windows, which is very good. Not sure if > there's something handy like that on Linux. I need to do some > development work on Linux and the distro I am using i

[Announce] Scribes 0.3.1 Released

2007-03-17 Thread mystilleef
Scribes is python editor for *nix and GNOME that balances simplicity with power. This release features extensibility via Python plugins, auto-completion enhances, snippets improvement, automatic replacement and correction, a new minimalist interface, performance optimizations and more... release n

Re: Conditional iteration

2006-12-15 Thread mystilleef
This why I prefer functional programming constructs for my list/sequence processing needs. is_true = lambda x: x > 0 map(process_list, filter(is_true, [-2, -1, 0, 1, 2, 3, 4]))

Re: One module per class, bad idea?

2006-12-13 Thread mystilleef
Matias Jansson wrote: > I come from a background of Java and C# where it is common practise to have > one class per file in the file/project structure. As I have understood it, > it is more common practice to have many classes in a Python module/file. > What is the motivation behind it, would it be

Re: merits of Lisp vs Python

2006-12-12 Thread mystilleef
Paddy wrote: > Robert Uhl wrote: > > > Steven D'Aprano <[EMAIL PROTECTED]> writes: > > > > > > Speaking as somebody who programmed in FORTH for a while, that doesn't > > > impress me much. Prefix/postfix notation is, generally speaking, more > > > of a pain in the rear end than it is worth, even i

Re: merits of Lisp vs Python

2006-12-09 Thread mystilleef
Bill Atkins wrote: > Well, for example, "Lisp uses a fully-parenthesized notation for > writing programs" and "Python has significant whitespace" are both > objective facts. Agreed? There's nothing subjective about those two > facts. Do any of your points approach that level of objectivity? I b

Re: merits of Lisp vs Python

2006-12-09 Thread mystilleef
John Thingstad wrote: > You are just being silly. > Lisp's OO environment CLOS is vastly superior to Python classes. > Both in terms of expressive power and flexibility. > You might even find out if you ever learnt how to use it. > Donkeys have wings. > In the windows world the best way to access

Re: merits of Lisp vs Python

2006-12-09 Thread mystilleef
Bill Atkins wrote: > Are any of these not subjective? Objectivity is in the eye of the beholder. > Lisp is much more than a functional language. Maybe so. But I've only ever appreciated its functional aspects. I wouldn't choose Lisp or its derivatives for OO related tasks even if I'm high. > Uh

Re: merits of Lisp vs Python

2006-12-09 Thread mystilleef
Mark Tarver wrote: > How do you compare Python to Lisp? What specific advantages do you > think that one has over the other? > > Note I'm not a Python person and I have no axes to grind here. This is > just a question for my general education. > > Mark Advantages of Python: 1). More and better

ANNOUNCE: Scribes 0.3 Released

2006-11-04 Thread mystilleef
I am pleased to release version 0.3 of Scribes. Scribes is a text editor that uniquely balances simplicity with power. This release is a significant milestone in providing you with an enjoyable text editing experience. Bugs were squashed, new features implemented, countless enhancements made and nu

Re: Help me use my Dual Core CPU!

2006-09-18 Thread mystilleef
Paul Rubin wrote: > "mystilleef" <[EMAIL PROTECTED]> writes: > > I use D-Bus (Python). I recommend it. I don't know how cross platform > > it is. However, it supports message passing of most built-in (strings, > > ints, lists, dictionaries etc) Python obj

Re: Help me use my Dual Core CPU!

2006-09-18 Thread mystilleef
Paul Rubin wrote: > "mystilleef" <[EMAIL PROTECTED]> writes: > > I use D-Bus (Python). I recommend it. I don't know how cross platform > > it is. However, it supports message passing of most built-in (strings, > > ints, lists, dictionaries etc) Python obj

Re: Help me use my Dual Core CPU!

2006-09-14 Thread mystilleef
I use D-Bus (Python). I recommend it. I don't know how cross platform it is. However, it supports message passing of most built-in (strings, ints, lists, dictionaries etc) Python objects accross processes. You can mimick clean Erlang-like concurrency with it. It is the future of IPC on Desktop Unix

Re: Looking for the Perfect Editor

2006-09-11 Thread mystilleef
If you have those requirements installed, it does not need anything else. mystilleef wrote: > I recommend Scribes. > > http://scribes.sf.net > > Flash Demo: http://scribes.sf.net/snippets.htm > > GIF Demo: http://www.minds.may.ie/~dez/images/blog/scribes.html > > O

Re: Looking for the Perfect Editor

2006-09-09 Thread mystilleef
I recommend Scribes. http://scribes.sf.net Flash Demo: http://scribes.sf.net/snippets.htm GIF Demo: http://www.minds.may.ie/~dez/images/blog/scribes.html Omar wrote: > I'd love the perfect editor that would be: > > a) free > > b) enable me to drag and drop code snippets from a sort of browser i

Re: threading support in python

2006-09-06 Thread mystilleef
You can use multiple processes to simulate threads via an IPC mechanism. I use D-Bus to achieve this. http://www.freedesktop.org/wiki/Software/dbus km wrote: > Hi all, > Are there any alternate ways of attaining true threading in python ? > if GIL doesnt go then does it mean that python is usele

Re: Best Editor

2006-08-25 Thread mystilleef
I recommend Scribes on Linux. It's simple, fast and powerful. Website: http://scribes.sf.net/ Flash Demo: http://scribes.sf.net/snippets.htm GIF Demo: http://www.minds.may.ie/~dez/images/blog/scribes.html JAG CHAN wrote: > Friends, I am trying to learn Python. > It will be of great help to me if

Re: text editor suggestion?

2006-08-19 Thread mystilleef
http://scribes.sourceforge.net/ Flash Demo: http://scribes.sourceforge.net/snippets.htm GIF Demo: http://www.minds.may.ie/~dez/images/blog/scribes.html Scribes is simple, slim, sleek and fast. It has no learning curve and conveys a no nonsense approach to text editing. You won't need to edit con

Re: Accessors in Python (getters and setters)

2006-07-20 Thread mystilleef
Bruno Desthuilliers wrote: > mystilleef wrote: > > Bruno Desthuilliers wrote: > > >>>>>>point 2 : so anyone *can* "illegimately tampering with an object's > >>>>>>internal data" at will. > >>>>>> > &g

Re: Accessors in Python (getters and setters)

2006-07-20 Thread mystilleef
Bruno Desthuilliers wrote: > mystilleef wrote: > > Bruno Desthuilliers wrote: > > > (snip) > >>>>>You use accessors when you need to control access to a data attribute. > >>>> > >>>>Indeed. And when you don't need too ? (the s

Re: Accessors in Python (getters and setters)

2006-07-20 Thread mystilleef
Bruno Desthuilliers wrote: > mystilleef wrote: > > Bruno Desthuilliers wrote: > > > >>mystilleef wrote: > >> > >>>Bruno Desthuilliers wrote: > >>> > >>> > >>>>mystilleef wrote: > >>

Re: Accessors in Python (getters and setters)

2006-07-20 Thread mystilleef
Steve Holden wrote: > mystilleef wrote: > [...] > > > > I don't know it's your code not mine. > > > > class Robust(object): > > > > def __init__(self): > > # Arbitrarily changing this state to False will crash app or

Re: Accessors in Python (getters and setters)

2006-07-19 Thread mystilleef
Steve Holden wrote: > mystilleef wrote, making me somewhat tired of his/her repeated inability > to get what's being said [sigh]: > > Bruno Desthuilliers wrote: > >>mystilleef wrote: > >>>Bruno Desthuilliers wrote: > >>>>mystilleef wrote: >

Re: Accessors in Python (getters and setters)

2006-07-19 Thread mystilleef
Bruno Desthuilliers wrote: > mystilleef wrote: > > Bruno Desthuilliers wrote: > > > >>mystilleef wrote: > (snip) > >>>>> > >>>>>Of course using setters for the sake of just using them is pointless. > >>>> > >&

Re: Accessors in Python (getters and setters)

2006-07-18 Thread mystilleef
Bruno Desthuilliers wrote: > mystilleef wrote: > > Bruno Desthuilliers wrote: > > > >>mystilleef wrote: > >>Please don't top-post > >> > >>>On State and Behavior: > >>> > >>>To understand objects in terms of

Re: Accessors in Python (getters and setters)

2006-07-18 Thread mystilleef
Bruno Desthuilliers wrote: > mystilleef wrote: > > Bruno Desthuilliers wrote: > > > >>mystilleef wrote: > >> > >>>Gerhard Fiedler wrote: > >>> > >>> > >>>>On 2006-07-15 06:55:14, mystilleef wrote: > >>

Re: Accessors in Python (getters and setters)

2006-07-18 Thread mystilleef
Bruno Desthuilliers wrote: > mystilleef wrote: > > Gerhard Fiedler wrote: > > > >>On 2006-07-15 06:55:14, mystilleef wrote: > >> > >> > >>>In very well designed systems, the state of an object should only be > >>>changed by the

Re: Accessors in Python (getters and setters)

2006-07-18 Thread mystilleef
Bruno Desthuilliers wrote: > mystilleef wrote: > Please don't top-post > > On State and Behavior: > > > > To understand objects in terms of state and behavior you need to > > absolve yourself from implementation details of languages > > and think at a

Re: Accessors in Python (getters and setters)

2006-07-15 Thread mystilleef
Gerhard Fiedler wrote: > On 2006-07-15 06:55:14, mystilleef wrote: > > > In very well designed systems, the state of an object should only be > > changed by the object. > > IMO that's not quite true. Ultimately, the state always gets changed by > something else (u

Re: Accessors in Python (getters and setters)

2006-07-15 Thread mystilleef
ng with Python. I wanted a language that didn't bore me with it semantics and allowed me to focus on design. Let me reiterate, I'm not obsessing over language semantics, I just need practical, not religious, solutions for my problem domain. Bruno Desthuilliers wrote: > mystilleef w

Re: Accessors in Python (getters and setters)

2006-07-13 Thread mystilleef
Bruno Desthuilliers wrote: > mystilleef wrote: > > Bruno Desthuilliers wrote: > > > >>mystilleef wrote: > >> > (snip) > >>>> > >>>>>I have used that name in > >>>>>dozens of places spanning over 27000 LOC. >

Re: Accessors in Python (getters and setters)

2006-07-13 Thread mystilleef
Ant wrote: > We seem to be flogging a dead horse now. Is the following a fair > summary: > > Q. What is the Pythonic way of implementing getters and setters? > > A. Use attributes. > > Quote: "I put a lot more effort into choosing method and function > names" > > Wisdom: Python is a different para

Re: Accessors in Python (getters and setters)

2006-07-13 Thread mystilleef
Bruno Desthuilliers wrote: > mystilleef wrote: > > Bruno Desthuilliers wrote: > > > >>mystilleef wrote: > >>(snip) > >> > >>>Python doesn't have any philosophy with regards to naming identifiers. > >> > >>Yes it does. &g

Re: Accessors in Python (getters and setters)

2006-07-13 Thread mystilleef
Bruno Desthuilliers wrote: > mystilleef wrote: > > Bruno Desthuilliers wrote: > > > >>mystilleef wrote: > >> > >>>Lousy Attribute Name: > >>> self.tmp > >>> > >>>Accessors: > >>> set_tem

Re: Accessors in Python (getters and setters)

2006-07-13 Thread mystilleef
Fredrik Lundh wrote: > "mystilleef" wrote: > > > Pretending to be intelligent does, however. > > so the real reason you've written a few hundred posts saying basically "I pick > bad names, which proves... uh... whatever" is to impress peo

Re: Accessors in Python (getters and setters)

2006-07-13 Thread mystilleef
Fredrik Lundh wrote: > "mystilleef" wrote: > > >> if your code is as muddled as your rhetorics, your only solution might be > >> to give up programming. > > > > There's no correlation between rhetorics and programming. That's like > >

Re: Accessors in Python (getters and setters)

2006-07-13 Thread mystilleef
Bruno Desthuilliers wrote: > mystilleef wrote: > > Marc 'BlackJack' Rintsch wrote: > > > >>In <[EMAIL PROTECTED]>, mystilleef > >>wrote: > >> > >> > >>>Maric Michaud wrote: > (snip) > > >>>>

Re: Accessors in Python (getters and setters)

2006-07-13 Thread mystilleef
Fredrik Lundh wrote: > "mystilleef" wrote: > > > Right, and what if I want to change a private API to a public one. How > > does that solve my naming issues. > > if your code is as muddled as your rhetorics, your only solution might be > to give up programming

Re: Accessors in Python (getters and setters)

2006-07-13 Thread mystilleef
Bruno Desthuilliers wrote: > mystilleef wrote: > (snip) > > Python doesn't have any philosophy with regards to naming identifiers. > > Yes it does. No it doesn't. > > > >>But they are in Python and that is the python's philosophy. All attribute

Re: Accessors in Python (getters and setters)

2006-07-13 Thread mystilleef
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, mystilleef > wrote: > > > Maric Michaud wrote: > >> But that's not python philosophy. > > Python doesn't have any philosophy with regards to naming identifiers. > > But the pyth

Re: Accessors in Python (getters and setters)

2006-07-13 Thread mystilleef
Bruno Desthuilliers wrote: > mystilleef wrote: > > Lousy Attribute Name: > > self.tmp > > > > Accessors: > > set_temporary_buffer > > get_temporary_buffer > > > > The attribute name I chose, "tmp" sucks. > > Well, it&

Re: Accessors in Python (getters and setters)

2006-07-13 Thread mystilleef
Maric Michaud wrote: > Not python developers. Nonsense! > But that's not python philosophy. Python doesn't have any philosophy with regards to naming identifiers. > But they are in Python and that is the python's philosophy. All attribute or > method not beginning with an '_' *is* API. Right, and

Re: Accessors in Python (getters and setters)

2006-07-12 Thread mystilleef
r intended purpose. I don't hold data attributes to such standards and I imagine many developers don't either and least based on other people's code I've read. Plus there are many occassions when attributes are not intended to be APIs, but eventually become one. After all most

Re: Accessors in Python (getters and setters)

2006-07-11 Thread mystilleef
Hello, Thanks for the responses. The reason I want to change the name of the attribute is because it doesn't reflect the purpose of the attribute, anymore. The attribute was originally a string object, but not anymore. It is primarily a readability issue. There are also a few key attributes I don'

Re: Accessors in Python (getters and setters)

2006-07-10 Thread mystilleef
e files to achieve my goal. I could simply change the name of the attribute and move on. Well, I'm glad python has properties. It's a feature that should be advertised more, especially for large scale python development. Diez B. Roggisch wrote: > mystilleef wrote: > > > Hello, >

Accessors in Python (getters and setters)

2006-07-10 Thread mystilleef
Hello, What is the Pythonic way of implementing getters and setters. I've heard people say the use of accessors is not Pythonic. But why? And what is the alternative? I refrain from using them because they smell "Javaish." But now my code base is expanding and I'm beginning to appreciate the wisdo

Re: a good programming text editor (not IDE)

2006-06-16 Thread mystilleef
On linux, I recommend Scribes. It's simple, slim and sleek, yet powerful. Features: Automatic completion Automatic bracket completion and smart insertion Snippets (ala TextMate) Bookmarks Syntax highlight for more than 30 languages Launches faster than any IDE out their Has no learning curve. Fea

Re: what are you using python language for?

2006-06-07 Thread mystilleef
Desktop application development -- http://mail.python.org/mailman/listinfo/python-list

Re: Best Python Editor

2006-06-01 Thread mystilleef
http://scribes.sourceforge.net/ http://scribes.sourceforge.net/snippets.htm (Flash Demo) Manoj Kumar P wrote: > Hi, > > Can anyone tell me a good python editor/IDE? > It would be great if you can provide the download link also. > > Thank You, > -Manoj- > > > "SASKEN RATED Among THE Top 3 BEST COM

Re: Tabs versus Spaces in Source Code

2006-05-15 Thread mystilleef
I agree, use tabs. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python editor recommendation.

2006-05-10 Thread mystilleef
The powerful no-nonsense, no-frills, no-hassle, no-fuzz editor, Scribes. Supports everything you'd want in an editor, it's nimble, fast and agile, and it has virtually no learning curve. http://scribes.sourceforge.net/ http://scribes.sourceforge.net/snippets.htm (Flash Demo) http://www.minds.nui

Re: Designing Plug-in Systems in Python

2006-05-08 Thread mystilleef
Thanks for the pointers. -- http://mail.python.org/mailman/listinfo/python-list

Re: Best IDE for Python?

2006-05-06 Thread mystilleef
What OS? IDEs are overkill, bloated, complex and slow for agile languages like Python. You need an editor that is nimble, fast, simple, powerful and doesn't get in your way. For linux, I suggest Scribes. http://scribes.sf.net http://scribes.sf.net/snippets.htm (Flash Demo) http://www.minds.nuim.

Designing Plug-in Systems in Python

2006-05-05 Thread mystilleef
Hello, I need to design a plug-in system for a project. The goal is to allow third party developers interact with an application via plug-ins in a clean and robust manner. At this point I am overwhelmed by my inexperience with designing plug-in systems. Are there any good tutorials on how to desi

Re: list.clear() missing?!?

2006-04-13 Thread Mystilleef
I agree. Lists should have a clear method. But what's shocking is that it doesn't seem obvious to others. list.clear() is a whole lot more readable, intuitive, "flowable" and desirable than del list. Or maybe I haven't had enough coffee this morning. I'd go as far as saying all container objects sh

Re: Best IDE for Python?

2006-04-01 Thread Mystilleef
Good luck finding the best Python IDE. :-) While you are at it, have a look at Scribes. It's great for Python editing and it's even written in Python. If you appreciate KISS, I'm positive you'd appreciate Scribes. And if you yearn for an editor that doesn't get in your way, or that allows you to f

Re: What's The Best Editor for python

2006-03-25 Thread Mystilleef
Scribes http://scribes.sf.net/ Flash Demo: http://scribes.sf.net/snippets.htm GIF Demo: http://www.minds.may.ie/~dez/images/blog/scribes.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Why I chose Python over Ruby

2006-03-06 Thread Mystilleef
Simple, clarity! Ruby reads like Perl's younger cousin. -- http://mail.python.org/mailman/listinfo/python-list

Re: how do you move to a new line in your text editor?

2006-03-03 Thread Mystilleef
On Linux you can try out Scribes. It has a function to convert tabs to spaces. Personally, I use tabs in all my projects. http://scribes.sf.net/snippets.htm http://scribes.sf.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: editor for Python on Linux

2006-02-20 Thread Mystilleef
I'm writing a simple yet powerful text editor for GNOME that is great for Python development called Scribes. It features Snippets (ala Textmate/Eclipse) Automatic word completion Automatic indentation Automatic bracket completion Automatic saving Bookmarks Syntax Highlight etc.. Flash Movie: http

Re: Overlapping Regular Expression Matches With findall()

2005-12-15 Thread Mystilleef
Hello, Thanks for your response. I was going by the definition in the manual. I believe a search only returns the first match of a regular expression pattern in a string and then stops further searches if one is found. That's not what I want. I want a pattern that scans the entire string but avoi

Overlapping Regular Expression Matches With findall()

2005-12-15 Thread Mystilleef
Hello, Is there a simple flag to set to allow overlapping matches for the findall() regular expression method? In other words, if a string contains five occurrences of the string pattern "cat", calling findall on the string returns a list containing five "cat" strings. Is it possible for findall()

Re: Let My Terminal Go

2005-10-11 Thread Mystilleef
Hello, Thanks to all the responders and helpers on the group. I'm learning everyday. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Let My Terminal Go

2005-10-11 Thread Mystilleef
Hello, Thank you. That's all I needed. For some reason, I had always assumed forking was an expensive process. I guess I was ill-informed. -- http://mail.python.org/mailman/listinfo/python-list