assuming security is not of concern at the moment,<br><br>how can i add in update capability? please help me out or show some pointers to look into.<br><br>i wish to change the way the method definition of a class at run time in
a running server (actually i m planning to support many changes
at run time). new code which is to be executed is provided
by a client at different location.<br>i am receiving the code as a
string and compile it on server-side with the 'compile' builtin
function or get compiled code using marshal. however i cannot link it to the running code in server?<br><br>for example, i get a new method definition for a method in class and i wish to change it.<br>
client sent new definition, i compile it in server, getting a code object. how can i link it to old code?<br><br>
if it will running in same environment, i could simply write<br>A.getdata=getdatanew  # A is a class<br><br>how should i do it here? should i change the way i am receiving the code?<br><br>thanks for help<br>-piyush<br><br>
<div class="gmail_quote">On Wed, Jun 25, 2008 at 12:22 AM, Terry Reedy <<a href="mailto:tjreedy@udel.edu">tjreedy@udel.edu</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
<br>
Piyush Anonymous wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
any idea or pointer how i could link it to running code in server?<br>
for example, i get a new method definition for a method and i wish to change it.<br>
client sent new definition, i compile it in server. how can i link it to old code?<br>
</blockquote>
<br></div>
Code to be hot-updated (while running) must have update capability builtin.  But please consider security.  If a remote system can log in and *push* code, an attacker can potentially do the same.  Notice that self-updating programs and systems generally log out to a hardwired location, ask if there are updates, and *pull* the new code.<div>
<div></div><div class="Wj3C7c"><br>
<br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>