XML Parsing

2017-09-04 Thread Sambit Samal
Hi ,

Need help in Python Script using xml.etree.ElementTree  to update the value of 
any element in below XML ( e.g SETNPI to be 5 ) based on some constraint ( e.g 
 ) .




  
DRATRN



 1
 
   
 1
 
 0
  ORIG
 CFORIG
TERM
   


  
   1
  1
  
 CONTINUE

   

  
  2

1
 
  0
  TERM
  


  
   1
   1
   
   CONTINUE
   
   
-- 
https://mail.python.org/mailman/listinfo/python-list


Need an application sends from paricular port

2009-02-11 Thread Sambit Samal
Hi

I am new to Python world

 I need a python script , which binds at a user defind port & sends to other
enity , which waits at particular port.
The other enity will respond & Python script should receive that at the
defined port

The communication will happen over UDP

e.g

*Python Appl*

IP: 10.116.78.90
Port : 3000


*Other Enity* :

IP: 10.116.98.87
Port : 3010


Pyhon Appl >UDP  > Other Enity
  <--


Please help
--
http://mail.python.org/mailman/listinfo/python-list


Re: getting caller

2009-02-12 Thread Sambit Samal
Hi

I am new to Python world

 I need a python script , which binds at a user defind port & sends to other
enity , which waits at particular port.
The other enity will respond & Python script should receive that at the
defined port

The communication will happen over UDP

e.g

Python Appl

IP: 10.116.78.90
Port : 3000


Other Enity :

IP: 10.116.98.87
Port : 3010


Pyhon Appl >UDP  > Other Enity
  <--


Please help
--
http://mail.python.org/mailman/listinfo/python-list


Re: Need an application sends from paricular port

2009-02-16 Thread Sambit Samal
 Hi
>
> I am new to Python world
>
>  I need a python script , which binds at a user defind port & sends to
> other enity , which waits at particular port.
> The other enity will respond & Python script should receive that at the
> defined port
>
> The communication will happen over UDP
>
> e.g
>
> *Python Appl*
>
> IP: 10.116.78.90
> Port : 3000
>
>
> *Other Enity* :
>
> IP: 10.116.98.87
> Port : 3010
>
>
> Pyhon Appl >UDP  > Other Enity
>   <--
>
>
> Please help
>
>
>
--
http://mail.python.org/mailman/listinfo/python-list


Re: code challenge: generate minimal expressions using only digits 1,2,3

2009-02-23 Thread Sambit Samal
test

On Sat, Feb 21, 2009 at 3:31 AM, Trip Technician wrote:

> anyone interested in looking at the following problem.
>
> we are trying to express numbers as minimal expressions using only the
> digits one two and three, with conventional arithmetic. so for
> instance
>
> 33 = 2^(3+2)+1 = 3^3+(3*2)
>
> are both minimal, using 4 digits but
>
> 33 = ((3+2)*2+1)*3
>
> using 5 is not.
>
> I have tried coding a function to return the minimal representation
> for any integer, but haven't cracked it so far. The naive first
> attempt is to generate lots of random strings, eval() them and sort by
> size and value. this is inelegant and slow.
>
> I have a dim intuition that it could be done with a very clever bit of
> recursion, but the exact form so far eludes me.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
http://mail.python.org/mailman/listinfo/python-list