tag:blogger.com,1999:blog-81946809755557076282024-03-08T12:10:56.388-08:00Python programmingTutorials, code snippets, awsome modules.Przemysław Libhttp://www.blogger.com/profile/17702180780709981763noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-8194680975555707628.post-66258985017144491722010-05-12T23:30:00.000-07:002010-05-12T23:31:32.170-07:00Weekly Python module: csvCsv is quite common way for saving data. And it is the most simple. Coma separated values, but coma do not have to be comas, maybe tabs, asteriks, quotation marks. Also quotation marks are usually used to mark text - strings. And new line char also counts as 'coma'.
Python have great tool, that removes all complexity of csv. And is it named csv, You would not guess, right?
>&Przemysław Libhttp://www.blogger.com/profile/17702180780709981763noreply@blogger.com0tag:blogger.com,1999:blog-8194680975555707628.post-31281001425712336722010-05-12T00:59:00.000-07:002010-05-12T00:59:54.679-07:00PyGame tutorialsThis blog is not the only project about python tutorials, I made.
Here is nice site with PyGame tutorials, I've made year ago.Przemysław Libhttp://www.blogger.com/profile/17702180780709981763noreply@blogger.com0tag:blogger.com,1999:blog-8194680975555707628.post-49056380830829917782010-04-27T12:25:00.000-07:002010-04-27T12:25:57.430-07:00Eric4: probably best IDE for Python!Sometimes Vim|Emacs and Linux Shell (Yes I'm Linux freq) is not enough for our Python development. When You need integrated solution. When Integrated Development Environment is more productive. Today we will talk about one IDE for Python. About Eric4.
No it is not adv of Eric4. (OK it is, but I wasn't paid for it ;) )
Few Eric4 features:
code Highlighting
code autoindentation
class browser
Przemysław Libhttp://www.blogger.com/profile/17702180780709981763noreply@blogger.com0tag:blogger.com,1999:blog-8194680975555707628.post-27799311692023614782010-04-26T11:30:00.000-07:002010-04-27T08:21:18.350-07:00Weekly Python module: NumPyNumPy is basically module that provides really fast implementation of tables you may know form MATLAB. Yes, normally Pythons lists are just enough, but when performance matters NumPy comes to help You.
One note. I was reluctant to say only about NumPy, because it is almost always used together with other modules (at least one for presenting data as graphs). But then I can split those modules to Przemysław Libhttp://www.blogger.com/profile/17702180780709981763noreply@blogger.com0tag:blogger.com,1999:blog-8194680975555707628.post-22498046927054871472010-04-24T09:55:00.000-07:002010-04-26T11:25:19.759-07:00Python in Python.Every python dev sooner or later found out about other python implementations. Python (as language) have them plenty: Jython, IronPython, PyPy, to name a few. They are all very important and adds to spirit of python community. To emphasize it Guido van Rossum have proposed suspension of changes to python syntax, semantic, and build-ins. So non c implementations can catch up with Przemysław Libhttp://www.blogger.com/profile/17702180780709981763noreply@blogger.com0tag:blogger.com,1999:blog-8194680975555707628.post-2738115564184446302010-04-19T13:03:00.000-07:002010-05-12T23:31:57.520-07:00Weekly Python module: atexitNew idea about few posts. What about smalltalk about one Python module in a week?
Lets go!
For this week Python standard module 'atexit'. Whole purpose of this module is to provide functions that will be executed at normal interpreter exit.
It has only one function register, that takes function and make sure that every function that was registered will be called in last in, first out order. Przemysław Libhttp://www.blogger.com/profile/17702180780709981763noreply@blogger.com0tag:blogger.com,1999:blog-8194680975555707628.post-66643536724526367362010-04-15T23:59:00.000-07:002010-04-24T09:30:17.734-07:00PyGame: basicsIn this tutorial we will focus on Python's PyGame library that allow to create all staff needed to create all sort of games. But we will not learn Python itself. You must know Python. Classes and modules are obligatory also modules to load files but no other extra knowledge.
PyGamePyGame can handle time, video (both images and vids), music, fonts, different image formats, cursors, mouse, keyboardPrzemysław Libhttp://www.blogger.com/profile/17702180780709981763noreply@blogger.com0