[issue13061] Decimal module yields incorrect results when Python compiled with llvm

2011-09-29 Thread Joshua Bleecher Snyder
New submission from Joshua Bleecher Snyder : When Python is compiled on OS X with llvm, the decimal module behaves erratically (simple calculations are wrong, most doctests fail). This was originally reported here: http://stackoverflow.com/questions/7590137/dividing-decimals-yields-invalid

[issue13061] Decimal module yields incorrect results when Python compiled with llvm

2011-09-29 Thread Joshua Bleecher Snyder
Joshua Bleecher Snyder added the comment: >> Possibly related to http://bugs.python.org/issue11149? > Maybe I missed it in the links you gave, but that is easily > settled by compiling with and without -fwrapv. Apologies -- I didn't do enough homework on this one. Yes, I

[issue706546] u''.translate not documented

2011-11-16 Thread Joshua Bleecher Snyder
Joshua Bleecher Snyder added the comment: This documentation change didn't make it into the docs for translate in the string module -- see http://docs.python.org/library/string.html. It'd be great to add it there as well, as I just got bitten by this. :) -- nosy:

[issue42173] Drop Solaris support

2020-10-29 Thread Joshua M. Clulow
Joshua M. Clulow added the comment: Hi! I'm a member of the illumos core team, and I'm also pretty keen for us to keep Python support! Some of our core OS build and packaging tooling is written in Python, and certainly applications like Synapse (Matrix) and Review Board are im

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2017-07-19 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: Was this ever merged? I'm not sure whats happening. -- ___ Python tracker <http://bugs.python.org/issue24459> ___ ___

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2017-05-06 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: Ping -- ___ Python tracker <http://bugs.python.org/issue24459> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2019-03-10 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: Hi, I would like to try to solve this issue. Does this occur on the latest version of FreeBSD? -- nosy: +zitterbewegung ___ Python tracker <https://bugs.python.org/issue36

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2019-03-11 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: I was able to reproduce this on FreeBSD 12.0. -- ___ Python tracker <https://bugs.python.org/issue36184> ___ ___ Python-bug

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2019-03-15 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: So I changed 'pthread_cond_timedwait' to 'take_gil' and this didn't seem to have an effect on the unit test. I installed GDB 8.2 is that the same version you are using? -- _

[issue21401] python2 -3 does not warn about str to bytes conversions and comparisons

2014-04-30 Thread Joshua J Cogliati
New submission from Joshua J Cogliati: The -3 option should warn about str to bytes conversions and str to bytes comparisons: For example in Python 3 the following happens: python3 Python 3.3.2 Type "help", "copyright", "credits" or "license" for mo

[issue21401] python2 -3 does not warn about str/unicode to bytes conversions and comparisons

2014-05-01 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: Hm. That is a good point. Possibly it could only be done when from __future__ import unicode_literals has been used. For example: python2 -3 Python 2.7.5 Type "help", "copyright", "credits" or "license" for mor

[issue22448] call_at/call_later with Timer cancellation can result in (practically) unbounded memory usage.

2014-09-19 Thread Joshua Moore-Oliva
New submission from Joshua Moore-Oliva: The core issue stems from the implementation of Timer cancellation. (which features like asyncio.wait_for build upon). BaseEventLoop stores scheduled events in an array backed heapq named _scheduled. Once an event has been scheduled with call_at

[issue22448] call_at/call_later with Timer cancellation can result in (practically) unbounded memory usage.

2014-09-20 Thread Joshua Moore-Oliva
Joshua Moore-Oliva added the comment: > You can contribute upstream to the Tulip project first. Will I be writing a patch and tests for tulip, and then separate a patch and tests for python 3.4? Or will I submit to tulip, and then the changes will get merged from tulip into python by s

[issue22448] call_at/call_later with Timer cancellation can result in (practically) unbounded memory usage.

2014-09-20 Thread Joshua Moore-Oliva
Joshua Moore-Oliva added the comment: My patch is ready for review, if I followed the process correctly I think you should have received an email https://codereview.appspot.com/145220043 > By the way I just looked at wait_for.py; it has a bug where do_work() isn't > using yield-fr

[issue22448] call_at/call_later with Timer cancellation can result in (practically) unbounded memory usage.

2014-09-20 Thread Joshua Moore-Oliva
Joshua Moore-Oliva added the comment: > I will try to review later tonight. Thanks! > That makes sense when using gevent, but not when using asyncio or Trollius. > Nothing will make events run if you don't use yield [from]. Yes, I am aware of that. I have written a small custom

[issue21965] Add support for Memory BIO to _ssl

2014-09-20 Thread Joshua Moore-Oliva
Changes by Joshua Moore-Oliva : -- nosy: +chatgris ___ Python tracker <http://bugs.python.org/issue21965> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22448] call_at/call_later with Timer cancellation can result in (practically) unbounded memory usage.

2014-09-25 Thread Joshua Moore-Oliva
Joshua Moore-Oliva added the comment: > Hm. That sounds like you won't actually be interoperable with other > asyncio-using code. asyncio code can be interoperated with by spinning off an asyncio coroutine that on completion calls a callback that reschedules a non-asyncio coroutine

[issue22448] call_at/call_later with Timer cancellation can result in (practically) unbounded memory usage.

2014-09-25 Thread Joshua Moore-Oliva
Joshua Moore-Oliva added the comment: Also - should I close this issue now that a patch has been committed? -- ___ Python tracker <http://bugs.python.org/issue22

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-06-03 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: Ping. -- ___ Python tracker <http://bugs.python.org/issue24459> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-06-03 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: Undid alphabetization and added additional missing environment variables including debug mode variables. -- Added file: http://bugs.python.org/file43166/addMissingEnvironmentVariables.patch ___ Python tracker

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-06-05 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: I have reviewed the comments on Rietveld and made the changes to the patch. Attached is the revised version. -- Added file: http://bugs.python.org/file43248/addMissingEnvironmentVariables-review-1.patch

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-07-06 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: ping -- ___ Python tracker <http://bugs.python.org/issue24459> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7562] Custom order for the subcommands of build

2014-11-05 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: The documentation does claim that swig should just work "the build_ext command knows how to deal with SWIG extensions: it will run SWIG on the interface file and compile the resulting C/C++ file into your extension." It would be nice if the

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-05-21 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: Hi, I have alphabetized and added the missing Environment Variables according to Section 1.2 https://docs.python.org/3.6/using/cmdline.html#environment-variables . I also added the missing environment variables from that documentation section. Should

[issue23644] swig compile fails with ‘_Atomic’ does not name a type

2015-03-12 Thread Joshua J Cogliati
New submission from Joshua J Cogliati: The attached example works fine with Python 3.4.2, but fails with Python 3.5.0a1 and 3.5.0a2 I am using: $ g++ --version g++ (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6) $ swig -version SWIG Version 3.0.5 Compiled with g++ [x86_64-redhat-linux-gnu

[issue23644] swig compile fails with ‘_Atomic’ does not name a type

2015-03-12 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: I have: /local/python_fix/include/python3.5m/pyatomic.h #ifndef Py_LIMITED_API #ifndef Py_ATOMIC_H #define Py_ATOMIC_H #include "dynamic_annotations.h" #include "pyconfig.h" #ifdef __cplusplus extern "C" { #endif #if def

[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

2015-03-12 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: If I change the header to: #ifndef Py_LIMITED_API #ifndef Py_ATOMIC_H #define Py_ATOMIC_H #include "dynamic_annotations.h" #include "pyconfig.h" #ifdef __cplusplus extern "C" { #endif #if defined(HAVE_STD_ATOMIC) #ifd

[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

2015-03-16 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: >> using namespace std; >Doing this in a header is ugly. If you put it in the: #ifdef __cplusplus extern "C" { #endif then it would only apply till the end of the pyatomic header, and not to anything that includes it. Something like:

[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

2015-03-17 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: >Hum, I'm lost with the problem with C++ :-( What is your use case? Do >you >want to compile CPython with C++? Or compile a third-party >extension with C++ >and this extension includes "Python.h" which >includes "pyatom

[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

2015-03-17 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: > @Joshua: Can you please try to compile your extension with Py_LIMITED_API > defined? Ex: "#define Py_LIMITED_API 0x0303" at the top of your C file, > or g++ -DPy_LIMITED_API=0x0303. It fails in that case, because SWIG is using

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-03-17 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: This bug is still in Python 3.5.0a2 (but first issue 23644 needs to be fixed before g++ can be used at all) Attached is a patch for Python 3.5.0. -- versions: +Python 3.5 Added file: http://bugs.python.org/file38530/fix-distutils-350.patch

[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

2015-03-17 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: Once this is fixed, maybe issue 8027 can be fixed as well in 3.5.0. -- ___ Python tracker <http://bugs.python.org/issue23

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-03-18 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: Here is an example to use to test for this bug. Proper use on my computer (PYTHONPATH may need adjusting on other systems): Python2: cd small_example python setup.py build_ext build install --prefix=`pwd` export PYTHONPATH=`pwd`/lib64/python2.7/site

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-03-18 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: > Does the patch fix things on Mac OS X and Linux? So far as I can tell, the code in question is to do something so that CXX variables like: export CXX="env BAR=FOO g++" work better. However, it is broken for that case, and since it has been br

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-03-18 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: On OSX 10.10.1, With the small_example, and with python 3.4.3 and: $ export CXX="env BAR=FOO g++" $ python3 setup.py build_ext build install --prefix=`pwd` running build_ext building '_example' extension swigging example/example.i to exam

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-03-19 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: Looking at the patch (3078fdb7cf3d for Issue1488098) it has: if target_lang == "c++" and self.compiler_cxx: -linker[0] = self.compiler_cxx[0] One possibility is that that the problem was: linker[0] = self.comp

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-04-02 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: Let me try and explain what is trying to be done in the original code, what the fix was, and then discuss some possible better solutions. Original code: if target_lang == "c++" and self.compiler_cxx: linker[0] = self.compiler_cxx[0] Curren

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-04-08 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: I looked and the autoconf variable for the c++ linker is CXXLINK, so I think the proper way to fix this would be to change sysconfig.py to look at both CXXFLAGS and CXXLINK, and create those and use it to define a cxxlink variable, and only if they are

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-10-09 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: Hi I performed the rebase on the default branch. -- Added file: http://bugs.python.org/file45041/rebased_addMissingEnvironmentalVariables.patch ___ Python tracker <http://bugs.python.org/issue24

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-10-10 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: Thanks for reviewing Mariatta I have made a new patch that has those typos corrected. -- Added file: http://bugs.python.org/file45045/correctedRebasedAddMissingEnvironmentalVariables.patch ___ Python tracker

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-11-13 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: ping -- ___ Python tracker <http://bugs.python.org/issue24459> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-11-19 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: Thanks for pointing out that wasn't in the latest patch this has been corrected. -- Added file: http://bugs.python.org/file45552/corrected.patch ___ Python tracker <http://bugs.python.org/is

[issue33065] debugger issue concerning importing user created modules into another program

2018-03-12 Thread Joshua De La Rosa
New submission from Joshua De La Rosa : Taking my first coding class, so I don't know much about coding or python in general, but I ran into a problem when using the Debugger function for a homework assignment that neither I nor my professor could make sense of. My program exe

<    1   2   3   4