[issue30562] SSL socket does not respect SO_RCVTIME0 timeouts

2017-06-03 Thread Allan Crooks
New submission from Allan Crooks: I initially filed this ticket against the ldap3 library, as this is where I first encountered the issue: https://github.com/cannatag/ldap3/issues/356 I've attached a file which reproduces the issue using the standard library - it makes both a HTTP and HTTPS

[issue20612] cElementTree has problems with StringIO object containing unicode content

2014-02-12 Thread Allan Crooks
New submission from Allan Crooks: There seems to be a specific issue when using cElementTree.parse on a StringIO object containing unicode text - it generates a ParseError. I've tried variations of ElementTree and cElementTree, variations of StringIO and cStringIO, and used str and unicode

[issue4643] cgitb.html fails if getattr call raises exception

2008-12-29 Thread Allan Crooks
Allan Crooks a...@users.sourceforge.net added the comment: In the interests of getting this fixed (and not letting it die), should I submit a proper patch? I suppose I would have to do one for each version of Python that is affected (which is all of them, really

[issue4643] cgitb.html fails if getattr call raises exception

2008-12-17 Thread Allan Crooks
Allan Crooks a...@users.sourceforge.net added the comment: In terms of patching scanvars, I came up with the following solution: ORIGINAL: if parent is not __UNDEF__: value = getattr(parent, token, __UNDEF__) vars.append((prefix + token, prefix, value)) SOLUTION: if parent

[issue4643] cgitb.html fails if getattr call raises exception

2008-12-12 Thread Allan Crooks
New submission from Allan Crooks a...@users.sourceforge.net: If cgitb.html tries to get the value of an attribute from an object, and the getattr call causes an exception to be raised (other than an AttributeError), then cgitb.html fails to work: If you run the attached file in Python 2.5.2

[issue4644] Minor documentation fault in 2to3 script

2008-12-12 Thread Allan Crooks
New submission from Allan Crooks a...@users.sourceforge.net: When I run the following command: C:\temp\python26\Tools\scripts\2to3.py --help Usage: refactor.py [options] file|dir ... It mentions that the script name is refactor.py, rather than 2to3.py (I guess that was the scripts original

[issue4643] cgitb.html fails if getattr call raises exception

2008-12-12 Thread Allan Crooks
Changes by Allan Crooks a...@users.sourceforge.net: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4643 ___ ___ Python-bugs

[issue3622] Slight documentation quirk for random.random

2008-08-20 Thread Allan Crooks
New submission from Allan Crooks [EMAIL PROTECTED]: The documentation for random.random function shows this: random() - x in the interval [0, 1). That should either be [0, 1] or (0, 1). -- assignee: georg.brandl components: Documentation messages: 71582 nosy: amc1, georg.brandl