Johannes Reiff added the comment:
Could someone comment on the way forward? Or ideally just merge my PR (it was
approved on GitHub)? I am still very much interested in this bug getting fixed.
--
___
Python tracker
<https://bugs.python.
New submission from Johannes :
I'm a bit confused because this seems to be too obvious to be a bug:
[code]
>>> -2094820900 // 1298
-1613884
>>> -2094820900 // -1298
1613883
[/code]
Obviously there is a +/- 1 difference in the result.
Tested with Python 3.7, 3.8 and
Johannes Reiff added the comment:
It has been almost a month since the last update, so pinging as suggested in
the Developer's Guide. Do I need to do something before the PR can be merged?
--
___
Python tracker
<https://bugs.python.org/is
Johannes Reiff added the comment:
Thanks! Is there anything I need to do regarding the Python 3.8 and 3.9
backports?
--
___
Python tracker
<https://bugs.python.org/issue41
New submission from Johannes Reiff :
If assigning binary content to an EmailMessage via set_content(), the function
email.contentmanager.set_bytes_content() is called. This function fails when
choosing the 7bit transfer encoding because of a call to data.decode('
New submission from Johannes Buchner :
https://docs.python.org/3/library/functions.html#__import__
and
https://docs.python.org/3/library/importlib.html#importlib.import_module
do not list which Exceptions are raised in case the module cannot be imported.
The two exceptions are listed here
Johannes Berg added the comment:
I've also filed https://sourceware.org/bugzilla/show_bug.cgi?id=26034 for
glibc, because that's where really the issues seems to be?
But perhaps python should be forgiving of glibc errors here.
--
Johannes Berg added the comment:
Like I said above, it could be argued that the bug is in glibc, and then
https://p.sipsolutions.net/6a4e9fce82dbbfa0.txt
could be used as a simple LD_PRELOAD wrapper to work around this, just to
illustrate the problem from that side.
Arguably, that makes
Johannes Berg added the comment:
And wrt. _Py_DecodeUTF8Ex() - it doesn't seem to help. But that's probably
because I'm not __ANDROID__, nor __APPLE__, and then regardless of
current_locale being non-zero or not, we end up in decode_current_locale()
where the impedance m
Johannes Berg added the comment:
In fact that python one-liner works with just about everything else that you
can throw at it, just not something that "looks like utf-8 but isn't".
And of course adding LC_CTYPE=ascii or something like that fixes it, as you'
Johannes Berg added the comment:
A simple test case is something like
./python -c 'import sys;
print(sys.argv[1].encode(sys.getfilesystemencoding(), "surrogateescape"))'
"$(echo -ne '\xfa\xbd\x83\x96\x80')"
Which you'd probably expect to pr
Johannes Berg added the comment:
Pretty sure this is an issue still, I see it on current git master.
This seems to work around it?
https://p.sipsolutions.net/603927f1537226b3.txt
Basically, it seems that mbstowcs() and mbrtowc() on glibc with utf-8 just
blindly decode even invalid UTF-8 to
Johannes Frank added the comment:
Yes, I didn't revisit the issue since, but Malcolm is right. Implemented in
python 3.8.
Thanks to all the contributors.
On Sat, Feb 29, 2020 at 8:58 AM Malcolm Smith
wrote:
>
> Malcolm Smith added the comment:
>
> It looks like this has
Johannes Erwerle added the comment:
since it hasn't been documented that those classes are all designed to be
immutable (and many things work when they are mutable) many people probably use
it that way.
Declaring them immutable via the docs now would "break"
Change by Johannes Erwerle :
--
title: ip_network does not clear/update the broadcast_address cache when the
IP address is changed. -> ip_network does not clear/update the
broadcast_address cache when network_address is changed.
___
Pyt
New submission from Johannes Erwerle :
The ip_network class in the ipaddress module does cache the broadcast_address
attribute.
But when the network address is changed the cache is not cleared/updated.
Example:
> from ipaddress import ip_network
>
&
Change by Johannes Erwerle :
--
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue38784>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Johannes Frank :
--
nosy: +matrixise
___
Python tracker
<https://bugs.python.org/issue17305>
___
___
Python-bugs-list mailing list
Unsubscribe:
Johannes Frank added the comment:
Hello Christian,
much appreciated. Thank you so much.
Johannes
--
___
Python tracker
<https://bugs.python.org/issue34
Johannes Frank added the comment:
Hi Christian
I would be willing to give this a try, could you publish or send me that
more elaborate code?
Thanks Johannes
On Wed, 26 Sep 2018 at 09:25, Christian Heimes
wrote:
>
> Christian Heimes added the comment:
>
> Here is a horribly hack
New submission from Johannes M. :
Since about a decade, it's a know problem that NumPy and Pandas initialization
function crashes on reinitialization after a call to Py_Finalize() +
Py_Initialize().
[https://github.com/numpy/numpy/issues/8097]
[https://github.com/numpy/numpy/issues/
Change by Johannes Frank :
--
title: Please support logging of SSL master secret by env variable
SSLKEYLOGFILe -> Please support logging of SSL master secret by env variable
SSLKEYLOGFILE
___
Python tracker
<https://bugs.python.org/issu
New submission from Johannes Frank :
As discussed on the EuroPython 2018 it would be a great improvement if the
python SSL module would respect the SSLKEYLOGFILE environment variable to log
the master secret and the client random for packet trace decryption.
The pycurl module compiled
New submission from Johannes Raggam :
The following is valid Python 2:
>>> 'okay {0:s}'.format(Exception('test'))
'okay test'
>>> 'okay {0}'.format(Exception('test'))
'okay test'
The following fails on Python 3.6
New submission from Johannes Raggam :
urllib.parse.unquote gives an misleading error message when:
>>> import urllib
>>> urllib.parse.unquote(b'bytesurl')
*** TypeError: a bytes-like object is required, not 'str'
while:
>>> urllib.parse.unquote
Johannes added the comment:
Hi all, I'm trying to use multiprocessing with a 3d list. From the
documentation I expected it to work. As I found this report a bid later, I
opened a bug report here: https://bugs.python.org/issue32538. Am I doing sth.
wrong or is it still not working in
New submission from Johannes :
I have the following code, which works without multiprocessing:
data=[[['','','','','','','','','','','','&
Johannes Lade added the comment:
And sorry for my lousy manners. Of course I appreciate all the hard work you
do! It's just frustrating when you get confused by doc.
--
___
Python tracker
<http://bugs.python.org/is
Johannes Lade added the comment:
This is still a problem. Can please somebody fix this? There are already enough
confusing discussion full of wrong information about this topic, so it would be
nice if the official documentation would get it right. Also there's multiple
Issues for this
Johannes Löthberg added the comment:
Ping?
--
___
Python tracker
<http://bugs.python.org/issue27321>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Johannes Löthberg :
--
pull_requests: +2043
___
Python tracker
<http://bugs.python.org/issue27321>
___
___
Python-bugs-list mailing list
Unsubscribe:
Johannes Löthberg added the comment:
Ah, didn't even see your comment before I did it! Fix to the comments are on
the same branch, will be rebased before PR is up.
--
___
Python tracker
<http://bugs.python.org/is
Johannes Löthberg added the comment:
Fix:
https://github.com/kyrias/cpython/commit/a986a8274a522c73d87360da6930e632a3eb4ebb
Testcase:
https://github.com/kyrias/cpython/commit/9a510426522e1d714cd0ea238b14de0fc76862b2
Can start a PR once my CLA signature goes through I guess
Johannes Löthberg added the comment:
Any updates on this? I'm having the same problem with some non-spam emails
while trying to use some mail-handling tools written in Python.
--
nosy: +Johannes Löthberg
___
Python tracker
<http://bugs.py
Johannes Bauer added the comment:
Hey there,
wanted to follow up on the state of this... is there a reason why this has not
made it into vanilla yet? If so, I'd like to try to help out clear impediments
if I can.
This issue is *really*, really, really annoying me. I've posted ab
Johannes S. added the comment:
Sorry that I haven't answered for a long time. I would like to get an email
notification but I don't know whether/how I can enable it.
On "my instance of Linux SuSE", the lines are locking like this:
CONFIG_ARGS=' '\
Johannes Ebke added the comment:
Attached is a new version of the patch incorporating the review results.
--
Added file: http://bugs.python.org/file43508/fix_and_test_26923_reviewed.patch
___
Python tracker
<http://bugs.python.org/issue26
Johannes Ebke added the comment:
Right, that's neater. Attached is a patch with your version and a test. I
checked that it fails with the old version of cancel() and passes with the new
one.
Concerning possible other bugs, I've had a look in the standard library, but
could not fi
Johannes S. added the comment:
Maybe my last comment was not clear enogth. I used the tarballs from 3.5 and
3.6 which are linked in my last comment. I extracted them and run the the
following commands on Arch (64 Bit) and Linux SuSE 13.1 (64 Bit):
mkdir build
cd build
../configure
Johannes Ebke added the comment:
On rereading my original description, it really is not clearly described why
the calling Task ends up surviving.
Attached is a patch to the 3.5.1 asyncio/tasks.py which adds some print
statements in Task.cancel().
If I execute the cancellation_test.py with
Johannes S. added the comment:
I tried it again and I also tried 3.6.0a1 now. 3.6.0a1 has the issue as well. I
have downloaded the tarballs from
https://www.python.org/downloads/release/python-351/ and
https://www.python.org/downloads/release/python-360a1/.
I have run it on my Laptop (Arch
Johannes Spangenberg added the comment:
I can confirm this issue. I did run it on Linux SuSE 13.1 (64 Bit). Unlike
other components, which are installed in `lib/`, `lib-dynload` is installed in
`lib64/python3.5/`. But `sys.path` still points to `lib/python3.5/lib-dynload`.
It did run in on
Johannes Ebke added the comment:
Thank you for providing the relevant documentation link.
I just noticed that it should probably be clarified that in case the outer
Future is cancelled, and all children that are not already done ignore the
cancellation (a.k.a. catch the CancelledError), the
New submission from Johannes Ebke:
In a very specific case, asyncio.gather causes a cancel() call on the Task
waiting on the _GatheringFuture to return a false positive. An example program
demonstrating this is attached.
The context: asyncio.gather creates a _GatheringFuture with a list of
New submission from Johannes Niediek:
docstring ends with colon, should be fullstop.
--
components: Library (Lib)
files: csvreader_docstring.txt
messages: 252030
nosy: wasserverein
priority: normal
severity: normal
status: open
title: csv.reader: minor docstring typo
type: enhancement
New submission from Johannes Baiter:
While testing a module that uses multiprocessing.Pool to distribute load across
multiple processes, I noticed that my test suite was copmleting very quickly
(~0.15s) on Python 2.6, while Python 2.7 and above took around 10x as long
(~1.6s).
Upon debugging
Johannes Baiter added the comment:
Sorry for commenting so late, I submitted a version of the patch with unit
tests roughly two weeks ago, I just forgot to mention it in a comment. Hereby
fixed :-)
--
___
Python tracker
<http://bugs.python.
Changes by Johannes Baiter :
Added file: http://bugs.python.org/file34515/mock_truediv_with_tests.diff
___
Python tracker
<http://bugs.python.org/issue20968>
___
___
Pytho
Johannes Baiter added the comment:
>From looking at 'test_numerics', only 'add' is currently tested.
Probably since the mechanism for all of the numeric magic methods is the same
(i.e. create , __i__, __r__).
Should I add a test for __truediv__ and its inp
Johannes Baiter added the comment:
I just noticed that I put the magic method names in the wrong place in the
patch.
Attached is a fix that adds 'truediv' to the global 'numberics' variable, this
way '__rtruediv__' and '__itruediv__' will be correctl
Johannes Baiter added the comment:
Attached is a patch that fixes the issue for me.
--
keywords: +patch
Added file: http://bugs.python.org/file34490/mock_truediv.diff
___
Python tracker
<http://bugs.python.org/issue20
New submission from Johannes Baiter:
It seems that when creating a MagicMock the magic '__truediv__' method is not
replaced with a mock:
>>> import mock
>>> foo = mock.MagicMock()
>>> foo / 2
Traceback (most recent call last):
File "", line 1,
Johannes added the comment:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0008
0x00010004e221 in PyObject_GetAttr ()
(gdb) bt
#0 0x00010004e221 in PyObject_GetAttr ()
#1 0x00010004e0ff in PyObject_Unicode
Changes by Johannes :
--
title: Seg fault when calling unicode() on old style class in virtualenv -> Seg
fault when calling unicode() on old style object in virtualenv
___
Python tracker
<http://bugs.python.org/issu
New submission from Johannes:
Running the code attached causes a segmentation fault.
This only occurs when run from within a virtual environment, and when the class
is an old style class.
I've tested on OSX with both 2.7.3 installed via Homebrew, and the default
2.7.2 Python install
New submission from Johannes Buchner :
If I have a script
foo/bar.py
import baz
and create a symlink to it, called barhere.py
ln -s foo/bar.py barhere.py
when I run it, it behaves unexpectedly, specifically it behaves differently
than if I had copied it here. It prefers to import baz from
Johannes Kolb added the comment:
I want to mention a situation in which the current behaviour of os.makedirs is
confusing. At the first glance I would expect that if
>>> os.makedirs(path)
succeeds, then a following call to
>>> os.makedirs(path, exist_ok=True)
will succeed
New submission from Johannes Kolb :
The documentation for "files" section of the setup.cfg file causes confusion:
The examples don't match the description. Obviously the order of "destination"
and "source" part in the generated filenames was mixed up in some
New submission from Johannes Bauer :
imaplib does not qupote mailbox names when it's sending it's query to the
server in response to a status request, for example. This will lead to very
strange errors if mailboxes are accessed which contain spaces:
i.e.
connection.status(&qu
Johannes Bauer added the comment:
Issue also affects Python3.1. Hunk succeeds against 3.1 imaplib.py and works
for me.
--
nosy: +joebauer
versions: +Python 3.1
___
Python tracker
<http://bugs.python.org/issue13
Johannes Hoff added the comment:
Forest Bond: Thanks for this patch - I hope it will go in soon. In the
meantime, could I get permission to use it as is? (I notice there is a
copyright in the file) I would of course keep the attributions in the file.
--
nosy: +Johannes.Hoff
New submission from Johannes Lindenbaum :
This bug is a crosspost from /setuptools.
(http://bugs.python.org/setuptools/issue122)
Summary:
OSX 10.6.x with Xcode 4 installed. Xcode 4 removes the PPC assembler from GCC.
I attempted to install Fabric-1.0.0 which depended on pycrypto, during the
Johannes Schönberger added the comment:
sorry, I totally forgot about this...
--
___
Python tracker
<http://bugs.python.org/issue7769>
___
___
Python-bugs-list m
New submission from Johannes Ammon :
The example code for itertools.count
(http://docs.python.org/library/itertools.html#itertools.count) says
# count(2.5, 0.5) -> 3.5 3.0 4.5 ...
I think that should read
# count(2.5, 0.5) -> 2.5 3.0 3.5 ...
--
assignee: docs@
Johannes Ammon added the comment:
Same behaviour with 2.7
--
versions: +Python 2.7
___
Python tracker
<http://bugs.python.org/issue10417>
___
___
Python-bug
New submission from Johannes Ammon :
When there is a non-ASCII character in the docstring of a test function,
unittest triggers an UnicodeEncodeError when called with "--verbose".
I have this file unicodetest.py:
-
# -*- coding: utf-8 -*-
impor
Johannes Schönberger added the comment:
sorry, forgot the str:
def rsin(x):
"""Return the sine of x as measured in radians.
>>> print sin(Decimal('0.5'))
0.4794255386042030002732879352
>>> print sin(0.5)
0.479425538604
&
Johannes Schönberger added the comment:
This adds two further lines, so you can pass int's, float's or Decimal types to
the function.
def sin(x):
"""Return the sine of x as measured in radians.
>>> print sin(Decimal('0.5'))
0.479425
Johannes Schönberger added the comment:
OK, will work on it and reply as soon as I have results!
--
___
Python tracker
<http://bugs.python.org/issue7769>
___
___
Johannes Schönberger added the comment:
OK, thank you for the links!
Do you still want me to do anything (like test cases etc.)?
--
___
Python tracker
<http://bugs.python.org/issue7
Johannes Schönberger added the comment:
I'm not very used to working with bug/issue trackers, is there any tutorial
here, where this is explained?
I did the stuff you asked me to do:
diff: http://paste.pocoo.org/compare/169357/169359/
test: http://paste.pocoo.org/show/1
Johannes Schönberger added the comment:
stupid, it is much better to just use the modulo operator. The same works with
cos...
def sin(x):
"""Return the sine of x as measured in radians.
>>> print sin(Decimal('0.5'))
0.4794255386042030
Johannes Schönberger added the comment:
This is the version I would suggest and which is quite accurate unless the
numbers get extremely large.
def sin(x):
"""Return the sine of x as measured in radians.
>>> print sin(Decimal('0.5'))
0.47942553
New submission from Johannes Schönberger :
Unfortunately the sin/cos function in the decimal docs seems to return false
results.
In [33]: sin(decimal.Decimal('75'))
Out[33]: Decimal('0.377879483645203210442266845614')
In [34]: sin(decimal.Decimal(
New submission from Johannes Schönberger :
I would suggest to make SimpleXMLRPCServer.SimpleXMLRPCServer.register_function
a decorator function.
See the attached file for the solution I wrote (l.209-240), which also works
with the current syntax:
@server.register_function
New submission from Johannes Janssen :
As I learned on the mailing list the function sys._getframe() is not
available on all Python implementations (e.g. jython). This information
should be added to the documentation.
--
assignee: georg.brandl
components: Documentation
messages: 91629
Johannes Hoff added the comment:
I came across this bug while searching for autodetecting tabs/spaces.
Thanks for the help.
To address Georg's question, the patch should be modified to say
if search('^\t', 'n', 100)
instead of
if search('^\t')
The f
New submission from johannes raggam :
when declaring a abstract base class with an abstract property or method
and subclassing from dict, the class is instantiable (instanceable?).
>>> import abc
>>> class A(object):
... __metaclass__ = abc.ABCMeta
... @abc.abstractpr
Johannes Hoff <[EMAIL PROTECTED]> added the comment:
This is still the case with Visual Studio Express 2008. It can be fixed
by downloading the Windows SDK, though it would be nicer if this was
not necessary.
Download link: http://blogs.msdn.com/windowssdk/archive/2008/02/07/
windo
79 matches
Mail list logo