cept:
> pass
> print(s)
> ===
>
>
> I don't want to cram this into a python -c " " line, if it even is
> possible; how do you handle indentation levels and loops??
>
I agree. Perhaps we need a ‘awk’ module/package. I see that there is one
in PyPI but
foo')
>> logger.addHandler(ch)
>> logger.setLevel(logging.DEBUG)
--
Regards,
Pankaj Jangid
--
https://mail.python.org/mailman/listinfo/python-list
Chris Green writes:
> I have two (or maybe even three) versions of Click installed:-
>
> /usr/local/lib/python2.7/dist-packages/click
> /usr/local/lib/python3.7/dist-packages/click
> /usr/lib/python3/dist-packages/click
>
> I run [x]ubuntu.
>
> How can I uninstall those extra versions of click (w
https://news.ycombinator.com/item?id=21834408
--
https://mail.python.org/mailman/listinfo/python-list
Christian Heimes writes:
> On 04/12/2019 18.59, David Lowry-Duda wrote:
>> I notice that "python3-dateutil" is in over 4000 github repositories
>> [1]. That sounds like a disaster.
>>
>> [1]: https://github.com/search?q=python3-dateutil&type=Code
>
> At least the first pages are packaging files
second is "jeIlyfish" (the first L is an I), which mimicked
the "jellyfish" library.
```
https://www.zdnet.com/article/two-malicious-python-libraries-removed-from-pypi/
Regards,
--
Pankaj Jangid
--
https://mail.python.org/mailman/listinfo/python-list
4 within python
> code. if there is solution in google i am very sorry.
In Emacs, use "M-x untabify". And "M-x tabify" if you want to do the
reverse.
Regards,
--
Pankaj Jangid
--
https://mail.python.org/mailman/listinfo/python-list
> Any help is appreciated..
Could you please elaborate a little bit? I didn't get from where you
want to retrieve data? Is this somewhere hosted? Or you want to see raw
files from your own Jupyter notebook running on your own machine.
Regards,
--
Pankaj Jangid
--
https://mail.python.org
>> Someone requested my answer to the question: "Can we use Python for
>> hacking?"
> Sigh. I suppose it's a lost battle to reclaim that word.
So true. I still remember the ESR article that I used to share twenty
years ago.
--
Pankaj Jangid
--
https://mail.pyth
that Data Science, Machine Learning etc. fields
have helped in proliferation of Python lately. And the above mentioned
libraries have great role. We should make it even more easier to manage
mixed native projects portably. GNU Make is the way to go. Thanks for
raising this.
Regards,
--
Pankaj Jangid
--
https://mail.python.org/mailman/listinfo/python-list
ion, however, now this problem pops up.
> [image: image.png]
> Can you help me with this?
>
python3 -m pip install
--
Pankaj Jangid
--
https://mail.python.org/mailman/listinfo/python-list
;.
>>
>> You can't upgrade pip using "pip install --upgrade pip".
>>
>
> Only a consideration on Windows. Other platforms are absolutely fine
> upgrading pip either way.
>
Oh! I wasn't aware of this Windows thing. Thanks.
--
Pankaj Jangid
--
https://mail.python.org/mailman/listinfo/python-list
Michael Torrie writes:
> On 10/10/19 1:21 AM, Pankaj Jangid wrote:
>> So the scripts will just work fine if you simply use ~import pip~
>> and work with it.
>>
>> Suppose you were writing bash scripts around python programs. Then
>> what will be the beha
Hongyi Zhao writes:
> Hongyi Zhao 于2019年10月8日周二 下午4:53写道:
>>
>> Cameron Simpson 于2019年10月8日周二 下午12:25写道:
>> >
>> > On 08Oct2019 02:49, Hongyi Zhao wrote:
>> > >On Tue, 08 Oct 2019 06:28:05 +0530, Pankaj Jangid wrote:
>> > >> A v
Hongyi Zhao writes:
> Hi,
>
> What's the diff:
>
> python -m pip install mod
> and
> pip install mod
A very good use-case is when you have both, python2 and python3
installed.
python2 -m pip install mod
and
python3 -m pip install mod
will install the package in the corresponding PYTHONPATH.
> unless you use it from another directory.
>
Somewhat related to the OP's question.
So what is a good strategy in an application? I am now inclined to use
relative path and working directory both. And when there is change of
runtime context just change the working directory and assemble
change if you add a new example and re-run K-means.
On the other hand if you don't want to change the cluster compositions
and just want to find a cluster for a new example then it is not
K-means. In that case it is Knearest classifier.
--
Pankaj Jangid
--
https://mail.python.org/mailman/listinfo/python-list
inhahe writes:
> On Tue, Sep 10, 2019 at 8:41 AM Pankaj Jangid
> wrote:
>
>> You can do something like this ;-)
>>
>>
>> import math
>>
>> def add_vat(a, b):
>> return math.ceil(100*(a * 0.57 + sum([ord(c) for c in list(b)]) *
>>
ow'))
>
> Outcome:
>
> 122.21
> 110.09
>
You can do something like this ;-)
import math
def add_vat(a, b):
return math.ceil(100*(a * 0.57 + sum([ord(c) for c in list(b)]) *
0.15538))/100
print(add_vat(101, 'high'))
print(add_vat(101, 'low'))
--
Pankaj Jangid
--
https://mail.python.org/mailman/listinfo/python-list
Coming with a baggage of other languages. :-) I should have searched
it. Thanks a lot for sharing this.
Regards.
--
Pankaj Jangid
--
https://mail.python.org/mailman/listinfo/python-list
= 1
if m > p:
q = m# Changed 'p' to 'q'
visit()
print(p)
--
Pankaj Jangid
--
https://mail.python.org/mailman/listinfo/python-list
t; The main idea is to read only these portions of the .txt file (i.e. Those
> within parentheses):
>
This should work for the outer parenthesis:
import re
p = re.compile(r"\((.+)\)", re.VERBOSE)
with open('filename','r') as fd:
lines = fd.readlines()
f
example that you gave, you have written contents of
"list_of_devices.txt" as
test1,test2
Take care to read them as comma separated. Or if you have control then
write them on separate lines.
Regards.
--
Pankaj Jangid
--
https://mail.python.org/mailman/listinfo/python-list
in parallel
> 3. Verify Response headers of each URL requests
> 4. Login to remote machine ( to which requests is fired) and verify logs
>
1st is a load testing. You can use something like Apache JMeter. For
other advanced validations use Desktop version of vREST -
https://desktop.vrest.io
for validation and testing.
--
Pankaj Jangid
--
https://mail.python.org/mailman/listinfo/python-list
ess":
> "10.10.10.230/30"}
This could be python version issue at your end. But I am thinking why
this is getting rejected by Postman as well. Try with vREST.
--
Pankaj Jangid
--
https://mail.python.org/mailman/listinfo/python-list
Abdur-Rahmaan Janhangeer writes:
> Was browsing when i came across this hilarious piece of text:
>
> source: http://enki-editor.org/2014/08/23/Pyqt_mem_mgmt.html
>
I haven't searched for it though, but I guess if there is a Qt like
framework in Rust then a Python wrapper around it would behave mo
Ben Finney writes:
> John Doe writes:
>
>> What is your favorite Python IDE?
>
> Maybe the Atom editor will get there some day, though for now I hear
> many complaints that with many plug-ins active it's just too slow when
> doing the kind of complex tasks we expect of a programmer's editor like
28 matches
Mail list logo