[Python-ideas] New 3.x restriction on number of keyword arguments (original) (raw)
Benjamin Peterson benjamin at python.org
Thu Oct 21 16:06:24 CEST 2010
- Previous message: [Python-ideas] Add a command line option to adjust sys.path? (was Re: Add a site.cfg to keep a persistent list of paths)
- Next message: [Python-ideas] New 3.x restriction on number of keyword arguments
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Raymond Hettinger <raymond.hettinger at ...> writes:
One of the use cases for named tuples is to have them be automatically created from a SQL query or CSV header. Sometimes (but not often), those can have a huge number of columns. In Python 2.x, it worked just fine -- we had a test for a named tuple with 5000 fields. In Python 3.x, there is a SyntaxError when there are more than 255 fields.
I'm not sure why you think this is new. It's been true from at least 2.5 as far as I can see.
- Previous message: [Python-ideas] Add a command line option to adjust sys.path? (was Re: Add a site.cfg to keep a persistent list of paths)
- Next message: [Python-ideas] New 3.x restriction on number of keyword arguments
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]