|
email questions I'm looking for a way to send a simple, plain text email message using Python. My initial attempts are failing with the following error: socket.error: (61, 'Connection refused') Does this imply that I do not have the machine's smtp server running? (I don't; and I'd like to avoid setting it up.) I'm ... 9 Feb 2006 08:58
Problem with curses and UTF-8 When I run the following code in a terminal with the encoding set to UTF-8 I get garbage on the first line, but the correct output on the second. import curses s = curses.initscr() s.addstr('\xc3\x85 U+00C5 LATIN CAPITAL LETTER A WITH RING ABOVE\n') s.addstr('\xc3\xa5 U+00F5 LATIN SMALL LETTER O WITH TILDE') ... 8 Feb 2006 20:26
how to kill a python process? Hello! This question does not concern programming in python, but how to manage python processes. Is there a way to "name" a python process? At least on Linux, if I have two python programs running, they both run under the name "python" #pidof program1.py [empty line] #pidof program1.py [empty line] # pidof... 10 Feb 2006 16:49
NumPy error Hello: I am using the following versions of Python and packages on Windows XP (SP2): Python 2.4.2 NumPy 0.9.4.win32-py2.4 SciPy 0.4.4 for Python 2.4 and Pentium 4/SSE2 In the Python Shell I am running the following: from scipy.optimize import fmin def rosen(x): return sum(100.0*... 5 Feb 2006 13:15
Using non-ascii symbols On the page http://wiki.python.org/moin/Python3%2e0Suggestions I noticed an interesting suggestion: "These operators ? ? ? should be added to the language having the following meaning: <= >= != this should improve readibility (and make language more accessible to beginners). This should be an ev... 31 Jan 2006 00:48
wxPython layout problem I have the following code: [code] class MainFrame(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, wx.ID_ANY, title, style=wx.DEFAULT_FRAME_STYLE |wx.NO_FULL_REPAINT_ON_RESIZE) # build top area topSizer = self.buildTopPanel() # build input are... 24 Jan 2006 03:13
Read from Serial Port I'd like to read ASCII data from a serial port, but (once again) I'm having trouble getting started. (Can't seem to find the basic level of docs to get going <sigh>) I'd like to use only standard "built-in" modules if possible. Could somebody offer a simple code-snippet to get me started reading from a serial... 23 Jan 2006 05:16
Bittorrent RPM Dependency Problem Hi All, tried to install the RPM for bittorrent, and got the following, [root(a)localhost bittorrent]# rpm -Uvh BitTorrent-4.2.2-1-Python2.3.noarch.rpm error: Failed dependencies: python(abi) = 2.3 is needed by BitTorrent-4.2.2-1.noarch [root(a)localhost bittorrent]# python -V Python 2.3.4 why is this so,... 20 Jan 2006 12:56
Decimal vs float I wonder why this expression works: decimal.Decimal("5.5")**1024 Decimal("1.353299876254915295189966576E+758") but this one causes an error 5.5**1024 Traceback (most recent call last): File "<interactive input>", line 1, in ? OverflowError: (34, 'Result too large') Another quirk is the follwoing... 23 Jan 2006 04:15
Ordering numbers I have a dictonary here: seq = {8:0x13AC9741, 10:0x27592E8, 4:0x4EB25D, 5:0x9D64B, 7:0x13AC9, 1:0x2759, 11:0x4EB, 3:0x9D, 9:0x13, 2:0x2, 0:0x0, 6:0x0} Python always prints them in order, from least to greatest. But I wanna have it show them in hte order that I put in. Thanks for all your help gurusnetwork.o... 19 Jan 2006 08:12 |