[Tutor] turbo gears
I was curious as to what the you pythonistas thought about Turbo Gears. I've been moving through a pretty good book on the subject. But, I thought I would get some opinions before really committing a lot of time to learning their workflow. I am writing web apps, which is what drew me to this book http://acmsel.safaribooksonline.com/0131583999 . At first, I'm feeling completely naked without PHP, MySQL, and Apache. I guess I'm looking for reassurance that I'm doing the right thing.. ie. applying my time wisely and not stepping on my own toe, figuratively speaking. Thanks! Sean ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Grabbing data from changing website
I've recently been writing a web app with libxml2dom ( http://www.boddie.org.uk/python/libxml2dom.html ). I had a look at BeautifulSoup and found the two very similar. I ended up sticking with libxml2dom because of a quote from its website.. "Performance is fairly respectable since libxml2dom makes direct use of libxml2mod - the low-level wrapping of libxml2 for Python.". I figured the app might parse through a little faster. I guess the only way to tell is to benchmark the two against eachother. Does anyone have input on defining differences? Reasons to use one over the other? Opinions welcome. On Jun 5, 2008, at 3:03 PM, Tony Cappellini wrote: -- Message: 4 Date: Wed, 4 Jun 2008 10:00:46 -0400 From: James <[EMAIL PROTECTED]> Subject: [Tutor] Grabbing data from changing website To: tutor@python.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1 >>urllib2 will grab the HTML. BeautifulSoup will parse it and allow >>fairly easy access. My writeup on each: I'll second Kent's vote for BeautifulSoup. I had never done any web programming, but using BS I quickly wrote a small program that downloads an image from a site. The image changes daily, and the filename & directory are obviously unique. BS made it very easy. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] IDE
I'm looking for the perfect IDE, preferably open source. I've installed Bluefish, which I find to be a little buggy still. I'm just starting to dive into emacs, which I feel is a little daunting. If someone has tried a few different IDEs and found the one that they love.. I'd be interested in your insight! Thank you! Sean ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDE
Wow.. thanks everyone!! I am on a mac,, currently. But, I often bounce from one computer to the next.. often Linux. So, I like the VIM option as it comes pre installed on either OS. One thing that I like about EMACS, however, is the ability to run the current buffer interactively to a python command line. Is there a way to set this up in VIM? Why not just use EMACS? I'm already pretty familiar with VIM (shocking, I know). But, as is,, I wouldn't consider it an IDE. It's more of a really really nice text editor. I hope I don't get flamed for that last one. Does anyone know of a documented useful workflow using VIM and it's other UNIX compatriots that feels more like an IDE? Links would be very appreciated!!! Any video links/tutorials.. I will make you a delicious sandwich. Sean On Jun 10, 2008, at 11:39 AM, Hansen, Mike wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael yaV Sent: Tuesday, June 10, 2008 8:45 AM To: Alan Gauld Cc: tutor@python.org Subject: Re: [Tutor] IDE How about for the Mac platform? Textmate(not open source) but most who program on the mac love it. TextWrangler(not open source, but free) Open source --- VIM Emacs(Aquamacs) Eclipse Probably not considered IDEs Smultron SubEthaEdit Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDE
Sweet Jesus!! Thank you! Thus far,, I know only the basic VIM functionality ie. navigating the document.. search/replace, etc. Still need to learn regular expressions also. This filter stuff rocks.. thanks! Sean On Jun 10, 2008, at 1:21 PM, Alan Gauld wrote: "Sean Novak" <[EMAIL PROTECTED]> wrote like about EMACS, however, is the ability to run the current buffer interactively to a python command line. Is there a way to set this up in VIM? Yes, it's a standard vi (not even vim) feature. The command is something like: :!(motion) python Where (motion) is any vi navigation/selection set (including vims visual mode) Thus for the full buffer: :1,$! python Follow with a u to undo the change!!! Do help ! for lots more options with VIM (shocking, I know). But, as is,, I wouldn't consider it an IDE. It's more of a really really nice text editor. I hope I don't get flamed for that last one. Does anyone know of a documented useful workflow using VIM and it's other UNIX compatriots that feels more like an IDE? Just standard unix tools like grep, tags, and the filter trick above. HTH, Alan G ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] for loop
I know I'm going to feel stupid on this one.. I would normally write this in PHP like this: for($i=1; i< count($someArray); $i++) { print $someArray[i] } essentially,, I want to loop through an array skipping "someArray[0]" but in python the for syntax is more like foreach in PHP.. I've tried this to no avail count = 0 for i in range(1,10): if count == 0: continue else: count += 1 print i continue it prints absolutely nothing. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] compiling python
Hello Python Guru's and Newbies alike. I've been able to write a bit of Python for a web app that works wonderfully on my dev machine. However, I have limited access to the machine that will actually host this app. Will compiling a Python program eliminate library dependency requirements for the host machine? Essentially, are the libraries compiled into the binary? I have little knowledge about compiling for Python, other than a glimmer of a memory that I read about it once. Thanks all, Sean ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor