Re: syntax difference

2018-06-24 Thread Steven D'Aprano
On Sun, 24 Jun 2018 21:21:57 +0100, Bart wrote: > I've had half a dozen users Come back when you've had *half a million users* then we'll take your experiences seriously. https://blog.pythonanywhere.com/67/ https://stackoverflow.blog/2017/09/06/incredible-growth-python/ For a language which d

Re: Quick survey: locals in comprehensions (Python 3 only)

2018-06-24 Thread Ben Finney
Paul Moore writes: > On 24 June 2018 at 06:03, Steven D'Aprano > wrote: > > Given this function: > > > > def test(): > > a = 1 > > b = 2 > > result = [value for key, value in locals().items()] > > return result > > > > what would you expect the result of calling test() to be? […]

Re: Anyone here on Python-Dev mailing list?

2018-06-24 Thread Ben Finney
Steven D'Aprano writes: > Anyone on the Python-Dev mailing list, are you getting private emails > containing nothing but stream of consciousness word-salad from > somebody (some bot?) calling himself "Chanel Marvin" with a gmail > address? I am on that forum (via Gmane), and am not receiving any

Re: Package directory question

2018-06-24 Thread Ben Finney
Robert Latest via Python-list writes: > Because the main.py script needs to import the tables.py module from > backend, I put this at the top if main.py: > >sys.path.append('../..') >import jobwatch.backend.tables as tables > > My question is: Is this the way it should be done? It looks f

Re: Quick survey: locals in comprehensions (Python 3 only)

2018-06-24 Thread Paul Moore
On 24 June 2018 at 06:03, Steven D'Aprano wrote: > I'd like to run a quick survey. There is no right or wrong answer, since > this is about your EXPECTATIONS, not what Python actually does. > > Given this function: > > > def test(): > a = 1 > b = 2 > result = [value for key, value in l

[ANN] pdfposter 0.7

2018-06-24 Thread Hartmut Goebel
I'm pleased to announce pdftools.pdfposter 0.7, a tool to scale and tile PDF images/pages to print on multiple pages. :Homepage: https://pdfposter.readthedocs.io/ :Author:   Hartmut Goebel :Licence:  GNU Public Licence v3 (GPLv3) :Quick Installation:     pip install -U pdftools.pdfposter :Tarba

Re: syntax difference

2018-06-24 Thread Bart
On 24/06/2018 20:02, Steven D'Aprano wrote: On Sun, 24 Jun 2018 19:37:33 +0100, Bart wrote: I want to program in /my/ style Python is not Java, and Java is not Python either. Nor is it "Bart's Language", or C, or Forth, or Lisp, or bash. https://dirtsimple.org/2004/12/python-is-not-java.html

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-24 Thread Abdur-Rahmaan Janhangeer
naaa it was not meant to be python ^^ Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ > > -- https://mail.python.org/mailman/listinfo/python-list

Re: translating foreign data

2018-06-24 Thread Stefan Ram
To: Richard Damon From: r...@zedat.fu-berlin.de (Stefan Ram) Richard Damon writes: >Now, if I have a parser that doesn't use the locale, but some other rule >base than I just need to provide it with the right rules, which is >basically just defining the right locale. Here's an example C++ pr

Re: translating foreign data

2018-06-24 Thread Peter J. Holzer
From: "Peter J. Holzer" --b2wbudmypdkmv7il Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2018-06-23 12:11:34 -0400, Richard Damon wrote: > On 6/23/18 10:05 AM, Peter J. Holzer wrote: > > On 2018-06-23 08:41:38 -0400, Richar

Re: Static variables [was Re: syntax difference]

2018-06-24 Thread MRAB
From: MRAB On 2018-06-23 05:16, Chris Angelico wrote: > On Sat, Jun 23, 2018 at 1:51 PM, Steven D'Aprano > wrote: >> On Wed, 20 Jun 2018 14:18:19 +1000, Chris Angelico wrote: >> >>> Ah. Yeah, that would be a plausible feature to add to Python. But in C, >>> a static variable is basically the sam

Re: Static variables [was Re: syntax difference]

2018-06-24 Thread Bart
To: Stefan Ram From: Bart On 23/06/2018 14:32, Stefan Ram wrote: > r...@zedat.fu-berlin.de (Stefan Ram) writes: >> def f(): >> def g(): >> g.x += 1 >> return g.x >> g.x = 0 >> return g > >Or, "for all g to share the same x": > >main.py > > def f(): > def

Re: translating foreign data

2018-06-24 Thread Richard Damon
From: Richard Damon On 6/23/18 11:44 AM, Steven D'Aprano wrote: > On Sat, 23 Jun 2018 08:12:52 -0400, Richard Damon wrote: > >> On 6/23/18 7:46 AM, Steven D'Aprano wrote: >>> On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote: >>> If you know the Locale, then you do know what the decima

Re: translating foreign data

2018-06-24 Thread Richard Damon
From: Richard Damon On 6/23/18 10:05 AM, Peter J. Holzer wrote: > On 2018-06-23 08:41:38 -0400, Richard Damon wrote: >> On 6/23/18 8:28 AM, Peter J. Holzer wrote: >>> On 2018-06-23 08:12:52 -0400, Richard Damon wrote: On 6/23/18 7:46 AM, Steven D'Aprano wrote: > If I'm in Australia, usin

Re: translating foreign data

2018-06-24 Thread Peter J. Holzer
From: "Peter J. Holzer" --ngg56dmsr6vcxzs5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2018-06-23 12:41:33 -0400, Richard Damon wrote: > On 6/23/18 11:44 AM, Steven D'Aprano wrote: > > You're assuming that there will be a

Re: "Data blocks" syntax specification draft

2018-06-24 Thread Rick Johnson
From: Rick Johnson On Sunday, May 20, 2018 at 5:29:11 PM UTC-5, Mikhail V wrote: > What against PDF? I'm not a big fan of PDF either. Adobe Reader is one the most bloated POS software i have ever had the misfortune of hosting on my computers, and i absolutely refuse to host that crapware any lo

Re: translating foreign data

2018-06-24 Thread Dennis Lee Bieber
From: Dennis Lee Bieber On Sat, 23 Jun 2018 15:44:14 + (UTC), Steven D'Aprano declaimed the following: >1.234.567,012345678 > >which is understandable to anyone who is aware of the possibility that >comma may mean decimal separator and period the thousands separator. > Or it is

Re: translating foreign data

2018-06-24 Thread Steven D'Aprano
From: Steven D'Aprano On Sat, 23 Jun 2018 08:12:52 -0400, Richard Damon wrote: > On 6/23/18 7:46 AM, Steven D'Aprano wrote: >> On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote: >> >>> If you know the Locale, then you do know what the decimal separator >>> is, as that is part of what a loc

Re: translating foreign data

2018-06-24 Thread Steven D'Aprano
From: Steven D'Aprano On Sat, 23 Jun 2018 09:42:29 -0400, Richard Damon wrote: > On 6/23/18 9:05 AM, Marko Rauhamaa wrote: >> Ok. Here's a value for you: >> >> 100ΓΘ¼ >> >> I see '1', '0', '0', 'ΓΘ¼'. What do you see in your locale (LC_MONETARY)? > > If I processed that on my system I would

Re: "Data blocks" syntax specification draft

2018-06-24 Thread Abdur-Rahmaan Janhangeer
From: Abdur-Rahmaan Janhangeer the tab separated idea is used in : e.g. see last section of files Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ > > --- BBBS/Li6 v4.10 Toy-3 * Origin: Prism bbs (1:261/38) -- https://mail.python.org/mailman/listinfo/python-list

Re: translating foreign data

2018-06-24 Thread Peter J. Holzer
From: "Peter J. Holzer" --p4u6dkqn7e5fhtwt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2018-06-23 08:41:38 -0400, Richard Damon wrote: > On 6/23/18 8:28 AM, Peter J. Holzer wrote: > > On 2018-06-23 08:12:52 -0400, Richard

Re: translating foreign data

2018-06-24 Thread Peter J. Holzer
From: "Peter J. Holzer" --jbhqoow7s7225t6e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2018-06-23 16:05:49 +0200, Peter J. Holzer wrote: > I don't think that's a useful way to look at it. "Locale" in > (non-technical) Eng

Re: Static variables [was Re: syntax difference]

2018-06-24 Thread Stefan Ram
To: Steven D'Aprano From: r...@zedat.fu-berlin.de (Stefan Ram) Steven D'Aprano writes: >def f(): >static x = 0 >def g(): >x += 1 >return x >return g What one can do today: main.py def g(): g.x += 1 return g.x g.x = 0 print( g() ) print( g() ) print( g

Re: Static variables [was Re: syntax difference]

2018-06-24 Thread Ed Kellett
From: Ed Kellett This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Xw5fa1GFtucLPGBT1sLtLtUpmbraGkiYl Content-Type: multipart/mixed; boundary="lDyl22ZCUIEM3fl5YMnfJ3B8O9bwBCY9r"; protected-headers="v1" From: Ed Kellett To: python-list@python.org Message-ID: <98ecd8c1-13b7-8317-8177-6a

Re: translating foreign data

2018-06-24 Thread Marko Rauhamaa
To: Richard Damon From: Marko Rauhamaa Richard Damon : > On 6/23/18 9:05 AM, Marko Rauhamaa wrote: >> Richard Damon : >> >>> On 6/23/18 8:03 AM, Marko Rauhamaa wrote: I always know my locale. The locale is tied to the human user. >>> No, it should be tied to the data you are processing. >

Re: translating foreign data

2018-06-24 Thread Richard Damon
From: Richard Damon On 6/23/18 9:05 AM, Marko Rauhamaa wrote: > Richard Damon : > >> On 6/23/18 8:03 AM, Marko Rauhamaa wrote: >>> I always know my locale. The locale is tied to the human user. >> No, it should be tied to the data you are processing. >In computing, a locale is a set of parame

Re: translating foreign data

2018-06-24 Thread Richard Damon
From: Richard Damon On 6/23/18 8:03 AM, Marko Rauhamaa wrote: > Richard Damon : >> If you know the Locale, then you do know what the decimal separator >> is, as that is part of what a locale defines. > I don't know what that sentence means. When you set the locale > >> The issue is that if you ju

Re: translating foreign data

2018-06-24 Thread Richard Damon
From: Richard Damon On 6/23/18 7:46 AM, Steven D'Aprano wrote: > On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote: > >> If you know the Locale, then you do know what the decimal separator is, >> as that is part of what a locale defines. > A locale defines a set of common cultural conventio

Re: Static variables [was Re: syntax difference]

2018-06-24 Thread Stefan Ram
To: Stefan Ram From: r...@zedat.fu-berlin.de (Stefan Ram) r...@zedat.fu-berlin.de (Stefan Ram) writes: >def f(): >def g(): >g.x += 1 >return g.x >g.x = 0 >return g Or, "for all g to share the same x": main.py def f(): def g(): f.x += 1 retur

Re: translating foreign data

2018-06-24 Thread Steven D'Aprano
From: Steven D'Aprano On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote: > If you know the Locale, then you do know what the decimal separator is, > as that is part of what a locale defines. A locale defines a set of common cultural conventions. It doesn't mandate the actual conventions i

Re: translating foreign data

2018-06-24 Thread Marko Rauhamaa
To: Richard Damon From: Marko Rauhamaa Richard Damon : > On 6/23/18 8:03 AM, Marko Rauhamaa wrote: >> I always know my locale. The locale is tied to the human user. > No, it should be tied to the data you are processing. In computing, a locale is a set of parameters that defines the user's

Re: ironpython not support py3.6

2018-06-24 Thread Peter J. Holzer
From: "Peter J. Holzer" --prnws536gtytpj5v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2018-06-22 17:20:29 -0700, denis.akhiya...@gmail.com wrote: > Either wait for IronPython 3.6, use COM interop, pythonnet, > subprocess

Re: translating foreign data

2018-06-24 Thread Richard Damon
From: Richard Damon On 6/23/18 8:28 AM, Peter J. Holzer wrote: > On 2018-06-23 08:12:52 -0400, Richard Damon wrote: >> On 6/23/18 7:46 AM, Steven D'Aprano wrote: >>> On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote: If you know the Locale, then you do know what the decimal separator i

Re: ironpython not support py3.6

2018-06-24 Thread wxjmfauth
To: Steven D'Aprano From: wxjmfa...@gmail.com Le vendredi 22 juin 2018 11:07:15 UTC+2, Steven D'Aprano a ─CcritΓ : > > C# <--> IronPython 2.7 <--> CPython 3.6 > C# <--> IronPython 2.7. It will not work. Coding of characters ! Try with IronPython 2.7.8. PS Yes, I know, it is based on .NET !!!

Re: Static variables [was Re: syntax difference]

2018-06-24 Thread Bart
To: Steven D'Aprano From: Bart On 23/06/2018 04:51, Steven D'Aprano wrote: > On Wed, 20 Jun 2018 14:18:19 +1000, Chris Angelico wrote: > >> Ah. Yeah, that would be a plausible feature to add to Python. But in C, >> a static variable is basically the same thing as a global variable, >> except th

Re: Static variables [was Re: syntax difference]

2018-06-24 Thread Chris Angelico
From: Chris Angelico On Sat, Jun 23, 2018 at 1:51 PM, Steven D'Aprano wrote: > On Wed, 20 Jun 2018 14:18:19 +1000, Chris Angelico wrote: > >> Ah. Yeah, that would be a plausible feature to add to Python. But in C, >> a static variable is basically the same thing as a global variable, >> except t

Re: translating foreign data

2018-06-24 Thread Peter J. Holzer
From: "Peter J. Holzer" --drblskvcly73v23o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2018-06-23 08:12:52 -0400, Richard Damon wrote: > On 6/23/18 7:46 AM, Steven D'Aprano wrote: > > On Sat, 23 Jun 2018 06:26:22 -0400, R

Re: translating foreign data

2018-06-24 Thread Marko Rauhamaa
To: Richard Damon From: Marko Rauhamaa Richard Damon : > If you know the Locale, then you do know what the decimal separator > is, as that is part of what a locale defines. I don't know what that sentence means. > The issue is that if you just know the encoding, you don't necessarily > know t

Static variables [was Re: syntax difference]

2018-06-24 Thread Steven D'Aprano
From: Steven D'Aprano On Wed, 20 Jun 2018 14:18:19 +1000, Chris Angelico wrote: > Ah. Yeah, that would be a plausible feature to add to Python. But in C, > a static variable is basically the same thing as a global variable, > except that its name is scoped to the function. There is only one of i

Re: translating foreign data

2018-06-24 Thread Steven D'Aprano
From: Steven D'Aprano On Fri, 22 Jun 2018 20:06:35 +0100, Ben Bacarisse wrote: > Steven D'Aprano writes: > >> On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote: >> > The code page remark is curious. Will some "code pages" have digits > that are not ASCII digits? Good qu

Re: translating foreign data

2018-06-24 Thread Richard Damon
From: Richard Damon On 6/22/18 11:21 PM, Steven D'Aprano wrote: > On Fri, 22 Jun 2018 20:06:35 +0100, Ben Bacarisse wrote: > >> Steven D'Aprano writes: >> >>> On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote: >>> >> The code page remark is curious. Will some "code pages" have digits

Re: Static variables [was Re: syntax difference]

2018-06-24 Thread Chris Angelico
From: Chris Angelico On Sat, Jun 23, 2018 at 2:16 PM, Chris Angelico wrote: > For getting rid of the "len=len" trick, though, I would REALLY like to > transform those into LOAD_CONST. That'd be a fun bytecode hack all on > its own. In fact, I'm gonna have a shot at that. An "early bind these > n

RE: ironpython not support py3.6

2018-06-24 Thread denis akhiyarov
To: Schachner, Joseph From: denis.akhiya...@gmail.com Either wait for IronPython 3.6, use COM interop, pythonnet, subprocess, or things like gRPC. Based on PyPy experience, it is probably 1-2 years of sponsored development to get a working IronPython 3.6. --- BBBS/Li6 v4.10 Toy-3 * Origin: Pri

Re: Feeding the trolls

2018-06-24 Thread mm0fmf
To: Steven D'Aprano From: mm0fmf On 22/06/2018 00:51, Steven D'Aprano wrote: > On Thu, 21 Jun 2018 21:49:15 +0100, mm0fmf wrote: > > [snip unnecessary quoting] >> Design requirements for python newsreader client: >> >> 1. Block all top posters > > I think it would be far more useful to block bo

Re: translating foreign data

2018-06-24 Thread Ben Bacarisse
To: Steven D'Aprano From: Ben Bacarisse Steven D'Aprano writes: > On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote: > The code page remark is curious. Will some "code pages" have digits that are not ASCII digits? >>> >>> Good question. I have no idea. >> >> It's much more o

Re: translating foreign data

2018-06-24 Thread Richard Damon
On 6/23/18 10:44 PM, Steven D'Aprano wrote: > On Sat, 23 Jun 2018 17:52:55 -0400, Richard Damon wrote: > >> If you have more than just a number representing a value in the locale >> currency, you can't ask the locale how to present/accept it. > You're the only one saying that it has to be handled b

Re: syntax difference

2018-06-24 Thread Richard Damon
On 6/24/18 3:02 PM, Steven D'Aprano wrote: > On Sun, 24 Jun 2018 19:37:33 +0100, Bart wrote: > >> I want to program in /my/ style > Python is not Java, and Java is not Python either. Nor is it "Bart's > Language", or C, or Forth, or Lisp, or bash. > > https://dirtsimple.org/2004/12/python-is-not-j

Re: syntax difference

2018-06-24 Thread Steven D'Aprano
On Sun, 24 Jun 2018 19:37:33 +0100, Bart wrote: > I want to program in /my/ style Python is not Java, and Java is not Python either. Nor is it "Bart's Language", or C, or Forth, or Lisp, or bash. https://dirtsimple.org/2004/12/python-is-not-java.html https://dirtsimple.org/2004/12/java-is-not-

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-24 Thread Bart
On 24/06/2018 19:36, Abdur-Rahmaan Janhangeer wrote: see for example https://en.m.wikipedia.org/wiki/Bresenham%27s_line_algorithm see the pseudocode, i was implementing some raster algos when i found myself aux anges so close to py. i guess it was written in prehistoric times with the author t

Re: Anyone here on Python-Dev mailing list?

2018-06-24 Thread Terry Reedy
On 6/24/2018 12:07 PM, Steven D'Aprano wrote: Anyone on the Python-Dev mailing list, are you getting private emails containing nothing but stream of consciousness word-salad from somebody (some bot?) calling himself "Chanel Marvin" with a gmail address? Typical example: "I refuse to create

Re: syntax difference

2018-06-24 Thread Terry Reedy
On 6/24/2018 11:39 AM, Bart wrote: Bart, I agree that people should not dogpile onto you. As with Rick, I read your posts or not, depending on whether I feel like being entertained at the moment, and usually move on without comment. I know I'm going to get flak for bringing this up this old

Re: syntax difference

2018-06-24 Thread Bart
On 24/06/2018 16:37, boB Stepp wrote: On Sun, Jun 24, 2018 at 5:21 AM Bart wrote: "... And of course, you would have to know how to use Python properly in idiomatic style. No. I want to program in /my/ style, one more like the pseudo-code that was mentioned elsewhere, and that is universal

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-24 Thread Abdur-Rahmaan Janhangeer
see for example https://en.m.wikipedia.org/wiki/Bresenham%27s_line_algorithm see the pseudocode, i was implementing some raster algos when i found myself aux anges so close to py. i guess it was written in prehistoric times with the author trying to simplify stuffs Abdur-Rahmaan Janhangeer http

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-24 Thread Chris Angelico
On Mon, Jun 25, 2018 at 2:23 AM, Abdur-Rahmaan Janhangeer wrote: > Python is rightly called executable pseudocode. i appreciated the fact that > you can go on wikipaedia, find the pseudocode of algorithms remove curly > braces and replace by py's more powerful syntax and poof, suddenly it > becom

Re: Anyone here on Python-Dev mailing list?

2018-06-24 Thread Abdur-Rahmaan Janhangeer
i follow the dev list so far no but that particular mail might be related to pythan rather than random messages over the times i've talked to users of other langs (academics) one of the fault they find with python is the virtual env setup, too boring a task. environment in that case may refer to

Re: Anyone here on Python-Dev mailing list?

2018-06-24 Thread Steven D'Aprano
On Mon, 25 Jun 2018 02:15:42 +1000, Chris Angelico wrote: > On Mon, Jun 25, 2018 at 2:07 AM, Steven D'Aprano > wrote: >> Anyone on the Python-Dev mailing list, are you getting private emails >> containing nothing but stream of consciousness word-salad from somebody >> (some bot?) calling himself

Re: syntax difference

2018-06-24 Thread Steven D'Aprano
On Sun, 24 Jun 2018 16:39:19 +0100, Bart wrote: > More like utter disbelief at how it works. Surely it cannot work like > that because it would be too inefficient? Apparently, yes it can... Apparently, no it doesn't, because the fact that Python is used by tens of thousands of programmers for so

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-24 Thread Abdur-Rahmaan Janhangeer
Python is rightly called executable pseudocode. i appreciated the fact that you can go on wikipaedia, find the pseudocode of algorithms remove curly braces and replace by py's more powerful syntax and poof, suddenly it becomes too easy. Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ

Re: Anyone here on Python-Dev mailing list?

2018-06-24 Thread Chris Angelico
On Mon, Jun 25, 2018 at 2:07 AM, Steven D'Aprano wrote: > Anyone on the Python-Dev mailing list, are you getting private emails > containing nothing but stream of consciousness word-salad from somebody > (some bot?) calling himself "Chanel Marvin" with a gmail address? > > Typical example: > >

Anyone here on Python-Dev mailing list?

2018-06-24 Thread Steven D'Aprano
Anyone on the Python-Dev mailing list, are you getting private emails containing nothing but stream of consciousness word-salad from somebody (some bot?) calling himself "Chanel Marvin" with a gmail address? Typical example: "I refuse to create my environment on a computer. Stalls and stati

Re: Introducing Coconut

2018-06-24 Thread Abdur-Rahmaan Janhangeer
hum syntactic coating exists even in py. nice! Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ > > -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-24 Thread Chris Angelico
On Mon, Jun 25, 2018 at 1:02 AM, Steven D'Aprano wrote: > On Mon, 25 Jun 2018 00:46:00 +1000, Chris Angelico wrote: > >> On Sun, Jun 24, 2018 at 8:40 PM, Steven D'Aprano >> wrote: >>> On Sun, 24 Jun 2018 11:18:37 +0100, Bart wrote: >>> I wonder why it is just me that constantly needs to just

Re: syntax difference

2018-06-24 Thread Bart
On 24/06/2018 15:46, Chris Angelico wrote: On Sun, Jun 24, 2018 at 8:40 PM, Steven D'Aprano wrote: On Sun, 24 Jun 2018 11:18:37 +0100, Bart wrote: I wonder why it is just me that constantly needs to justify his existence in this group? Because its just you who spends 90% of his time here co

Re: syntax difference

2018-06-24 Thread boB Stepp
On Sun, Jun 24, 2018 at 5:21 AM Bart wrote: > > On 24/06/2018 00:44, boB Stepp wrote: > > On Sat, Jun 23, 2018 at 5:35 PM Bart wrote: > > >> I'm not a user... > > > > Then I am truly puzzled, Bart. Why do you even bother to hang out on > > this list? If you do not want to use Python and you do

Re: syntax difference

2018-06-24 Thread Steven D'Aprano
On Mon, 25 Jun 2018 00:46:00 +1000, Chris Angelico wrote: > On Sun, Jun 24, 2018 at 8:40 PM, Steven D'Aprano > wrote: >> On Sun, 24 Jun 2018 11:18:37 +0100, Bart wrote: >> >>> I wonder why it is just me that constantly needs to justify his >>> existence in this group? >> >> Because its just you w

Re: Introducing Coconut

2018-06-24 Thread justin walters
On Sun, Jun 24, 2018 at 5:51 AM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > Coconut, the functional programming language which compiles to Python: > > http://coconut.readthedocs.io/en/master/FAQ.html > > http://coconut-lang.org/ > > (Its not my language. I just think its cool

Re: syntax difference

2018-06-24 Thread Chris Angelico
On Sun, Jun 24, 2018 at 8:40 PM, Steven D'Aprano wrote: > On Sun, 24 Jun 2018 11:18:37 +0100, Bart wrote: > >> I wonder why it is just me that constantly needs to justify his >> existence in this group? > > Because its just you who spends 90% of his time here complaining about > how Python does it

Package directory question

2018-06-24 Thread Robert Latest via Python-list
Hello, I'm building an application which consists of two largely distinct parts, a frontend and a backend. The directory layout is like this: |-- jobwatch | |-- backend | | |-- backend.py | | |-- __init__.py | | `-- tables.py | |-- frontend | | |-- __init__.py | | |-- main

Introducing Coconut

2018-06-24 Thread Steven D'Aprano
Coconut, the functional programming language which compiles to Python: http://coconut.readthedocs.io/en/master/FAQ.html http://coconut-lang.org/ (Its not my language. I just think its cool.) -- Steven D'Aprano "Ever since I learned about confirmation bias, I've been seeing it everywhere." --

Python for beginners or not? [was Re: syntax difference]

2018-06-24 Thread Steven D'Aprano
On Sat, 23 Jun 2018 14:52:24 -0500, boB Stepp wrote: [...] >> There is a place for various levels of programming language. I'm saying >> that Python which is always touted as a 'simple' language suitable for >> beginners, is missing a surprising number of basics. > > I still feel like a rank begi

Re: Static variables [was Re: syntax difference]

2018-06-24 Thread Steven D'Aprano
On Sun, 24 Jun 2018 11:23:12 +0100, Bart wrote: > On 24/06/2018 01:53, Ben Bacarisse wrote: >> Bart writes: > >>> Wow. (Just think of all the times you write a function containing a >>> neat bunch of local functions, every time it's called it has to create >>> a new function instances for each o

Re: syntax difference

2018-06-24 Thread Steven D'Aprano
On Sun, 24 Jun 2018 11:18:37 +0100, Bart wrote: > I wonder why it is just me that constantly needs to justify his > existence in this group? Because its just you who spends 90% of his time here complaining about how Python does it wrong. -- Steven D'Aprano "Ever since I learned about confirma

Re: nltk related issue

2018-06-24 Thread Glenn Hutchings
On 21/06/18 04:40, Sharan Basappa wrote: > Folks, > > I am trying to run a simple example associated with nltk. > I get some error and I don't know what the issue is. > I need some guidance please. > [...] > LookupError: > ** >

Re: Static variables [was Re: syntax difference]

2018-06-24 Thread Bart
On 24/06/2018 01:53, Ben Bacarisse wrote: Bart writes: Wow. (Just think of all the times you write a function containing a neat bunch of local functions, every time it's called it has to create a new function instances for each of those functions, even if they are not used.) I am surprised

Re: syntax difference

2018-06-24 Thread Bart
On 24/06/2018 00:44, boB Stepp wrote: On Sat, Jun 23, 2018 at 5:35 PM Bart wrote: I'm not a user... Then I am truly puzzled, Bart. Why do you even bother to hang out on this list? If you do not want to use Python and you do not want to improve Python's design and implementation, what is y