Re: Should nested classes in an Enum be Enum members?

2018-06-29 Thread Ian Kelly
On Thu, Jun 28, 2018 at 7:01 PM Ben Finney wrote: > > Ian Kelly writes: > > > On Thu, Jun 28, 2018 at 4:38 AM Ben Finney > > wrote: > > > > > > Ethan Furman writes: > > > > > > Specifically, I can't make sense of why someone would want to have a > > > class that is simultaneously behaving as a

Python27.dll module error from Python 2.7.15/PCbuild/get_externals.bat

2018-06-29 Thread amit . singh2241
I am trying to compile the freshly downloaded Python 2.7.15. When the PCBuild/build.bat goes to pull-in the external modules along with their dependencies it encounters this error for each of the external modules. F:\Dev\depot\tools\source\python\Python-2.7.15>.\PCbuild\get_externals.bat Using "

Re: Should nested classes in an Enum be Enum members?

2018-06-29 Thread Ian Kelly
On Thu, Jun 28, 2018 at 10:06 PM Ben Finney wrote: > > Ethan Furman writes: > > > On 06/28/2018 05:58 PM, Ben Finney wrote: > > > > > So I remain dumbfounded as to why anyone would want a class to *both* be > > > an enumerated type, *and* have callable attributes in its API. > > > > Perhaps I am

Python 3.7 Windows Help Behaviour

2018-06-29 Thread BlindAnagram
In Python 3.7.0 on Windows the help file (python370.chm) displays with a fixed line length and does not adjust its line length when the user expands the help window horizontally. This behaviour is different to that of the Python 3.6 help file (python360.chm) which adjusts its text to fit the horiz

EuroPython 2018: Beginners’ Day Workshop

2018-06-29 Thread M.-A. Lemburg
Maybe you’ve come to EuroPython as a programmer from another language. Or perhaps you have other tech skills or you really want to understand what it’s like to program in Python. Then come to our Beginners’ Day at EuroPython. https://ep2018.europython.eu/en/events/beginners-da

EuroPython 2018: Invoices available

2018-06-29 Thread M.-A. Lemburg
We have great news ! After many months of sorting the UK VAT registration issue, we have finally been registered for VAT in the UK. This is the number, we’ve all been waiting for: GB 297620469 We’ve now generated all the missing invoices for existing purchases and hop

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-29 Thread T Berger
On Thursday, June 28, 2018 at 1:21:32 AM UTC-4, T Berger wrote: > Hi Guys, > > Thanks for all the suggestions. I found the problem. I had saved my program > in IDLE and quit out of the shell, and then tried to run the program in > Terminal. Previously, restarting the shell was enough to break th

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-29 Thread T Berger
On Friday, June 29, 2018 at 10:45:10 AM UTC-4, T Berger wrote: > On Thursday, June 28, 2018 at 1:21:32 AM UTC-4, T Berger wrote: > > Hi Guys, > > > > Thanks for all the suggestions. I found the problem. I had saved my program > > in IDLE and quit out of the shell, and then tried to run the progra

Re: Should nested classes in an Enum be Enum members?

2018-06-29 Thread Bart
On 29/06/2018 09:01, Ian Kelly wrote: On Thu, Jun 28, 2018 at 10:06 PM Ben Finney wrote: @total_ordering class ChessPiece(Enum): PAWN = 1, 'P' KNIGHT = 2, 'N' BISHOP = 3, 'B' ROOK = 4, 'R' # ... @property def label(self): return self.value[1]

Re: Python27.dll module error from Python 2.7.15/PCbuild/get_externals.bat

2018-06-29 Thread Terry Reedy
On 6/29/2018 3:42 AM, amit.singh2...@gmail.com wrote: I am trying to compile the freshly downloaded Python 2.7.15. When the PCBuild/build.bat goes to pull-in the external modules along with their dependencies it encounters this error for each of the external modules. F:\Dev\depot\tools\source\p

Re: Python 3.7 Windows Help Behaviour

2018-06-29 Thread Terry Reedy
On 6/29/2018 6:14 AM, BlindAnagram wrote: In Python 3.7.0 on Windows the help file (python370.chm) displays with a fixed line length and does not adjust its line length when the user expands the help window horizontally. This behaviour is different to that of the Python 3.6 help file (python360.

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-29 Thread Jim Lee
On 06/29/18 08:05, T Berger wrote: On Friday, June 29, 2018 at 10:45:10 AM UTC-4, T Berger wrote: On Thursday, June 28, 2018 at 1:21:32 AM UTC-4, T Berger wrote: Hi Guys, Thanks for all the suggestions. I found the problem. I had saved my program in IDLE and quit out of the shell, and then

Re: Should nested classes in an Enum be Enum members?

2018-06-29 Thread Ethan Furman
On 06/28/2018 10:52 PM, Steven D'Aprano wrote: On Thu, 28 Jun 2018 18:33:31 -0700, Ethan Furman wrote: Perhaps I am using Enum incorrectly, but here is my FederalHoliday Enum. Note that date(), next_business_day, and year() are all callables. The AutoEnum parent assigns values from 1 to n f

Re: [OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-29 Thread Jim Lee
On 06/29/18 07:15, Dennis Lee Bieber wrote: On 6/28/2018 9:05 PM, Avon wrote: Being able to send messages by ham radio is useful in disasters as well as nostalgic. I just don't know what people are doing these days. Though I haven't heard much of the AX.25 Packet BBS systems in de

Re: Where's the junk coming from?

2018-06-29 Thread Mark Lawrence
On 29/06/18 01:53, Avon wrote: On 06/28/18, Tim Golden pondered and said... TG> (Wearing my List Moderator hat) TG> TG> Thanks very much for addressing this for us, and to Cameron and others TG> who did the detective work. I admit I assumed at first it was some kind TG> of odd attac

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-29 Thread Cameron Simpson
On 29Jun2018 09:50, Jim Lee wrote: On 06/29/18 08:05, T Berger wrote: On Friday, June 29, 2018 at 10:45:10 AM UTC-4, T Berger wrote: On Thursday, June 28, 2018 at 1:21:32 AM UTC-4, T Berger wrote: I have to backtrack on my optimistic pronouncement. I know why I'm getting "address already in u

Re: Should nested classes in an Enum be Enum members?

2018-06-29 Thread Cameron Simpson
On 29Jun2018 10:36, Ethan Furman wrote: On 06/28/2018 10:52 PM, Steven D'Aprano wrote: On Thu, 28 Jun 2018 18:33:31 -0700, Ethan Furman wrote: Perhaps I am using Enum incorrectly, but here is my FederalHoliday Enum. Note that date(), next_business_day, and year() are all callables. The AutoE

Re: Should nested classes in an Enum be Enum members?

2018-06-29 Thread Jim Lee
On 06/29/18 16:02, Cameron Simpson wrote: On 29Jun2018 10:36, Ethan Furman wrote: On 06/28/2018 10:52 PM, Steven D'Aprano wrote: On Thu, 28 Jun 2018 18:33:31 -0700, Ethan Furman wrote: Perhaps I am using Enum incorrectly, but here is my FederalHoliday Enum.  Note that date(), next_business_

Re: Should nested classes in an Enum be Enum members?

2018-06-29 Thread Gregory Ewing
Ethan Furman wrote: They are the list of dates in which US banks are closed for electronic business (funds transfers and things). That sems like something that would be better specified in a configuration file than hard-wired into the code, in case the rules change. -- Greg -- https://mail.pyt

Re: Should nested classes in an Enum be Enum members?

2018-06-29 Thread Gregory Ewing
Cameron Simpson wrote: It tends to mean "weird", but perhaps a more nuanced phrasing might be unusual and strange, and usually connotes some degree of over complication. When used in a derogatory way it means "excessively elaborate". The Baroque period was characterised by extremely ornate arch

Re: I lost nearly all my modules installing 3.7

2018-06-29 Thread Elliott Roper
On 29 Jun 2018, Terry Reedy wrote (in article): > On 6/28/2018 6:45 PM, Elliott Roper wrote: > > On 28 Jun 2018, Terry Reedy wrote > > > > There is a pip command for making an editable file of installed > > > packages. Run that in 3.6, perhaps after updating everything. > > > > > > > > > There is

Baroque [was Re: Should nested classes in an Enum be Enum members?]

2018-06-29 Thread Steven D'Aprano
On Sat, 30 Jun 2018 09:02:37 +1000, Cameron Simpson wrote: > On 29Jun2018 10:36, Ethan Furman wrote: >>On 06/28/2018 10:52 PM, Steven D'Aprano wrote: >>>It isn't clear to me why FederalHoliday is an Enum, especially as the >>>API seems extremely baraque. >> >>Huh. I had to look that word up, an

Re: Baroque [was Re: Should nested classes in an Enum be Enum members?]

2018-06-29 Thread Chris Angelico
On Sat, Jun 30, 2018 at 10:51 AM, Steven D'Aprano wrote: > ["Baroque"] should not mean "weird or bizarre", although I've seen a couple of > lesser-quality dictionaries give that as a meaning. Which is itself weird > and bizarre :-) > I guess those dictionaries are baroque. Or maybe just broke. C

Re: Should nested classes in an Enum be Enum members?

2018-06-29 Thread Steven D'Aprano
On Fri, 29 Jun 2018 10:36:45 -0700, Ethan Furman wrote: >> What makes them enums? Under what circumstances would you be comparing >> something to MartinLutherKingJr (Day) without caring about a *specific* >> Martin Luther King Jr Day? > > Enums are also useful when the underlying value is relevan

Re: Baroque [was Re: Should nested classes in an Enum be Enum members?]

2018-06-29 Thread Ethan Furman
On 06/29/2018 05:51 PM, Steven D'Aprano wrote: So not especially complimentary (sorry Ethan, but that was my first impression) but not *necessarily* a bad thing either. No worries! :) The Jargon File adjective that comes closest is probably gnarly: Wow, I haven't heard that word in a long

Re: Where's the junk coming from?

2018-06-29 Thread Avon
On 06/29/18, Mark Lawrence pondered and said... ML> As the person who started this thread I'll add my thanks for trying to ML> sort things. Nothing last night is a good start :-) Thanks Mark... you're welcome :) Best, Paul -- https://mail.python.org/mailman/listinfo/python-list

Re: I lost nearly all my modules installing 3.7

2018-06-29 Thread dieter
Elliott Roper writes: > ... > install scipy wrote an error message longer than War and Peace that finished > with:- > > error: library dfftpack has Fortran sources but no Fortran compiler found An error message of the t

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-29 Thread Dan Stromberg
On Thu, Jun 28, 2018 at 10:30 PM, Marko Rauhamaa wrote: > Well, the same security issue can be demonstrated without SO_REUSEADDR: > > The security issue can be real but is not directly related with > SO_REUSEADDR. > Yes, it can. It just takes longer. -- https://mail.python.org/mailman/listinfo

Re: I lost nearly all my modules installing 3.7

2018-06-29 Thread Jim Lee
On 06/29/18 21:48, dieter wrote: I do not know "pkg-config". The name seems to indicate an operating system package; but, it might also be a Python extension package (less likely). I would start with the "matplotlib" installation instructions to look for information about it. https://www.f