Re: One liners

2013-12-06 Thread Chris Angelico
On Sat, Dec 7, 2013 at 1:28 PM, Steven D'Aprano wrote: > As for readability, I accept that ternary if is unusual compared to other > languages... All the C-derived ternary operators put the condition first, but Python puts the condition in the middle. What that does for readability I don't really

Re: ASCII and Unicode [was Re: Managing Google Groups headaches]

2013-12-06 Thread Chris Angelico
On Sat, Dec 7, 2013 at 1:33 PM, rusi wrote: > That seems to suggest that something is not right with the python > mailing list config. No?? If in doubt, blame someone else, eh? I'd first check what your browser's actually sending. Firebug will help there. See if your form fill-out is encoded as

Re: Managing Google Groups headaches

2013-12-06 Thread Steven D'Aprano
On Thu, 05 Dec 2013 23:13:54 -0800, rusi wrote: > On Thursday, December 5, 2013 6:28:54 AM UTC+5:30, Roy Smith wrote: >> The real problem with web forums is they conflate transport and >> presentation into a single opaque blob, and are pretty much universally >> designed to be a closed system. M

Re: ASCII and Unicode [was Re: Managing Google Groups headaches]

2013-12-06 Thread MRAB
On 07/12/2013 02:41, Chris Angelico wrote: On Sat, Dec 7, 2013 at 1:33 PM, rusi wrote: That seems to suggest that something is not right with the python mailing list config. No?? If in doubt, blame someone else, eh? I'd first check what your browser's actually sending. Firebug will help ther

Re: ASCII and Unicode [was Re: Managing Google Groups headaches]

2013-12-06 Thread rusi
On Saturday, December 7, 2013 8:11:45 AM UTC+5:30, Chris Angelico wrote: > On Sat, Dec 7, 2013 at 1:33 PM, rusi wrote: > > That seems to suggest that something is not right with the python > > mailing list config. No?? > If in doubt, blame someone else, eh? > I'd first check what your browser's

Re: One liners

2013-12-06 Thread Dan Stromberg
On Fri, Dec 6, 2013 at 6:07 PM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > On Fri, 06 Dec 2013 15:54:22 -0800, Dan Stromberg wrote: > > > Does anyone else feel like Python is being dragged too far in the > > direction of long, complex, multiline one-liners? Or avoiding tempo

Re: One liners

2013-12-06 Thread Roy Smith
In article <52a287cb$0$30003$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > The ternary if is slightly unusual and unfamiliar It's only unusual an unfamiliar if you're not used to using it :-) Coming from a C/C++ background, I always found the lack of a ternary expression rath

Re: Managing Google Groups headaches

2013-12-06 Thread Roy Smith
In article <52a290ed$0$30003$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > In contrast, that is not the case with nearly all web forums. By > deliberate design, or mere ignorance and neglect, they mix up the message > you care about ("Hi Bob...") and the stuff you need to get t

Re: Python 2.8 release schedule

2013-12-06 Thread Ethan Furman
On 12/06/2013 06:07 PM, Chris Angelico wrote: On Sat, Dec 7, 2013 at 1:00 PM, Mark Lawrence wrote: On 07/12/2013 01:54, Chris Angelico wrote: On Sat, Dec 7, 2013 at 12:48 PM, Mark Lawrence wrote: Sorry but I don't get it :) [explained the joke] Clearly that went straight over your head.

Re: One liners

2013-12-06 Thread Roy Smith
In article , Dan Stromberg wrote: > A lot of things people do with regex's, could be done with string methods > more clearly and concisely. That is true. The problem is, there are a lot of things for which regex is the right tool, but people get out of practice using them (or never learned h

Re: One liners

2013-12-06 Thread Chris Angelico
On Sat, Dec 7, 2013 at 2:27 PM, Roy Smith wrote: > -- > extracols = sorted(set.union(*(set(t.data.keys()) for t in tracks))) if > tracks else [] > -- > c2s = compids2songs(set(targets.keys()) | > set.un

Re: ASCII and Unicode [was Re: Managing Google Groups headaches]

2013-12-06 Thread Chris Angelico
On Sat, Dec 7, 2013 at 2:16 PM, rusi wrote: > On Saturday, December 7, 2013 8:11:45 AM UTC+5:30, Chris Angelico wrote: >> On Sat, Dec 7, 2013 at 1:33 PM, rusi wrote: >> > That seems to suggest that something is not right with the python >> > mailing list config. No?? > >> If in doubt, blame someo

Re: Managing Google Groups headaches

2013-12-06 Thread rusi
On Saturday, December 7, 2013 7:54:50 AM UTC+5:30, Ned Batchelder wrote: > On 12/6/13 8:03 AM, rusi wrote: > > Leaving aside whose fault this is (very likely buggy google groups), > > this mojibaking cannot happen if the assumption "All text is ASCII" > > were to uniformly hold. > > Of course with

<    1   2