New submission from Jason Haslam :
The failure cleanup of `Py_NewInterpreter` causes a bogus fatal error on the
call to `PyThreadState_Delete`. The error is about deleting the current thread
state. The saved thread state should be swapped back in *before* deleting the
new thread state
Jason Killen added the comment:
I flipped through PEP 578 (Runtime Audit Hooks) and this seems like the type of
situation that PEP 578 was trying to handle. I've got a change that seems to
be working and can provide a PR or whatever once I remember/read up on doing
that. (I
Change by Jason Killen :
--
keywords: +patch
pull_requests: +16638
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17129
___
Python tracker
<https://bugs.python.org/issu
Jason Killen added the comment:
I'll plan on tackling this one. I already did pdb.
--
nosy: +Jason.Killen
___
Python tracker
<https://bugs.python.org/is
Change by Jason Killen :
--
nosy: +Jason.Killen
___
Python tracker
<https://bugs.python.org/issue38724>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jason Killen added the comment:
I think this sounds great and I'll take a crack at it over the next few days.
If anybody wants to jump ahead of me I don't mind.
--
___
Python tracker
<https://bugs.python.o
Jason Killen added the comment:
I made the change but the test suite is giving me fits and I don't know why.
Running: ./python -m test
...
== Tests result: FAILURE ==
392 tests OK.
1 test failed:
test_tools
26 tests skipped:
test_curses test_dbm_gnu test_dbm_ndbm test_de
Jason Killen added the comment:
This appears to be a bug in pytz which as far as I can tell is not part of the
"standard" lib, at least it's not in Lib.
Running this example which does not use pytz:
from datetime import timedelta, datetime, tzinfo, timezone, time
# stole thi
Change by Jason Killen :
--
keywords: +patch
pull_requests: +16734
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17234
___
Python tracker
<https://bugs.python.org/issu
Jason Killen added the comment:
Tests working now. PR submitted.
--
___
Python tracker
<https://bugs.python.org/issue38722>
___
___
Python-bugs-list mailin
Jason Killen added the comment:
Yep I wasn't seeing the forest for the trees. Thanks for clearing that up.
I'll swoop back in and see what I can do.
--
___
Python tracker
<https://bugs.python.o
New submission from Jason Fried :
If you are trying to use AsyncMock to mock a coroutine that returns awaitable
objects, AsyncMock awaits on those objects instead of returning them as is.
Example:
mock = AsyncMock(return_value=asyncio.Future())
v = await mock() # blocks on trying to
Change by Jason Fried :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue38857>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Jason Fried :
If an AsyncMock uses a side_effect that is an Iterable, if called more than
items exist its suppose to raise StopIteration according to the docs but PEP
479 says that is impossible.
My Suggestion is that we update the docs and the code to Raise a
Change by Jason Fried :
--
keywords: +patch
pull_requests: +16762
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17269
___
Python tracker
<https://bugs.python.org/issu
Change by Jason Fried :
--
keywords: +patch
pull_requests: +16761
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17269
___
Python tracker
<https://bugs.python.org/issu
Change by Jason Killen :
--
nosy: +Jason.Killen
___
Python tracker
<https://bugs.python.org/issue38741>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jason Li :
The issue: AttributeError: module 'time' has no attribute 'clock_gettime'. It
probably missed other attributes as well.
The problem only appeared with using installers to install python. While
Homebrew installed python does not have t
New submission from Jason Culligan :
The python3.6 binary supplied in Ubuntu distros is not compiled with Position
Independent Code (PIE) protection enabled. Python2 does. Is this not seen as
a problem?
Example 1:
(checksec)
FILE: /usr/bin/python2
RELRO: Full RELRO
STACK
Jason Fried added the comment:
Its not possible to have it both ways. Also it stinks too much of trying to
guess.
The root of your issue is you want a normal MagicMock not an AsyncMock. Its the
automatic behavior of patch to pick AsyncMock vs MagicMock that is the heart of
your issue
Change by Jason Madden :
--
nosy: +jmadden
___
Python tracker
<https://bugs.python.org/issue39674>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jason Madden :
--
nosy: +jmadden
___
Python tracker
<https://bugs.python.org/issue40018>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jason Williams added the comment:
What's needed to get this integrated? It will be great to not have to fork the
GZIP.
--
nosy: +Jason Williams
___
Python tracker
<https://bugs.python.org/is
New submission from Jason Yundt :
The documentation talks about how assertRaises, assertRaisesRegex, assertWarns,
and assertWarnsRegex can be used as context managers. It also talks about the
attributes of those context managers. Some attributes aren't documented. For
example, the wa
New submission from Jason Oliver :
This is my first bug report so I hope that this is correctly formatted. I am
learning how to use pygame and encountered the following error:
SystemError: returned a result with an error set
I googled the error message and came across the following answer on
Jason Oliver added the comment:
I will submit the bug report to the pygame bug tracker.
--
___
Python tracker
<https://bugs.python.org/issue42879>
___
___
Pytho
New submission from Jason Williams :
Passing arguments to a Python script using an environment variable like:
export en_auth="--arg1 test --arg2 \"$(https://bugs.python.org/file49753/test.py
___
Python tracker
<https://bugs.python.o
Change by Jason Williams :
--
components: +Library (Lib)
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue42983>
___
___
Python-bugs-lis
Change by Jason Williams :
Added file: https://bugs.python.org/file49754/private_key.pem
___
Python tracker
<https://bugs.python.org/issue42983>
___
___
Python-bug
Change by Jason Madden :
--
nosy: +jmadden
___
Python tracker
<https://bugs.python.org/issue43196>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jason Chen :
import asyncio
from contextvars import *
var = ContextVar('VarTest', default=None)
def get_var(tag=None):
obj = var.get()
if obj is None:
obj = object()
var.set(obj)
print(f'{tag=}: get_var result is {obj=}')
Change by Jason Fried :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue35767>
___
___
Pyth
Change by Jason Fried :
--
resolution: -> fixed
___
Python tracker
<https://bugs.python.org/issue35767>
___
___
Python-bugs-list mailing list
Unsubscrib
Jason Haslam added the comment:
FWIW, I believe that you have to call `PyErr_NormalizeException` on the values
returned from `PyErr_Fetch`. It looks like this is working as expected.
--
nosy: +jason.haslam
___
Python tracker
<ht
New submission from Jason Schwefel :
The following code gives a "TypeError: 'str' object is not callable" exception:
int = ''
s = '3500:day'
a = s.split(':')
i = int(a[0])
Proper exception message should be "TypeError: 'int
Jason Schwefel added the comment:
>What do you expect to gain with the "int = ''" statement?
I did not expect anything. I made a mistake in my initial code and the error
message indicated that I rebound 'str'. I could not find where I had used 'str'
jason matthews added the comment:
Please do not drop support.
Python is widely used in the "Solaris" community with most people downloading
packages from Openindiana/Hipster or Joyent/SmartOS repos. Most "Solaris" users
are not using Solaris proper.
The download sta
Changes by Jason Yeo :
--
nosy: +Jason.Yeo
___
Python tracker
<http://bugs.python.org/issue14026>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jason Yeo :
Hi, I'm new around here. I was trying to fix issue 14026 and I found this
problem. In test_cmd_line_script, the test_issue8202 tries to print an
undefined data variable when verbose is set to > 1. I have a patch attached to
print(out) instead of pr
Changes by Jason Yeo :
Added file: http://bugs.python.org/file24532/mypatch
___
Python tracker
<http://bugs.python.org/issue14032>
___
___
Python-bugs-list mailin
Changes by Jason Yeo :
Removed file: http://bugs.python.org/file24532/mypatch
___
Python tracker
<http://bugs.python.org/issue14032>
___
___
Python-bugs-list mailin
Jason Yeo added the comment:
I would like to work on this but I am not sure how to go about it. It seems
that the method signature for _check_script has to be changed in include
another parameter for expected_argv1, expected_argv2, etc. The _check_output
also has to be changed to include
Jason Yeo added the comment:
>Just define a list of example args as a module global, append them to
>the run_args in _check_script, and check them against sys.argv[1:] with
>assertEqual() in the test script.
Okay I have done that but the assertion passes in all the tests
Jason Yeo added the comment:
>For the two failures, I suggest modifying _check_script() to return the
>"rc, out, err" from the underlying assert_python_ok() call
I've decided to simple pass in *example_args into the assert_python_ok() in
those two offending tests. There
Changes by Jason Yeo :
Removed file: http://bugs.python.org/file24587/mypatch
___
Python tracker
<http://bugs.python.org/issue14026>
___
___
Python-bugs-list mailin
Changes by Jason Yeo :
Removed file: http://bugs.python.org/file24556/14026patch
___
Python tracker
<http://bugs.python.org/issue14026>
___
___
Python-bugs-list mailin
Changes by Jason Yeo :
--
keywords: +patch
Added file: http://bugs.python.org/file24588/14026v2.patch
___
Python tracker
<http://bugs.python.org/issue14
Jason Yeo added the comment:
hi,
*friendly ping* how's the review for this patch?
--
___
Python tracker
<http://bugs.python.org/issue14032>
___
___
Pytho
Jason Yeo added the comment:
*friendly ping*, how's the review for this patch?
--
___
Python tracker
<http://bugs.python.org/issue14026>
___
___
Pytho
Jason Killen added the comment:
Given this is marked as good for a newbie and easy I figured I'd take a crack
at it but I'm confused. As example I don't see where inflateReset2 would be
useful. I don't see anywhere inflateReset is used and would need to be
replaced
Jason Killen added the comment:
I've generated a patch that checks to see if seen_greeting is set before
processing other commands. This is the first time I've submitted a patch so if
there is something more I need to do let me know.
--
nosy: +Jason.Killen
Added
Jason Killen added the comment:
On using a different approach: I weighed an approach like that and decided to
go with what I thought was the clean/simple/easy approach. If there were more
commands that smptd.py accepted I would have probably gone with more like what
you mentioned.
Change
Jason Killen added the comment:
Redone diff including wording preferred by R. David Murray.
--
Added file: http://bugs.python.org/file24948/smtpd.patch
___
Python tracker
<http://bugs.python.org/issue14
Jason Killen added the comment:
Change of the smtpd test code to match the wording from the smtpd.patch. Also,
added \r\n to the end of the expected string.
--
Added file: http://bugs.python.org/file24949/test_smtpd.patch
___
Python tracker
<h
Jason Killen added the comment:
I'm adding a patch for test_smtpd.py. This version includes the changes in my
previous patch and adds sending HELO before the commands in the test. Works
good for me.
--
Added file: http://bugs.python.org/file24963/test_smtpd.
Jason Killen added the comment:
smtpd.py does not require HELO before NOOP or QUIT. I added them to
test_smtpd.py because I felt it made test_smtpd.py well written as opposed to
doing the least the spec requires. That said I suppose I should have added
QUITs to every test also if that
Changes by Jason Killen :
Removed file: http://bugs.python.org/file24948/smtpd_nogo.patch
___
Python tracker
<http://bugs.python.org/issue14269>
___
___
Python-bugs-list m
Changes by Jason Killen :
Removed file: http://bugs.python.org/file24826/smtpd_nogo.patch
___
Python tracker
<http://bugs.python.org/issue14269>
___
___
Python-bugs-list m
Changes by Jason Killen :
Removed file: http://bugs.python.org/file24949/test_smtpd_nogo.patch
___
Python tracker
<http://bugs.python.org/issue14269>
___
___
Python-bug
Changes by Jason Killen :
Added file: http://bugs.python.org/file24968/smtpd.py
___
Python tracker
<http://bugs.python.org/issue14269>
___
___
Python-bugs-list mailin
Changes by Jason Killen :
Removed file: http://bugs.python.org/file24968/smtpd.py
___
Python tracker
<http://bugs.python.org/issue14269>
___
___
Python-bugs-list mailin
Changes by Jason Killen :
Added file: http://bugs.python.org/file24969/smtpd.patch
___
Python tracker
<http://bugs.python.org/issue14269>
___
___
Python-bugs-list mailin
Jason Killen added the comment:
Ok I think this quote from the spec referenced pretty much sums it up.
"The NOOP, HELP, EXPN, VRFY, and RSET commands can be used at any time during
a session, or without previously initializing a session. SMTP servers SHOULD
process these normally
Jason Killen added the comment:
Yes, "either way" in the test. The server shouldn't expect them and the client
can do it either way.
I'm adding a patch that tests with and without HELO for those commands that can
be sent either way.
--
Added file: http://bugs.
Jason Killen added the comment:
Removed '_syntax' apparently I fix that before but didn't regen the patch.
Added tests for noHELO before some commands to test that failures happen as
expected.
--
Added file: http://bugs.python.org/file24973/t
Jason Killen added the comment:
Thanks and thanks for all you help. My method names are known to need some
tweaking.
Where is the agreement I need to sign? I looked around the documentation stuff
and didn't see it. I'd like to continue contributing just have to find another
Jason Tishler added the comment:
AFAICT, this issue is resolved in the latest Cygwin Python package (i.e.,
2.6.7-1) that is built against a X11-based Tcl/Tk instead of a Win32 GDI
version:
http://cygwin.com/ml/cygwin-announce/2012-02/msg00014.html
Jason Tishler added the comment:
Please do.
When I tested the Cygwin Python 2.6.7-1 release, IDLE was one of my testcases.
In my limited testing (I'm not a regular IDLE user), the menus appeared to
function properly.
--
___
Python tracker
Change by Jason Saporta :
--
keywords: +patch
pull_requests: +13309
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue29847>
___
___
Py
New submission from Jason Curtis :
Combining int and Enum, as with enum.IntEnum results in a class where __str__
cannot be effectively overridden. For example:
from enum import IntEnum
class myIntEnum(IntEnum):
x = 1
def __str__(self):
return 'AAAa
Jason Curtis added the comment:
I mistyped - __str__ can be overridden effectively, but __format__ has to be
overridden instead or overridden also to get the desired f-string behavior.
--
___
Python tracker
<https://bugs.python.org/issue37
Jason Curtis added the comment:
related cPython code:
https://github.com/python/cpython/blob/19a1e1eb86115db66c1faae5927f87e3a12692fc/Lib/enum.py#L626
If we're in a mixed-in class but the class has overridden __str__(), we should
probably use str(self) instead of self._v
Change by Jason Curtis :
--
title: IntEnum f-string behavior can't be overridden -> IntEnum __format__
behavior can't be overridden through __str__
___
Python tracker
<https://bugs.pytho
New submission from Jason Curtis :
I've just been trying to implement some logic which potentially involves
reversing things back to their initial orders, and it'd be nice to just be able
to call reversed() on something that has already been reversed.
>>> reverse
Jason Curtis added the comment:
Ok, not so sure about the PR now; I dug around and realized this is a C
implementation and my C is likely not strong enough!
--
___
Python tracker
<https://bugs.python.org/issue37
Change by Jason Curtis :
--
title: reversed class should implement __reversed__ -> implement __reversed__
on reversed types
___
Python tracker
<https://bugs.python.org/issu
New submission from Jason Madden :
Using Python 2.7.15, if a BufferedWriter wraps an IO object that duplicates the
memoryview passed to the IO object's `write` method, that memoryview leaks.
This script demonstrates the problem by leaking a memoryview for each iteration
of the loop (i
New submission from Jason Fried :
https://github.com/python/cpython/blob/3.7/Lib/unittest/loader.py#L232
fullName = '%s.%s' % (testCaseClass.__module__, testFunc.__qualname__)
Instead we should probably replace testFunc.__qualname__ with attrname
I ran into this while running a
Jason Fried added the comment:
Oh this is broken in 3.7 trunk
--
___
Python tracker
<https://bugs.python.org/issue35767>
___
___
Python-bugs-list mailin
Jason Fried added the comment:
working on a pull request
--
___
Python tracker
<https://bugs.python.org/issue35767>
___
___
Python-bugs-list mailing list
Unsub
Change by Jason Fried :
--
keywords: +patch, patch
pull_requests: +11316, 11317
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Jason Fried :
--
keywords: +patch
pull_requests: +11316
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35767>
___
___
Py
Change by Jason Fried :
--
keywords: +patch, patch, patch
pull_requests: +11316, 11317, 11318
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Changes by Jason Fried :
--
pull_requests: +1825
___
Python tracker
<http://bugs.python.org/issue30395>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jason Madden :
--
nosy: +jmadden
___
Python tracker
<https://bugs.python.org/issue36843>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jason Qian :
--
components: +ctypes -Library (Lib)
versions: -Python 3.4, Python 3.5
___
Python tracker
<https://bugs.python.org/issue22872>
___
___
New submission from Jason Madden :
At the request of Victor Stinner on twitter, I ran the gevent test suite with
Python 3.7.0b2 with the new '-X dev' argument and discovered an interpreter
crash. With a bit of work, it boiled down to a very simple command:
$ env -i .runtime
Jason Madden added the comment:
I built a local version of master (6821e73) and was able to get some line
numbers (they're off by one for some reason, it appears):
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x7fff789
Jason Madden added the comment:
Thank you! I can confirm that git commit
31e2b76f7bbcb8278748565252767a8b7790ff27 on the 3.7 branch fixes the issue for
me.
--
___
Python tracker
<https://bugs.python.org/issue33
New submission from Jason Haydaman :
When the concurrent Future wrapped by asyncio.wrap_future has set_result or
set_exception called multiple times, I get the following traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/asyncio/events.py", line 14
Jason Haydaman added the comment:
May also be worth pointing out that even in the case of only calling set_result
once, _done_callbacks still has _chain_future in it:
import asyncio
import concurrent.futures
f = concurrent.futures.Future()
async_f = asyncio.wrap_future(f)
f.set_result(1
New submission from Jason Fried :
At Facebook and Instagram we have large interconnected codebases without clear
boundaries of ownership. As we move more and more services to utilize asyncio
we are finding that once blocking (but fast) code paths, are now cropping up
with asyncio code using
Change by Jason Fried :
--
nosy: +lukasz.langa
___
Python tracker
<https://bugs.python.org/issue33523>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jason Fried :
--
keywords: +patch
pull_requests: +6540
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33523>
___
___
Python-
Jason Stelzer added the comment:
Just pointing out that this exists and seems active.
https://github.com/tbielawa/bitmath
Perhaps include some or all of it in core python? Crazier things have happened.
--
nosy: +Jason Stelzer
___
Python tracker
Jason Stelzer added the comment:
I often speak in generalizations and half thoughts. Feel free to cherry pick as
much or a little as you want.
Including a core shim of whatever is agreed to be the minimalist functionality
with a SEE ALSO note or clue as to where to start would:
* Resolve
New submission from Jason Hihn :
Given this traceback:
File
"/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py",
line 184, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: 7.0374198 is n
New submission from Jason Fried :
wait is a very overloaded word in asyncio. Events and Conditions are not
consistent with the rest of asyncio.
Why don't Future and Task have wait() methods? well because they are awaitable
Some subjective reasoning:
Every time I go to use one of
Jason Fried added the comment:
Removed Condition from this request, because it has an __await__ method for
supporting the the deprecated pattern
with async cond:
I'll open a different bug, for Condition behavior for 3.9 when we can remove
the deprecated pattern.
--
title: As
Change by Jason Fried :
--
keywords: +patch
pull_requests: +6584
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33544>
___
___
Python-
101 - 200 of 1681 matches
Mail list logo