Re: sys.platform documentation?

2006-08-12 Thread Martin v. Löwis
Michiel Sikma schrieb: > However, in order to populate the list of platforms, I need to know > which strings sys.platform can return. I haven't found any documentation > on this, but I guess that I'm not looking in the right places! Do any of > you know where I can find a list of possible return va

Re: start a multi-sockets server (a socket/per thread) with different ports but same host

2006-08-12 Thread Bryan Olson
zxo102 wrote: >I am doing a small project using socket server and thread in python. > This is first time for me to use socket and thread things. >Here is my case. I have 20 socket clients. Each client send a set > of sensor data per second to a socket server. The socket server will > do

Re: [OT] John Salerno

2006-08-12 Thread Alan Connor
On alt.os.linux, in <[EMAIL PROTECTED]>, "jason" wrote: > Path: > text.usenetserver.com!atl-c01.usenetserver.com!news.usenetserver.com!atl-c05.usenetserver.com!news.usenetserver.com!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!4.24

Re: matplotlib, wxPanel inside a wxPanel

2006-08-12 Thread Sam
Hi Daniel, Thanks very much for your quick response! You're right, it was a case of the cut-and-paste blues, and me not really knowing what each part of the code in the examples was actually doing. A couple of things caught me out: first of all, i wasn't calling SetSizer and Fit on the right panel

Re: start a multi-sockets server (a socket/per thread) with different ports but same host

2006-08-12 Thread zxo102
Jean-Paul, I just start to learn Twisted. Here is my simple case: I can find the data sent by clients in dataReceived but I don't know which client/which port the data is from. After I know where the data comes from, I can do different things there, for example, write them into different files

Re: [OT] John Salerno

2006-08-12 Thread John Salerno
Alan Connor wrote: > So. You post using three different newsservers, which no one who > posts under the same alias all the time does. > > And there are virtually no Linux groups in your posting history > for the last year. Wow, you need some help. I post at work on one server, and then also at

Re: Using a dictionary to pass data to/from embedded python functions

2006-08-12 Thread Alex Martelli
wardm <[EMAIL PROTECTED]> wrote: > Thanks again for your help, I agree, it seems I need to read a good book on > Python. > > One last question, will Python allow me to add new items to > InterfaceModule.VarDictionary > from the Python functions I call ? Yes, no problem with that. Alex -- htt

Re: Using a dictionary to pass data to/from embedded python functions

2006-08-12 Thread wardm
Thanks again for your help, I agree, it seems I need to read a good book on Python. One last question, will Python allow me to add new items to InterfaceModule.VarDictionary from the Python functions I call ? "Alex Martelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > wardm

Re: [OT] John Salerno

2006-08-12 Thread Alan Connor
On alt.os.linux, in <[EMAIL PROTECTED]>, "John Salerno" wrote: Correction: Someone who _sometimes_ calls himself "John Salerno" wrote: http://slrn.sourceforge.net/docs/README.offline> So. You post using three different newsservers, which no one who posts under the same alias all the time does.

Re: [OT] John Salerno

2006-08-12 Thread jason
John Salerno wrote: > Alan Connor wrote: > >> Almost certainly bogus. I wouldn't believe anything in this >> fellow's headers or articles. >> >> TROLL. >> I don't help trolls. > > > Ok, I don't know how seriously to take this post, so I won't spend much > time addressing it. All I will say is y

Re: Best way to construct an email - attach a html file and send

2006-08-12 Thread a
where is the link thanks a lot for your kind help Larry Bates wrote: > a wrote: > > What is the best way to construct an email in python and also attach a > > html file > > > > the html file to be attached is not on disk, but should be dynamically > > constructed in the python script > > > > I want

Re: Recurse Directories and process files in directory

2006-08-12 Thread David Lewis
On 2006-08-12 09:46:54 -0700, "KraftDiner" <[EMAIL PROTECTED]> said: > Hi I need help writing a python script that traverses (recursivly) a > directory and its sub directories and processes all files in the > directory. In addition to os.walk, I find Jason Orendorff's 'path' module very helpful

proxy for xmlrpc calls

2006-08-12 Thread Xavier
I'm attempting to write a proxy for xmlrpc calls. I'm starting from this code; class MagicObject: def __call__(self,*args,**kwargs): return MagicObject.__dict__['_stop'](self,self.n,*args,**kwargs) def __getattr__(self,name): if name in ('__str__','__repr__'): return

Re: [OT] John Salerno

2006-08-12 Thread John Salerno
Alan Connor wrote: > Almost certainly bogus. I wouldn't believe anything in this > fellow's headers or articles. > > TROLL. > > I don't help trolls. Ok, I don't know how seriously to take this post, so I won't spend much time addressing it. All I will say is yes, this is really me and I am as

Re: Read a file with open command

2006-08-12 Thread John Machin
[EMAIL PROTECTED] wrote: [snip] > My point is that this is a wonderful service you tutors provide, but > the Zappa signature may not be the best choice for this setting. This is *not* the tutor list. >Most people will read it and get a laugh (as did I), but how many have taken > it the way jean-j

Re: Learning Python

2006-08-12 Thread Dr. Pastor
What a bright replies! It is a pleasure to study them. Thanks to you all. == Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News== http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups = East and West-Coast Server Farms - Total Privacy v

Re: Make $1000's Monthly!

2006-08-12 Thread Alex Martelli
AlbaClause <[EMAIL PROTECTED]> wrote: ... > Just to bring this thread back on topic, you could also make thousands of > dollars monthly by becoming a professional Python coder or consultant. ;-) Yes, easily -- according to SD Magazine's yearly surveys, Python programmers have been the best-pai

Re: Using a dictionary to pass data to/from embedded python functions

2006-08-12 Thread Alex Martelli
wardm <[EMAIL PROTECTED]> wrote: > Thanks Alex for your help, (and advice on focusing the point of my > question). > > I was able to compile and run your example OK, but when I try to use the > "VarDictionary" in the > MyScriptModule.py code, I get an exception. > > I added the following code

Re: Read a file with open command

2006-08-12 Thread AlbaClause
[EMAIL PROTECTED] wrote: > AlbaClause wrote: >> jean-jeanot wrote: >> > > >> Ummm, he did not say that your question was stupid. The Zappa quote is >> included as part of what we refer to as a 'signature'. In the case of >> Sybren Stuvel's posts to this newsgroup, the Frank Zappa quote is >>

Re: Make $1000's Monthly!

2006-08-12 Thread AlbaClause
[EMAIL PROTECTED] wrote: > Make $1000's Monthly! > Over 600 work at home firms are in need of survey takers, product > assemblers, home mailers, mystery > shopping > Data entry and more! Report contains complete contact details for over > 650 companies now hiring! > For this complete report of ov

Re: Recurse Directories and process files in directory

2006-08-12 Thread Jason Nordwick
Use os.system to execute a string and os.walk to get a recursive list of files >>> def processdir(curdir,subdirs,files): ... map(lambda f:os.system('\\cygwin\\bin\\wc -l "%s"' % f), [curdir+os.sep+x for x in files]) ... >>> map(lambda x:processdir(*x), os.walk('\\dev\qclient')); 6 \dev\qclie

Re: Inconsistency producing constant for float "infinity"

2006-08-12 Thread Alex Martelli
Tim Peters <[EMAIL PROTECTED]> wrote: [snip] thanks for an exhaustively satisfying explanation! Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython ListBook Class, Label Position w/ ImageList

2006-08-12 Thread Chaos
jean-michel bain-cornu wrote: > Hi, > > By default the label position of an image list is below the image. Is > > there any way to change this? > > > > If it exists, it's undocumented, and there is not a sample. > Did you ask the wx forum ? It's probably a better place to have this > kind of infor

Re: start a multi-sockets server (a socket/per thread) with different ports but same host

2006-08-12 Thread Jean-Paul Calderone
On 12 Aug 2006 10:44:29 -0700, zxo102 <[EMAIL PROTECTED]> wrote: >Jean-Paul, >Thanks a lot. The code is working. The python twisted is new to me too. >Here are my three more questions: >1. Since the code need to be started in a wxpyhon GUI (either by >clicking a button or up with the GUI), do I ha

Re: Using a dictionary to pass data to/from embedded python functions

2006-08-12 Thread wardm
Thanks Alex for your help, (and advice on focusing the point of my question). I was able to compile and run your example OK, but when I try to use the "VarDictionary" in the MyScriptModule.py code, I get an exception. I added the following code to the C app just to add two entries to the Dict

Re: _PyLong_FromByteArray

2006-08-12 Thread Tim Peters
[Dan Christensen] > My student and I are writing a C extension that produces a large > integer in binary which we'd like to convert to a python long. The > number of bits can be a lot more than 32 or even 64. My student found > the function _PyLong_FromByteArray in longobject.h which is exactly >

Re: Inconsistency producing constant for float "infinity"

2006-08-12 Thread Tim Peters
[Tim Peters] >... >> It has a much better chance of working from .pyc in Python 2.5. >> Michael Hudson put considerable effort into figuring out whether the >> platform uses a recognizable IEEE double storage format, and, if so, >> marshal and pickle take different paths that preserve infinitie

Re: trouble with replace

2006-08-12 Thread Tim Chase
pats = ['abcdef', 'defgef', 'effwer'] reps = ['highway', 'news', 'monitor'] s = 'defgefabcdefy\n\n\n effwerbyuuuterrfr' reduce(lambda x,y: x.replace(*y), zip(pats,reps), s) The reduce() method fairly works well if you have it as a dictionary as well: >>> m = {'effwer':

Re: Recurse Directories and process files in directory

2006-08-12 Thread BartlebyScrivener
KraftDiner wrote: > Hi I need help writing a python script that traverses (recursivly) a > directory and its sub directories and processes all files in the > directory. There's a great os.walk + wrapper in the Python cookbook. I once had an unrelated problem with it, but check it out and see if it

Re: trouble with replace

2006-08-12 Thread Jason Nordwick
>>> pats = ['abcdef', 'defgef', 'effwer'] >>> reps = ['highway', 'news', 'monitor'] >>> s = 'defgefabcdefy\n\n\n effwerbyuuuterrfr' >>> reduce(lambda x,y: x.replace(*y), zip(pats,reps), s) 'newshighwayy\n\n\n monitorbyuuuterrfr' f pemberton wrote: > I have a string (xdata) and theres a

Re: Python share CPU time?

2006-08-12 Thread Steve Holden
Yannick wrote: > Thank you all for the detailled answers. > > What I would like to achieve is something like: > > # main loop > while True: > for robot in robots: > robot.start() > robot.join(0.2) # wait 200ms > if robot.is_active(): > robot.stop() > #

OT: SCALE 5x - Call For Papers

2006-08-12 Thread Ilan Rabinovitch
Hello, Sorry for the offtopic post. Just wanted to let the python community know about our Call For Papers. We just announced the CFP for SCALE 5x, the 2007 Southern California Linux Expo, We are non-profit / community run Linux, open-source and free software conference. Our fifth annual show w

Re: Kill process based on window name (win32)

2006-08-12 Thread drodrig
Thank you Roger. Your advice did the trick. For anyone interested, the basic code to terminate a process (politely) would be something like this (hwnd is retrieved using win32gui.EnumerateWindows): # Get the window's process id's t, p = win32process.GetWindowThreadProcessId(hwnd) # Ask window nice

Re: Password authentication systems

2006-08-12 Thread Tim Scheidemantle
Enabling shadow passwords stores them in /etc/shadow which is not world readable unlike /etc/passwd. They would be encrytped regardless of the file they are in. AlbaClause wrote: > [EMAIL PROTECTED] wrote: > > >> This may only be tangentially related to Python, but since I am coding >> a pa

_PyLong_FromByteArray

2006-08-12 Thread Dan Christensen
My student and I are writing a C extension that produces a large integer in binary which we'd like to convert to a python long. The number of bits can be a lot more than 32 or even 64. My student found the function _PyLong_FromByteArray in longobject.h which is exactly what we need, but the leadi

Re: Looking for a text file based wiki system written in Python

2006-08-12 Thread Jack
Thanks! Because it was so well known, I thought it was database-based :) > http://moinmoin.wikiwikiweb.de/ Any good and simple text file-based blog system in Python? -- http://mail.python.org/mailman/listinfo/python-list

Re: matplotlib, wxPanel inside a wxPanel

2006-08-12 Thread ajaksu
It seems to work (only tested with embedding_in_wx4.py). I guess it's something related to things nesting in a slightly wrong way, right enough to show up but wrong enough to only show up :) I hope this helps. Daniel Substitute embedding_in_wx4.py's CanvasFrame with: class CanvasFrame(wxFrame):

Re: trouble with replace

2006-08-12 Thread Simon Forman
Simon Forman wrote: > f pemberton wrote: > > Marc 'BlackJack' Rintsch wrote: > > > In <[EMAIL PROTECTED]>, f pemberton > > > wrote: > > > > > > > I've tried using replace but its not working for me. > > > > xdata.replace('abcdef', 'highway') > > > > xdata.replace('defgef', 'news') > > > > xdata.re

Re: self=pickle.load(file)? (Object loads itself)

2006-08-12 Thread Simon Forman
Anton81 wrote: > Hi! > > it seems that > > class Obj: > def __init__(self): > f=file("obj.dat") > self=pickle.load(f) > ... > > doesn't work. Can an object load itself with pickle from a file somehow? > What's an easy solution? > > Anton Why are you trying t

Re: trouble with replace

2006-08-12 Thread Simon Forman
f pemberton wrote: > Marc 'BlackJack' Rintsch wrote: > > In <[EMAIL PROTECTED]>, f pemberton > > wrote: > > > > > I've tried using replace but its not working for me. > > > xdata.replace('abcdef', 'highway') > > > xdata.replace('defgef', 'news') > > > xdata.replace('effwer', 'monitor') > > > > `rep

Re: start a multi-sockets server (a socket/per thread) with different ports but same host

2006-08-12 Thread zxo102
Jean-Paul, Thanks a lot. The code is working. The python twisted is new to me too. Here are my three more questions: 1. Since the code need to be started in a wxpyhon GUI (either by clicking a button or up with the GUI), do I have to run the code in a thread (sorry, I have not tried it yet)? 2. Ho

Re: reading from sockets

2006-08-12 Thread Simon Forman
AndrewTK wrote: > > I'm assuming that your server waits to receive the word 'hello' before > > replying with the three strings (first, second, and third)? So once your > > Nope - actually it's a threaded "server", with the main thread simply > dumping network input to the console and command line

Re: wxPython ListBook Class, Label Position w/ ImageList

2006-08-12 Thread jean-michel bain-cornu
Hi, > By default the label position of an image list is below the image. Is > there any way to change this? > If it exists, it's undocumented, and there is not a sample. Did you ask the wx forum ? It's probably a better place to have this kind of information. If they provide you a C sample, I co

Re: iterator wrapper

2006-08-12 Thread alf
Simon Forman wrote: > Yes, you've got it, the xrange() version will not allocate a huge list. > > It's not part of your main question, and I understand that there may be > reasons why you can't, but consider upgrading to 2.4 (or very soon now > 2.5...) upgrade to 2.4 is on the roadmap and will t

Re: trouble with replace

2006-08-12 Thread f pemberton
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, f pemberton > wrote: > > > I've tried using replace but its not working for me. > > xdata.replace('abcdef', 'highway') > > xdata.replace('defgef', 'news') > > xdata.replace('effwer', 'monitor') > > `replace()` does not work in place. You ha

Re: [OT] why cd ripping on Linux is so slow

2006-08-12 Thread alf
Patrick Useldinger wrote: > > This is really OT: yes it is > and you might be better off looking in Linux forums > like http://www.linuxquestions.org/. That said, it's likely that your > DMA is not switched on. thx for the hint and the reference - see hopefully I got to know where to find

Re: Python/Tk not working in Linux

2006-08-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >In <[EMAIL PROTECTED]>, BinnyVA wrote: > >> I am using Fedora Core 3 Linux and I have a problem with Tk in Python. >> Whenever I try to run a tk script, I get the error... >> >> --- >> Traceback (most

Re: hide python code !

2006-08-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Bayazee <[EMAIL PROTECTED]> wrote: >Hi, >ThnaX for Your Answers ... >i am an open source programmer ... ! and i never like to write a closed >source app or hide my codes ! it just a question that i must >answer/solve it! >one of site ( www.python.ir ) users asked thi

Re: Recurse Directories and process files in directory

2006-08-12 Thread Gary Herron
KraftDiner wrote: > Hi I need help writing a python script that traverses (recursivly) a > directory and its sub directories and processes all files in the > directory. So at each directory if there are files in it I must build > a list of those files and process them by exectuing a system command

Re: iterator wrapper

2006-08-12 Thread Simon Forman
alf wrote: > Simon Forman wrote: > >> > >>>|>> I = ([n] for n in i) > >> > >>This is nice but I am iterating thru hude objects (like MBs) so you know ... > >> > > > > No, I don't know... :-) > > potentially my source lists are huge - so wanted to avoid unnecessary > memory allocation > > > > My fr

Re: Recurse Directories and process files in directory

2006-08-12 Thread vasudevram
KraftDiner wrote: > Hi I need help writing a python script that traverses (recursivly) a > directory and its sub directories and processes all files in the > directory. So at each directory if there are files in it I must build > a list of those files and process them by exectuing a system comman

Re: trouble with replace

2006-08-12 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, f pemberton wrote: > I've tried using replace but its not working for me. > xdata.replace('abcdef', 'highway') > xdata.replace('defgef', 'news') > xdata.replace('effwer', 'monitor') `replace()` does not work in place. You have to bind the result to a name like:: xdata

Re: self=pickle.load(file)? (Object loads itself)

2006-08-12 Thread Gary Herron
Anton81 wrote: > Hi! > > it seems that > > class Obj: > def __init__(self): > f=file("obj.dat") > self=pickle.load(f) > ... > > doesn't work. Can an object load itself with pickle from a file somehow? > What's an easy solution? > > Anton > That won't work,

Re: self=pickle.load(file)? (Object loads itself)

2006-08-12 Thread Jean-Paul Calderone
On Sat, 12 Aug 2006 18:36:32 +0200, Anton81 <[EMAIL PROTECTED]> wrote: >Hi! > >it seems that > >class Obj: >def __init__(self): >f=file("obj.dat") >self=pickle.load(f) >... > >doesn't work. Can an object load itself with pickle from a file somehow? >What's an

Re: start a multi-sockets server (a socket/per thread) with different ports but same host

2006-08-12 Thread Jean-Paul Calderone
On 12 Aug 2006 09:00:02 -0700, zxo102 <[EMAIL PROTECTED]> wrote: >Hi, > I am doing a small project using socket server and thread in python. > This is first time for me to use socket and thread things. > Here is my case. I have 20 socket clients. Each client send a set >of sensor data per seco

xtopdf: PDF creation / conversion toolkit: alpha release of v1.3

2006-08-12 Thread vasudevram
Hi group, xtopdf: PDF creation / conversion toolkit: alpha release of v1.3 This is actually a somewhat preliminary announcement, but may be of interest to developers / users who know Python and/or have earlier checked out my xtopdf PDF creation / conversion toolkit: I've released (via my web

trouble with replace

2006-08-12 Thread f pemberton
I have a string (xdata) and theres a newline after every 17 characters of the string. I was wondering how I can replace multiple substrings multiple times within a string? To put it another way, this is what i want to do. Substring to find ("abcdef") replace it with ("highway") search again, subst

Recurse Directories and process files in directory

2006-08-12 Thread KraftDiner
Hi I need help writing a python script that traverses (recursivly) a directory and its sub directories and processes all files in the directory. So at each directory if there are files in it I must build a list of those files and process them by exectuing a system command (exec?) Can some one tel

self=pickle.load(file)? (Object loads itself)

2006-08-12 Thread Anton81
Hi! it seems that class Obj: def __init__(self): f=file("obj.dat") self=pickle.load(f) ... doesn't work. Can an object load itself with pickle from a file somehow? What's an easy solution? Anton -- http://mail.python.org/mailman/listinfo/python-list

Re: matplotlib, wxPanel inside a wxPanel

2006-08-12 Thread ajaksu
Sam wrote: > Hello, Hi there Sam :) > I'm beginning to think that what i'm trying to do isn't actually > possible, and that i'll need to put it in a frame instead, which is a > pity. Indeed, if that is the case... as I'll need to do exactly that! But see below ;) > On the other hand, when i cre

start a multi-sockets server (a socket/per thread) with different ports but same host

2006-08-12 Thread zxo102
Hi, I am doing a small project using socket server and thread in python. This is first time for me to use socket and thread things. Here is my case. I have 20 socket clients. Each client send a set of sensor data per second to a socket server. The socket server will do two things: 1. write

Re: Inconsistency producing constant for float "infinity"

2006-08-12 Thread Alex Martelli
Tim Peters <[EMAIL PROTECTED]> wrote: ... > It has a much better chance of working from .pyc in Python 2.5. > Michael Hudson put considerable effort into figuring out whether the > platform uses a recognizable IEEE double storage format, and, if so, > marshal and pickle take different paths that

Re: Using a dictionary to pass data to/from embedded python functions

2006-08-12 Thread Alex Martelli
wardm <[EMAIL PROTECTED]> wrote: > I have created a Dict object in a C++ App that calls (embedded) Python > functions. [[snip snip]] > This python code throws an exception when it attempts to access the > "VarDictionary". > Does anyone know why this fails ? It fails due to some code of yours t

Re: [OT] why cd ripping on Linux is so slow

2006-08-12 Thread Patrick Useldinger
alf wrote: > Hi, > > I try to ip some music CD and later convert it into mp3 for my mp3 > player, but can not get around one problem. ripping from Linux is > extremely slow like 0.5x of CD speed. > > In contrary, on M$ Windows it takes like a few minutes to have CD ripped > and compresses int

Re: long(Decimal) performance

2006-08-12 Thread ajaksu
Hi Aahz, thanks for the feedback! Aahz wrote: > I'm not sure why it's coded that, but it's somewhat irrelevant: right > now, work is being done to convert decimal.py to C code, which will > almost certainly be much faster than your code. Generally speaking, you > should not be using Decimal now w

Re: Looking for a text file based wiki system written in Python

2006-08-12 Thread Gregor Horvath
Jack schrieb: > I'd like to set up a wiki system for a project I'm working on. > Since I'm not good at databases, and there's really not much > stuff to put into the wiki, I hope it is text file-based. > I used DokuWiki before, which is very nice but it's written > in PHP. Is there a similar system

Looking for a text file based wiki system written in Python

2006-08-12 Thread Jack
I'd like to set up a wiki system for a project I'm working on. Since I'm not good at databases, and there's really not much stuff to put into the wiki, I hope it is text file-based. I used DokuWiki before, which is very nice but it's written in PHP. Is there a similar system that's written in Pytho

[OT] why cd ripping on Linux is so slow

2006-08-12 Thread alf
Hi, I try to ip some music CD and later convert it into mp3 for my mp3 player, but can not get around one problem. ripping from Linux is extremely slow like 0.5x of CD speed. In contrary, on M$ Windows it takes like a few minutes to have CD ripped and compresses into wmf yet I do not knowhow

Re: iterator wrapper

2006-08-12 Thread alf
Paul Rubin wrote: > alf <[EMAIL PROTECTED]> writes: > >>>|>> I = ([n] for n in i) >> >>This is nice but I am iterating thru hude objects (like MBs) so you know ... > > > I don't understand the objection-- the above is entirely correct and > produces the same iterator you'd get from > > def

Re: iterator wrapper

2006-08-12 Thread alf
Simon Forman wrote: >> >>>|>> I = ([n] for n in i) >> >>This is nice but I am iterating thru hude objects (like MBs) so you know ... >> > > No, I don't know... :-) potentially my source lists are huge - so wanted to avoid unnecessary memory allocation > My friend, I think you've misunderstood

matplotlib, wxPanel inside a wxPanel

2006-08-12 Thread Sam
Hello, I'm currently creating a GUI, which consists of a main frame that contains a menu bar,a toolbar and an empty panel, let's call it main_panel. Ideally, I'd like the following functionality: upon choosing an item from the menu bar, a particular graph will be displayed inside main_panel. Now

Re: long(Decimal) performance

2006-08-12 Thread Aahz
In article <[EMAIL PROTECTED]>, ajaksu <[EMAIL PROTECTED]> wrote: > >Running long(Decimal) is pretty slow, and the conversion is based on >strings. I'm trying to figure out whether there is a good reason for >using strings like in decimal.py (that reason would be bound to bite me >down the road).

Re: Program - Leipzig Python Workshop

2006-08-12 Thread david_wahler
I'll be out of the office until approximately August 20th. If you have any questions, please email [EMAIL PROTECTED] -- David Wahler -- http://mail.python.org/mailman/listinfo/python-list

ANN: PyPsp 0.1

2006-08-12 Thread placid
First version of PyPsp is released. I have done limited testing as i have limited free time to devote to this project, but im doing my best. There are a three external modules that you need to download see the README file for additional information. Summary Playstation Portable(PSP) V

Re: Read a file with open command

2006-08-12 Thread gslindstrom
AlbaClause wrote: > jean-jeanot wrote: > > Ummm, he did not say that your question was stupid. The Zappa quote is > included as part of what we refer to as a 'signature'. In the case of > Sybren Stuvel's posts to this newsgroup, the Frank Zappa quote is included > in every message that he pos

Re: reading from sockets

2006-08-12 Thread AndrewTK
Follow up the actual python code is at http://www.dcs.st-and.ac.uk/~atk1/singleclient.py -- http://mail.python.org/mailman/listinfo/python-list

Re: reading from sockets

2006-08-12 Thread AndrewTK
> I'm assuming that your server waits to receive the word 'hello' before > replying with the three strings (first, second, and third)? So once your Nope - actually it's a threaded "server", with the main thread simply dumping network input to the console and command line input being directly dump

wxPython ListBook Class, Label Position w/ ImageList

2006-08-12 Thread Chaos
By default the label position of an image list is below the image. Is there any way to change this? -- http://mail.python.org/mailman/listinfo/python-list

Re: unbound methods

2006-08-12 Thread Peter Otten
[EMAIL PROTECTED] wrote: > I wrote a small class today at work playing with sockets in command > line windows. When attempting to call the handle function, I get a > TypeError. "Unbound method handle() must be called with connection > instance as first argument (got nothing instead). Any suggest

Re: unbound methods

2006-08-12 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > I wrote a small class today at work playing with sockets in command > line windows. When attempting to call the handle function, I get a > TypeError. "Unbound method handle() must be called with connection > instance as first argument (got nothin

unbound methods

2006-08-12 Thread [EMAIL PROTECTED]
I wrote a small class today at work playing with sockets in command line windows. When attempting to call the handle function, I get a TypeError. "Unbound method handle() must be called with connection instance as first argument (got nothing instead). Any suggestions would be greatly appreciated.

Re: PIL Image transform

2006-08-12 Thread Ben C
On 2006-08-11, Dean Card <[EMAIL PROTECTED]> wrote: [snip] > thanks for the reply. I have been able to use the Image.PERSPECTIVE > transform via trial and error to get it to work properly for each transform. > What I am really looking for I guess is a way to calculate the 8 int tuple > to mat

Re: Python/Tk not working in Linux

2006-08-12 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, BinnyVA wrote: > I am using Fedora Core 3 Linux and I have a problem with Tk in Python. > Whenever I try to run a tk script, I get the error... > > --- > Traceback (most recent call last): > File "Tk.py", line 1, in ? > from Tkinter import * > File "/usr/local/