We finally did it! A bunch of eager people including myself managed to organize what’s going to be the first Italian Python Conference, ever. It will be held in Florence, in the wonderful Tuscany on June the 9th and 10th, 2007. If you happen to be Italian and also interested in Python keep an eye [...]
Roger Johansson just said: ASP.NET. Oh my, where do I start. As long as the default Visual Studio controls spew out nonsense markup that is completely dependent on JavaScript to work, well, there will be no progress among the myriad sites created by the drag-and-drop cowboys that call themselves programmers. This needs to be fixed [...]
Filed in Uncategorized
|
Tagged .net
|
dir() can be customised with __ dir __ special method: [code lang="python"] Python 2.6a0 (trunk:54427, Mar 18 2007, 14:13:42) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type "help", "copyright", "credits" or "license" for more information. class A(object): ... pass ... dir(A()) ['class', 'delattr', 'dict', 'doc', ... ] class B(object): ... def dir(self): ... [...]
Update: this post is for version 0.96 only since the trick is now outdated. As many of you already the trunk version of Django carries a brand new infrastructure to handle HTML forms providing rendering capabilities and validation. Its name is newforms but I guess it will soon become just forms replacing the current framework [...]
Antonio Cangiano is asking for help and ideas. Being himself the former author of the Rails tools for the IBM DB2 DBMS he’s searching for input for the development of a set of tools and drivers for Python, Django an DB2. I think it’s a great idea having that kind of support in Django, even [...]
There’s a lot of stuff on the web about Unicode and Python but this is the best tutorial I’ve found, ever: All About Python and Unicode
There’s a slight change in the behavior of os.path.splitext because of a bug current versions of Python do have: [code lang="python"] Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "help", "copyright", "credits" or "license" for more information. from os.path import splitext splitext('.cshrc') ('', '.cshrc') [/code] becomes: [...]
Pinder is a straightforward API to interface with Campfire , the web chat application from 37Signals. It’s basically a port of Tinder but maybe in the future will go on separate ways. Pinder allows you to create rooms, delete them, speak from a remote client and more. For example: [code lang="python"] room = campfire.find_room_by_name('Jonz Room') [...]
Sometimes you need to get down to the core and make your code faster. One technique to speed up things is performance analysis through profiling. Python 2.5 has revamped its support for profiling with the addition of cProfile which is (the name says all) a C-based version of the profile module. It’s definitely better than [...]