Re: Trouble Downloading Python and Numpy

2019-05-29 Thread Shakti Kumar
On Wed, 29 May 2019 at 9:38 PM Shakti Kumar wrote: > > > On Wed, 29 May 2019 at 9:29 PM Contreras, Brian J > wrote: > >> Good Morning, >> >> I am a research student at the Georgia Institute of Technology. I have >> made multiple attempts to download

Re: Trouble Downloading Python and Numpy

2019-05-29 Thread Shakti Kumar
On Wed, 29 May 2019 at 9:29 PM Contreras, Brian J wrote: > Good Morning, > > I am a research student at the Georgia Institute of Technology. I have > made multiple attempts to download different versions of Python with Numpy > on my Microsoft Surface Book with no success. > Since you need numpy

Re: Implementing C++'s getch() in Python

2019-05-26 Thread Shakti Kumar
On Sun, 26 May 2019 at 20:23, wrote: > > I've run getpass() on IDLE, Spyder, PyCharm and Mu. All with negative results. > > As Random832 pointed out, these IDEs cannot handle the stdout/stdin with getpass You should use a normal terminal (command prompt) on your windows for running this program.

Re: Implementing C++'s getch() in Python

2019-05-25 Thread Shakti Kumar
On Sat, 25 May 2019 at 4:43 PM wrote: > I'm working on Python 3.7 under Windows. I need a way to input characters > without echoing them on screen, something that getch() did effectively in > C++. try getpass module. Typically this would be, import getpass variable = getpass.getpass('your

Re: Django Potential Fork Bomb

2019-05-09 Thread Shakti Kumar
project.com/en/dev/internals/mailing-lists/ > > FWIW, I'm not a Django user, but found this page with a simple Google > search for "Django mailing list”. Thanks a lot, will keep that in mind. -- Shakti Kumar, Grad Student, Dept. of Computer Science, University of Toronto -- https://mail.python.org/mailman/listinfo/python-list

Re: Django Potential Fork Bomb

2019-05-09 Thread Shakti Kumar
On Thu, 9 May 2019 at 10:27, dieter wrote: > > Shakti Kumar writes: > > ... > > I suspect django spawned too many child processes, and consecutively I ran > > out of resources on my dev server. How can I prevent this from happening? > > And I am not able to unde

Django Potential Fork Bomb

2019-05-08 Thread Shakti Kumar
, and consecutively I ran out of resources on my dev server. How can I prevent this from happening? And I am not able to understand why django should spawn (if it indeed is spawning) incrementing processes with each query from the GUI. Looking out for some suggestions/help. Thanks, Shakti -- Shakti Kumar, Grad

Re:

2019-04-19 Thread Shakti Kumar
yment in 36 months.') > break > import sys > sys.exit() > Include the sys.exit() before the break. You cannot have two branching statements in the same block. So it'd be, if ((monthly_salary*t)*compound_int) Thanks, > Tamara > > > On Fri, Apr 19, 2019 at

Re:

2019-04-19 Thread Shakti Kumar
On Fri, 19 Apr 2019 at 9:33 PM Tamara Berger wrote: > Hi Python-List, > > What code can I use to break out of a program completely, and not just out > of a loop? import sys sys.exit() Should do your work. > I wrote code with 3 conditions for saving for a downpayment. The > first addresses

Re: Stack Overflow Developer Survey

2019-04-14 Thread Shakti Kumar
It is certainly worth the mention! Kudos to all the core devs and the volunteers here for their dedication making Python the Most Wanted and Second Most Loved programming language this time ! Thanks, Shakti On Sun, 14 Apr 2019 at 12:14, Frank Millman wrote: > > Hi all > > Stack Overflow have

Kill stuck threads

2019-04-09 Thread Shakti Kumar
Hello Team, Over due course I've felt the need of a way to kill a thread gracefully, by relieving all occupied resources. A bit of search online shows me that killing a thread depends very much on the underlying platform support, and is something not advised, however I face this problem when one

Re: [RELEASE] Python 2.7.16 release candidate 1

2019-02-16 Thread Shakti Kumar
On Sun, 17 Feb 2019 at 6:44 AM Benjamin Peterson wrote: > I'm pleased to announce the immediate availability of Python 2.7.16 > release candidate 1. This is a prerelease for yet another bug fix release > in the Python 2.7.x series. It includes over 100 fixes over Python 2.7.15. > See the

Re: Unable to install Python 3

2019-01-27 Thread Shakti Kumar
On Sun, 27 Jan 2019 at 18:44, Hemant Mehta wrote: > > Dear Team, > > I am unable to install python 3 in my computer. > Kindly find my system configuration details & error details occured at the time of installation. Unable to find the system configuration details & error details. > *Please do

mocking for get method in requests

2019-01-18 Thread Shakti Kumar
Hello people, I noticed something weird (weird as per my current knowledge, though I know its subjective) today. sample.py file -- import requests def random_testing(): out = requests.get('www.cisco.com') a = out.json() return a testing.py file -- @patch(*’*sample.requests') def

Re: clusters of numbers

2018-12-15 Thread Shakti Kumar
On Sun, 16 Dec 2018 at 09:49, Vincent Davis wrote: > > Why not start with a histogram. > > Vincent > > On Sat, Dec 15, 2018 at 6:46 PM Marc Lucke wrote: > > > hey guys, > > > > I have a hobby project that sorts my email automatically for me & I want > > to improve it. There's data science and

Re: Reading 'scientific' csv using Pandas?

2018-11-19 Thread Shakti Kumar
Hi Martin, On Sun, 18 Nov 2018 at 23:59, Martin Schöön wrote: > > Den 2018-11-18 skrev Shakti Kumar : > > On Sun, 18 Nov 2018 at 18:18, Martin Schöön wrote: > >> > >> Now I hit a bump in the road when some of the data is not in plain > >> decimal notatio

Re: Reading 'scientific' csv using Pandas?

2018-11-18 Thread Shakti Kumar
On Sun, 18 Nov 2018 at 18:18, Martin Schöön wrote: > > I am in this project where I try to get an overview of a bunch of > computer generated (finite element program) data. I have it stored in a > number of csv files. > > Reading the data into spreadsheet programs works fine but is very labour >

Re: Issue in parsing the strings in python code

2018-11-12 Thread Shakti Kumar
On Mon, 12 Nov 2018 at 14:02, srinivasan wrote: > Dear Python Experts team, > > This question might be very simple for you, As am newbie to python, could > you please how to parse the below strings > > 1. Could you please do the needful in guiding me, that how can I extract > the strings under

Fwd: socket: Too many open files

2018-10-14 Thread Shakti Kumar
>On 13Oct2018 14:10, Shakti Kumar wrote: >>I’m running a script which basically does a traceroute to the list of >>hosts >>provided, and then pulls up some info by logging in to gateways in the path. >>I am running this script for a list of almost 40k hosts in our data

Fwd: socket: Too many open files

2018-10-13 Thread Shakti Kumar
>Hello, >I’m running a script which basically does a traceroute to the list of hosts provided, and then pulls up some info by logging in to gateways in the path. >I am running this script for a list of almost 40k hosts in our data centers. >Also, I am using commands module to get the traceroute

socket: Too many open files

2018-10-13 Thread Shakti Kumar
Hello, I’m running a script which basically does a traceroute to the list of hosts provided, and then pulls up some info by logging in to gateways in the path. I am running this script for a list of almost 40k hosts in our data centers. Also, I am using commands module to get the traceroute

Re: Problem finding my folder via terminal

2018-06-06 Thread Shakti Kumar
Hi Berger, Do you have any space in the absolute path for mymodules? Spaces avoid getting the correct path as I had seen in one of my virtual environments. Shakti. On Wed, Jun 6, 2018, 9:53 PM T Berger wrote: > I’m learning Python on my own and have been stuck for two days trying to > get