[issue36787] Python3 regresison: String formatting of None object

2019-05-03 Thread Gawain Bolton
Gawain Bolton added the comment: Note: I have a patch which fixes this. -- ___ Python tracker <https://bugs.python.org/issue36787> ___ ___ Python-bugs-list m

[issue36787] Python3 regresison: String formatting of None object

2019-05-03 Thread Gawain Bolton
New submission from Gawain Bolton : Python 2.7.16 (default, Apr 6 2019, 01:42:57) [GCC 8.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> p

[issue6713] Integer & Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-09-19 Thread Gawain Bolton
Gawain Bolton added the comment: Here's a modified version of the patch to Objects/intobject.c which __does__ use the two-digits-at-a-time optimization. Compared to the int_decimal_conversion_trunk.patch, my tests show a further 12.5% improvement with two digit numbers - positive or neg

[issue6713] Integer & Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-09-13 Thread Gawain Bolton
Gawain Bolton added the comment: Mark, I haven't tried your latest patch but I tried your patch3 and obtained the same performance improvement for long integers, namely 3.1x faster. This is truly an excellent improvement, my hat's off to you! As for the basic integers, I'm wor

[issue6713] Integer & Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-09-09 Thread Gawain Bolton
Gawain Bolton added the comment: Yes I agree it would be a good idea to have one definition and one instantiation of the _decimal_digit_table[] and BitLengthTable[32] arrays. Where do you suggest these tables could be put? I'll be happy to provide an updated patch if you can let me

[issue6713] Integer & Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-08-16 Thread Gawain Bolton
New submission from Gawain Bolton : Converting integer & long types to their ASCII representation is a task which can be quite CPU intensive due to the division & modulo operations. For long integers having hundreds or thousands of digits, this can take a truly significant amount of

[issue2195] urlparse() does not handle URLs with port numbers properly

2008-02-29 Thread Gawain Bolton
Gawain Bolton added the comment: On the contrary, RFC 1738 does mention the port number in section 3.1. Common Internet Scheme Syntax: While the syntax for the rest of the URL may vary depending on the particular scheme selected, URL schemes that involve the direct use of an IP-based

[issue2195] urlparse() does not handle URLs with port numbers properly

2008-02-26 Thread Gawain Bolton
Changes by Gawain Bolton: -- title: urlparse() -> urlparse() does not handle URLs with port numbers properly __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue2195] urlparse()

2008-02-26 Thread Gawain Bolton
New submission from Gawain Bolton: The urlparse() function in urlparse module does not handle URLs without an explicit scheme and with port numbers. The following works as expected: >>> urlparse.urlparse('foo.bar.com','http').scheme 'http' But if the U