Python threading - event

2019-02-17 Thread Prahallad Achar
Hello Friends, I got an requirement as stated below, 1. main thread will be running and other event should run parallel In more detail One function will be keep dumping data and other event function should trigger at some event but dumping data should be keep running. Sorry, I can not give any ex

Re: Problem : Generator

2019-02-16 Thread Prahallad Achar
Yupee.. Thanks for the knowledge sharing. Regards Prahallad On Sat, 16 Feb 2019, 12:18 dieter Prahallad Achar writes: > > > I get list object instead gen obj > > If you have a list "l" and want a generator, you can use >( x for x in l) > or simpler "ite

Re: Problem : Generator

2019-02-16 Thread Prahallad Achar
riations on the above that do not alter the list > would be to use an index based on the length of the list and count backward > as you return what is at that index. > > -Original Message- > From: Python-list On > Behalf Of dieter > Sent: Saturday, February 16, 2019 1:47

Re: Problem : Generator

2019-02-15 Thread Prahallad Achar
I get list object instead gen obj On Fri, 15 Feb 2019, 13:57 Chris Angelico On Fri, Feb 15, 2019 at 6:57 PM Prahallad Achar > wrote: > > > > How about this > > List1=[ 1,2,3,4] > > Rever_gen = ( x*x for x in list1, reversed = True) > > > > Rever_gen get

Re: Problem : Generator

2019-02-14 Thread Prahallad Achar
How about this List1=[ 1,2,3,4] Rever_gen = ( x*x for x in list1, reversed = True) Rever_gen gets generator object and iterating it now gets reverse order.. Am I correct here? Suggest me On Fri, 15 Feb 2019, 12:33 dieter Prahallad Achar writes: > > How to implement reverse generator

Problem : Generator

2019-02-14 Thread Prahallad Achar
How to implement reverse generator It is only passing data in reverse or how it is Yeild always returns next value and is question valid? Thanks and Regards Prahallad -- https://mail.python.org/mailman/listinfo/python-list

Re: python is going to die! =(

2019-02-05 Thread Prahallad Achar
Python is the only immortal On Tue, 5 Feb 2019, 17:01 python is alive > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

Re: Advice on law firm

2018-10-18 Thread Prahallad Achar
if NO-ANS: print (" Its Python forum ") elif ANS: print (" Personal mail to Mr.Ryan") else: print (" Ryan kindly use the appropriate forum to discuss your topic") On Thu, Oct 18, 2018 at 5:27 AM Ryan Johnson wrote: > Anyone know a good US based law firm that specializes in software

RegEx to match set of lines

2018-04-05 Thread Prahallad Achar
Hello, I would like to match set of lines from the below data. this data comes from one of the network Part of data : [ If circuit type is OCHCC then I need Circuit name and service ID from that group ] Circuit ID: ad8a0165:25 *Circuit Name: T3A_100G_SD20* Circuit Version: 0 Circuit Monitor: fal

Re: Getting "ValueError: need more than 1 value to unpack" while trying to read a value from dictionary in python

2018-02-15 Thread Prahallad Achar
IPv4 address configured by DHCP It doesn't find key and value for above string. Solution.. Use one complete string per line On 15 Feb 2018 4:41 pm, "Sum J" wrote: Below is my code. Here I want to read the "ip address" from s s= ''' Power On Enabled = On State: connected Radio M

Re: Jython info

2018-02-10 Thread Prahallad Achar
Thanks for the kind response. Yes. I shall upgrade the same. am trying to access GUI action elements from Jython to automate the Swing desktop application On Sat, Feb 10, 2018 at 9:50 PM, Dan Stromberg wrote: > On Sat, Feb 10, 2018 at 6:43 AM, Prahallad Achar > wrote: > > Hello

Jython info

2018-02-10 Thread Prahallad Achar
Hello team, Is it right to ask Jython related query here? If so kindly check my q here otherwise sorry for posting here... Can we access swing objects/events of any applications via Jython? My present code Downloaded Jython 2.5 Import sys Sys.path.append (my java. Jar) Thanks Prahallad -- http

Re: Automation query... Plz help

2018-01-30 Thread Prahallad Achar
n D'Aprano" < steve+comp.lang.pyt...@pearwood.info> wrote: > On Tue, 30 Jan 2018 16:00:43 +0530, Prahallad Achar wrote: > > > Luckily application supports headless automation now question is how to > > invoke those jar using python. > > I can see two approa

Re: Automation query... Plz help

2018-01-30 Thread Prahallad Achar
Luckily application supports headless automation now question is how to > invoke those jar using python. On 29 Jan 2018 10:45 pm, "Prahallad Achar" wrote: Thanks for the kind response. Sure.. Definitely I shall ask development team for the same. Regards Prahallad On 29 Jan

Re: Variable scope in nested functions

2018-01-29 Thread Prahallad Achar
Thanks Chris, Without using nonlocal any other options available? On 30 Jan 2018 8:30 am, "Chris Angelico" wrote: > On Tue, Jan 30, 2018 at 1:48 PM, Prahallad Achar > wrote: > > def a() : > > Print (value) > > def b() : > > Value = 1

Variable scope in nested functions

2018-01-29 Thread Prahallad Achar
def a() : Print (value) def b() : Value = 100 Return b Its a nested function. How can I use variable value just one function above the parent function. This is possible in tcl.. Is it possible in Python too? -- https://mail.python.org/mailman/listinfo/python-list

Re: Automation query... Plz help

2018-01-29 Thread Prahallad Achar
Thanks for the kind response. Sure.. Definitely I shall ask development team for the same. Regards Prahallad On 29 Jan 2018 7:48 pm, "Steven D'Aprano" < steve+comp.lang.pyt...@pearwood.info> wrote: > On Mon, 29 Jan 2018 17:50:46 +0530, Prahallad Achar wrote: > >

Re: Automation query... Plz help

2018-01-29 Thread Prahallad Achar
No.. Not at all. Its CTP application.. Which is basically transport planner for networks On 29 Jan 2018 5:38 pm, "Steven D'Aprano" < steve+comp.lang.pyt...@pearwood.info> wrote: > On Mon, 29 Jan 2018 16:23:23 +0530, Prahallad Achar wrote: > > > Hello fri

Automation query... Plz help

2018-01-29 Thread Prahallad Achar
Hello friends, There is an desktop application which runs on Windows and written in java There is a requirement to automate that application. Am trying with pyautogui but it is very slow and lengthy code to compete. Is there a way to run this automation without launching the application (headle

Re: IoT automation

2018-01-29 Thread Prahallad Achar via Python-list
Thank you Mr. Marvin On 29 Jan 2018 12:02 pm, "Dale Marvin via Python-list" < python-list@python.org> wrote: > On 1/28/18 7:39 AM, Prahallad Achar wrote: > >> Hello team, >> Could you please help me out in automation of IoT product end to end >>

IoT automation

2018-01-28 Thread Prahallad Achar
Hello team, Could you please help me out in automation of IoT product end to end Regards Prahallad -- https://mail.python.org/mailman/listinfo/python-list

Re: Please help on print string that contains 'tab' and 'newline'

2018-01-27 Thread Prahallad Achar
In python 3. X Use. Decode and. Encode On 28 Jan 2018 1:47 am, "Jason Qian via Python-list" wrote: > HI > >I am a string that contains \r\n\t > >[Ljava.lang.Object; does not exist*\r\n\t*at > com.livecluster.core.tasklet > > >I would like it print as : > > [Ljava.lang.Object; does no