Python in XCode - autoindent?

2005-09-19 Thread Jeffrey E. Forcier
Hoping at least some of you use XCode... In futzing with PyObjC and Cocoa programming on my Mac, I've come to know XCode a little better, and am considering switching to it from my existing editor (TextMate). However, it appears to lack your typical auto-indenting that I'm sure most of you also fi

Re: Printing w/o newlines inside loops - odd behavior

2005-09-13 Thread Jeffrey E. Forcier
Erik: Thanks, that was it! Figured it was something along those lines, but like I said, I didn't know specifically what was going on or what to look for. Larry: That recipe could be useful, thanks a lot :) And thanks for the quick replies, too, you guys are awesome. Regards, Jeff -- http://ma

Printing w/o newlines inside loops - odd behavior

2005-09-13 Thread Jeffrey E. Forcier
This is a difficult issue to search for, and Googling (and reviewing the pertinent Python docs) has not found me anything useful. It's also not a super important issue, but regardless of whether it's avoidable, I still want to know what the heck is going on. Doing multiple print statements inside

Re: Decorator and Metaclasses Documentation

2005-08-21 Thread Jeffrey E. Forcier
Sorry about that, I misread the original question. However, the python.org link is still valid as it concerns metaclasses as well as a handful of other topics. -- http://mail.python.org/mailman/listinfo/python-list

Re: Decorator and Metaclasses Documentation

2005-08-21 Thread Jeffrey E. Forcier
Amusingly, I was just perusing these links earlier today. Go go Firefox history search! http://www.python.org/2.2/descrintro.html http://users.rcn.com/python/download/Descriptor.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: epyDoc Questions

2005-08-11 Thread Jeffrey E. Forcier
Neil Benn wrote: >1. I want to document the attributes (instance and also class) of a > class and or module, I know the tags are there - where does they > go (before/after theclass decleration, top of the module, if > someone puts in the class doc but misses out the module stu

Re: Recommendations for CVS systems

2005-08-09 Thread Jeffrey E. Forcier
Thirding the Subversion/SVN suggestions. It's generally a newer, better CVS with some new features and a lot less of the negative features/lack thereof, of the older system. If any of your team has CVS experience they should have no real problem with the switch, and anyone without prior version co

Re: sqlobject vs mysqldb module

2005-08-09 Thread Jeffrey E. Forcier
Skip is correct, they're somewhat different: SQLObject is an 'ORM' or 'Object-Relational Mapping', meaning that it allows you to handle everything related to the database with objects. The table handles are objects, the result set is an object, the individual rows in a result set are objects with

Re: Time formatting and date suffixes

2005-07-25 Thread Jeffrey E. Forcier
See, I was thinking I'd have to write a short function to do it myself, but I hadn't realized it could be quite *that* short. Thanks! That'll do quite nicely, and is definitely something I'm going to throw in my "general utility functions" folder :) Regards, Jeff -- http://mail.python.org/mailma

Time formatting and date suffixes

2005-07-25 Thread Jeffrey E. Forcier
y frowned upon to use such a locale-specific function as English date suffixes? Thanks, Jeff -- Jeffrey E. Forcier Junior Developer, Research and Development Stroz Friedberg, LLC 15 Maiden Lane, 12th Floor New York, NY 10038 [main]212-981-6540 [direct]212-981-6546 http://www.strozllc.com This m

Re: "Aliasing" an object's __str__ to a different method

2005-07-24 Thread Jeffrey E. Forcier
ign to be, but primarily all at once. E.g. I'd have a Page or PageBody container class holding a bunch of (implementing the same interface) objects as discussed, and would want all of those sub-objects to be in the same mode. In other words...a page is either displaying text fields for ed

Re: "Aliasing" an object's __str__ to a different method

2005-07-23 Thread Jeffrey E. Forcier
n each object and then have the ability to point __str__ to one or the other. I suppose now I need to figure out which is more important, that ease-of-use of overriding __str__ or whatever benefits new-style classes give (something I'm still a bit unclear on). Thanks again, Jef

Re: "Aliasing" an object's __str__ to a different method

2005-07-22 Thread Jeffrey E. Forcier
, however, so who knows where I will end up =) Thanks for the response! If you or anyone else can shed some insight on *why* this is the way it is (and why/if the docs are in fact incorrect) I'd appreciate further replies. More knowledge == better. Regards, Jeff -- Jeffrey E. Forcier J

"Aliasing" an object's __str__ to a different method

2005-07-22 Thread Jeffrey E. Forcier
1 However, expressions such as self.__str__ = aren't working for me, as above. Why not? Thanks for any responses, Jeff -- Jeffrey E. Forcier Junior Developer, Research and Development Stroz Friedberg, LLC 15 Maiden Lane, 12th Floor New York, NY 10038 [main]212-981-6540 [direct]212-981-