[issue13236] unittest needs more flush calls

2011-10-20 Thread Peter Eisentraut
New submission from Peter Eisentraut : I'm using the TextTestRunner class in unittest/runner.py with a special file-like object passed in as stream. Doing this loses some output, because the run() method (and some lower-level methods) don't always call flush() on the stream. The

[issue13236] unittest needs more flush calls

2011-10-26 Thread Peter Eisentraut
Peter Eisentraut added the comment: Attached is a test file. The key here is that I'm running the unittest suite inside of a long-running server process, so there is no predictable point of exit and cleanup. Therefore, the steps I show at the end of the file should be run in an intera

[issue12444] accept sets or collections for str.strip/lstrip/rstrip

2011-06-29 Thread Peter Eisentraut
New submission from Peter Eisentraut : It appears to be a pretty common mistake to think that the argument of str.strip/lstrip/rstrip is a substring rather than a set of characters. To allow a more clearer notation, it would be nice if these functions also accepted an argument other than a

[issue12531] documentation index entries for * and **

2011-07-11 Thread Peter Eisentraut
New submission from Peter Eisentraut : The existing documentation index entries for * and ** only point to their use in function definitions but not to their use in function calls. I was looking for the latter, and it was difficult to find without this. Here is a small patch to add the

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-07 Thread Peter Eisentraut
Changes by Peter Eisentraut : -- nosy: +petere ___ Python tracker <http://bugs.python.org/issue12012> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-01-29 Thread Peter Eisentraut
New submission from Peter Eisentraut : When setting Py_LIMITED_API, functions such as PyUnicode_Check() can no longer be used. Example: #define Py_LIMITED_API #include void foo() { PyObject *o; PyUnicode_Check(o); } test.c: In function ‘foo’: test.c:9: error: dereferencing

[issue39615] cpython/abstract.h not compatible with C90

2020-02-12 Thread Peter Eisentraut
New submission from Peter Eisentraut : Some inline functions use mixed declarations and code. These end up visible in third-party code that includes Python.h, which might not be using a C99 compiler. Example: In file included from /Users/peter/python-builds/3.9/include/python3.9

[issue39615] cpython/abstract.h not compatible with C90

2020-02-12 Thread Peter Eisentraut
Change by Peter Eisentraut : -- keywords: +patch pull_requests: +17851 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18481 ___ Python tracker <https://bugs.python.org/issu

[issue39615] cpython/abstract.h not compatible with C90

2020-02-12 Thread Peter Eisentraut
Peter Eisentraut added the comment: That's fair for code internal to CPython itself, but these are header files included by third-party code that is embedding Python, so a bit more flexibility and adaptability would be welcome

[issue39615] cpython/abstract.h not compatible with C90

2020-03-24 Thread Peter Eisentraut
Peter Eisentraut added the comment: 3.9.0a5 fixes my original issue. Thanks. -- ___ Python tracker <https://bugs.python.org/issue39615> ___ ___ Python-bug

[issue43412] object.h -Wcast-qual warning

2021-03-05 Thread Peter Eisentraut
New submission from Peter Eisentraut : object.h contains an inline function that causes a -Wcast-qual warning from gcc. Since this file ends up visible in third-party code that includes Python.h, this makes it impossible to use -Wcast-qual in such code. The problem is the change

[issue14676] DeprecationWarning missing in default warning filters documentation

2012-04-26 Thread Peter Eisentraut
New submission from Peter Eisentraut : DeprecationWarning was disabled by default in Python 2.7, but the documentation section "Default Warning Filters" does not list it as ignored. In the 3.x branches, this was already fixed. Trivial patch attached. -- assignee: d

[issue14689] make PYTHONWARNINGS variable work in libpython

2012-04-28 Thread Peter Eisentraut
New submission from Peter Eisentraut : The environment variable PYTHONWARNINGS only works with the python interpreter binary, but not with programs embedding libpython. This could be changed by moving the code from Modules/main.c to Python/pythonrun.c. See attached patch (compiles cleanly

[issue16026] csv.DictReader argument names documented incorrectly

2012-09-24 Thread Peter Eisentraut
New submission from Peter Eisentraut: The documentation for the csv.DictReader constructor is .. class:: DictReader(csvfile, fieldnames=None, restkey=None, restval=None, dialect='excel', *args, **kwds) but the implementation is def __init__(self, f, fieldnames=None, restkey=Non

[issue11122] bdist_rpm should use rpmbuild, not rpm

2014-03-14 Thread Peter Eisentraut
Peter Eisentraut added the comment: No, the second use should not be converted. -- ___ Python tracker <http://bugs.python.org/issue11122> ___ ___ Python-bug

[issue444582] Finding programs in PATH, adding shutil.which

2012-11-06 Thread Peter Eisentraut
Changes by Peter Eisentraut : -- nosy: +petere ___ Python tracker <http://bugs.python.org/issue444582> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11122] bdist_rpm should use rpmbuild, not rpm

2012-11-06 Thread Peter Eisentraut
Peter Eisentraut added the comment: I ran into a similar instance of this problem today and would like to add my support for just getting rid of the "rpm" calls and just call "rpmbuild" in all cases. The last release where "rpm" was used for buildi

[issue7111] core dump when stderr is moved

2009-10-12 Thread Peter Eisentraut
New submission from Peter Eisentraut : bash$ python3.1 -c 'pass' 2>&- Aborted (core dumped) (I verified, the core dump belongs to python.) If you remove the redirection thingy at the end, it works. Not sure why I ever wrote that code, but it has been working since foreve

[issue7111] core dump when stderr is moved

2009-10-14 Thread Peter Eisentraut
Peter Eisentraut added the comment: For what it's worth, the code in question is used here (using "import distutils" instead of "pass"): http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/config/python.m4?rev=1.15;content-type=text%2Fx-cvsweb-markup This is obviousl

[issue27337] 3.6.0a2 tarball has weird paths

2016-06-16 Thread Peter Eisentraut
New submission from Peter Eisentraut: The file Python-3.6.0a2.tgz contains paths that start with "..", e.g., $ tar tf Python-3.6.0a2.tgz | head ../Python-3.6.0a2/ ../Python-3.6.0a2/Doc/ ../Python-3.6.0a2/Grammar/ ../Python-3.6.0a2/Include/ ../Python-3.6.0a2/LICENSE ../Python-3

[issue27337] 3.6.0a2 tarball has weird paths

2016-06-17 Thread Peter Eisentraut
Peter Eisentraut added the comment: The affected tar is indeed a BSD-ish tar (OS X). With GNU tar I can proceed. It says "gtar: Removing leading `../' from member names". So with that I agree that it's not worth re

[issue25548] Show the address in the repr for class objects

2016-06-17 Thread Peter Eisentraut
Peter Eisentraut added the comment: I understand the reasoning here, but I want to say booh to this change in 3.6.0a2 because it breaks my tests. It used to be that type(x) returned a predictable string, and that was an easy way to verify the result types of things. Perhaps a __str__