New submission from Dave Opstad :
In 3.6 I get this:
>>> x = (100 * 20)
>>> x is 2000
False
>>> (100 * 20) is 2000
False
But in 3.7, I get this:
>>> x = (100 * 20)
>>> x is 2000
False
>>> (100 * 20) is 2000
True
This isn't neces
Dave Opstad added the comment:
I think this was my mistake; when I used pydoc3 instead of pydoc it ran to
completion. Please feel free to close this; sorry for the noise.
--
___
Python tracker
<https://bugs.python.org/issue32
New submission from Dave Opstad :
I'm running 3.6.4 on Mac OS X 10.13.2, bash shell. Doing:
$ pydoc modules
causes:
Please wait a moment while I gather a list of all available modules...
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
Reproduced this several
Dave Opstad added the comment:
I guess I was confused by the inconsistency with Python 3, which *does* call
the __str__ method, even though, again, no coercion is needed:
Python 3.2 (r32:88452, Feb 20 2011, 10:19:59)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help",
New submission from Dave Opstad :
Python 2.7.1 doesn't appear to do the usual implicit call to str() for
subclasses of unicode. In the following snippet, I would have expected print
myTest and print str(myTest) to behave the same:
>>> class Test(unicode):
... de
New submission from Dave Opstad :
According to the 3.1 documentation, the prototype for PyBuffer_Release is:
void PyBuffer_Release(PyObject *obj, Py_buffer *view);
However, abstract.h has this prototype:
PyAPI_FUNC(void) PyBuffer_Release(Py_buffer *view);
The documentation's referen
New submission from Dave Opstad :
The utf-32 little-endian codec works fine, but the big-endian codec is
producing incorrect results:
Python 3.1.2 (r312:79360M, Mar 24 2010, 01:33:18)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credi