Re: Checking network input processing by Python for a multi-threaded server

2019-05-02 Thread Markus Elfring
>> An instance for the class “threaded_TCP_server” and a call of >> “subprocess.run(…)”. >> > And how many connections does the subprocess make? A new TCP connection is performed with the information from the passed parameters for each call of the function “sendall”. The test command will

Re: How to pass username and password in the curl requests using requests python module

2019-05-02 Thread Tobiah
On 5/2/19 4:30 AM, Pradeep Patra wrote: Can anyone pls help in this regard? Something like this?: requests.get('https://api.github.com/user', auth=('user', 'pass')) -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.73 cannot install py3exiv2

2019-05-02 Thread Vincent Vande Vyvre
Le 1/05/19 à 15:12, Ken Martell a écrit : I’m a retired aerospace engineer. I’m a Windows 10 user & have zero experience with Python. My goal is to learn, get this working & run lens distortion correction routines using Python. I’ve tried or many hours and read as much as I can but cannot get

Re: Errorcode when running scripts in PyCharm

2019-05-02 Thread אורי
Try to contact PyCharm support at supp...@jetbrains.com אורי u...@speedy.net On Thu, May 2, 2019 at 2:11 PM Hampus Sjödin wrote: > Hey guys, so I've managed to ruin PyCharm for myself.. I just finished my > first script in PyCharm and I tried renaming the file, so I closed PyCharm > to reenter

Re: How to pass username and password in the curl requests using requests python module

2019-05-02 Thread DL Neil
On 2/05/19 11:30 PM, Pradeep Patra wrote: Can anyone pls help in this regard? Yes! | | | | | | | | | | | | | | | | | | | | | | V However, whilst accurate, that answer in NOT helpful? The question is so wide. Which part(s) should we answer? Why

Re: Errorcode when running scripts in PyCharm

2019-05-02 Thread Hampus Sjödin
Den torsdag 2 maj 2019 kl. 13:31:29 UTC+2 skrev DL Neil: > On 2/05/19 11:05 PM, Hampus Sjödin wrote: > > Hey guys, so I've managed to ruin PyCharm for myself.. I just finished my > > first script in PyCharm and I tried renaming the file, so I closed PyCharm > > to reenter the file using the file

Re: Help a noob out

2019-05-02 Thread DL Neil
On 2/05/19 9:30 PM, Arup Rakshit wrote: The input function returns the string value. So you need to convert it to number before the math you do. birth_year = input("What year are you born? ") current_year = 2019 print(type(birth_year)) age = current_year - int(birth_year) print(age) — py

How to pass username and password in the curl requests using requests python module

2019-05-02 Thread Pradeep Patra
Can anyone pls help in this regard? -- https://mail.python.org/mailman/listinfo/python-list

Re: Errorcode when running scripts in PyCharm

2019-05-02 Thread DL Neil
On 2/05/19 11:05 PM, Hampus Sjödin wrote: Hey guys, so I've managed to ruin PyCharm for myself.. I just finished my first script in PyCharm and I tried renaming the file, so I closed PyCharm to reenter the file using the file manager.. And now it won't run when I try to. This is what I get: C

Errorcode when running scripts in PyCharm

2019-05-02 Thread Hampus Sjödin
Hey guys, so I've managed to ruin PyCharm for myself.. I just finished my first script in PyCharm and I tried renaming the file, so I closed PyCharm to reenter the file using the file manager.. And now it won't run when I try to. This is what I get: C:\Users\hampu\AppData\Local\Programs\Python\

Re: Help a noob out

2019-05-02 Thread Hampus Sjödin
Den torsdag 2 maj 2019 kl. 11:43:53 UTC+2 skrev inhahe: > On Thu, May 2, 2019 at 5:26 AM wrote: > > > Hey guys, can someone quickly explain why this piece of code doesn't work? > > (I'm really new to Python) > > > > birth_year = input("What year are you born? ") > > current_year = 2019 > > age =

Re: Help a noob out

2019-05-02 Thread inhahe
On Thu, May 2, 2019 at 5:26 AM wrote: > Hey guys, can someone quickly explain why this piece of code doesn't work? > (I'm really new to Python) > > birth_year = input("What year are you born? ") > current_year = 2019 > age = current_year - birth_year > print(age) > -- > https://mail.python.org/ma

Re: Help a noob out

2019-05-02 Thread Arup Rakshit
The input function returns the string value. So you need to convert it to number before the math you do. birth_year = input("What year are you born? ") current_year = 2019 print(type(birth_year)) age = current_year - int(birth_year) print(age) — python3 age.py What year are you born? 1989

Re: Help a noob out

2019-05-02 Thread Chris Angelico
On Thu, May 2, 2019 at 7:26 PM wrote: > > Hey guys, can someone quickly explain why this piece of code doesn't work? > (I'm really new to Python) > > birth_year = input("What year are you born? ") > current_year = 2019 > age = current_year - birth_year > print(age) Have you looked at the excepti

Help a noob out

2019-05-02 Thread felixen989
Hey guys, can someone quickly explain why this piece of code doesn't work? (I'm really new to Python) birth_year = input("What year are you born? ") current_year = 2019 age = current_year - birth_year print(age) -- https://mail.python.org/mailman/listinfo/python-list

ANN: PyDDF Python Spring Sprint 2019

2019-05-02 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG PyDDF Python Spring Sprint 2019 in Düsseldorf

Re: Fractal Dimension Computation in Python Code

2019-05-02 Thread tiwari . ram77
On Friday, September 29, 2000 at 12:45:00 PM UTC+5:45, Mike Brenner wrote: > Myk> ... Has anyone got a fast routine for calculating the fractal > dimension of a set of points in 2 or 3D space? Thanks. > > According to the inventor of fractals (Hausdorff in the year 1899), you > can place the set

mock 3.0.0 released

2019-05-02 Thread Chris Withers
Hi All, I'm pleased to announce the release of mock 3.0.0: https://pypi.org/project/mock/ This brings to rolling backport up to date with cpython master. It's been a few years since the last release, so I'd be surprised if there weren't some problems. If you hit any issues, please pin to mock

Re: Checking network input processing by Python for a multi-threaded server

2019-05-02 Thread Markus Elfring
>> May I expect that data were completely received from clients and accordingly >> processed by the request handler in the started threads after >> the statement “server.shutdown()” was sucessfully executed? > > Python delegates those low level services to the underlaying > network library, which l