On 2/16/2019 8:10 PM, 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 changelog
at
ht
I have used flask before with no problem. Now I am getting very mysterious
results, which I have reduced to a very small test case.
Here is a flask server, in Python 3, which waits for a message on port 8002
(the port is open):
from flask import Flask, Response
import json
app = Flask(__name_
On 2019-02-17 02:23, Shakti Kumar wrote:
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
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 changelo
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 changelog
at
https://raw.githubusercontent.com/python/cpython/baa
Nevermind...appears to get arguments like this you need to use subprocess.run
rather than subprocess.getoutput (with capture_output = True).
cs
--
https://mail.python.org/mailman/listinfo/python-list
Why this curl command works in shell but NOT when I use subprocess as in
below?.
UL_URL = "https://auphonic.com/api/simple/productions.json";
ul_output = subprocess.getoutput(["curl",
"-X",
"POST",
On 2019-02-16, Barry wrote:
> On 11 Feb 2019, at 20:00, Felix Lazaro Carbonell wrote:
>
>>> The most pythonic way is to do this:
>>>
>>> def find_monthly_expenses(month=datetime.date.today().month,
>> year=datetime.date.today().year):
>>>...
>
> This has subtle bugs.
> The default is calcul
On 11 Feb 2019, at 20:00, Felix Lazaro Carbonell wrote:
>> The most pythonic way is to do this:
>>
>> def find_monthly_expenses(month=datetime.date.today().month,
> year=datetime.date.today().year):
>>...
This has subtle bugs.
The default is calculated at import time and not at function
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 "iter(l)" - which gives you an interator
Woww.. This solves the problem..
Thank you very much
On Sat, 16 Feb 2019, 12:54 Avi Gross Just want to point out you can make any function into a generator by having
> a yield statement like this:
>
> >>> def previous(listing):
> while listing: yield listing.pop()
>
>
> >>> for num in pre
11 matches
Mail list logo