"If we ship Python inside of Firefox, no one is going to use it because it's not available in Chrome, it's not available in Internet Explorer." Oh yeah? Try me.
2,542 karma · joined January 8, 2009
When I see people write
'some %s %s text ' %('x', 'y')
my first thought is "% is not not a function".I'm reminded also of (and agree with) the Crockford convention in JavaScript recommending a space in
function () {...}
but not in function foo(object) {...}
But conventions are are a choice made; most times it's easier to adopt them and move on.[1] http://en.wikipedia.org/wiki/List_of_highest-grossing_films_...
"These preclinical studies suggest that, so far, this unimolecular, polypharmaceutical strategy has potential to be the most effective pharmacological approach to reversing obesity and related metabolic disorders."
Original paper: http://www.cs.sfu.ca/~cameron/REX.html
arrow.parser.ParserError: Could not match input to any of
['YYYY-MM-DD', 'YYYY-MM', 'YYYY'] on '01-06-17'
Here's a list of (US English–centric) test dates that dateparser ((ddp.get_date_data(date)['date_obj']).date()) and delorean (delorean.parse(date, dayfirst=False, yearfirst=False).date) both parse correctly, nearly all of which arrow fails on: 01-06-2017
01-06-17
2017-01-06
01/06/2017
01/06/17
2017/01/06
Jan 6, 2017
Jan 6 2017
2017, Jan 6
2017 Jan 6
2017, January 6
2017 January 6
January 6, 2017
January 6 2017
January 6nd, 2017
January 6rd, 2017
January 6st, 2017
January 6th, 2017
January 6nd 2017
January 6rd 2017
January 6st 2017
January 6th 2017
2017, January 6nd
2017, January 6rd
2017, January 6st
2017, January 6th
2017 January 6nd
2017 January 6rd
2017 January 6st
2017 January 6th
01//06/2017
01//06//2017
01--06-2017
01--06--2017
01/06-2017
01-06/2017
I like Delorean's API better than arrow's (strictly personal preference) but think dateparser's language detection is interesting.[1] http://delorean.readthedocs.org/en/latest/quickstart.html