Re: "definitive" source on advanced python?

2006-04-09 Thread shalabh . chaturvedi
You might find http://www.cafepy.com/article/python_types_and_objects/ and http://www.cafepy.com/article/python_attributes_and_methods/ useful. These articles assume you know Python, and describe some of the mechanisms behind Python new-style objects - including descriptors (but not decorators). -

Re: Why property works only for objects?

2006-03-11 Thread Shalabh Chaturvedi
Michal Kwiatkowski wrote: > Alex Martelli napisaƂ(a): > obj.__dict__ >> {} >> >> ...the presence of '__dict__' as an entry in C is confusing the issue, >> because that's what you get in this case as obj.__dict__. > > It still bugs me. What's the actual procedure when doing attribute > assignme

Re: fairly large webapp: from Java to Python. experiences?

2006-02-04 Thread Shalabh Chaturvedi
[EMAIL PROTECTED] wrote: > I've got a fairly substantial webapp written in Java (plus Tomcat, > Hibernate, Struts, JSP, MySQL) that is a bit of a bear to work with. I > didn't write it. Much of it is only very sparsely documented (if at > all). No design docs anywhere. It's a large webapp with many

Re: beta.python.org content

2006-01-27 Thread Shalabh Chaturvedi
Magnus Lycka wrote: > > Perhaps the "About Section" should look like this? > > Introduction > -What is Python [short summary] > -Getting started[a.k.a. for beginners/programmers, how to d/l etc] > -Why Python?[a.k.a. for business] > -Success Stories > -Quotes +1 > I don't quite

Re: beta.python.org content

2006-01-27 Thread Shalabh Chaturvedi
> Shalabh Chaturvedi wrote: >> 2. "also available as the python-list mailing list" >> >> Add "or a google group (link)". >> Steve Holden wrote: > Gimme the link! http://groups.google.com/group/comp.lang.python You could even use the text: al

Re: beta.python.org content

2006-01-26 Thread Shalabh Chaturvedi
Steve Holden wrote: > How does > >http://beta.python.org/about/beginners/ > > look? > Steve, This is a great writeup. Here are my comments: 1. "Fortunately Python is something that an experienced programmer of another language (be it ..." Add C# and/or Java to this list. The current li

Re: New Python.org website ?

2006-01-22 Thread Shalabh Chaturvedi
Fredrik Lundh wrote: If I see this correctly, Fredrik would volonteer to (help) implement something that imports the current python.org content into a Wiki. >>> Exactly. >> I don't really have time for this tonight, and I've spent more time copying >> and pasting stuff than working on the

Re: New Python.org website ?

2006-01-18 Thread Shalabh Chaturvedi
JW wrote: > Tim the Taller (I presume he's taller; he's Dutch) and the other critics > fail to realize is that no one reads "content". I disagree completely. I wouldn't touch a new language or technology without first reading content. Neither would my boss, or any other manager for that matter.

Re: New Python.org website ?

2006-01-18 Thread Shalabh Chaturvedi
Tim Parkin wrote: > Tim N. van der Leeuw wrote: >> Perhaps I should have withheld my criticisms until I could offer an >> alternative. (Still thinking about what could be there instead of those >> 3 pictures. But I'd like there to be some actual real Python content, >> or links to events from the P

Re: New Python.org website ?

2006-01-18 Thread Shalabh Chaturvedi
Tim Parkin wrote: > Well apart from the front page and a couple of pages providing content > specific to different types of usersm the whole site is the same as it > was before. Do you have a problem with marketing python or with the > content of the python site? Could you expand on why you think

Re: New Python.org website ?

2006-01-18 Thread Shalabh Chaturvedi
Steve Holden wrote: > http://beta.python.org Hm. Am I the only one not particularly impressed? Sure the front page is 'slick' but a few clicks reveal a fairly shallow facade of marketing material, with no real content. In general gives the impression of 'phony' company trying to make a big impr

Re: Is 'everything' a refrence or isn't it?

2006-01-04 Thread Shalabh Chaturvedi
KraftDiner wrote: > I was under the assumption that everything in python was a refrence... For a good writeup on the 'name-binding' behavior others are talking about: http://starship.python.net/crew/mwh/hacks/objectthink.html Cheers, Shalabh -- http://mail.python.org/mailman/listinfo/python-li

Re: Wingide is a beautiful application

2005-12-17 Thread Shalabh Chaturvedi
> James wrote: >> 2.) Auto List members implementation is great. But what about call >> tips? Just as important and every other Python IDE has it. Jonathan Ellis wrote: > Wing shows calltip info in the Source Assistant panel. (Pro version > only, IIRC.) However it's not as useful as call tips.

Re: Understanding Python Documentation

2005-11-24 Thread Shalabh Chaturvedi
Josh Cronemeyer wrote: > Hi, > > I have very little experience programming in python but considerable > experience with java. One thing that is frustrating me is the differences in > the documentation style. Javadocs, at the top level are just a list of > packages. Drilling down on a package

Re: Web application toolkit recommendation?

2005-04-04 Thread Shalabh Chaturvedi
Stewart Midwinter wrote: hi all: I'm a python user in my day job. Now I want to take on a personal pet project which will involve the creation of a website on my home server. I'll want to keep track of users through user accounts and logins, allow them to upload information to a database (maybe my

Re: Performance issue

2005-04-02 Thread Shalabh Chaturvedi
Tom Carrick wrote: Hi, In my attempted learning of python, I've decided to recode an old anagram solving program I made in C++. The C++ version runs in less than a second, while the python takes 30 seconds. I'm not willing to think it's just python being slow, so I was hoping someone could find a f

Re: Performance issue

2005-04-02 Thread Shalabh Chaturvedi
Tom Carrick wrote: Hi, In my attempted learning of python, I've decided to recode an old anagram solving program I made in C++. The C++ version runs in less than a second, while the python takes 30 seconds. I'm not willing to think it's just python being slow, so I was hoping someone could find a f

Re: Overloaded Constructors?!?

2005-03-20 Thread Shalabh Chaturvedi
[EMAIL PROTECTED] wrote: Hello NG, I am trying to port a useful class from wxWidgets (C++) to a pure Python/wxPython implementation. In the C++ source code, a unique class is initialized with 2 different methods (???). This is what it seems to me. I have this declarations: The 2 different in

Re: Solutions for data storage?

2005-01-23 Thread Shalabh Chaturvedi
Leif K-Brooks wrote: I'm writing a relatively simple multi-user public Web application with Python. It's a rewrite of a similar application which used PHP+MySQL (not particularly clean code, either). My opinions on various Web frameworks tends to vary with the phase of the moon, but currently, I

Re: consequences of not calling object.__init__?

2004-12-28 Thread Shalabh Chaturvedi
Steven Bethard wrote: So when I'm writing a class and I define an __init__ method, I sometimes haven't called object.__init__, e.g.: class C(object): def __init__(self, x): self.x = x instead of class C(object): def __init__(self, x): super(C, self)

Re: built-in 'property'

2004-12-27 Thread Shalabh Chaturvedi
[EMAIL PROTECTED] wrote: Hi Can any one explain how property works. It seems to be fine if executed on import i.e. if the property statement is at class scope. Properties are meant to be used at the class scope. A property is a kind of descriptor. See http://users.rcn.com/python/download/Descr

Re: Metaclasses

2004-12-22 Thread Shalabh Chaturvedi
[EMAIL PROTECTED] wrote: I am trying to build a capability based API. That is, an instance of the api will reflect the capabilities of some underlying services. The question I'd ask at this point is - does the term 'instance of the API' correspond to a Python class, or an instance of the class th