Pair is an Actionscript 3 implementation of the Python standard library. Cool, code your Flash apps using Python!
- Michael R. Bernstein
from Bookmarklet
the Examples link -seems broken . Cannot wait to see the examples and code in action
- Hari
I usually use a .pyrc file with some readline commands to have tab completion inside python interactive shell. The completion suddenly doesn't work, despite the .pyrc generates no exception or anything. Any thoughts on that?
Do you have the environment variable PYTHONSTARTUP defined? file:///home/henryp/doc/python-docs/using/cmdline.html#envvar-PYTHONSTARTUP
- Henry Prêcheur
Front Range Pythoneers July Meetup - Wed July 15th, 6PM @ bivio Software, Inc., 2701 Iris, Boulder, CO (28th & Iris) Suite S (above Hair Elite). - http://www.meetup.com/frpytho...
Taking an automated screenshot of a webpage is a common task, but I can't find any opensource library to accomplish this (I need it for a web application). Do you know of anything like this?
Parsers :: "Version 3.1.0 of Beautiful Soup does significantly worse on real-world HTML than version 3.0.7a does." -Leonard Richardson - http://www.crummy.com/softwar...
after upgrading I noticed some odd inconsistencies in output; well, it turns out that the newer version has switched from SGMLParser (in view of Python 3.x) to HTMLParser which is a simpler parser that's much worse at processing malformed HTML. The informative link also discusses future developments, and other offerings.
- Adriano
BeautifulSoup is not the best "real world" HTML parser anymore. Ian Bicking posted an interesting article about that on his blog: http://blog.ianbicking.org/2008.... I like BeautifulSoup nonetheless, just drop a few python files in a directory and it's installed. lxml might be better, but it's also a pain to install compared to BeautifulSoup.
- Henry Prêcheur
Anyone got any really good articles/guides about TDD and unit testing in general? I've just started trying it out, and I'd like to see what the best practices are. =)
Recently I gave a try to Netbeans 6.5 Python (early access). Although I'm not a big fan of IDEs and being a TextMate junkie, I found it very usable and somewhat productivity boosting. What do you think about Python IDEs?
Last I checked, 6.5 EA was really out of date and they were recommending you get the nightly builds. Now I think the recommendation is to go for Netbeans 6.7 RC1. http://wiki.netbeans.org/PythonI...
- Chris Lasher
Chris: that's true. latest night build includes additional features, go-to-definition look-alike functionality and some other bits. It might be on par with Pydev's paid edition in near future.
- Berk D. Demir
"Most Python coders know that the Global Interpreter Lock (GIL) in (C)Python effectively serializes execution of threaded programs, even on systems with multiple CPU cores but the GIL problem is much, much worse than expected."
- Jillis ter Hove
from Bookmarklet
I'm having some folks com on board to help with the FLOSS development of Akara, and I thought it would be useful, to get them oriented, to discuss the motivations behind the project.
- Uche Ogbuji
from Bookmarklet
"...is designed from the ground up with the above in mind--to treat data as much as possible in the data domain, rather than in the code domain. In practice, you still need good code interfaces, but the key balance to strike is in the nature of the resulting code. I want code that uses Amara 2.x to be compact, so there's less to maintain, but I also want it to be structured such that it...
more...
- Uche Ogbuji
python rocks.. but the combination of find() returning -1 if not found and -1 evaluating to true sucks! That one got me occupied for halve an hour. ANYTHING else would be better... throwing an error, -1 beeing False, ... http://home.g33ky.de/fact...
that's what index() is for, it raises an exception. i think it's quite clearly explained in the tutorial. although python seems easy, the tutorial is mandatory even if you already know 37 languages.
- Marco Mariani
of course there is a better solution... thats not the point. Solving this "problem" took me about 2sec. its just hard to find the problem and i can't find ANY reason why -1 should be True
- Frank
look.. i allready know its this way and now ,knowing that and why if (find(foo)): failes, its not very hard to find nearly unlimited documentation stating that python behaves this way.
- Frank
Sorry, didn't read you post carefully. Why nonzero is treated as True, that is how Truth value testing works. You should be aware of that before you put anything to test if they are True or False; otherwise, you should do comparison. Why is that designed in that way? ask in comp.lang.python, there are more capable people to answer that than me. As for find(), if you think the behavior is wrong or inappropriate, file a bug report.
- Yu-Jie Lin
to me not as bad as the off by 1 scenario in all programming languages which has and still does cause me all sorts of problems
- allen
"To help solve the problem, a friend suggested I write a heater application to help warm me up. Not one to refuse a challenge, and always eager to show that Python can solve all your problems, I came up with a Room Heater, in Python, in 15 lines of code."
- Jillis ter Hove
from Bookmarklet
Neil K sent me a link to this picture he took of someone demoing a synthesizer using the ultra-trendy arduino, and the almost-as-trendy Python Cookbook. Cute!... - http://ascher.ca/blog... (via http://friendfeed.com/davidas...)
Oh sweet. Akara is #1 on Google. And that's without a stitch of "publicity", not even an announcement. We use Akara extensively for client projects, and it's about time we find some time for a proper release and announcement. Rich data pipelines and XML processing on a rock solid Web server platform. You'll like it :) - http://www.google.com/search...