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
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
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:
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
Joshua Jay Herman added the comment:
Was this ever merged? I'm not sure whats happening.
--
___
Python tracker
<http://bugs.python.org/issue24459>
___
___
Joshua Jay Herman added the comment:
Ping
--
___
Python tracker
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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?
--
_
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
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
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
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
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
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
Changes by Joshua Moore-Oliva :
--
nosy: +chatgris
___
Python tracker
<http://bugs.python.org/issue21965>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Joshua Jay Herman added the comment:
Ping.
--
___
Python tracker
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Joshua Jay Herman added the comment:
ping
--
___
Python tracker
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
Joshua Jay Herman added the comment:
ping
--
___
Python tracker
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
301 - 343 of 343 matches
Mail list logo