Re: Any timeline for PIL for Python 3.4

2020-08-10 Thread Chris Angelico
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

Re: Any timeline for PIL for Python 3.4

2020-08-10 Thread jfong
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

Re: Any timeline for PIL for Python 3.4

2020-08-10 Thread dn via Python-list
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

Re: Any timeline for PIL for Python 3.4

2020-08-10 Thread Mike Dewhirst
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

Any timeline for PIL for Python 3.4

2020-08-10 Thread Martin
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. -

Re: importlib: import X as Y; from A import B

2020-08-10 Thread Jason Friedman
> > 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

Re: How to remove "" from starting of a string if provided by the user

2020-08-10 Thread Ganesh Pal
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'" >

Re: Save-to-file code not quite working completely

2020-08-10 Thread dn via Python-list
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

Re: How to remove "" from starting of a string if provided by the user

2020-08-10 Thread MRAB
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

Re: How to remove "" from starting of a string if provided by the user

2020-08-10 Thread Cameron Simpson
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

Re: How explain why Python is easier/nicer than Lisp which has a simpler grammar/syntax?

2020-08-10 Thread Chris Angelico
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

Re: Strange namespace issue

2020-08-10 Thread Chris Angelico
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

Re: How explain why Python is easier/nicer than Lisp which has a simpler grammar/syntax?

2020-08-10 Thread Roel Schroeven
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

Strange namespace issue

2020-08-10 Thread Lele Gaifax
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

How to remove "" from starting of a string if provided by the user

2020-08-10 Thread Ganesh Pal
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