How to remove " from the starting and ending of a string , before
comparison . Here is an example and my solution wtih eval ( I am advised
not to use this one) , please suggest an alternative . I am on linux and
python 2.7
g1@X1:/tmp$ cat file2.py
#!/usr/bin/python
# Case 1 - server2 file is "'/f
Hi all,
today I faced an issue that, although very easy to fix, left me wondering
about what causes it.
The context is an application that execute small scripts coming from an
external source (say, a database). The application first compile the script,
then execute it passing it some values: in t
Terry Reedy schreef op 7/08/2020 om 22:08:
On 8/7/2020 11:46 AM, Chris Angelico wrote:
My point is that doing Fibonacci recursively is arguably more elegant
while being materially worse at performance.
This is a common misconception. Linear iteration and tail recursion are
equivalent. The i
On Tue, Aug 11, 2020 at 5:44 AM Lele Gaifax wrote:
>
> Hi all,
>
> today I faced an issue that, although very easy to fix, left me wondering
> about what causes it.
>
> The context is an application that execute small scripts coming from an
> external source (say, a database). The application firs
On Tue, Aug 11, 2020 at 5:48 AM Roel Schroeven wrote:
> I'm not saying there is nothing useful in functional programming and the
> use of recursion; there most certainly is. But the way many texts
> introduce it IMO doesn't help at all to understand the elegance that can
> be achieved.
Indeed. Wh
On 11Aug2020 00:05, Ganesh Pal wrote:
>How to remove " from the starting and ending of a string , before
>comparison . Here is an example and my solution wtih eval ( I am advised
>not to use this one) , please suggest an alternative . I am on linux and
>python 2.7
Indeed. Using eval is extremely
On 2020-08-10 19:35, Ganesh Pal wrote:
How to remove " from the starting and ending of a string , before
comparison . Here is an example and my solution wtih eval ( I am advised
not to use this one) , please suggest an alternative . I am on linux and
python 2.7
g1@X1:/tmp$ cat file2.py
#!/usr/bi
On 10/08/2020 05:23, Dennis Lee Bieber wrote:
On Sun, 9 Aug 2020 11:50:51 +1200, dn via Python-list
declaimed the following:
To be a logomach, let's talk about "update":-
May I advise that a 'good practice' would be to create a new file, and
thus be able to (also) maintain the old version as a
The possible value of stat['server2'] can be either (a)
"'/fileno_100.txt'" or (b) '/fileno_100.txt' .
How do I check if it the value was (a) i.e string started and ended
with a quote , so that I can use ast.literal_eval()
>>> import ast
>>> stat = {}
>>> stat['server2'] = "'/fileno_100.txt'"
>
>
> import pandas; pd = pandas
>
> >df = pd.from_csv (...)
> >from selenium import webdriver
>
> import selenium.webdriver; webdriver = selenium.webdriver
>
Thank you, this works.
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
I am running Python 3.4.4, and would like to
use the Python Imaging Library (PIL). This
is currently not available for Python
Version 3. Does anybody know when it will
become available?
Plan B is to install Python 2.7.18. I just
need an idea of how long I would need to
wait for Plan A.
-
On 11/08/2020 2:35 pm, Martin wrote:
> Hi,
>
> I am running Python 3.4.4, and would like to
> use the Python Imaging Library (PIL). This
> is currently not available for Python
> Version 3. Does anybody know when it will
> become available?
Try Pillow
https://pillow.readthedocs.io/en/stable/ins
On 11/08/2020 16:35, Martin wrote:
I am running Python 3.4.4, and would like to
use the Python Imaging Library (PIL). This
is currently not available for Python
Version 3. Does anybody know when it will
become available?
Plan B is to install Python 2.7.18. I just
need an idea of how long I wo
dn於 2020年8月11日星期二 UTC+8下午1時29分47秒寫道:
> On 11/08/2020 16:35, Martin wrote:
> > I am running Python 3.4.4, and would like to
> > use the Python Imaging Library (PIL). This
> > is currently not available for Python
> > Version 3. Does anybody know when it will
> > become available?
> >
> > Plan B i
On Tue, Aug 11, 2020 at 2:41 PM Martin
wrote:
>
> Hi,
>
> I am running Python 3.4.4, and would like to
> use the Python Imaging Library (PIL). This
> is currently not available for Python
> Version 3. Does anybody know when it will
> become available?
>
> Plan B is to install Python 2.7.18. I j
15 matches
Mail list logo