[Mesa-dev] [PATCH] glapi: Avoid argparse type argument for API XML input files.

2015-05-26 Thread Jose Fonseca
argparse type is a nice type saver for simple data types, but it doesn't look a good fit for the input XML file: - Certain implementations of argparse (particularly python 2.7.3's) invoke the type constructor for the default argument even when an option is passed in the command line. Causing

Re: [Mesa-dev] [PATCH] glapi: Avoid argparse type argument for API XML input files.

2015-05-26 Thread Brian Paul
On 05/26/2015 04:15 AM, Jose Fonseca wrote: argparse type is a nice type saver for simple data types, but it doesn't look a good fit for the input XML file: - Certain implementations of argparse (particularly python 2.7.3's) invoke the type constructor for the default argument even when an

Re: [Mesa-dev] [PATCH] glapi: Avoid argparse type argument for API XML input files.

2015-05-26 Thread Jose Fonseca
On 26/05/15 19:06, Dylan Baker wrote: On Tue, May 26, 2015 at 11:15:36AM +0100, Jose Fonseca wrote: argparse type is a nice type saver for simple data types, but it doesn't look a good fit for the input XML file: - Certain implementations of argparse (particularly python 2.7.3's) invoke the

Re: [Mesa-dev] [PATCH] glapi: Avoid argparse type argument for API XML input files.

2015-05-26 Thread Ilia Mirkin
On Tue, May 26, 2015 at 2:06 PM, Dylan Baker baker.dyla...@gmail.com wrote: On Tue, May 26, 2015 at 11:15:36AM +0100, Jose Fonseca wrote: argparse type is a nice type saver for simple data types, but it doesn't look a good fit for the input XML file: - Certain implementations of argparse

Re: [Mesa-dev] [PATCH] glapi: Avoid argparse type argument for API XML input files.

2015-05-26 Thread Jose Fonseca
On 26/05/15 19:48, Jose Fonseca wrote: On 26/05/15 19:06, Dylan Baker wrote: On Tue, May 26, 2015 at 11:15:36AM +0100, Jose Fonseca wrote: argparse type is a nice type saver for simple data types, but it doesn't look a good fit for the input XML file: - Certain implementations of argparse

Re: [Mesa-dev] [PATCH] glapi: Avoid argparse type argument for API XML input files.

2015-05-26 Thread Dylan Baker
On Tue, May 26, 2015 at 11:15:36AM +0100, Jose Fonseca wrote: argparse type is a nice type saver for simple data types, but it doesn't look a good fit for the input XML file: - Certain implementations of argparse (particularly python 2.7.3's) invoke the type constructor for the default

Re: [Mesa-dev] [PATCH] glapi: Avoid argparse type argument for API XML input files.

2015-05-26 Thread Dylan Baker
On Tue, May 26, 2015 at 02:05:41PM -0400, Ilia Mirkin wrote: On Tue, May 26, 2015 at 2:06 PM, Dylan Baker baker.dyla...@gmail.com wrote: On Tue, May 26, 2015 at 11:15:36AM +0100, Jose Fonseca wrote: argparse type is a nice type saver for simple data types, but it doesn't look a good fit for

Re: [Mesa-dev] [PATCH] glapi: Avoid argparse type argument for API XML input files.

2015-05-26 Thread Ilia Mirkin
On Tue, May 26, 2015 at 2:14 PM, Dylan Baker baker.dyla...@gmail.com wrote: On Tue, May 26, 2015 at 02:05:41PM -0400, Ilia Mirkin wrote: On Tue, May 26, 2015 at 2:06 PM, Dylan Baker baker.dyla...@gmail.com wrote: On Tue, May 26, 2015 at 11:15:36AM +0100, Jose Fonseca wrote: argparse type is

Re: [Mesa-dev] [PATCH] glapi: Avoid argparse type argument for API XML input files.

2015-05-26 Thread Dylan Baker
On Tue, May 26, 2015 at 02:15:37PM -0400, Ilia Mirkin wrote: On Tue, May 26, 2015 at 2:14 PM, Dylan Baker baker.dyla...@gmail.com wrote: On Tue, May 26, 2015 at 02:05:41PM -0400, Ilia Mirkin wrote: On Tue, May 26, 2015 at 2:06 PM, Dylan Baker baker.dyla...@gmail.com wrote: On Tue, May