First  |  Prev |  Next  |  Last
Pages: 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
Transferring an exception from one thread to an other.
I have a numver of tarfiles on a remote host that I need to process and that I fetch via FTP. I wrote the following as a test to see how I would best approach this. (I'm using python 2.5) -------------------------------- ftptst1 -------------------------------- import tarfile as tar from ftplib import FTP, error... 20 May 2010 06:12
intervall of about 1 second for xmlrpc calls?
Hi, I'm wondering about the behavior. Running this example - it looks like - that each rpc call is triggered in a visible interval (about one second). What's wrong? Thomas APPENDIX: <code> import threading from xmlrpc.server import SimpleXMLRPCServer import xmlrpc.client class MyServer(threading.... 21 May 2010 08:23
How to unescape a raw string?
On Wed, May 19, 2010 at 8:34 PM, <python(a)bdurham.com> wrote: How can I unescape a raw string so that it behaves as a non-raw string? That's not what the notion of raw strings in Python technically means, but anyway... For example, if I read the string "\n\t A B C\" D E F \xa0 \u1234" I'll assume you're ... 20 May 2010 00:51
links button gone from python.org
I noticed that that the link to that section is gone. The page seems to be there when I use the url that is stored on my computer. Unrelated but I will mention that It is sad to see that dr dobs python newsletter has vanished, I enjoyed reading that from time to time. ... 21 May 2010 21:37
KaPy -- Karlsruhe Python User Group meeting, 2010-05-21, 19:00
The Karlsruhe Python User Group (KaPy) meets again. Friday, 2010-04-16 (May 21st) at 19:00 (7pm) in the rooms of Entropia eV (the local affiliate of the CCC). See http://entropia.de/wiki/Anfahrt on how to get there. For your calendars: meetings are held monthly, on the 3rd Friday. Bye, J PS: Sorry for th... 19 May 2010 20:29
client server console app with cmd library
Hi to all, i need some hints about a console application i' m trying. I want to make it act as a client and as a server at a same time. And since it is a console application i' m using cmd library. I want something that works like asterisk. while working with my app i want to listen for incoming requests, that the... 21 May 2010 06:12
Python Script for Website Mirroring
On Mi, 2010-05-19 at 16:35 -0600, Vincent Davis wrote: If it is a simple site you could just transfer with ftp Or rsync -a or wget -m ... like tools that were specifically made for this task. Therefore something like subprocess.call(["rsync", "-az", "-e", "ssh", "--delete", source, target]) should be part o... 19 May 2010 19:21
compile() error
Iuri <iurisilvio <at> gmail.com> writes: Any ideas about what is happening? Until Python 2.7/3.2, compile() does't like sources which don't end in a newline. ... 19 May 2010 21:35
struct
Can anyone explain the difference between f and d in struct unpack? When using them, some data work in either one not both. To me it seems to be same, TIA ... 19 May 2010 18:14
function that counts...
.... how many positive integers less than n have digits that sum up to m: In [197]: def prttn(m, n): tot = 0 for i in range(n): s = str(i) sum = 0 for j in range(len(s)): sum += int(s[j]) if sum == m: tot += 1 return tot ........ 11 Jun 2010 17:00
First  |  Prev |  Next  |  Last
Pages: 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121