Re: The hardest problem in computer science...

2017-01-10 Thread Ethan Furman
On 01/10/2017 08:06 AM, Paul Moore wrote: On Tuesday, 10 January 2017 15:47:20 UTC, Paul Moore wrote: On Saturday, 7 January 2017 19:14:43 UTC, Ethan Furman wrote: Ya know, that looks an /awful/ lot like a collection! Maybe even an Enum? ;) -- 8<

Re: The hardest problem in computer science...

2017-01-10 Thread Paul Moore
On Tuesday, 10 January 2017 15:47:20 UTC, Paul Moore wrote: > On Saturday, 7 January 2017 19:14:43 UTC, Ethan Furman wrote: > > Ya know, that looks an /awful/ lot like a collection! Maybe even an Enum? > > ;) > > > > -- 8< --- > > from aenu

Re: The hardest problem in computer science...

2017-01-10 Thread Paul Moore
On Saturday, 7 January 2017 19:14:43 UTC, Ethan Furman wrote: > Ya know, that looks an /awful/ lot like a collection! Maybe even an Enum? ;) > > -- 8< --- > from aenum import Enum # note the 'a' before the 'enum' :) > > class Theme(Enum, i

Re: The hardest problem in computer science...

2017-01-07 Thread Ethan Furman
On 01/06/2017 11:34 PM, Steve D'Aprano wrote: On Sat, 7 Jan 2017 12:03 am, Steve D'Aprano wrote: The second hardest problem in computer science is cache invalidation. The *hardest* problem is naming things. After puzzling over this for three days, it suddenly hit me: Theme = namedtuple("The

Re: The hardest problem in computer science...

2017-01-06 Thread Steve D'Aprano
On Sat, 7 Jan 2017 12:03 am, Steve D'Aprano wrote: > The second hardest problem in computer science is cache invalidation. > > The *hardest* problem is naming things. Thanks everyone who answered, but I think some of you misunderstood my question. I know that the individual characters themselves

Re: The hardest problem in computer science...

2017-01-06 Thread Larry Hudson via Python-list
On 01/06/2017 05:03 AM, Steve D'Aprano wrote: The second hardest problem in computer science is cache invalidation. The *hardest* problem is naming things. In a hierarchical tree view widget that displays items like this: Fiction ├─ Fantasy │ ├─ Terry Pratchett │ │ ├─ Discw

Re: The hardest problem in computer science...

2017-01-06 Thread Mario R. Osorio
On Friday, January 6, 2017 at 8:45:41 PM UTC-5, Mario R. Osorio wrote: > On Friday, January 6, 2017 at 10:37:40 AM UTC-5, Ethan Furman wrote: > > On 01/06/2017 05:03 AM, Steve D'Aprano wrote: > > > > > what do we call the vertical and horizontal line elements? I want to make > > > them configurabl

Re: The hardest problem in computer science...

2017-01-06 Thread Mario R. Osorio
On Friday, January 6, 2017 at 10:37:40 AM UTC-5, Ethan Furman wrote: > On 01/06/2017 05:03 AM, Steve D'Aprano wrote: > > > what do we call the vertical and horizontal line elements? I want to make > > them configurable, which means the user has to be able to pass an argument > > that specifies the

Re: The hardest problem in computer science...

2017-01-06 Thread Ethan Furman
On 01/06/2017 05:03 AM, Steve D'Aprano wrote: what do we call the vertical and horizontal line elements? I want to make them configurable, which means the user has to be able to pass an argument that specifies them. I have names for the individual components: XXX = namedtuple("XXX", "vline tee

Re: The hardest problem in computer science...

2017-01-06 Thread Skip Montanaro
"VT52 special graphics characters", anyone? Credit where credit is due. Who hasn't borked their output and wound up with their VT(52|100) in graphics mode? :-) https://en.wikipedia.org/wiki/VT52 Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: The hardest problem in computer science...

2017-01-06 Thread Alain Ketterlin
Steve D'Aprano writes: [...] > Fiction > ├─ Fantasy > │ ├─ Terry Pratchett > │ │ ├─ Discworld > │ │ │ ├─ Wyrd Sisters > │ │ │ └─ Carpe Jugulum > │ │ └─ Dodger > │ └─ JK Rowling [...] > what do we call the vertical and horizontal line elements? Box-draw

Re: The hardest problem in computer science...

2017-01-06 Thread Tim Chase
On 2017-01-06 13:44, Dan Sommers wrote: > On Sat, 07 Jan 2017 00:03:37 +1100, Steve D'Aprano wrote: > > what do we call the vertical and horizontal line elements? I want > > to make them configurable, which means the user has to be able to > > pass an argument that specifies them ... > > pstree(1)

Re: The hardest problem in computer science...

2017-01-06 Thread Dan Sommers
On Sat, 07 Jan 2017 00:03:37 +1100, Steve D'Aprano wrote: > The *hardest* problem is naming things. > > Fiction > ├─ Fantasy > │ ├─ Terry Pratchett > │ │ ├─ Discworld > │ │ │ ├─ Wyrd Sisters > │ │ │ └─ Carpe Jugulum [...] > what do we call the vertical and hori

The hardest problem in computer science...

2017-01-06 Thread Steve D'Aprano
The second hardest problem in computer science is cache invalidation. The *hardest* problem is naming things. In a hierarchical tree view widget that displays items like this: Fiction ├─ Fantasy │ ├─ Terry Pratchett │ │ ├─ Discworld │ │ │ ├─ Wyrd Sisters │ │ │ └