er when it sends the terminate signal to the old
myserver. If so, what is the correct way to restart the daemon? Will it
work to run the restart command in a subprocess rather than a subshell or
will a subprocess also terminate when its parent terminates?
--
Jeffrey Barish
--
http://mail.
Lou Pecora wrote:
> In article ,
> "larudwer" wrote:
>
>> "Jeffrey Barish" schrieb im Newsbeitrag
>> news:mailman.2091.1245902997.8015.python-l...@python.org...
>> > Jeffrey Barish wrote:
>> >
>> >> I have a program that
Jeffrey Barish wrote:
> I have a program that uses multithreading to monitor two loops. When
> something happens in loop1, it sends a message to loop2 to have it execute
> a command. loop2 might have to return a result. If it does, it puts the
> result in a queue. loop1, meanwhile
echniques to
illustrate the problem, but the test program works perfectly. I could post
it, though, if it would help to understand what I am doing -- and what
might be wrong in the real program.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
ate
a thread?
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
Tobias Andersson wrote:
> Jeffrey Barish skrev:
>> Chris Rebert wrote:
>>> Is the 'pcspkr' kernel module built and loaded?
>>
>> Yes. And I should have mentioned that I get sound from Ubuntu
>> applications that produce sound.
>
> Also, is
Chris Rebert wrote:
>
> Is the 'pcspkr' kernel module built and loaded?
Yes. And I should have mentioned that I get sound from Ubuntu applications
that produce sound.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
I use sys.stdout.write('\a') to beep. It works fine on Kubuntu, but not on
two other platforms (one of which is Ubuntu). I presume that the problem
is due to a system configuration issue. Can someone point me in the right
direction? Thanks.
--
Jeffrey Barish
--
http://mail.python.o
.
So I thought at first, but then I saw this statement in the documentation:
It is possible to run a manager server on one machine and have clients use
it from other machines (assuming that the firewalls involved allow it).
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
With the release of multiprocessing in Python 2.6, is there any reason to
use Pyro or RPyC?
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
o a user anyway. Still, I like
your suggestion, so I'll remember it for another occasion.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
ely, you can reclaim
> root at cleanup as it's stored as your saved UID.
Nice. One thing: how do I get the uid and gid for the target user? In
general, I know the name of the target user, but the uid/gid assigned by
the OS to that user could be different on different systems.
--
Jef
assing the name of the daemon and the pid and give the
executable suid root, but that's a lot of bother. Has anyone else dealt
with this problem?
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
rname_re.search(name)
m.groups()
('Dvo\xc5',)
I suppose that there is an encoding problem, but I don't understand Unicode
well enough to know what to do to digest properly the Unicode characters in
the surname.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
a situation in the full program where pickling seems to be failing in
the same manner as copy, but I have not been able yet to reproduce the
problem in a simple test program.
Thanks to all for your comments.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
uot;/usr/lib/python2.5/copy.py", line 95, in copy
return _reconstruct(x, rv, 0)
File "/usr/lib/python2.5/copy.py", line 322, in _reconstruct
y = callable(*args)
File "/usr/lib/python2.5/copy_reg.py", line 92, in __newobj__
return cls.__new__(cls, *args)
T
surmise that pickle uses
copy.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
port the object in
file{1,2}.py with import dirA.dirB.my_object or from dirA.dirB import
my_object. I use the technique only with objects that are legitimately
global.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
ntent with the current solution.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
that are comparable.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
tement, so I have to carve up the
list as source. Using Pyro to send the chunks once I have them should work
fine. Note that I am avoiding the use of the term "slice". It is not
possible to slice the list in the way that we normally do in Python because
it is still in the form of a str
some number of Things delimited by "Thing(" at one end and "),\nThing("
at the other (or ")]\n" at the end of the list). Did I just answer my own
question?
Of course, I need to balance the complexity of any alternative solution
against simply executing the statemen
I'm sorry that I took the time to respond.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
Robert Kern wrote:
> Ivan Voras wrote:
>> Jeffrey Barish wrote:
>>
>>> If you take the difference between two uniformly distributed random
>>> variables, the probability density function forms an isosceles triangle
>>> centered at 0. Take the absolute v
ween two uniformly distributed random
variables, the probability density function forms an isosceles triangle
centered at 0. Take the absolute value of that variable and the pdf is a
straight line with maximum value at 0 tapering to 0 at max. Thus,
z = abs(randint(0, max) - randint(0, max))
o update
the pickle? The only thought I have is to read all the data with the old
class module, store the data in some nonpickle format, and then, with
another program, read the nonpickle-format file and rewrite the pickle with
the class module in the new location.
--
Jeffrey Barish
--
http:/
korganizer.CalendarIface.openJournalEditor(QString text, QDate date)
but I'm having trouble figuring out how to call this function from Python.
And will it become clear how to control whether I am reading or writing the
journal?
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
rsing this procedure:
im.app['COM'] = 'New comment'
im.save('newfilename.jpg')
However, when I open newfilename.jpg, I find that key 'COM' does not
exist -- the comment is not being written. Presumably, I am doing
something wrong.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
t;
> I think it allows the features you want.
>
> Frank.
Or try PySonic (http://pysonic.sourceforge.net/) if you prefer a package
that actually works.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
Is there a way to interact with Windows Media Player from Python? I would
like to be able to do things like tell WMP to play a given sound file or to
ask WMP for metadata about a sound file.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
see
os.popen2 and os.popen3, but they provide only file objects for stdin,
stdout, and stderr so I don't see a way to kill the auxiliary program that
I start. Is there a way to do this on Windows?
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
dows and I was not opening the file in
binary mode either for input or output. I am amazed that it worked at all.
Thanks for the suggestion.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
that the dump did
not write as much data as it should have. Is that assumption correct? Are
there any debugging techniques I can use to figure out what is going wrong?
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
of A that I would like to use.
It struck me that this must be a common problem in OOP, so I'm wondering
whether there is a simple solution that I am missing.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
bunch of code between the point where a thread releases a lock and
then actually returns to the calling program) and so despite the locks in
Queue it is still possible for values to change before a thread acts on
them.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
atibility is also desirable.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
is in the search path, so I presume that there is something wrong with
the dll. Any suggestions? Can Python import a file with a dll
extension?
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
I'm wondering whether I
have missed something obvious. I'm hoping that the strongest rebuke
would be that I found something obvious.
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
Eric Brunel wrote:
> Jeffrey Barish wrote:
> [snip]
>> OK, I downloaded tcl8.4.8 and tk8.4.8. They are now installed. Back
>> to
>> python2.4 make. It now bombs at:
>>
>> gcc -pthread -shared build/temp.linux-i686-2.4/_tkinter.o
>> build/temp.lin
t;
>> > But the Tcl/Tk libraries to build the _tkinter module are coming
>> > from
>> > /usr/local/lib in our case. And those happens to be tcl83 and tk83
>> > in our case.
>> >
>> > If the Tcl/Tk libraries (and include files) are missing, yo
stall those. But they are not part of the Python
> distribution, as far as we know.
>
> /Jean Brouwers
>
>
>
> In article <[EMAIL PROTECTED]>,
> Jeffrey Barish <[EMAIL PROTECTED]> wrote:
>
>> Jean Brouwers wrote:
>>
>> >
>&
Jean Brouwers wrote:
>
> FWIW, we just installed Python 2.4 (on RH Linx 8), rebuilt it from
> scratch and everything is fine. Tkinter is there, _tkinter as well
> and idle comes up as expected.
>
> /Jean Brouwers
>
>
>
> In article <[EMAIL PROTECTED]>
how to make Tkinter work under Python 2.4?
I also don't understand why I have to go to all this trouble. Tkinter
is supposed to be included with Python, so shouldn't it be available
without any special effort?
--
Jeffrey Barish
--
http://mail.python.org/mailman/listinfo/python-list
43 matches
Mail list logo