Re: [Pyobjc-dev] Re: FYI: Open Source Scripting Layer For Cocoa
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-06-10 20:51:11
|
Bob Ippolito wrote: > >>> Any other ideas for something that is much simpler in Python than > >>> in ObjC? > > > > XML-RPC and similar. > > > > XML processing is often easier in Python. > > > > File parsing/grepping/filtering. > > > > Image manipulation via something like PIL. > > > > Subprocess/task control -- someone ought to wrap pexpect into a > > Cocoa/Python app that would produce droplets or something. > > Networking code. > > Numerical code (Numpy). > > Anything that uses lists (list comprehensions, slices, etc). Regular expressions. Big ints (Python long ints). Handling email (the email package, poplib, smtplib, etc.). AppleEvents (Jack's aetools and the gensuite stuff). Unit testing (unittest). Indeed lists, but also dicts; both are just infinitely more convenient to work with in Python. And recently I noticed what an incredible boon it is that PyObjC automatically converts Python numbers to and from C ints *or* NSNumber objects as needed. ObjC code that uses NSNumbers becomes a *lot* simpler when translated into Python: you simply don't see them. But I guess I'm getting too far from what Jack is after... Just |