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
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
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
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
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
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
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
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
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.
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
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
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
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
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
[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
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
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
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
[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
>>
[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
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
Tim Peters <[EMAIL PROTECTED]> wrote:
[snip]
thanks for an exhaustively satisfying explanation!
Alex
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
[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
>
[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
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':
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
>>> 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
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()
> #
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
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
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
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
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
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):
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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).
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
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
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
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
> 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
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
[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
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
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.
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
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/
83 matches
Mail list logo