[issue13299] namedtuple row factory for sqlite3

2012-08-21 Thread Russell Sim
Russell Sim added the comment: Nick, Thanks for the tip. I have removed the star unpacking. -- Added file: http://bugs.python.org/file26946/issue_13299.2.patch ___ Python tracker <http://bugs.python.org/issue13

[issue13299] namedtuple row factory for sqlite3

2012-08-21 Thread Russell Sim
Russell Sim added the comment: Raymond, Thanks for the comprehensive feedback! It's fantastic! I have updated the patch with most of you feedback... but there was one part that I couldn't follow entirely. I am now using the _make method but I have had to use star unpacking to

[issue13299] namedtuple row factory for sqlite3

2012-08-19 Thread Russell Sim
Russell Sim added the comment: Hi, Here is an implementation using lru_cache to prevent regeneration of the named tuple each time. Cheers, Russell -- keywords: +patch nosy: +Russell.Sim Added file: http://bugs.python.org/file26909/issue_13299.patch

[issue13720] argparse print_help() fails if COLUMNS is set to a low value

2012-07-21 Thread Russell Sim
Russell Sim added the comment: Hi, I am having the same problem while running ipython in a batch mode emacs. Apparently you can't even start ipython if the columns are less than 27, since they use the argparse library for the magic method help printing and they preformat the strin