Distinguishing attributes and methods

2007-12-07 Thread tjhnson
Hi, With properties, attributes and methods seem very similar. I was wondering what techniques people use to give clues to end users as to which 'things' are methods and which are attributes. With ipython, I use tab completion all the time, but I can rarely tell from the names alone whether it i

properties give variable docstrings

2007-12-12 Thread tjhnson
The topic of docstrings for variables has come up many times before. In fact, a PEP was proposed and rejected on this very topic. http://www.python.org/dev/peps/pep-0224/ When creating classes, I like using properties...and I like even more that these properties have docstrings. This allows one

Imports in Packages

2007-12-17 Thread tjhnson
While working within a package...what is the 'best practice' way to do your imports. a/__init__.py a/one.py a/two.py a/b/__init__.py a/b/cat.py a/b/dog.py a/c/cow.py Suppose I am working in a/c/cow.py and I need something from a/b/ dog.py. If a/b/__init__.py contains what I need from dog.py, shou

Max Long

2008-01-21 Thread tjhnson
How can I figure out the largest long available? I was hoping for something like sys.maxint, but I didn't see it. Also, can someone point me to where I can (concisely) read about size of such types (int, float, long). -- http://mail.python.org/mailman/listinfo/python-list

Re: Max Long

2008-01-21 Thread tjhnson
On Jan 21, 3:34 pm, Bjoern Schliessmann wrote: > [EMAIL PROTECTED] wrote: > > How can I figure out the largest long available? > > Why would you? AFAIK, longs are only limited by available memory. Indeed, as the docs pointed out. I guess I was confused by "If pylong is greater than ULONG_MAX, a