[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-05 Thread Jim Nasby
Jim Nasby added the comment: I take it back... turns out I was building with the unsupported macports gcc. -- ___ Python tracker <http://bugs.python.org/issue29

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-05 Thread Jim Nasby
Jim Nasby added the comment: This is still affecting me on 2.7, even with the new changes. 3.7 seems to be OK (I'm getting a different error on 3.7, but it seems unrelated to this.) OS X 10.11.6. -- nosy: +Jim Nasby ___ Python tracker

[issue29126] Fix comments about _PyThreadState_Current

2016-12-31 Thread Jim Nasby
New submission from Jim Nasby: Attached patch fixes two comments in dictobject.c referring to no longer exposed _PyThreadState_Current variable. I also tweaked the grammar for that issue in NEWS, since it came up in my search. Apologies if that's considered gratuitous

[issue28718] '*' matches entire path in fnmatch.translate

2016-11-16 Thread Jim Nasby
New submission from Jim Nasby: A '*' in fnmatch.translate is converted into '.*', which will greedily match directory separators. This doesn't match shell behavior, which is that * will only match file names: decibel@decina:[14:07]~$ls ~/tmp/*/1|head ls: /Users/deci

[issue26142] Formatting bug on https://docs.python.org/2.7/c-api/intro.html

2016-01-17 Thread Jim Nasby
New submission from Jim Nasby: The code for the set_all() example has a formatting bug: return -1; } Py_DECREF(index); } it should be return -1; } Py_DECREF(index); } -- assignee: docs@python components: Documentation

[issue25587] Useless addition in PyTuple_New

2015-11-08 Thread Jim Nasby
New submission from Jim Nasby: In PyTuple_New, if the new tuple won't go on the free_list: /* Check for overflow */ if (nbytes / sizeof(PyObject *) != (size_t)size || (nbytes > PY_SSIZE_T_MAX - sizeof(PyTupleObject) - sizeof(