First | Prev | Next | Last
Pages: 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
exceptions from daemon threads which access the global namespace atinterpreter shutdown (how to squelch output?)
I've got an application which makes fairly heavy use of daemon threads to perform 'background' processing and various other long-running tasks that are likely to block. I originally thought I could safely fire off a daemon threading.Thread and essentially forget about managing the thread's lifecycle. My thinking wa... 25 Apr 2010 04:23
Reading a binary file and wrtiting the bytes verbatim?in an utf-8 file
> Another possibility is to open the file in binary mode and do the encoding yourself when writing text. This might actually be a better solution, since I'm not sure RTF uses utf-8 by default. Yes, thanks for this suggestion, it seems the best to me. Actually RTF is not UTF-8 encoded, it's 8-bit and maybe e... 25 Apr 2010 04:23
☆☉☉☆ Barely Legal Babes - Free downloads! Videos Images, Barely Legal young teens
ââââ Barely Legal Babes - Free downloads! Videos Images, Barely Legal young teens http://liquid-cash.net/ ... 25 Apr 2010 00:53
question about google project hosting!
Hi, is there any one know some python libraries to check if there is a new download for a google project hosting project? or are there any API which has such kind of function? Thanks ... 25 Apr 2010 00:53
Reading a binary file and wrtiting the bytes verbatimin an utf-8 file
Hello, I have to read the contents of a binary file (a PNG file exactly), and dump it into an RTF file. The RTF-file has been opened with codecs.open in utf-8 mode. You should use the built-in open() function. codecs.open() is outdated in Python 3. As I expected, the utf-8 decoder chokes on s... 25 Apr 2010 01:58
Wanted: Python solution for ordering dependencies
Hi I'm hoping to avoid reinventing a wheel (or other rolling device). I've got a number of dependencies and, if possible, I want to order them so that each item has its dependencies met before it is processed. I think I could get what I want by writing and running a suitable makefile, but that seems to be ... 25 Apr 2010 13:15
Reminder: 6 days left for EuroPython 2010 talk submissions
The EuroPython 2010 call for papers closes this Friday on 30th April. We've already had many submissions covering Python 3, Python 2.7, IronPython, Game Programming, Testing, Behavior Driven Development, NoSQL, Accessiblilty and others. We still are looking for talks and tutorials on Django, PyPy, Twisted, HTML5... 24 Apr 2010 11:38
NameError: how to get the name?
I wanted to do something like this: while True: try: def fun(a, b=b, c=c): pass except NameError as ne: name = get_the_var_name(ne) locals()[name] = '' else: break What's be best way to implement the function get_the_var_name(ne) that returns the name of the variable that could not be f... 25 Apr 2010 03:17
NotImplemented used in Decimal
I'm reading the source code for decimal.Decimal, and I see that the arithmetic operations (__add__, __sub__, etc.) start with code like this: if other is NotImplemented: return other I don't understand the purpose of this. I presume that it is *not* for the use-case of: d = Decimal('... 24 Apr 2010 06:06
How to get live streaming of friends tweets??
<http://arstechnica.com/open-source/guides/2010/04/tutorial-use-twitters-new-real-time-stream-api-in-python.ars> has some explanations about how to use real-time stream API "eka (Esteban)" <ekagaurangadas(a)gmail.com> writes: IMO the real time update is your work to do. You can poll, to say, each 1 ... 23 Apr 2010 20:49