Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!takemy.news.telefonica.de!telefonica.de!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'freelance': 0.05; 'subject:Python': 0.06; 'variables': 0.07; 'back.': 0.09; 'lawrence': 0.09; 'developer': 0.10; 'cc:addr :python-list': 0.11; 'python': 0.11; 'wrote': 0.14; 'language.': 0.14; 'thread': 0.14; "wouldn't": 0.14; '"global"': 0.16; '"mark': 0.16; 'globals.': 0.16; 'language': 0.16; 'wrote:': 0.18; 'looked': 0.18; 'thu,': 0.19; '>>>': 0.22; 'example': 0.22; 'programming': 0.22; 'cc:addr:python.org': 0.22; 'skip:n 60': 0.24; 'java': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; '"': 0.31; 'easy,': 0.31; 'flying': 0.31; 'front': 0.32; 'another': 0.32; 'url:python': 0.33; 'ago': 0.33; 'maybe': 0.34; 'received:209.85': 0.35; 'late': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'skip:& 10': 0.38; 'bad': 0.39; 'quote': 0.39; 'url:mail': 0.40; 'how': 0.40; 'first': 0.61; 'our': 0.64; 'telling': 0.64; 'love': 0.65; 'experience.': 0.67; 'from:addr:admin': 0.78; 'introduce': 0.78; '"real': 0.84; 'to:addr:yahoo.co.uk': 0.84; 'url:asia': 0.84; 'colleague': 0.91; 'problems?': 0.91 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=NOLCerRWadps/a0LZ1mGG1WjjpeWM+/wJIsK/R0nTsA=; b=cVuMfRL5OvMxBR20w9zJDJe9ASMG87YkHKw0DEMFz+vyXJ8HujPydjpOp1FEJ4G2Nm D+swTrDttPWb+hxHe07HtHRxObMRoZ1NwEepZ5VnhogcRjhNn00KgVyY+Al8whHwMdpz pcI4q8hnB5jM7YbnV/r+U7W45ZLb5Oo4D3tml4L5WJCsjVhz1i9sGy6jMn5u9QOJaz6k titCwasY/Z1rARFwsKt4j5SHJ1SV8PycIQVE3Q/4jfYms+IJ8wi0QoEdrVIfjH325ONf gUGM5KmvR1equKgMJCEpb01Mtacg85/EBwcH3AeMScc/ld9aZpbBMJ5Rzu2aLi3CiKdS Soiw== X-Gm-Message-State: ALoCoQka1yF27BJMJ28zCPcrfzCsFdRI3+1Y4f5wkZgyxz1YMa1rMdK0BMvk0PrPyJb7tanvOWs7 MIME-Version: 1.0 X-Received: by 10.60.134.20 with SMTP id pg20mr5544935oeb.36.1417669431476; Wed, 03 Dec 2014 21:03:51 -0800 (PST) X-Originating-IP: [61.14.154.230] In-Reply-To: References: Date: Thu, 4 Dec 2014 13:03:51 +0800 Subject: Re: Python handles globals badly. From: jtan To: Mark Lawrence Content-Type: multipart/alternative; boundary=047d7b472948df620305095ce24a X-Mailman-Approved-At: Thu, 04 Dec 2014 11:18:35 +0100 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 130 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417688317 news.xs4all.nl 2886 [2001:888:2000:d::a6]:59393 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81889 --047d7b472948df620305095ce24a Content-Type: text/plain; charset=UTF-8 How can Skybuck use so much globals. Wouldn't that introduce a lot of thread safety problems? On Thu, Dec 4, 2014 at 9:32 AM, Mark Lawrence wrote: > On 03/12/2014 23:02, Skybuck Flying wrote: > >> >> >> "Mark Lawrence" wrote in message >> news:mailman.16534.1417610132.18130.python-list@python.org... >> >> On 03/12/2014 02:27, Skybuck Flying wrote: >> >>> Excuse is: "bad programming style". >>> >>> I don't need snot telling me how to program after 20 years of >>> programming experience. >>> >>> This is so far the only thing pissing me off in python. >>> >>> Now I have to declare "global" in front of these variables every where I >>> want to use em: >>> >> > This reminds of of a quote from a colleague some 25 years ago "Real time > programming is easy, you just make all the data global". Perhaps you > attended the same school? > > >> " >> Another example of a bad workman always blames his tools. >> " >> >> Euhm, so why don't you program with just 0 and 1's then ? ;) >> >> > I did with the M6800 in the late 70s. Thankfully maybe 12 years ago I > came across Python and it was love at first sight. I've never looked back. > > -- > My fellow Pythonistas, ask not what our language can do for you, ask > what you can do for our language. > > Mark Lawrence > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Freelance Grails and Java developer --047d7b472948df620305095ce24a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
How can Skybuck use so much globals. Wouldn't that int= roduce a lot of thread safety problems?
On Thu, Dec 4, 2014 at 9:32 AM, Mark Lawrence <= span dir=3D"ltr"><breamoreboy@yahoo.co.uk> wrote:
On 03/12/2014 23:02, Skybuck Flying wrote:


"Mark Lawrence"=C2=A0 wrote in message
news:mailman.16534.1417610132.18130.python-list@python.org...

On 03/12/2014 02:27, Skybuck Flying wrote:
Excuse is: "bad programming style".

I don't need snot telling me how to program after 20 years of
programming experience.

This is so far the only thing pissing me off in python.

Now I have to declare "global" in front of these variables every = where I
want to use em:

This reminds of of a quote from a colleague some 25 years ago "Real ti= me programming is easy, you just make all the data global".=C2=A0 Perh= aps you attended the same school?


"
Another example of a bad workman always blames his tools.
"

Euhm, so why don't you program with just 0 and 1's then ? ;)


I did with the M6800 in the late 70s.=C2=A0 Thankfully maybe 12 years ago I= came across Python and it was love at first sight.=C2=A0 I've never lo= oked back.

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list



--
Freelance=C2=A0Grails and Java=C2=A0developer
--047d7b472948df620305095ce24a--