Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'plenty': 0.07; 'sys': 0.07; 'image,': 0.09; 'lawrence': 0.09; 'pil': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'wrote': 0.14; 'compatible.': 0.16; 'fork': 0.16; 'kern': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'terribly': 0.16; 'underlying': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'import': 0.22; 'header:User-Agent:1': 0.23; 'interpret': 0.24; 'subject:Code': 0.24; 'header:X-Complaints-To:1': 0.27; 'header :In-Reply-To:1': 0.27; 'wondering': 0.29; 'robert': 0.30; 'subject:please': 0.30; 'os,': 0.31; 'programmers': 0.33; 'done': 0.36; 'thanks': 0.36; "i'll": 0.36; 'url:org': 0.36; 'being': 0.38; 'to:addr:python-list': 0.38; 'anything': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'how': 0.40; "you've": 0.63; 'email addr:gmail.com': 0.63; 'name': 0.63; 'our': 0.64; 'interest': 0.64; 'world': 0.66; 'believe': 0.68; 'eco': 0.84; 'terrible': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Robert Kern Subject: Re: Code critique please Date: Wed, 08 Apr 2015 13:25:05 +0100 References: <53f4c2fd-a20c-4d09-8719-8f3f9b80670b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 213.1.240.226 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1428495917 news.xs4all.nl 2868 [2001:888:2000:d::a6]:42457 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:88661 On 2015-04-08 01:54, Mark Lawrence wrote: > On 07/04/2015 23:43, kai.peters@gmail.com wrote: >> I just wrote this bit (coming from Pascal) and am wondering how seasoned >> Python programmers would have done the same? Anything terribly non-python? >> >> As always, thanks for all input. >> >> import os, sys >> from PIL import Image, ImageFont, ImageDraw >> > > As you've had plenty of answers I'll just say that PIL is pretty old now. Are > you aware of the fork called Pillow? https://pillow.readthedocs.org/ Pillow uses the name "PIL" for its package name too, in the interest of being drop-in compatible. https://pillow.readthedocs.org/porting-pil-to-pillow.html -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco