Re: [Python-Dev] PEP-498: Literal String Formatting

2015-08-13 Thread ISAAC J SCHWABACHER
ng literal (in display mode), but you can open it in your favorite editor to see whether the highlighting makes the code clearer. From: Python-Dev on behalf of Ethan Furman Sent: Wednesday, August 12, 2015 18:11 To: python-dev@python.org Subject: Re: [Python

Re: [Python-Dev] PEP-498: Literal String Formatting

2015-08-12 Thread ISAAC J SCHWABACHER
Ruby already has this feature, and in my experience syntax highlighters handle it just fine. Here's what vim's default highlighter shows me: puts "we can #{ ["include", "interpolate"].each { |s| puts s } .select { |s| s.include? "erp" } #

Re: [Python-Dev] PEP-498: Literal String Formatting

2015-08-11 Thread ISAAC J SCHWABACHER
Now with syntax highlighting, if my email client cooperates: code.putlines(f""" static char {entry.doc_cname}[] = "{ split_string_literal(escape_bytestring(docstr))}"; { # nested! f""" #if CYTHON_COMPILING_IN_CPYTHON struct wrapperbase {entry.wrapperbase_cname}; #endif """ if entry.is_spe

Re: [Python-Dev] PEP-498: Literal String Formatting

2015-08-10 Thread ISAAC J SCHWABACHER
I don't know about you, but I sure like this better than what you have: code.putlines(f""" static char {entry.doc_cname}[] = "{ split_string_literal(escape_bytestring(docstr))}"; { # nested! f""" #if CYTHON_COMPILING_IN_CPYTHON struct wrapperbase {entry.wrapperbase_cname}; #endif """ if e

Re: [Python-Dev] Status on PEP-431 Timezones

2015-07-27 Thread ISAAC J SCHWABACHER
Responses to several partial messages follow. [Lennart Regebro] > Then we can't implement timezones in a reasonable way with the current > API, but have to have something like pytz's normalize() function or > similar. > > I'm sorry I've wasted everyones time with this PEP. [ijs] I think that inte

Re: [Python-Dev] Status on PEP-431 Timezones

2015-07-25 Thread ISAAC J SCHWABACHER
> From: Tim Peters > Sent: Friday, July 24, 2015 20:39 > To: ISAAC J SCHWABACHER > Cc: Alexander Belopolsky; Lennart Regebro; Python-Dev > Subject: Re: [Python-Dev] Status on PEP-431 Timezones > > [ISAAC J SCHWABACHER ] > > ... > > I disagree with the view Tim had

Re: [Python-Dev] Status on PEP-431 Timezones

2015-07-24 Thread ISAAC J SCHWABACHER
m and you find yourself in New Netherlands. ijs From: Tim Peters Sent: Saturday, July 25, 2015 00:07 To: ISAAC J SCHWABACHER Cc: Alexander Belopolsky; Lennart Regebro; Python-Dev Subject: Re: [Python-Dev] Status on PEP-431 Timezones [Tim] > Sure. But, ho

Re: [Python-Dev] Status on PEP-431 Timezones

2015-07-24 Thread ISAAC J SCHWABACHER
> From: Tim Peters > Sent: Saturday, July 25, 2015 00:14 > To: ISAAC J SCHWABACHER > Cc: Alexander Belopolsky; Lennart Regebro; Python-Dev > Subject: Re: [Python-Dev] Status on PEP-431 Timezones > [Tim] > >> The formulas only produced approximations, and then > >

Re: [Python-Dev] Status on PEP-431 Timezones

2015-07-24 Thread ISAAC J SCHWABACHER
Well, I was going to stay silent, but math is something I can do without wasting anyone's time or embarrassing myself. I don't think this mail answers Lennart's concerns, but I do want to get it out there to compete with the comment in `datetime.py`. I apologize if the LaTeX density is too high;

Re: [Python-Dev] How far to go with user-friendliness

2015-07-16 Thread ISAAC J SCHWABACHER
From: Python-Dev on behalf of Ben Finney Sent: Thursday, July 16, 2015 15:59 To: python-dev@python.org Subject: Re: [Python-Dev] How far to go with user-friendliness > Ethan Furman writes: > > > On 07/16/2015 01:29 PM, Michael Foord wrote: > > > On Tuesday, 14 July 2015, Christie Wilson wrote