[issue45970] Py_NewInterpreter causes bogus fatal error along the failure path

2021-12-02 Thread Jason Haslam
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

[issue38723] Pdb._runscript should use io.open_code() instead of open()

2019-11-08 Thread Jason Killen
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

[issue38741] Definition of multiple ']' in header configparser

2019-11-12 Thread Jason Killen
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

[issue38722] runpy should use io.open_code() instead of open()

2019-11-13 Thread Jason Killen
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

[issue38724] Implement subprocess.Popen.__repr__

2019-11-13 Thread Jason Killen
Change by Jason Killen : -- nosy: +Jason.Killen ___ Python tracker <https://bugs.python.org/issue38724> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38724] Implement subprocess.Popen.__repr__

2019-11-13 Thread Jason Killen
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

[issue38722] runpy should use io.open_code() instead of open()

2019-11-14 Thread Jason Killen
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

[issue38812] Comparing datetime.time objects incorrect for TZ aware and unaware

2019-11-15 Thread Jason Killen
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

[issue38722] runpy should use io.open_code() instead of open()

2019-11-18 Thread Jason Killen
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

[issue38722] runpy should use io.open_code() instead of open()

2019-11-18 Thread Jason Killen
Jason Killen added the comment: Tests working now. PR submitted. -- ___ Python tracker <https://bugs.python.org/issue38722> ___ ___ Python-bugs-list mailin

[issue38812] Comparing datetime.time objects incorrect for TZ aware and unaware

2019-11-18 Thread Jason Killen
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

[issue38857] AsyncMock issue with awaitable return_value/side_effect/wraps

2019-11-19 Thread Jason Fried
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

[issue38857] AsyncMock issue with awaitable return_value/side_effect/wraps

2019-11-19 Thread Jason Fried
Change by Jason Fried : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue38857> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue38859] AsyncMock says it raises StopIteration but that is Impossible

2019-11-19 Thread Jason Fried
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

[issue38859] AsyncMock says it raises StopIteration but that is Impossible

2019-11-19 Thread Jason Fried
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

[issue38857] AsyncMock issue with awaitable return_value/side_effect/wraps

2019-11-19 Thread Jason Fried
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

[issue38741] Definition of multiple ']' in header configparser

2019-12-03 Thread Jason Killen
Change by Jason Killen : -- nosy: +Jason.Killen ___ Python tracker <https://bugs.python.org/issue38741> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39203] python3 time module misses attributes in Mac installers

2020-01-03 Thread Jason Li
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

[issue39332] Python 3.6 compiler protections from Ubuntu distros

2020-01-14 Thread Jason Culligan
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

[issue38857] AsyncMock issue with awaitable return_value/side_effect/wraps

2020-02-17 Thread Jason Fried
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

[issue39674] Keep deprecated features in Python 3.9 to ease migration from Python 2.7, but remove in Python 3.10

2020-02-18 Thread Jason Madden
Change by Jason Madden : -- nosy: +jmadden ___ Python tracker <https://bugs.python.org/issue39674> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40018] test_ssl fails with OpenSSL 1.1.1e

2020-03-25 Thread Jason Madden
Change by Jason Madden : -- nosy: +jmadden ___ Python tracker <https://bugs.python.org/issue40018> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17681] Work with an extra field of gzip and zip files

2020-04-02 Thread Jason Williams
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

[issue42492] [unittest] Missing docs for context manager attributes

2020-11-28 Thread Jason Yundt
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

[issue42879] SystemError from class 'int'

2021-01-09 Thread Jason Oliver
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

[issue42879] SystemError from class 'int'

2021-01-10 Thread Jason Oliver
Jason Oliver added the comment: I will submit the bug report to the pygame bug tracker. -- ___ Python tracker <https://bugs.python.org/issue42879> ___ ___ Pytho

[issue42983] sys.argv incorrectly parses command lines with args in environment variables.

2021-01-20 Thread Jason Williams
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

[issue42983] sys.argv incorrectly parses command lines with args in environment variables.

2021-01-20 Thread Jason Williams
Change by Jason Williams : -- components: +Library (Lib) type: -> behavior ___ Python tracker <https://bugs.python.org/issue42983> ___ ___ Python-bugs-lis

[issue42983] sys.argv incorrectly parses command lines with args in environment variables.

2021-01-20 Thread Jason Williams
Change by Jason Williams : Added file: https://bugs.python.org/file49754/private_key.pem ___ Python tracker <https://bugs.python.org/issue42983> ___ ___ Python-bug

[issue43196] logging.config.dictConfig shuts down socket for existing SysLogHandlers

2021-02-11 Thread Jason Madden
Change by Jason Madden : -- nosy: +jmadden ___ Python tracker <https://bugs.python.org/issue43196> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41733] ContextVar get value is unexpected

2020-09-06 Thread Jason Chen
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=}')

[issue35767] unittest loader doesn't work with partial test functions

2020-09-22 Thread Jason Fried
Change by Jason Fried : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35767> ___ ___ Pyth

[issue35767] unittest loader doesn't work with partial test functions

2020-09-22 Thread Jason Fried
Change by Jason Fried : -- resolution: -> fixed ___ Python tracker <https://bugs.python.org/issue35767> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue35103] format_exception() doesn't work with PyErr_Fetch

2020-09-29 Thread Jason Haslam
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

[issue42118] TypeError gives wrong reserved name

2020-10-22 Thread Jason Schwefel
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

[issue42118] TypeError gives wrong reserved name

2020-10-22 Thread Jason Schwefel
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'

[issue42173] Drop Solaris support

2020-10-29 Thread jason matthews
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

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-16 Thread Jason Yeo
Changes by Jason Yeo : -- nosy: +Jason.Yeo ___ Python tracker <http://bugs.python.org/issue14026> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14032] test_cmd_line_script prints undefined 'data' variable

2012-02-16 Thread Jason Yeo
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

[issue14032] test_cmd_line_script prints undefined 'data' variable

2012-02-16 Thread Jason Yeo
Changes by Jason Yeo : Added file: http://bugs.python.org/file24532/mypatch ___ Python tracker <http://bugs.python.org/issue14032> ___ ___ Python-bugs-list mailin

[issue14032] test_cmd_line_script prints undefined 'data' variable

2012-02-16 Thread Jason Yeo
Changes by Jason Yeo : Removed file: http://bugs.python.org/file24532/mypatch ___ Python tracker <http://bugs.python.org/issue14032> ___ ___ Python-bugs-list mailin

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-16 Thread Jason Yeo
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

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-18 Thread Jason Yeo
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

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-20 Thread Jason Yeo
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

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-20 Thread Jason Yeo
Changes by Jason Yeo : Removed file: http://bugs.python.org/file24587/mypatch ___ Python tracker <http://bugs.python.org/issue14026> ___ ___ Python-bugs-list mailin

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-20 Thread Jason Yeo
Changes by Jason Yeo : Removed file: http://bugs.python.org/file24556/14026patch ___ Python tracker <http://bugs.python.org/issue14026> ___ ___ Python-bugs-list mailin

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-20 Thread Jason Yeo
Changes by Jason Yeo : -- keywords: +patch Added file: http://bugs.python.org/file24588/14026v2.patch ___ Python tracker <http://bugs.python.org/issue14

[issue14032] test_cmd_line_script prints undefined 'data' variable

2012-02-24 Thread Jason Yeo
Jason Yeo added the comment: hi, *friendly ping* how's the review for this patch? -- ___ Python tracker <http://bugs.python.org/issue14032> ___ ___ Pytho

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-24 Thread Jason Yeo
Jason Yeo added the comment: *friendly ping*, how's the review for this patch? -- ___ Python tracker <http://bugs.python.org/issue14026> ___ ___ Pytho

[issue8536] Support new features of ZLIB 1.2.4

2012-03-13 Thread Jason Killen
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

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-13 Thread Jason Killen
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

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-16 Thread Jason Killen
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

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-19 Thread Jason Killen
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

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-19 Thread Jason Killen
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

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
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.

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
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&#

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
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

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
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

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Changes by Jason Killen : Removed file: http://bugs.python.org/file24949/test_smtpd_nogo.patch ___ Python tracker <http://bugs.python.org/issue14269> ___ ___ Python-bug

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Changes by Jason Killen : Added file: http://bugs.python.org/file24968/smtpd.py ___ Python tracker <http://bugs.python.org/issue14269> ___ ___ Python-bugs-list mailin

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Changes by Jason Killen : Removed file: http://bugs.python.org/file24968/smtpd.py ___ Python tracker <http://bugs.python.org/issue14269> ___ ___ Python-bugs-list mailin

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Changes by Jason Killen : Added file: http://bugs.python.org/file24969/smtpd.patch ___ Python tracker <http://bugs.python.org/issue14269> ___ ___ Python-bugs-list mailin

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
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

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
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.

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
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

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
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

[issue786827] IDLE starts with no menus (Cygwin)

2012-03-26 Thread Jason Tishler
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

[issue786827] IDLE starts with no menus (Cygwin)

2012-03-26 Thread Jason Tishler
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

[issue29847] Path takes and ignores **kwargs

2019-05-17 Thread Jason Saporta
Change by Jason Saporta : -- keywords: +patch pull_requests: +13309 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue29847> ___ ___ Py

[issue37479] IntEnum f-string behavior can't be overridden

2019-07-01 Thread Jason Curtis
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&#x

[issue37479] IntEnum f-string behavior can't be overridden

2019-07-01 Thread Jason Curtis
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

[issue37479] IntEnum f-string behavior can't be overridden

2019-07-01 Thread Jason Curtis
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

[issue37479] IntEnum __format__ behavior can't be overridden through __str__

2019-07-01 Thread Jason Curtis
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

[issue37770] reversed class should implement __reversed__

2019-08-05 Thread Jason Curtis
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

[issue37770] reversed class should implement __reversed__

2019-08-05 Thread Jason Curtis
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

[issue37770] implement __reversed__ on reversed types

2019-08-05 Thread Jason Curtis
Change by Jason Curtis : -- title: reversed class should implement __reversed__ -> implement __reversed__ on reversed types ___ Python tracker <https://bugs.python.org/issu

[issue35291] duplicate of memoryview from io.BufferedWriter leaks

2018-11-21 Thread Jason Madden
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

[issue35767] unittest loader doesn't work with partial test functions

2019-01-17 Thread Jason Fried
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

[issue35767] unittest loader doesn't work with partial test functions

2019-01-17 Thread Jason Fried
Jason Fried added the comment: Oh this is broken in 3.7 trunk -- ___ Python tracker <https://bugs.python.org/issue35767> ___ ___ Python-bugs-list mailin

[issue35767] unittest loader doesn't work with partial test functions

2019-01-17 Thread Jason Fried
Jason Fried added the comment: working on a pull request -- ___ Python tracker <https://bugs.python.org/issue35767> ___ ___ Python-bugs-list mailing list Unsub

[issue35767] unittest loader doesn't work with partial test functions

2019-01-17 Thread Jason Fried
Change by Jason Fried : -- keywords: +patch, patch pull_requests: +11316, 11317 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35767] unittest loader doesn't work with partial test functions

2019-01-17 Thread Jason Fried
Change by Jason Fried : -- keywords: +patch pull_requests: +11316 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35767> ___ ___ Py

[issue35767] unittest loader doesn't work with partial test functions

2019-01-17 Thread Jason Fried
Change by Jason Fried : -- keywords: +patch, patch, patch pull_requests: +11316, 11317, 11318 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue30395] deadlocked child process after forking on pystate.c's head_mutex

2017-05-22 Thread Jason Fried
Changes by Jason Fried : -- pull_requests: +1825 ___ Python tracker <http://bugs.python.org/issue30395> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread Jason Madden
Change by Jason Madden : -- nosy: +jmadden ___ Python tracker <https://bugs.python.org/issue36843> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22872] multiprocessing.Queue raises AssertionError

2018-01-22 Thread Jason Qian
Change by Jason Qian : -- components: +ctypes -Library (Lib) versions: -Python 3.4, Python 3.5 ___ Python tracker <https://bugs.python.org/issue22872> ___ ___

[issue33005] 3.7.0b2 Interpreter crash in dev mode (or with PYTHONMALLOC=debug) with 'python -X dev -c 'import os; os.fork()'

2018-03-05 Thread Jason Madden
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

[issue33005] 3.7.0b2 Interpreter crash in dev mode (or with PYTHONMALLOC=debug) with 'python -X dev -c 'import os; os.fork()'

2018-03-05 Thread Jason Madden
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

[issue33005] 3.7.0b2 Interpreter crash in dev mode (or with PYTHONMALLOC=debug) with 'python -X dev -c 'import os; os.fork()'

2018-03-06 Thread Jason Madden
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

[issue33238] AssertionError on await of Future returned by asyncio.wrap_future

2018-04-06 Thread Jason Haydaman
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

[issue33238] AssertionError on await of Future returned by asyncio.wrap_future

2018-04-06 Thread Jason Haydaman
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

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-15 Thread Jason Fried
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

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-15 Thread Jason Fried
Change by Jason Fried : -- nosy: +lukasz.langa ___ Python tracker <https://bugs.python.org/issue33523> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-15 Thread Jason Fried
Change by Jason Fried : -- keywords: +patch pull_requests: +6540 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33523> ___ ___ Python-

[issue31749] Request: Human readable byte amounts in the standard library

2017-10-11 Thread Jason Stelzer
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

[issue31749] Request: Human readable byte amounts in the standard library

2017-10-11 Thread Jason Stelzer
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

[issue31994] json encoder exception could be better

2017-11-09 Thread Jason Hihn
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

[issue33544] Asyncio Event.wait() and Condition.wait() is a hold over from before awaitable, and should be awaitable

2018-05-16 Thread Jason Fried
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

[issue33544] Asyncio Event.wait() is a hold over from before awaitable, and should be awaitable

2018-05-16 Thread Jason Fried
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

[issue33544] Asyncio Event.wait() is a hold over from before awaitable, and should be awaitable

2018-05-16 Thread Jason Fried
Change by Jason Fried : -- keywords: +patch pull_requests: +6584 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33544> ___ ___ Python-

<    1   2   3   4   5   6   7   8   9   10   >