![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
SqLite sounds interesting, how do I get started using it?
Particularly the use as a data store.
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#12 |
|
Expert Programmer
|
Could someone give me an example of how to use the "with" statement?
|
|
|
|
|
|
#13 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
python Syntax (Toggle Plain Text)
This has a number of advantages. Opening files is the obvious one, but any other type of IO operation also benefits. For instance, one could put a database cursor in a "with" block, and automatically have it rollback any operations if an exception occurs. Also, OpenGL has a lot of "StartSomething()" and "EndSomething()" functions that could be wrapped up in a with block. So it's pretty neat. It makes your code easier to read, and ensures you never forget to properly close/rollback/stop an operation. |
|
|
|
|
|
#14 |
|
Newbie
Join Date: Oct 2006
Posts: 1
Rep Power: 0
![]() |
One nice thing in 2.5 is the nice speed improvements. A lot of my scripts execute more than twice as fast!
|
|
|
|
|
|
#15 |
|
Professional Programmer
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3
![]() |
Just use your good friend checkinstall, run "sudo checkinstall" instead of "sudo make install" and you should have package reading to install (and remove) at your leisure.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [tutorial] Python for programming beginners | coldDeath | Python | 30 | Dec 14th, 2005 12:35 PM |
| If you want to learn Python or improve your Python skills | coldDeath | Python | 2 | Nov 23rd, 2005 1:27 AM |
| Convert Python script to C++ code | clanotheduck | Python | 17 | Sep 25th, 2005 9:55 AM |
| Advanced Python Tricks | Arevos | Python | 19 | Sep 24th, 2005 8:39 AM |
| Python - A Programmers Introduction | coldDeath | Python | 17 | Aug 19th, 2005 1:41 PM |