Description:
The Python computer language.
|
|
|
Trying to understand += better
|
| |
If I've got an object foo, and I execute: foo.bar += baz exactly what happens if foo does not have a 'bar' attribute? It's pretty clear that foo.__getattr__('bar') gets called first, but it's a little murky after that. Assume for the moment that foo.__getattr__ ('bar') returns an object x. I think the complete sequence of calls... more »
|
|
Implementation of Book Organization tool (Python2.[x])
|
| |
Hi together, I'm a python-proficient newbie and want to tackle a program with Python 2.x, which basically organizes all my digital books (*.pdf, *.chm, etc..) and to give them specific "labels", such as: "Author" -> string "Read" -> boolean "Last Opened:" -> string and so on.. Now my question is: Is it a better method to use a /database/, a /static File/, with some... more »
|
|
problem manipulating a list belonging to a class
|
| |
Dear all, I have a problem with the following code (ubuntu 8.04, Python 2.5.2): class Toto(object): def __init__(self, number, mylist=[]): self.number=number self.mylist=mylist pass pass listA=Toto(number=1) listB=Toto(number=2) listA.mylist.append(5) print "1) ", listA.mylist print "2) ", listB.mylist... more »
|
|
creating pipelines in python
|
| |
hi all, i am looking for a python package to make it easier to create a "pipeline" of scripts (all in python). what i do right now is have a set of scripts that produce certain files as output, and i simply have a "master" script that checks at each stage whether the output of the previous script exists, using functions from the os module. this has... more »
|
|
xmlrpc idea for getting around the GIL
|
| |
Has anyone every tried wrapping the CPython lib into a daemon with an RPC mechanism in order to move the GIL out of the process? I have multiple audio threads, each of which use the python interpreter but don't have to interact with each other and can might as well use a separate interpreter handled by a daemon with libpython linked in.... more »
|
|
Scripts Only Run In Root
|
| |
On Sun, Nov 22, 2009 at 12:39 PM, Victor Subervi ...Almost certainly going to need more information. On that note, you are probably going to get better help with less explaining from the appropriate OS support channels. Geremy Condra
|
|
TypeError: an integer is required
|
| |
...[snip] ...I think the problem is that you're binding a low-level file id to sys.stdout instead of a file object. Try: sys.stdout = open("C://Users//lutfi//Docume nts//tezzzz//log.txt" , "a" ) Actually, changing sys.stdout just to use print a single string is a bad idea. Try this instead:... more »
|
|
scanning under windows WIA with custom settings (dpi / etc )
|
| |
Hi, I'm trying to scan a document from a python 2.6 script without user interaction. I found a code snippet, that allows me to scan under Vista, but that doesn't allow me to select the dpi / color mode / etc. The snippet uses win32com.client ...import win32com.client,os WIA_IMG_FORMAT_PNG = "{B96B3CAF-0728-11D3-9D7B-0000 F81EF32E}"... more »
|
|
pyspread 0.0.12a released
|
| |
Pyspread is getting close to the first Beta. This new release should work with Windows as well as with Linux. About ----- Pyspread is a cross-platform Python spreadsheet application. It is based on and written in the programming language Python. Instead of spreadsheet formulas, Python expressions are entered into... more »
|
|
|