Python scripting as side job
Has anyone had any success using Python scripting to automate processes for small businesses as a side job? I'd like to use my Python skills to supplement my income with about 4 hours' work a week. gvim -- https://mail.python.org/mailman/listinfo/python-list
Anaconda with Python 3.7
Anyone have any idea when Anaconda might ship a version compatible with Python 3.7. I sent them 2 emails but no reply. gvim -- https://mail.python.org/mailman/listinfo/python-list
Re: Anaconda with Python 3.7
On 03/09/2018 10:49, Thomas Jollans wrote: On 2018-09-03 11:38, gvim wrote: Anyone have any idea when Anaconda might ship a version compatible with Python 3.7. I sent them 2 emails but no reply. gvim You can install Python 3.7 in a conda environment right now. Most packages (certainly all the ones I use) appear to be available for Python 3.7 at least on Windows and Linux already. That's not the same as a specific Python 3.7 distribution. Why are they so tight-lipped about it? I mean it's been a couple of months now. Do they usually take so long? gvim -- https://mail.python.org/mailman/listinfo/python-list
Anaconda with Python 3.7
Anyone have any idea when Anaconda might ship a version compatible with Python 3.7. I sent them 2 emails but no reply. gvim -- https://mail.python.org/mailman/listinfo/python-list
Re: Anaconda with Python 3.7
On 03/09/2018 10:49, Thomas Jollans wrote: > On 2018-09-03 11:38, gvim wrote: >> Anyone have any idea when Anaconda might ship a version compatible with >> Python 3.7. I sent them 2 emails but no reply. >> >> gvim > > You can install Python 3.7 in a conda environment right now. Most > packages (certainly all the ones I use) appear to be available for > Python 3.7 at least on Windows and Linux already. > That's not the same as a specific Python 3.7 distribution. Why are they so tight-lipped about it? I mean it's been a couple of months now. Do they usually take so long? gvim -- https://mail.python.org/mailman/listinfo/python-list
Conditionals in Python cli with -m oneliner
Given that this work in a Python 3 repl:
import re
txt = "Some random text"
if re.search(r"\b\w{4}\b", txt): txt
'Some random text'
and this works on the command line, printing all lines in logs.txt:
$ python3 -m oneliner -ne 'line' logs.txt
. why does this fail:
$ python3 -m oneliner -m re -ne 'if re.search(r"\b\w{4}\b", line): line'
logs.txt
syntax error in: if re.search(r"\b\w{4}\b", line): line
gvim
--
https://mail.python.org/mailman/listinfo/python-list
Why lambda in loop requires default?
Given that Python, like Ruby, is an object-oriented language why doesn't
this:
def m():
a = []
for i in range(3): a.append(lambda: i)
return a
b = m()
for n in range(3): print(b[n]()) # => 2 2 2
... work the same as this in Ruby:
def m
a = []
(0..2).each {|i| a << ->(){i}}
a
end
aa = m
(0..2).each {|n| puts aa[n].()} # => 0 1 2
lambda i=i: i
... is needed to make it work in Python. Just wondered why?
gvim
--
https://mail.python.org/mailman/listinfo/python-list
