Sign in or Join FriendFeed
FriendFeed is the easiest way to share online. Learn more »
Python

Python

The programming language
Michael R. Bernstein
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
Michael R. Bernstein
Twitter / Ryan Wilcox: Wore my Zen of Python (PyC ... - http://twitter.com/rwilcox...
Always nice to find a fan (I designed that shirt). - Michael R. Bernstein from Bookmarklet
Arnaldo M Pereira
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
Yeah. It was working in the past and I don't know what changed. - Arnaldo M Pereira
The code is read, but it doesn't complete. Maybe something on OS X's terminal, but don't know.. - Arnaldo M Pereira
Try executing your .pyrc code in the python interpreter (remove all try/except) it should help - Henry Prêcheur
That gives me no output. I maybe should read readline's docstrings, or something... maybe the api changed and I didn't realize it. - Arnaldo M Pereira
Uche Ogbuji
#python: can anyone recommend the best summaries of #europython for the mad-busy-but-interested?
Arnaldo M Pereira
What module do you prefer to transfer files via Bluetooth, using obex?
Uche Ogbuji
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...
Front Range Pythoneers July Meetup - Wed July 15th, 6PM @ bivio Software, Inc., 2701 Iris, Boulder, CO (28th & Iris) Suite S (above Hair Elite).
I might make it, if in town. Haven't been in ages. - Uche Ogbuji from Bookmarklet
Rishabh Mishra (p248)
What sources would you point a non-programmer to get started with Python (2.x)?
http://www.swaroopch.com/notes... should be another addition to standard doc tutorial - Pavan
Dive Into Python is also good. http://diveintopython-cached.m... - Edward Zwart
alieb
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?
Sridhar Ratnakumar
shutil.copytree small improvement (ignore argument) - http://tarekziade.wordpress.com/2008...
Adriano
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...
bsoup-tmp.jpg
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
Berk D. Demir
Lacking Rhoticity: Python standard library in Native Client - http://lackingrhoticity.blogspot.com/2009...
Lacking Rhoticity: Python standard library in Native Client
The Python standard library now works under Native Client in the web browser, including the Sqlite extension module. - Berk D. Demir from Bookmarklet
rawwell
Python in your browser natively with the google native client (!) http://lackingrhoticity.blogspot.com/2009...
Uche Ogbuji
Removing markup from a string - http://gist.github.com/23219
My one foray into github. I'm on bitbucket now - http://bitbucket.org/uche/ - Uche Ogbuji from Bookmarklet
Might also be a job for Beautiful Soup? - Brett Kelly
Peter Hoffmann
Pydev adventures: Testing on Pydev 1.4.6 & Google App Engine Integration - http://pydev.blogspot.com/2009...
Daniel Bruce
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. =)
That looks promising, thanks =) - Daniel Bruce
Your welcome =). infoq also has a lot of good presentations online ;) - alfred westerveld
TDD kind of takes a bit to really get into but once the light goes on you end up loving it. - Bill Rawlinson
rawwell
I wrote a short japanese of Michael Foord's introduction of Pro IronPython below "Pro IronPython刊行されました" http://d.hatena.ne.jp/crenlif... 以下のエントリを訳してみました。 original post: "IronPython URLs: A New Book on IronPython: Pro IronPython" http://ironpython-urls.blogspot.com/2009...
Berk D. Demir
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
Netbeans 6.7rc1 can automatically install the python plugin from the Plugins section : see http://wiki.netbeans.org/PythonI... - Hari
Jillis ter Hove
(C)Python Threading is Fundamentally Broken. - http://entitycrisis.blogspot.com/2009...
"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
Hari
Anyone know of Python libraries that read OLE compound files
Peter Hoffmann
Michael R. Bernstein
Google Open Source Blog: Introducing Android Scripting Environment - http://google-opensource.blogspot.com/2009...
Google Open Source Blog: Introducing Android Scripting Environment
Google Open Source Blog: Introducing Android Scripting Environment
Python scripting on Android phones! - Michael R. Bernstein from Bookmarklet
Peter Hoffmann
Michael R. Bernstein
A Look At The Landscape, After Five Months - http://awkly.org/2009...
Sidnei's five-month summary of working for Canonical on Launchpad and related projects. - Michael R. Bernstein from Bookmarklet
Uche Ogbuji
Motivation for the Akara project [xml3k Wiki] - http://wiki.xml3k.org/Akara...
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
Frank
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
Jillis ter Hove
Entity Crisis: A Room Heater, in Python. - http://entitycrisis.blogspot.com/2009...
"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
Yu-Jie Lin
bpython - fancy curses interface to the Python interpreter - http://www.noiseforfree.com/bpython...
bpython - fancy curses interface to the Python interpreter
Michael R. Bernstein
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...)
Uche Ogbuji
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...
Michael R. Bernstein
I just love how Guido wants the article to be lindberg'd http://twitter.com/gvanros... - Brett Cannon
What does that mean, "can you van lindberg it?" - Chris Lasher
@Brett Thank you. I feel enlightened. - Chris Lasher
Other ways to read this feed:Feed readerFacebook