mac

 

Dec
15
comment Better way to write this "double-barreled list" in Python
This (the random.choice example) is pretty much a superior (read: more pythonic) way of doing it. Part of Python's philosophy is "There should be one-- and preferably only one --obvious way to do it" and this relies heavily on having "batteries included" (and using them!!!)
Dec
5
comment How to use Google calendar API with python
@elexhobby - bit.ly/1vV8hpK
Dec
4
comment Accessing Google Contacts Api via OAuth 2.0 and private key aka Service Account
I tried this approach before finding this answer but for me it doesn't work. I am using - as a scope - https://www.google.com/m8/feeds (contacts R/W) but without joy. I noticed that scopes for services get "secognised" and their human-friendly name is displayed beside the URI, but that does not happen with the above one. I suspect it is simply unsupported.
Dec
3
awarded Supporter
Dec
3
awarded Autobiographer
Dec
1
revised Google calendar api CalendarList List return empty element
For clarity, expanded "myaccount", added info on where to retrieve the account ID
Dec
1
revised Google calendar api CalendarList List return empty element
Widened the scope of Q/A (language independent), retagging
Dec
1
comment Google calendar api CalendarList List return empty element
@Rototo - Thank you a ton, I was stuck on this since an hour and didn't know what to try next! You saved my day... :)
Dec
1
comment Google calendar api CalendarList List return empty element
@aldanux - What are you talking about? This is exactly the solution to the problem.
Dec
1
revised Google contacts: is there a way to use services rather than gdata?
fix edit mistake (sentences made no sense)
Dec
1
accepted Google contacts: is there a way to use services rather than gdata?
Dec
1
comment Google contacts: is there a way to use services rather than gdata?
Yeah, that workaround is what I am working on right now, but it is silly and wastes resources... Man, they already ported the most inane of the services (Google fonts developers, fitness, tasks!!!) but missed a major one! :(
Dec
1
asked Google contacts: is there a way to use services rather than gdata?
Nov
28
awarded Constituent
Nov
28
awarded Caucus
Nov
21
comment How to add a custom loglevel to Python's logging facility
@S.Lott - Actually (at least with the present version of Python, maybe it was not the case back in 2010) you have to use setLoggerClass(MyClass) and then call getLogger() as normal...
Nov
20
comment Bold italic in ReStructuredText
Nope, this is incorrect ("there is no way to represent bold italics in reStructuredText"). There are actually several different methods (as pointed out by other respondents). I shall agree - though - that it is unfortunate this is not supported "out of the box" by mean of triple * on either side of the string...
Nov
19
comment Serializing a Python namedtuple to json
@marr75 - Ditto for ujson, which is even more bizarre and unpredictable in such edge cases...
Nov
19
revised Python: how to check if an object is an instance of a namedtuple?
PEP8 indentation! ;)
Nov
8
awarded Yearling
1 2 3 4 5