On Thu, 7 Aug 2008, bob gailer wrote:
Christopher Spears wrote:
Hey,
I'm working on a problem out of Core Python Programming (2nd Edition).
Basically, I'm creating a class that formats dates. Here is what I have so
far:
Consider reformatting the month_dict so each name and abbreviatio
Dear Norman,
I would propose:
ret = {}
myvalues = []
responses = [{'a1': [1], 'a2': [1, 2, 3]}, {'a1': [0], 'a2': [0, 1, 3]}]
for response in responses:
for answer in response.items()
ret.setdefault(response[0], []).app
Dear Dinesh,
if you're using the regular expression only once, I would recommend:
without_numbers = " ".join(re.split(" [0-9]+ ", phrase))
If not, compile the regular expression first and use the compiled version.
Regards,
Benoit Thiell.
On Sat, 2 Aug 2008, Noufal Ib
Regards,
Benoit Thiell.
On Fri, 1 Aug 2008, Marc Tompkins wrote:
On Thu, Jul 31, 2008 at 8:16 PM, Angela Yang <[EMAIL PROTECTED]> wrote:
Hi,
I have a list of values for one key. How do I specify this data
structure?
First tried,
collection = []