getting rid of the recursion in __getattribute__

2023-05-24 Thread A KR
It is perfectly explained in the standards here [1] saying that: In order to avoid infinite recursion in this method, its implementation should always call the base class method with the same name to access any attributes it needs, for example, object.__getattribute__(self, name). Therefore,

Re: Verifying I installed Python correctly

2022-04-25 Thread Sunil KR via Python-list
cd C:\google-python-exercises> python hello.py this doesn't looks like a valid command. However, is it because a newline got swallowed by misformatting? For clarity, I am reproducing the correct version of the steps: cd /d  C:\google-python-exercises python hello.py The error is:  The system c

Re: How to have python 2 and 3 both on windows?

2022-04-24 Thread Sunil KR via Python-list
. Why does the installation of python3 affect the python2, and how can I get them to work without stepping on one another? On Saturday, April 23, 2022, 09:59:46 PM PDT, Dennis Lee Bieber wrote: On Sun, 24 Apr 2022 01:19:38 + (UTC), Sunil KR declaimed the following: > >

Re: How to have python 2 and 3 both on windows?

2022-04-23 Thread Sunil KR via Python-list
, if I can make python 2 and 3 coexist on my system > On 22 Apr 2022, at 17:10, Sunil KR via Python-list wrote: > > I have some scripts that are old and won't work under python2 and at the > same time I am writing new scripts which will use python3. However, if python

Re: How to have python 2 and 3 both on windows?

2022-04-22 Thread Sunil KR via Python-list
nil On Friday, April 22, 2022, 09:09:22 AM PDT, Sunil KR via Python-list wrote: I have some scripts that are old and won't work under python2 and at the same time I am writing new scripts which will use python3. However, if python 2 and 3 cannot co-exist in a windows box it will

How to have python 2 and 3 both on windows?

2022-04-22 Thread Sunil KR via Python-list
I have some scripts that are old and won't work under python2 and at the same time I am writing new scripts which will use python3. However, if python 2 and 3 cannot co-exist in a windows box it will be impossible to transition What I try:- remove all pythons and launchers- Use windows installer

Re: Issuing commands using "exec_command()" of paramiko AND also sending commands together

2015-06-03 Thread KR
Hi Sreenathan Nair: import os, sys, import connectlibs as ssh s = ssh.connect("xxx.xx.xx.xxx", "Admin", "Admin") channel = s.invoke_shell() channel.send("net use F: xyz.xy.xc.xa\\dir\n") >>>32 channel.send("net use\n") >>>7 channel.recv(500) 'Last login: Tue Jun 2 23:52:29 2015 from xxx.xx.

TypeError in HMAC module.

2014-03-24 Thread Prabir Kr Sarkar
Hi, I am trying to create a hashed message for authentication for a REST API call. I have got the key from a keyring as :- key = keyring.get_password('AWS_keyring','username') & calculating the signature as :- signature = hmac(key, message.encode('UTF-8'), hashlib.sha1).digest().encode('base64

Re: function got multiple values for keyword argument for value

2013-10-30 Thread KR
On Wednesday, October 30, 2013 2:50:03 PM UTC-7, KR wrote: > On Wednesday, October 30, 2013 2:34:19 PM UTC-7, Mark Lawrence wrote: > > On 30/10/2013 21:10, > > > search(lane,value=None,start=105,stop=115,GUI=True) -> function definition > > > search(lane,value=va

Re: function got multiple values for keyword argument for value

2013-10-30 Thread KR
On Wednesday, October 30, 2013 2:34:19 PM UTC-7, Mark Lawrence wrote: > On 30/10/2013 21:10, > > > search(lane,value=None,start=105,stop=115,GUI=True) -> function definition > > > search(lane,value=value,start=start, stop=stop,GUI=True) -> function call > > > > > > I get the error "search()" g

Re: How to make a Python script to audio read a text file on phone ?

2013-03-17 Thread dey . sumit . kr
On Sunday, March 17, 2013 7:34:18 PM UTC+5:30, Nic wrote: > I've installed Python on my Nokia E71 (Symbian S60 3rd FP1) and found a > script example which can read out text, see example below. > > I want to make the script to asks me for a text file instead and then reads > out the content. I g

About multithreaded webserver

2006-01-24 Thread Kr z
Hi,Do anyone know the Python source codes on how to write a simple multithreaded webserver class?RegardsFind the lowest fare online with MSN Travel -- http://mail.python.org/mailman/listinfo/python-list

Hi, about socket programming and threading

2006-01-17 Thread Kr z
Hi All!I wonder if anyone knows the simple code structure for a multithreaded web server handling multiple clients at the same time?Thanx!Regards.KrzGet an advanced look at the new version of MSN Messenger. -- http://mail.python.org/mailman/listinfo/python-list

About socket threading

2006-01-16 Thread Kr z
Hi, Do anyone know the Python source codes on how the client can send/"pump"a lot of threads to the server class?  Receive MSN Hotmail alerts over SMS! -- http://mail.python.org/mailman/listinfo/python-list

Re: Wats the code?

2006-01-14 Thread Kr z
It's socket threading. I'm had to create a client/server multi-threading simulator where the client sends 1000 threads to the server to "stress" the server. The server can handle more than 1 client concurrently. I would like to hear your comments, tips and relevant soure codes. Do advise. Thanks.

Wats the code?

2006-01-13 Thread Kr z
I wonder anyone knows the line of Python codes to generate 1000 threads concurrently?RegardsFind just what you are after with the more precise, more powerful new MSN Search Try it now. -- http://mail.python.org/mailman/listinfo/python-list