dbus and properties multivalue
hello, i want to build a simple script to resize a window of konqueror using the dbus protocol. Normally use the python interface, but the problem is most general because this operation it is impossible for me also if use qdbusviewer and is to complex for me if use dbus-send. If i use the python interface to... 24 Jun 2010 08:30
best way to increment an IntVar?
Of course one can do myintvar.set(myintvar.get()+1) but surely there is a better way? I'm surprsied that myintvar += 1 is not allowed. Thanks, Alan Isaac ... 27 Jun 2010 03:06
Types missing from "types"module
Here's dir(types), in Python 2.6.5: ['BooleanType', 'BufferType', 'BuiltinFunctionType', 'BuiltinMethodType', 'ClassType', 'CodeType', 'ComplexType', 'DictProxyType', 'DictType', 'DictionaryType', 'EllipsisType', 'FileType', 'FloatType', 'FrameType', 'FunctionType', 'GeneratorType', 'GetSetDescriptorType'... 24 Jun 2010 18:35
Does "distutils" support "python setup.py test"?
Many library modules support "python setup.py test", but the Python distutils documentation at http://docs.python.org/distutils/configfile.html makes no mention of it, except as a possible future extension. Some setup.py files have test_suite = "modulename" but that doesn't seem to do anything... 24 Jun 2010 00:58
[ANN] filepath 0.1
Hello all, I'm happy to announce the initial release of filepath. filepath is an abstract interface to the filesystem. It provides APIs for path name manipulation and for inspecting and modifying the filesystem (for example, renaming files, reading from them, etc). filepath's APIs are intended to be easier... 23 Jun 2010 22:46
modifying standard library functionality (difflib)
Hi all, I'd like to ask about the most reasonable/recommended/... way to modify the functionality of the standard library module (if it is recommended at all). I'm using difflib.SequenceMatcher for character-wise comparisons of the texts; although this might not be a usual use case, the results are fine for the g... 24 Jun 2010 14:07
Pythonic Idiom For Searching An Include Path
Given a program 'foo' that takes a command line argument '-I includefile', I want to be able to look for 'includefile' in a path specified in an environment variable, 'FOOPATH'. I'd like a semantic that says: "If 'includefile' contains one or more path separator characters, ignore 'FOOPATH'. If it contain... 25 Jun 2010 09:52
How to send a non-standard IMAP command?
Dear Pythoners, I need to send one line of commands to an IMAP server. The commands are not standard IMAP protocols, hence it's not specified in http://docs.python.org/library/imaplib.html. Can you please give me a hint? Best regards, Xianwen ... 25 Jun 2010 04:24
Does a '_sre.SRE_Pattern' have state,or is it thread-safe?
'_sre.SRE_Pattern' is what "re.compile" returns. Is that a mutable object, with state that changes during the parse, or is it an immutable constant? Can two threads use the same '_sre.SRE_Pattern' at the same time? (I'm writing something to find race conditions in existing code, which is why all t... 23 Jun 2010 13:57
Hi guys, I use these codes to read emails from an IMAP server: import imaplib imap_srv_addr = "someserver" imap_srv = imaplib.IMAP4_SSL(imap_srv_addr) imap_srv.login("username","passwd") imap_srv.select("Inbox") msg = imap_srv.fetch(1, '(RFC822)') How can I parse msg so it can be appended to the other I... 23 Jun 2010 11:42