Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; '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; 'language.': 0.14; 'fork': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'terribly': 0.16; 'language': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'import': 0.22; 'header:User-Agent:1': 0.23; 'subject:Code': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'wondering': 0.29; 'subject:please': 0.30; 'os,': 0.31; 'programmers': 0.33; 'done': 0.36; 'thanks': 0.36; "i'll": 0.36; 'url:org': 0.36; '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; 'our': 0.64; 'charset:windows-1252': 0.65 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Code critique please Date: Wed, 08 Apr 2015 01:54:35 +0100 References: <53f4c2fd-a20c-4d09-8719-8f3f9b80670b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-186-84.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: <53f4c2fd-a20c-4d09-8719-8f3f9b80670b@googlegroups.com> 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1428454487 news.xs4all.nl 2932 [2001:888:2000:d::a6]:60143 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:88640 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/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence