Re: '_' and '__'

2018-05-27 Thread Karsten Hilbert
On Sun, May 27, 2018 at 10:36:30AM +1000, Ben Finney wrote: > Nick also explains that, because the name ‘_’ has too many conventional > meanings already, the name ‘__’ is better for “don't need this value but > I am required to specify a name”. _() is often bound to gettext.gettext() in the globa

Re: Some Issues on Tagging Text

2018-05-27 Thread subhabangalore
On Sunday, May 27, 2018 at 2:41:43 AM UTC+5:30, Cameron Simpson wrote: > On 26May2018 04:02, Subhabrata Banerjee wrote: > >On Saturday, May 26, 2018 at 3:54:37 AM UTC+5:30, Cameron Simpson wrote: > >> It sounds like you want a more general purpose parser, and that depends > >> upon > >> your purp

Re: Some Issues on Tagging Text

2018-05-27 Thread Richard Damon
On 5/27/18 7:43 AM, subhabangal...@gmail.com wrote: > On Sunday, May 27, 2018 at 2:41:43 AM UTC+5:30, Cameron Simpson wrote: >> On 26May2018 04:02, Subhabrata Banerjee wrote: >>> On Saturday, May 26, 2018 at 3:54:37 AM UTC+5:30, Cameron Simpson wrote: It sounds like you want a more general pu

Possible bug in ThreadPoolExecutor, or just misinterpretation

2018-05-27 Thread Santiago Basulto
Hey list! I might have encountered a "bug", or maybe it's just a "design decision" :) Here's some example code: https://gist.github.com/santiagobasulto/3513a50ec0dc939e8f7bb2ecfa8d4ae2 The problem is `ThreadPoolExecutor.map()`. It's not returning tasks "as completed" but sequentially. I understa

Re: Raw string statement (proposal)

2018-05-27 Thread Dan Stromberg
On Thu, May 24, 2018 at 9:34 PM, Mikhail V wrote: > Hi. > I've put some thoughts together, and > need some feedback on this proposal. > Main question is: Is it convincing? > Is there any flaw? > My own opinion - there IS something to chase. > Still the justification for such syntax is hard. > Th

Re: Possible bug in ThreadPoolExecutor, or just misinterpretation

2018-05-27 Thread INADA Naoki
On Mon, May 28, 2018 at 1:12 AM Santiago Basulto wrote: > Hey list! I might have encountered a "bug", or maybe it's just a "design > decision" :) > Here's some example code: > https://gist.github.com/santiagobasulto/3513a50ec0dc939e8f7bb2ecfa8d4ae2 > The problem is `ThreadPoolExecutor.map()`. I

Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-27 Thread Paul St George
So, on Unix I would use Image.show(title=None, nameofdisplayutilty), or Image.show(title=None, scriptname) #where script with name scriptname invokes the program I will try this now! And thank you. On 26/05/2018 19:30, Dennis Lee Bieber wrote: On Sat, 26 May 2018 17:17:42 +0200, Paul St Geo

Re: Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-27 Thread Paul St George
This is very helpful indeed, thank you. Awe-inspiring. It occurred to me that I could edit the PIL/ImageShow.py, replacing ‘xv’ (in five places) with the utility of my choice and using ‘executable’ as the command. Or, is this just not done? On 26/05/2018 19:11, Peter Otten wrote: Paul St Ge

how to read a syntax diagram

2018-05-27 Thread Paul
hi, I'm using the Google Sheets API (the client library rather than the RESTful interface) and I'm confused about the meaning of the syntax diagrams. This is from https://developers.google.com/resources/api-libraries/documentation/sheets/v4/python/latest/sheets_v4.spreadsheets.values.html#updat

Re: how to read a syntax diagram

2018-05-27 Thread Paul
oops, please ignore the bit before "update(spreadsheetId=*, range=*, ..." On Sun, May 27, 2018 at 9:17 PM, Paul wrote: > hi, >I'm using the Google Sheets API (the client library rather than the > RESTful interface) and I'm confused about the meaning of the syntax > diagrams. This is from >

Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-27 Thread Cameron Simpson
On 27May2018 20:15, Paul St George wrote: This is very helpful indeed, thank you. Awe-inspiring. It occurred to me that I could edit the PIL/ImageShow.py, replacing ‘xv’ (in five places) with the utility of my choice and using ‘executable’ as the command. Or, is this just not done? It bec

Re: how to read a syntax diagram

2018-05-27 Thread Steven D'Aprano
On Sun, 27 May 2018 21:17:57 +, Paul wrote: > hi, >I'm using the Google Sheets API (the client library rather than the > RESTful interface) and I'm confused about the meaning of the syntax > diagrams. *Diagrams*? As in, *pictures*? > update(spreadsheetId=*, range=*, body=*, valueInputOp

Re: how to read a syntax diagram

2018-05-27 Thread MRAB
On 2018-05-27 22:17, Paul wrote: hi, I'm using the Google Sheets API (the client library rather than the RESTful interface) and I'm confused about the meaning of the syntax diagrams. This is from https://developers.google.com/resources/api-libraries/documentation/sheets/v4/python/latest/shee

Re: List replication operator

2018-05-27 Thread Richard Damon
On 5/25/18 6:28 PM, Steven D'Aprano wrote: > On Sat, 26 May 2018 02:58:06 +1000, Chris Angelico wrote: > >> Your mail/news client might choose to represent configure.ac as a link, >> since ".ac" is a valid TLD. > Isn't *everything* a valid TLD now? > > For the right price, at least. > Not quite, .i

Re: List replication operator

2018-05-27 Thread Chris Angelico
On Mon, May 28, 2018 at 1:46 PM, Richard Damon wrote: > On 5/25/18 6:28 PM, Steven D'Aprano wrote: >> On Sat, 26 May 2018 02:58:06 +1000, Chris Angelico wrote: >> >>> Your mail/news client might choose to represent configure.ac as a link, >>> since ".ac" is a valid TLD. >> Isn't *everything* a val

Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-27 Thread Christian Gollwitzer
Am 27.05.18 um 23:58 schrieb Cameron Simpson: On 27May2018 20:15, Paul St George wrote: This is very helpful indeed, thank you. Awe-inspiring. It occurred to me that I could edit the PIL/ImageShow.py, replacing ‘xv’ (in five places) with the utility of my choice and using ‘executable’ as the