Re: [Python-Dev] [Python-checkins] cpython (2.7): Fix closes Issue12529 - cgi.parse_header failure on double quotes and

2011-10-20 Thread Senthil Kumaran
On Thu, Oct 20, 2011 at 07:17:10AM +1000, Nick Coghlan wrote: NEWS entry? (same question for the later _sre fix) Added. Thanks for catching this. For some reason, I had slight doubt, if those issues were NEWS worthy items. IIRC, devguide recommends that a NEWS entry be added for all fixes

[Python-Dev] Generate Dynamic lists

2011-10-20 Thread Asif Jamadar
So I'm trying to generate dynamic choices for django form. Here i'm usig formset concept (CODE is mentioned below) Suppose i have list called criteria_list = ['education', 'know how', 'managerial', 'interpersonal', ] now i need to generate choices as follows list1 = [('education', 1),

Re: [Python-Dev] Generate Dynamic lists

2011-10-20 Thread Stefan Behnel
Asif Jamadar, 20.10.2011 20:51: So I'm trying to generate dynamic choices for django form.[...] Note that this is the CPython core developers mailing list. The right list for general Python programming related questions is either python-l...@python.org, or the newsgroup comp.lang.python.

Re: [Python-Dev] Generate Dynamic lists

2011-10-20 Thread Jacek Pliszka
I believe this is not the correct forum for this as it does not concern development of Python language itself - you should post to comp.lang.python. However solutions is relatively simply, try this: list1,list2,list3,list4,list5,list6 = [ list(itertools.product(i,range(0,4))) for i in

Re: [Python-Dev] Generate Dynamic lists

2011-10-20 Thread Oleg Broytman
Hello. We are sorry but we cannot help you. This mailing list is to work on developing Python (adding new features to Python itself and fixing bugs); if you're having problems learning, understanding or using Python, please find another forum. Probably python-list/comp.lang.python mailing

[Python-Dev] memcmp performance

2011-10-20 Thread Richard Saunders
Hi,This is my first time on Python-dev, so I apologize for my newbie-ness.I have been doing some performance experiments with memcmp, and I wassurprised that memcmp wasn't faster than it was in Python. I did a whole,long analysis and came up with some very simple results.Before I put in a tracker

Re: [Python-Dev] memcmp performance

2011-10-20 Thread Antoine Pitrou
Hello, I have been doing some performance experiments with memcmp, and I was surprised that memcmp wasn't faster than it was in Python.  I did a whole,  long analysis and came up with some very simple results. Before I put in a tracker bug report, I wanted to present my findings and make

Re: [Python-Dev] memcmp performance

2011-10-20 Thread Scott Dial
On 10/20/2011 5:08 PM, Antoine Pitrou wrote: Have you reported gcc's outdated optimization issue to them? Or is it already solved in newer gcc versions? I checked this on gcc 4.6, and it still optimizes memcmp/strcmp into a repz cmpsb instruction on x86. This has been known to be a problem

Re: [Python-Dev] [Python-checkins] cpython (2.7): Fix closes Issue12529 - cgi.parse_header failure on double quotes and

2011-10-20 Thread Nick Coghlan
My take is that a further fix or tweak to something that already has a NEWS entry for the current release doesn't get a new entry, but everything else does. What's New is the place to get selective. -- Nick Coghlan (via Gmail on Android, so likely to be more terse than usual) On Oct 21, 2011 2:46

Re: [Python-Dev] memcmp performance

2011-10-20 Thread Richard Saunders
Hey, I have been doing some performance experiments with memcmp, and I was surprised that memcmp wasn't faster than it was in Python. I did a whole, long analysis and came up with some very simple results.Paul Svensson suggested I post as much as I can as text, as people would be more likely to