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).
-
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
[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
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
> 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
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
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
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.
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
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
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
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
> 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.
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
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
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
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
[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
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
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)
[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
[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
22 matches
Mail list logo