New submission from Jonas :
The Idle Editor or Idle Python Shell crashes if ` character is typed in.
Character looks like an ` with underscore.
How to repeat this problem:
1. In OSX open any .py file or the Idle Shell with Idle.
2. Switch to german keyboard layout
3. Type the letter by
Jonas added the comment:
See screenshot from character:
without: ` and with underscore: `
(underscore is not shown as text in comment. See screen shot)
--
Added file: https://bugs.python.org/file47298/Screen Shot 2017-11-25 at
19.45.50.png
New submission from Jonas Witschel :
Consider the following minimal example C code which is trying to import
jsonschema (https://python-jsonschema.readthedocs.io/en/stable/), compiled
using "gcc test_newinterpreter.c -I /usr/include/python3.10 -lpython3.10 -o
test_newinterpreter"
Jonas Witschel added the comment:
Downstream bug report in Arch Linux: https://bugs.archlinux.org/task/72979
--
___
Python tracker
<https://bugs.python.org/issue46
Jonas Witschel added the comment:
I notice this has already been reported as bpo-46006 and bpo-46034, so closing
in favour of these.
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
___
Python tracke
Change by Jonas Witschel :
--
nosy: +diabonas
___
Python tracker
<https://bugs.python.org/issue46006>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jonas Witschel :
Consider the following minimal example:
import ssl
context = ssl.create_default_context()
context.set_npn_protocols(['http/1.1', 'spdy/2'])
In Python 3.10, it fails with the following error:
AttributeError: 'SSLContext
New submission from Jonas LM :
Consider the following snippets:
def lists(n):
start_time = time.time()
lists = [None]*n
for i in xrange(n):
lists[i] = [None]*n
for j in xrange(n):
lists[i][j] = []
print time.time() - start_time
def
Jonas LM added the comment:
Confirmed that this was caused by the garbage collector, as pitrou suspected.
Thanks!
--
resolution: -> works for me
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
Jonas H. added the comment:
Does that look good to you? If it does, I'll go on using the script
(http://paste.pocoo.org/show/396661/) on the 3.x docs.
--
keywords: +patch
Added file: http://bugs.python.org/file22164/p1.patch
___
Python tr
Jonas H. added the comment:
Linking a class using a function directive is counter-intuitive. That's why we
need to make use of class directives rather than function directives here.
--
___
Python tracker
<http://bugs.python.org/is
Jonas H. added the comment:
I'm not.
My patch doesn't address the problem of unlinkable methods but wrong type
declarations (read, wrong usage of ".. function::" directives) for builtins
like int, float, bool, list etc. Because the directives change, the roles used
to
Jonas H. added the comment:
> Could you make an effort to accept our word that using :class: instead of
> :func: would bring zero value to the indexing system nor to human readers?
I'm already doing; but I don't see anyone having made a good point against my
preference of
Jonas H. added the comment:
What's wrong with the changes I propose with the patch, then? Sorry, I really
don't get it, no matter how hard I try.
--
___
Python tracker
<http://bugs.python.o
Jonas H. added the comment:
> when you mark up something with a mod, func, class or meth role, Sphinx will
> find the target without paying attention to its type. So changing :func: to
> :class: does not bring anything.
>From a quick test this seems to hold true for links within
Jonas H. added the comment:
> So the intersphinx behavior is the "correct" one, but we can't change the
> other now because of compatibility.
Could you be convinced to use that legacy behaviour for intersphinx, too? :-)
--
_
Jonas H. added the comment:
> Jonas, I owe you an apology [...]
Thanks Éric, I got a bit worried about getting on your nerves...
Based on Ezio's idea: What happens if we have both a ".. function:: foo" and
".. class:: foo" -- where do :func:`foo` and :class:`f
Jonas H. added the comment:
Having one page with two objects of the same name, e.g.
.. function:: foo
.. class:: foo
renders to two entries with the same anchor name (#foo). The first entry gets a
link-to-this-paragraph marker, the second one doesn't.
Internal references (from w
New submission from Jonas H. :
I'd like to see an `examples` option added to argparse.ArgumentParser as found
in many man pages.
This could also be done using the `epilog` option, but that misses the
"%(proc)s" replacement which makes usage examples like this
Example usage:
Jonas H. added the comment:
Nope. I want an "examples" section, for example from `man git log`:
EXAMPLES
git log --no-merges
Show the whole commit history, but skip any merges
git log v2.6.12.. include/scsi drivers/scsi
Show all commits sin
New submission from Jonas Wagner :
While writing tests for the cgi module I came across what looks like a
conversion bug.
cgi.parse_multipart is comparing values it reads from a binary file like with a
string literal:
line = fp.readline()
...
if line.startswith("--"):
This patch
Jonas Meurer added the comment:
I would be interested in that feature as well. It's currently impossible to use
custom new versions of a python module by adding the directory with
site.addsitedir in case a old version of the module is already installed in the
python systemwide
Jonas Wagner added the comment:
Hi Tal,
Thanks a lot for your feedback.
My primary objective was to increase the test coverage for cgi.py. If it is a
problem to have the additional tests in this patch I'm happy to create a new
issue with a separate patch.
The default value fo
New submission from Jonas H. :
from subprocess import Popen, PIPE
p = Popen(['ls'], stdout=PIPE)
p.wait()
p.stdout.seek(0)
Traceback (most recent call last):
File "t.py", line 5, in
p.stdout.seek(0)
IOError: [Errno 29] Illegal seek
Python 2.7.2, Arch Linu
Jonas H. added the comment:
Why does it have a 'seek' method then?
--
___
Python tracker
<http://bugs.python.org/issue12877>
___
___
Python-bugs-l
Changes by Jonas H. :
--
nosy: +jonash
___
Python tracker
<http://bugs.python.org/issue1731717>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jonas H. :
Added file:
http://bugs.python.org/file20874/faster-find-library1-py3k-with-escaped-name.diff
___
Python tracker
<http://bugs.python.org/issue11
Jonas H. added the comment:
As far as I can tell, it doesn't matter.
We're looking for the part after the => in any case - ignoring the
ABI/architecture information - so the regex would chose the first of those
entries.
--
___
P
Jonas H. added the comment:
Humm. Would be great to have the `ldconfig -p` output of such a machine... I
can't get ldconfig to recognize 64-bit libraries on my 32-bit machines, so I
have no output to test against...
--
___
Python tracker
New submission from Jonas H. :
I guess this should be a link.
--
assignee: docs@python
components: Documentation
files: fix-json-link.diff
keywords: patch
messages: 129629
nosy: docs@python, jonash
priority: normal
severity: normal
status: open
title: Fix a link in library/json docs
Jonas H. added the comment:
> the orig impl matches the abi_type at the beginning of the parentheses,
> yours simply ignores the abi_type (that should have caught my eye, but that
> regex looked so much like magic that I didn't try to make sense of it :-))
Same here. :)
The vers
Jonas H. added the comment:
Here comes a patch, changing the behaviour to:
./python -q
>>> class C:
... pass
...
>>> (1).__class__ = 1
Traceback (most recent call last):
File "", line 1, in
TypeError: __class__ must be set to a class defined by a class stateme
New submission from Jonas H. :
Either a `BaseException.with_traceback` implementation is missing or the docs
are wrong.
http://docs.python.org/library/exceptions.html?highlight=with_traceback#exceptions.BaseException.with_traceback
python3 -c 'print("with_traceback" in di
Jonas H. added the comment:
*push* Any way to get this into the codebase?
--
___
Python tracker
<http://bugs.python.org/issue11258>
___
___
Python-bugs-list m
New submission from Jonas H. :
Intersphinx-ing of int, list, float, ... should work with ":class:`int`" (list,
float, ...). Also, intersphinx-ing list methods, e.g. ":meth:`list.insert`",
should work.
--
assignee: docs@python
components: Documentation
message
New submission from Jonas H. :
Provide a proper `list` method reference (like the one for `dict`,
http://docs.python.org/library/stdtypes.html#dict).
Right now, documentation about lists is spread over multiple topics (.rst
files) and methods are documented in footnotes.
Also, intersphinx
New submission from Jonas H. :
Various `int` attributes and methods seem undocumented (at least it does not
work to intersphinx them):
* .conjugate
* .denominator
* .imag
* .numerator
* .real
--
assignee: docs@python
components: Documentation
messages: 134926
nosy: docs@python, jonash
Jonas H. added the comment:
Actually I need to be able to intersphinx (because my documentation work is not
the Python docs :-) but I guess it boils down to the same problem of incomplete
Sphinx module/class indices.
--
___
Python tracker
<h
Jonas H. added the comment:
Indeed they do; but documentation writers need to know that `int()` and
`float()` are functions, which is counterintuitive. (and a CPython
implementation detail)
--
___
Python tracker
<http://bugs.python.org/issue11
Jonas H. added the comment:
> Is this a problem in our markup or a bug in intersphinx?
It's a markup problem -- those types are documented as functions, using the
:func: role/`.. func::` directive.
It's not only a markup mismatch but, strictly speaking, it's *wrong*
docum
Jonas H. added the comment:
It doesn't. Sphinx still can't make any links, which btw also means that it's
impossible to reference those methods within the Python documentation.
Also I want to point out that I find the information very hard to find as a
human. The fact that int
Jonas H. added the comment:
Shouldn't have used "decent" here, sorry. What I was trying to say is that
there's no "reference-like" documentation for the list datatype (as for dict).
There's more than enough quality documentation about lists but I think the
New submission from Jonas H. :
(This applies to all versions of Python I investigated, although the attached
patch is for Python 2.7)
I wondered why `import uuid` took so long, so I did some profiling.
It turns out that `find_library` wastes at lot of time because of this crazy
regular
Changes by Jonas H. :
Added file: http://bugs.python.org/file20809/faster-find-library2.diff
___
Python tracker
<http://bugs.python.org/issue11258>
___
___
Python-bug
Jonas H. added the comment:
(might also be related to http://bugs.python.org/issue11063)
--
___
Python tracker
<http://bugs.python.org/issue11258>
___
___
Pytho
New submission from Jonas Wagner <[EMAIL PROTECTED]>:
Currently test_ssl.py only tests for empty or broken certificates. One
can break certificate validation in _ssl.c and they still pass.
The following patch should fix this.
- Jonas
--
components: Tests
New submission from Jonas Weismüller :
If socket.setdefaulttimeout is set to any value (except None), the BaseManager
raises an exception and the execution of the remote object fails:
Traceback (most recent call last):
File "client.py", line 16, in
m = Manager()
File "c
Jonas Weismüller added the comment:
uploading missing client file, changing the socket.setdefaulttimeout shows the
issue.
--
Added file: http://bugs.python.org/file16026/client.py
___
Python tracker
<http://bugs.python.org/issue7
New submission from Jonas Drotleff :
When calling inspect.getmembers on a class that has a property (@property), the
property will be called by the getattr call in getmembers.
Example:
import inspect
class Example:
def __init__(self, var):
self._var = var
print('__i
Change by Jonas Drotleff :
--
keywords: +patch
pull_requests: +16113
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/16521
___
Python tracker
<https://bugs.python.org/issu
Jonas Schäfer added the comment:
Since I have been adversely affected by this bug ([1]), I looked at the patches.
I combined issue14364.test.patch (which adds test cases for --foo=--) and
dbldash.patch in my local working tree and that seems to resolve the issue
(tests pass if and only if I
Jonas Drotleff added the comment:
> The results of this example are different from mine(version 3.7.4)
I do not really see any difference. What do you mean?
--
nosy: -Sanjay
___
Python tracker
<https://bugs.python.org/issu
Jonas Drotleff added the comment:
Oh, yes I see what you mean. That's my fault, it seems like I copied the wrong
line. Sorry.
But the important piece is the 'var' attribute. Sorry for the confusion.
--
___
Python tracker
<https
Change by Jonas Aschenbrenner :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue38536>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Jonas Aschenbrenner :
>>> import locale
>>> locale.setlocale(locale.LC_ALL, ('de_DE', 'UTF-8'))
'de_DE.UTF-8'
>>> locale.currency(1345345345352.22, international=True)
'1345345345352,22 EUR '
Expected:
New submission from Jonas H. :
re.match(p, ...) with a pre-compiled pattern p = re.compile(...) can be much
slower than calling p.match(...). Probably mostly in cases with "easy" patterns
and/or short strings.
The culprit is that re.match -> re._compile can spend a lot of time
Change by Jonas H. :
--
keywords: +patch
pull_requests: +27224
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/28936
___
Python tracker
<https://bugs.python.org/issu
Jonas H. added the comment:
I agree with your statement in principle. Here are numbers for the slowdown
that's introduced:
Without the change:
./python.exe -m timeit -s 'import re'\n'[re.compile(f"fill_cache{i}") for i
in range(512)]'\n'pat
Jonas H. added the comment:
pat.match() has 110 nsec.
Feel free to close the issue and PR if you think this isn't worth changing.
--
___
Python tracker
<https://bugs.python.org/is
sam jonas added the comment:
Hi i am also facing the same issue, please provide a good solution
--
nosy: +samjonas
___
Python tracker
<https://bugs.python.org/issue38
Jonas Drotleff added the comment:
> Here is a link to the discussion of this on ideas
Thank you for posting the link.
I feel like I came to a dead end with this issue. As I am fairly new to CPython
and have never contributed to this project before, I have no idea how to
address this and
New submission from Jonas Malaco :
Trying to instantiate an enum with an invalid value results in "During handling
of the above exception, another exception occurred:".
$ cat > test.py << EOF
from enum import Enum
class Color(Enum):
RED = 1
GREEN = 2
BLU
Jonas Drotleff added the comment:
I'm still thinking about this bug/issue/undefined behaviour. Today I wanted to
test its behaviour with async:
import inspect
class Foo:
def __init__(self, bar):
self._bar = bar
@property
async def spam(self):
print('C
Change by Jonas Schäfer :
--
nosy: +jssfr
___
Python tracker
<https://bugs.python.org/issue41295>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jonas Schäfer added the comment:
@kam193 Thanks for running the aioxmpp tests. I built the patched python
yesterday, but I didn’t manage to get a virtualenv with it up&running.
Good to hear that the fix works as expected!
--
___
Python tra
New submission from Jonas Norling :
The timeout for threading.Lock, threading.Condition, etc, is not using a
monotonic clock — it is affected if the system time (realtime clock) is set.
The attached program can be used to show the problem. It is expected to print
"Took 2.000 s"
Jonas Norling added the comment:
sys.thread_info = sys.thread_info(name='pthread', lock='semaphore',
version='NPTL 2.31') on my system. Looking at the source I think the semaphore
implementation will be used on all modern Linux systems.
In my tests it works as
Jonas Norling added the comment:
@bar.harel: I didn't find a PR, so I'd like to encourage you to submit one :-)
I stumbled onto this bug when the scheduler would cancel the wrong event for me
(Python 3.7, 3.8). Raymond's suggestion 1 sounds reasonable; it would be very
un
New submission from Jonas Binding :
The "Windows Store" installer for Python has a seemingly low entry barrier,
causing people to install without reading something like
https://docs.python.org/3.7/using/windows.html.
However, due to the really long path it uses for Python (e.g.
sam jonas added the comment:
Thanks for the solution...
--
nosy: +samjonas
___
Python tracker
<https://bugs.python.org/issue36790>
___
___
Python-bugs-list m
New submission from Jonas H. :
Use case: Try to get a future's result using
concurrent.futures.Future.result(), and log the full exception if there was any.
Currently, only "excinst" (sys.exc_info()[1]) is provided with the
Future.exception() method.
Proposal: Add new
Jonas H. added the comment:
See also
https://stackoverflow.com/questions/19309514/getting-original-line-number-for-exception-in-concurrent-futures
for other people having the same problem
--
___
Python tracker
<https://bugs.python.org/issue32
New submission from Jonas Obrist :
The attached code runs fine on MacOS using 3.6.5 from homebrew. However on
Windows (I tested on 3.6.4 with the 32bit installer from the website) and Linux
(using the python:3.6.5 docker image) it errors with "TypeError: cannot 'yield
from' a c
Jonas Obrist added the comment:
I've just realized the difference between the environments wasn't the operating
system, but PYTHONASYNCIODEBUG. If it is set, the code works, however if it is
unset the code does not work. See the updated (attached) code for reference.
--
Jonas Obrist added the comment:
On 9c463ec88ba21764f6fff8e01d6045a932a89438 (master/3.7) both cases fail to
execute. I would argue that this code should be allowed...
--
___
Python tracker
<https://bugs.python.org/issue33
Jonas Obrist added the comment:
I realized I have to call __await__ of the inner coroutine object in
NonTrueAwaitable.__await__. This is not a bug, but my mistake.
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_
Jonas H. added the comment:
This affects me too.
--
nosy: +jonash
___
Python tracker
<https://bugs.python.org/issue31526>
___
___
Python-bugs-list mailin
New submission from Jonas H. :
I'd like to add test selection based on parts of the test class/method name to
unittest. Similar to py.test's "-k" option:
https://docs.pytest.org/en/latest/example/markers.html#using-k-expr-to-select-tests-based-on-their-name
Here&
Jonas H. added the comment:
Just to be clear, the current implementation is limited to substring matches.
It doesn't support py.test like "and/or" combinators. (Actually, py.test uses
'eval' to support arbitrary patterns.)
So say we have test case
SomeClass
te
Jonas H. added the comment:
Thanks Antoine. I will need some guidance as to what are the correct places to
make these changes. I'm not quite sure about the abstractions here (runner,
loader, suite, case, etc.)
My PoC (see GitHub link in first post) uses a TestSuite subclass. (The sub
Jonas H. added the comment:
> > 3) Is the approach of dynamically wrapping 'skip()' around to-be-skipped
> > test cases OK?
> I think this is the wrong approach. A test that isn't selected shouldn't be
> skipped, it should not appear in the output at al
Jonas H. added the comment:
Interesting, Victor. I've had a look at the code you mentioned, but I'm afraid
it doesn't really make sense to re-use any of the code.
Here's a new patch, implemented in the loader as suggested by Antoine, and with
tests.
I'm happy t
Jonas H. added the comment:
Sure!
--
___
Python tracker
<https://bugs.python.org/issue32071>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Jonas H. added the comment:
Ah, the problem isn't that it's running getattr() on test methods, but that it
runs getattr() on all methods.
Former code: attrname.startswith(prefix) and \
callable(getattr(testCaseClass, attrname))
New code: testFunc = getattr(tes
Change by Jonas H. :
--
pull_requests: +4513
___
Python tracker
<https://bugs.python.org/issue32071>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jonas H. added the comment:
https://github.com/python/cpython/pull/4589
- Add 3.7 What's New entry
- Fix regression (thanks Tim for the report)
--
___
Python tracker
<https://bugs.python.org/is
Jonas H. added the comment:
I also have a segfault that goes away with malloc debugging. Not sure if it's
the same issue.
My extension modules are
venv/lib/python3.7/site-packages//_yaml.cpython-37m-darwin.so
venv/lib/python3.7/site-packages//netifaces.cpython-37m-darwin.so
ven
Jonas H. added the comment:
Btw my segfault is from Django too, but that may just be a coincidence
--
___
Python tracker
<https://bugs.python.org/issue34
Jonas H. added the comment:
I can reproduce this on Ubuntu 18.04.
INADA, I have a full gdb backtrace with Python 3.7 development build. I'd like
to share it with you privately as I'm concerned it may contain sensible
information. I know that's a bit unconventional; if
Jonas H. added the comment:
Reduced it to something that seems unicode related?
No extension modules involved. Vanilla Django project with a single url +
template.
See testproj/urls.py and tmpl/index.html
--
Added file: https://bugs.python.org/file47688/testproj.tar.gz
Jonas H. added the comment:
Sure.
Unpack archive, create new 3.7 venv with Django (latest version is fine),
./manage.py runserver, curl localhost:8000.
--
___
Python tracker
<https://bugs.python.org/issue34
Jonas H. added the comment:
Here's a Docker image that reproduces the bug.
FROM ubuntu:18.04
RUN apt update && apt install -y python3.7-dbg python3.7-venv python3-venv wget
RUN python3.7 -m venv venv
RUN venv/bin/pip install django
RUN wget https://bugs.python.org/file47688/testp
Jonas H. added the comment:
I don't think this can be tested with Python code, unless you can make sure the
target buffer _PyUnicode_TransformDecimalAndSpaceToASCII operates on is
initialised with garbage bytes.
--
___
Python tracker
&
Jonas H. added the comment:
The assertion in the patched code, yes. The segfault in the unpatched code, no.
--
___
Python tracker
<https://bugs.python.org/issue34
New submission from Jonas H.:
The Sphinx docs don't contain any explanation for `local_hostname`.
--
assignee: docs@python
components: Documentation
messages: 190898
nosy: docs@python, jonash
priority: normal
severity: normal
status: open
title: SMTP.local_hostname is undocum
New submission from Jonas Borgström:
Problem:
In hmac.py there's a type check that verifies that the msg parameter is of type
bytes().
if not isinstance(msg, bytes):
raise TypeError("expected bytes, but got %r" % type(msg).__name__)
That is incorrect. The hmac module should
Changes by Jonas Borgström :
--
keywords: +patch
Added file: http://bugs.python.org/file30628/hmac.patch
___
Python tracker
<http://bugs.python.org/issue18
Jonas Borgström added the comment:
Patch updated to include tests and versionchanged tags
--
Added file: http://bugs.python.org/file30637/hmac2.patch
___
Python tracker
<http://bugs.python.org/issue18
Jonas Borgström added the comment:
Of course. I've now signed and filed the agreement.
--
___
Python tracker
<http://bugs.python.org/issue18240>
___
___
Pytho
New submission from Jonas Eriksson:
Only tested on marked python versions. Checked the code in hg (a5681f50bae2)
and did not see anything related to this in the current development version.
Essentially, what I see is this:
>>> os.path.dirname("asdf")
''
1 - 100 of 149 matches
Mail list logo