[issue46614] Add option to output UTC datetimes as "Z" in `.isoformat()`

2022-04-03 Thread Matt Wozniski
Matt Wozniski added the comment: > My main hesitation with this name is that I suspect users may think that > `use_utc_designator` means that they *unconditionally* want to use `Z` — > without reading the documentation (which we can assume 99% of users won't do) I was thinking alon

[issue46614] Add option to output UTC datetimes as "Z" in `.isoformat()`

2022-03-21 Thread Matt Wozniski
Change by Matt Wozniski : -- keywords: +patch pull_requests: +30131 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32041 ___ Python tracker <https://bugs.python.org/issu

[issue46892] Async Call-Stack Reconstruction

2022-03-11 Thread Matt Page
Matt Page added the comment: Sorry for the confusion, I'm working on a PR. I filed the BPO to gauge interest in the feature. -- ___ Python tracker <https://bugs.python.org/issue46

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-03-11 Thread Matt Bogosian
Change by Matt Bogosian : -- pull_requests: +29919 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/31821 ___ Python tracker <https://bugs.python.org/issu

[issue39829] __len__ called twice in the list() constructor

2022-03-07 Thread Matt Wozniski
Matt Wozniski added the comment: Pardon me for necroing an old issue, but someone pointed out the surprising behavior of `__len__` being called twice by `list(iterable)`, and it caught my curiosity. https://github.com/python/cpython/commit/372d705d958964289d762953d0a61622755f5386 made

[issue46895] Allow extensions to set a callback to be invoked when a type is modified

2022-03-01 Thread Matt Page
Change by Matt Page : -- versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue46895> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46898] Add API to allow extensions to set callback function on creation and destruction of PyCodeObject

2022-03-01 Thread Matt Page
New submission from Matt Page : CPython extensions providing optimized execution of Python bytecode (e.g. the Cinder JIT) may need to hook into the lifecycle of code objects to determine what to optimize or to free resources allocated for code objects that no longer exist. We propose adding

[issue46897] Add API to allow extensions to set callback function on creation, modification, and destruction of PyFunctionObject

2022-03-01 Thread Matt Page
New submission from Matt Page : CPython extensions providing optimized execution of Python bytecode (e.g. the Cinder JIT) may need to hook into the lifecycle of function objects to determine what to optimize, invalidate previously-optimized functions, or free resources allocated

[issue46895] Allow extensions to set a callback to be invoked when a type is modified

2022-03-01 Thread Matt Page
Change by Matt Page : -- title: Type-Modified Callbacks -> Allow extensions to set a callback to be invoked when a type is modified ___ Python tracker <https://bugs.python.org/issu

[issue46895] Type-Modified Callbacks

2022-03-01 Thread Matt Page
New submission from Matt Page : CPython extensions providing optimized execution of Python bytecode (e.g. the Cinder JIT), or even CPython itself (e.g. the faster-cpython project) may wish to cache access to lookups in the class hierarchy (e.g. when resolving the target of a method call

[issue46892] Async Call-Stack Reconstruction

2022-03-01 Thread Matt Page
New submission from Matt Page : Profiling tools that use the call-stack (i.e. all of them) paint an incomplete picture of what’s really going on in async-heavy codebases. They can only show the stack of the currently executing task; they miss the chain of awaitables that are transitively

[issue46614] Add option to output UTC datetimes as "Z" in `.isoformat()`

2022-02-11 Thread Matt Wozniski
Matt Wozniski added the comment: > I feel like "If the offset is 00:00, use Z" is the wrong rule to use > conceptually This is a really good point that I hadn't considered: `+00:00` and `Z` are semantically different, and just because a datetime has a UTC offset of 0 doesn'

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-02-01 Thread Matt Bogosian
Change by Matt Bogosian : -- keywords: +patch nosy: +mbogosian nosy_count: 4.0 -> 5.0 pull_requests: +29243 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31061 ___ Python tracker <https://bugs.python.org/i

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-02-01 Thread Matt B
Matt B added the comment: Thanks, @kj! Fantastic education and insight! I'm sad that I needed you as an interpreter but very grateful you were around to provide the interpretation. Working on a patch now…. -- ___ Python tracker <ht

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-02-01 Thread Matt B
Matt B added the comment: I am happy to attempt a patch, but I don't understand what's going on with _ConcatenateGenericAlias. Or rather, I don't fully understand the various copy_with semantics. This code is *very* hard to follow. Patching _GenericAlias.copy_with seems relatively

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-01-30 Thread Matt B
Matt B added the comment: Filed by request: https://github.com/python/cpython/pull/26091#issuecomment-1024900261 -- ___ Python tracker <https://bugs.python.org/issue46

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-01-30 Thread Matt B
New submission from Matt B : c55ff1b352f8b82184f80d9dea220e832691acfc was submitted to fix #44098 and added the _typevar_types and _paramspec_tvars properties to _GenericAlias. However, those properties continue to be omitted from _GenericAlias.copy_with[1]. Further, typing.py is fairly

[issue42343] threading.local documentation should be on the net...

2022-01-27 Thread Matt B
Matt B added the comment: @ztane, if you are interested in trying your hand at a PR, these will be generally useful: * https://devguide.python.org/ * https://devguide.python.org/documenting/ -- ___ Python tracker <https://bugs.python.

[issue42343] threading.local documentation should be on the net...

2022-01-27 Thread Matt B
Matt B added the comment: @rhettinger, the docstring[1] alluded to in the docs is quite lengthy. Are you suggesting copying it straight across to the standard library documentation? If not, can you give (or link to) some documentation standards or other guidance on constructing a viable PR

[issue35829] datetime: parse "Z" timezone suffix in fromisoformat()

2022-01-26 Thread Matt Wozniski
Matt Wozniski added the comment: I agree with Brett. Adding `allow_z` (or perhaps `compact` or `use_utc_designator` if we're bikeshedding) as an optional keyword only argument to `.isoformat()` would allow us to keep the explanation that what `.fromisoformat()` can parse is exactly what

[issue46133] Feature request: allow mechanism for creator of exec-generated code to provide source to pdb

2022-01-14 Thread Matt B
Matt B added the comment: Please treat this as a feature request to add the ability for pdb (and internals) to ingest sources for exec-generated code. -- ___ Python tracker <https://bugs.python.org/issue46

[issue46133] Feature request: allow mechanism for creator of exec-generated code to provide source to pdb

2022-01-14 Thread Matt B
Change by Matt B : -- resolution: not a bug -> ___ Python tracker <https://bugs.python.org/issue46133> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46133] Feature request: allow mechanism for creator of exec-generated code to provide source to pdb

2022-01-14 Thread Matt B
Change by Matt B : -- status: closed -> open title: Unclear whether one can (or how to) provide source to exec-generated code -> Feature request: allow mechanism for creator of exec-generated code to provide source to pdb type: behavior -> en

[issue46260] Misleading SyntaxError on f-string

2022-01-05 Thread Matt Delengowski
Matt Delengowski added the comment: Hi Eric, I see what are you referring to. Like you said unintuitive but still correct. Do you think it would be worthwhile to change the order of the checking such that '}' is always first? Or could the same edge case still appear but just the other way

[issue46260] Misleading SyntaxError on f-string

2022-01-04 Thread Matt Delengowski
New submission from Matt Delengowski : Example code ``` foo = 1 f"blank (open paren {foo )" ``` Error report File "", line 1 f"blank (open paren {foo )" ^ SyntaxError: f-string: unmatched ')' The problem i

[issue46133] Unclear whether one can (or how to) provide source to exec-generated code

2021-12-19 Thread Matt B
Change by Matt B : -- components: +Library (Lib) type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issu

[issue46133] Unclear whether one can (or how to) provide source to exec-generated code

2021-12-19 Thread Matt B
New submission from Matt B : Unless I missed it, looking at https://github.com/python/cpython/blob/main/Lib/pdb.py, https://github.com/python/cpython/blob/main/Lib/inspect.py, and https://docs.python.org/3/library/pdb.html doesn't give much of a clue how to provide sources to exec-generated

[issue46050] [pathlib] Option so that OSError does not block glob in pathlib library

2021-12-11 Thread matt
New submission from matt : Hi there, ISSUE DESCRIPTION when I browse starting from the linux root ('/') path = pathlib.Path('/') _glob = '**/*' for p in path.glob(_glob): The program stops on my machine because of OSError. File "/usr/lib/python3.8/pathlib.py"

[issue34798] pprint ignores the compact parameter for dicts

2021-12-11 Thread Matt Bogosian
Matt Bogosian added the comment: Please consider highlighting that dicts are not included in the documentation. While *technically* true, this ... > compact impacts the way that long sequences (lists, tuples, sets, etc) are > formatted. If compact is false (the default) then eac

[issue45982] Bug in Error messages

2021-12-04 Thread Matt Wozniski
Matt Wozniski added the comment: > Syntactically, this could be many possible errors: missing comma, missing > period, missing parens, missing brackets, etc. Syntactically, it cannot be a missing comma. Adding the comma is a syntax error. $ python3 -c 'if datetime.now(),strftime(...)

[issue45955] Calling read() on HTTPError may cause KeyError in tempfile

2021-12-01 Thread Matt Martz
New submission from Matt Martz : HTTPError may not be fully initialized in some scenarios leading to an inconsistent interface. This is documented in code at: https://github.com/python/cpython/blob/55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0/Lib/urllib/error.py#L45-L50 Unfortunately the way

[issue45675] pkgutil.get_data() doesn't add subpackages to parent packages when importing

2021-11-29 Thread Matt Wozniski
Matt Wozniski added the comment: I wondered if it would be backwards compatible to make `pkgutil.get_data()` delegate to `importlib.resources.read_binary()`. It isn't, because `pkgutil.get_data()` accepts a relative path for the resource, and `importlib.resources.read_binary()` accepts only

[issue45675] pkgutil.get_data() doesn't add subpackages to parent packages when importing

2021-10-29 Thread Matt Wozniski
Matt Wozniski added the comment: The original case where I encountered this was with a namespace package, but the behavior appears to be the same for a subpackage of a regular package. -- title: pkgutil.get_data() doesn't add subpackages to namespaces when importing

[issue45675] pkgutil.get_data() doesn't add subpackages to namespaces when importing

2021-10-29 Thread Matt Wozniski
New submission from Matt Wozniski : If a module hasn't yet been imported, `pkgutil.get_data(pkg_name, data_file)` will import it, but when it does, it doesn't add the submodule to its parent package when the parent package is a PEP 420 implicit namespace package. ``` $ mkdir -p namespace

[issue45325] Allow "p" in Py_BuildValue

2021-09-30 Thread Matt Wozniski
Matt Wozniski added the comment: > "!value" or "!!value" also has the issue if I understood correctly. No, just as "value != 0" is an int, so is "!value". -- ___ Python t

[issue45325] Allow "p" in Py_BuildValue

2021-09-29 Thread Matt Wozniski
Matt Wozniski added the comment: The leftmost argument of the ternary is an int for every example that Victor and I found in the stdlib, so no casting would be required in any of these cases. -- ___ Python tracker <https://bugs.python.

[issue45325] Allow "p" in Py_BuildValue

2021-09-29 Thread Matt Wozniski
Matt Wozniski added the comment: I spotted three other uses in the stdlib: Modules/_io/_iomodule.c raw = PyObject_CallFunction(RawIO_class, "OsOO", path_or_fd, rawmode, closefd ? Py_True

[issue45325] Allow "p" in Py_BuildValue

2021-09-29 Thread Matt Wozniski
Matt Wozniski added the comment: > but there is a catch -- the arguments should be a C int Or a type that promotes to int. If you pass a C short or char, or a C++ bool, it is implicitly promoted to int. > so you will need to write "expr ? 1 : 0" Or alternatively &

[issue40346] Add random.BaseRandom to ease implementation of subclasses

2021-09-23 Thread Matt Bogosian
Matt Bogosian added the comment: Thanks! Where's that documented? (Apologies if I missed it.) -- ___ Python tracker <https://bugs.python.org/issue40346> ___ ___

[issue40346] Add random.BaseRandom to ease implementation of subclasses

2021-09-23 Thread Matt Bogosian
Matt Bogosian added the comment: I landed here after investigating this surprising result: # test_case.py from random import Random from typing import Sequence, Union _RandSeed = Union[None, int, Sequence[int]] class MyRandom(Random): def __init__( self, seed

[issue45043] Typo (change 'two' to 'three')

2021-08-29 Thread Matt Schuster
Matt Schuster added the comment: Yes, I meant the day of week. Ok, no problem as this is 'date of month'. Closing as 'not a bug'. Thanks!! -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracke

[issue45043] Typo (change 'two' to 'three')

2021-08-29 Thread Matt Schuster
New submission from Matt Schuster : Reference https://docs.python.org/3/library/time.html?highlight=time%20time#module-time in 3.8, 3.9, 3.10, 3.11 (previous versions do not have same issue). Specifically under time.asctime([t]) and time.ctime([secs]) Change "day field is two characters

[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-06-10 Thread Matt Whitlock
Matt Whitlock added the comment: Observed this same failure mode on a Raspberry Pi 1 while running 'make install' on Python 3.9.5 with 9 concurrent workers. Exception in thread Thread-1: Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-3.9.5_p2/image/us

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-03 Thread Matt Billenstein
Matt Billenstein added the comment: I have been stopping it since the initial problem - there’s something wonky with using the system python on macos afaict... M -- Matt Billenstein m...@vazor.com > On Jun 3, 2021, at 4:39 AM, STINNER Victor wrote: > >  > STINNER V

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread Matt Billenstein
Matt Billenstein added the comment: So, I'd been trying various things before the master restart and I was using python3 supplied by homebrew - I decided I didn't like that dependency and switched it back to /usr/bin/python3 as supplied by the system [1]. I did a rebuild on 325 a couple more

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread Matt Billenstein
Matt Billenstein added the comment: Hmm, yeah, it did seem to me like the server was wedged or something... glad to see it going. M -- Matt Billenstein m...@vazor.com > On Jun 2, 2021, at 6:13 PM, STINNER Victor wrote: > >  > STINNER Victor added the comment: > >&

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread Matt Billenstein
Matt Billenstein added the comment: Probably at 321 where it lost connection - I would have shut it down and wiped the buildarea. I'm not sure what's going on now, I'm walking back versions of buildbot-worker and they seem to never connect to the master... m On Wed, Jun 02, 2021 at 07:25

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread Matt Billenstein
Matt Billenstein added the comment: Hmm, digging, afaict the buildbot-worker is up and running - something on the master? I just updated my setup to use python3 instead of python2... On Wed, Jun 02, 2021 at 06:24:23PM +, Ned Deily wrote: > > Ned Deily added the comment: > >

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread Matt Billenstein
Matt Billenstein added the comment: I rebuilt it a while ago which could have caused this - can you re-run the affected build? thx m On Wed, Jun 02, 2021 at 06:08:16PM +, Ned Deily wrote: > > Ned Deily added the comment: > > I can't reproduce that failure with that chec

[issue44151] Improve parameter names and return value ordering for linear_regression

2021-05-16 Thread Matt Harrison
Matt Harrison added the comment: And by "if your model is in the correct layout", I meant "if your data is in the correct layout" -- ___ Python tracker <https://bug

[issue44151] Improve parameter names and return value ordering for linear_regression

2021-05-16 Thread Matt Harrison
Matt Harrison added the comment: The ML world has collapsed on the terms X and y. (With that capitalization). Moreover, most (Python libraries) follow the interface of scikit-learn [0]. Training a model looks like this: model = LinearRegression() model.fit(X, y) After

[issue43572] "Too many open files" on macOS buildbot

2021-03-20 Thread Matt Billenstein
Matt Billenstein added the comment: Ah, word, was looking at stdout -- 256 is pretty low, raised it to 200k... -- ___ Python tracker <https://bugs.python.org/issue43

[issue43572] "Too many open files" on macOS buildbot

2021-03-20 Thread Matt Billenstein
Matt Billenstein added the comment: In any case - I've raised file/process limits on the buildbot. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43572] "Too many open files" on macOS buildbot

2021-03-20 Thread Matt Billenstein
Matt Billenstein added the comment: I don't see that error message - where are you seeing it? -- ___ Python tracker <https://bugs.python.org/issue43572> ___ ___

[issue42703] Asyncio Event Documentation Links Incorrect

2020-12-21 Thread Matt Fowler
Change by Matt Fowler : -- keywords: +patch pull_requests: +22741 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23881 ___ Python tracker <https://bugs.python.org/issu

[issue42703] Asyncio Event Documentation Links Incorrect

2020-12-21 Thread Matt Fowler
New submission from Matt Fowler : The documentation for `asyncio.Event` has incorrect links. The `wait` coroutine incorrectly links to the docs for the `asyncio.wait` waiting primitive, and the `set` method incorrectly links to the docs for the `set` class constructor. -- assignee

[issue17140] Document multiprocessing.pool.ThreadPool

2020-12-16 Thread Matt Wozniski
Change by Matt Wozniski : -- keywords: +patch nosy: +godlygeek nosy_count: 7.0 -> 8.0 pull_requests: +22673 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23812 ___ Python tracker <https://bugs.p

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-23 Thread Matt Joiner
Matt Joiner added the comment: I do not think so. mypy has the same issue. The ByteString type does not include the methods shared by all its implementations. I already linked to this in https://bugs.python.org/msg375553. I also showed that mypy doesn't work in my last comment

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-23 Thread Matt Joiner
Matt Joiner added the comment: $ pyright hex.py stubPath /Users/anacrolix/src/dht-scraper/typings is not a valid directory. Assuming Python platform Darwin Searching for source files Found 1 source file /Users/anacrolix/src/dht-scraper/hex.py 3:9 - error: Cannot access member "hex"

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-23 Thread Matt Joiner
Change by Matt Joiner : Added file: https://bugs.python.org/file49423/hex.py ___ Python tracker <https://bugs.python.org/issue41564> ___ ___ Python-bugs-list mailin

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2020-08-17 Thread Matt Prahl
Change by Matt Prahl : -- nosy: +mprahl nosy_count: 7.0 -> 8.0 pull_requests: +21025 pull_request: https://github.com/python/cpython/pull/21909 ___ Python tracker <https://bugs.python.org/issu

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-17 Thread Matt Joiner
Matt Joiner added the comment: https://github.com/python/cpython/blob/48b069a003ba6c684a9ba78493fbbec5e89f10b8/Lib/_collections_abc.py#L953 https://github.com/python/cpython/blob/0e95bbf08571e98f4b688524efc2dcf20d315d91/Lib/typing.py#L1612 -- status: pending -> o

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-16 Thread Matt Joiner
New submission from Matt Joiner : I get this error when running pyright for a type of typing.ByteString. All the implementations of ByteString (bytes, bytearray, memoryview) have the hex method, so this seems unexpected? -- components: Library (Lib) messages: 375523 nosy: anacrolix

[issue40879] Strange regex cycle

2020-06-05 Thread Matt Miller
New submission from Matt Miller : I was evaluating a few regular expressions for parsing URL. One such expression (https://daringfireball.net/2010/07/improved_regex_for_matching_urls) causes the `re.Pattern` to exhibit some strange behavior (notice the stripped characters in the `repr

[issue38894] Path.glob() sometimes misses files that match

2020-03-06 Thread Matt Wozniski
Matt Wozniski added the comment: A simple test case for this issue: ~>mkdir tmp ~>cd tmp tmp>touch 1.txt tmp>ln -s subdir/file 2.txt tmp>touch 3.txt tmp>ls -l total 0 -rw-rw-r-- 1 mwoznisk general 0 Mar 6 14:52 1.txt lrwxrwxrwx 1 mwoznisk general 11 Mar 6 14:52 2.txt -&g

[issue39082] AsyncMock is unable to correctly patch static or class methods

2020-01-25 Thread Matt Kokotovich
Change by Matt Kokotovich : -- pull_requests: +17573 pull_request: https://github.com/python/cpython/pull/18190 ___ Python tracker <https://bugs.python.org/issue39

[issue39082] AsyncMock is unable to correctly patch static or class methods

2020-01-22 Thread Matt Kokotovich
Matt Kokotovich added the comment: I'd love to see this issue resolved, as it is keeping me from being able to switch to 3.8. I have a PR with Karthikeyan's suggestion, as I agree it makes more sense and could apply to more cases: https://github.com/python/cpython/pull/18116

[issue39082] AsyncMock is unable to correctly patch static or class methods

2020-01-20 Thread Matt Kokotovich
Change by Matt Kokotovich : -- nosy: +mkokotovich ___ Python tracker <https://bugs.python.org/issue39082> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39021] multiprocessing is_alive() between children processes

2019-12-10 Thread Matt
New submission from Matt : I'm trying to evaluate process' state between two "sibling" processes (processes created by the same parent process); using the .is_alive() and exitcode to evaluate whether a process has been init'd, started, finished successfully or unsuccessfully. The

[issue38911] include __del__ in Generator ABC

2019-11-25 Thread Matt McEwen
Matt McEwen added the comment: My interpretation of issue 24018 was that the Generator ABC was trying to follow the PEP as much as possible, so that users were able to produce a custom generator object and have it behave just like a builtin generator object. I know that subclassing

[issue38911] include __del__ in Generator ABC

2019-11-25 Thread Matt McEwen
New submission from Matt McEwen : The Generator ABC in the standard library lets users define objects that follow the Generator specification given in PEP342, and which can be used in the place of builtin generator objects. This was originally added in issue 24018 The ABC enforces

[issue38558] Data Structures documentation out of sync with new Walrus operator

2019-10-26 Thread Matt Ward
Matt Ward added the comment: You're welcome! On Fri, Oct 25, 2019 at 10:53 PM Ammar Askar wrote: > > Ammar Askar added the comment: > > Thank you for the report Matt! > > -- > nosy: +ammar2 > resolution: -> fixed > stage: patch review ->

[issue38558] Data Structures documentation out of sync with new Walrus operator

2019-10-22 Thread Matt Ward
New submission from Matt Ward : The 3.8 documentation still includes the text. ```Note that in Python, unlike C, assignment cannot occur inside expressions. C programmers may grumble about this, but it avoids a common class of problems encountered in C programs: typing = in an expression

[issue13322] The io module doesn't support non-blocking files

2019-10-10 Thread Matt Joiner
Change by Matt Joiner : -- nosy: -anacrolix ___ Python tracker <https://bugs.python.org/issue13322> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38231] Documentation search results focus on tutorials and not language specifications

2019-09-20 Thread Matt
Matt added the comment: I will close this issue and post in one of the two places you linked. Thank you for your prompt reply and affirmation of my observations. I feel my language was colored by frustration, yet you focused instead on my willingness to help. I appreciate that and find

[issue38231] Documentation search results focus on tutorials and not language specifications

2019-09-20 Thread Matt
New submission from Matt : * Problem: Documentation search results favor tutorials and over language specifications * How to reproduce: I often forget simple syntax. For example, say I want to raise an exception. Clearly, I need to search for "raise". 1. Go to https://docs.

[issue37870] os.path.ismount returns false for disconnected CIFS mounts in Linux

2019-08-15 Thread Matt Christopher
New submission from Matt Christopher : I've got a case where we mount a CIFS filesystem and then later the actual backing filesystem is deleted (but the mount remains on the machine). When running from a shell, this is the behavior which I see after the backing CIFS filesystem has gone away

[issue36866] Certificate verification errors in urllib.request become URLError

2019-05-09 Thread Matt Martz
New submission from Matt Martz : The behavior of how SSL certificate validation is handled was changed in https://bugs.python.org/issue31399 This introduced a new exception, ssl.SSLCertVerificationError, which is raised for any certificate validation error, instead of the previous exception

[issue36738] Add 'array_hook' for json module

2019-04-27 Thread matt farrugia
Change by matt farrugia : -- keywords: +patch pull_requests: +12906 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36738> ___ ___ Py

[issue36738] Add 'array_hook' for json module

2019-04-27 Thread matt farrugia
New submission from matt farrugia : The json module allows a user to provide an `object_hook` function, which, if provided, is called to transform the dict that is created as a result of parsing a JSON Object. It'd be nice if there was something analogous for JSON Arrays: an `array_hook

[issue36522] http/client.py does not print duplicate header values in debug

2019-04-03 Thread Matt Houglum
New submission from Matt Houglum : This is a follow-up to https://bugs.python.org/issue33365. The fix for that issue (see https://github.com/python/cpython/pull/6611) added a statement to also print header values, but it does not account for the case where multiple values exist for the same

[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2019-01-31 Thread Matt Joiner
Change by Matt Joiner : -- nosy: -anacrolix ___ Python tracker <https://bugs.python.org/issue12822> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-11-20 Thread Matt Wilber
Matt Wilber added the comment: Inada-san, I think it's fair to ask for a broader vision about how ABCs are used. In that respect I'm wondering about some inconsistencies in the existing functools module about whether wrappers should maintain the wrapped function's __isabstractmethod__

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-17 Thread Matt Wilber
Matt Wilber added the comment: To add some more context, the existing Python documentation is a little misleading in this situation: https://docs.python.org/3/library/abc.html#abc.abstractmethod It shows that labeling a method with @property @abstractmethod ought to be done in the order

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-17 Thread Matt Wilber
Matt Wilber added the comment: I agree, a comment can serve the same purpose. But for the same reasons it's useful to express typing hints in Python with real syntax, and the reasons it's useful to have the abc module in the first place, I think it is useful to be able to annotate

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-16 Thread Matt Wilber
Matt Wilber added the comment: This allows a developer to add a @cached_property to a method with the @abstractmethod decorator, without breaking the check for abstract methods on ABC instantiation. That is, if you tried to instantiate an ABC with a method that had a method decorated

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-15 Thread Matt Wilber
Change by Matt Wilber : -- keywords: +patch pull_requests: +9266 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34995> ___ ___ Py

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-15 Thread Matt Wilber
Change by Matt Wilber : -- components: Library (Lib) nosy: mwilbz priority: normal severity: normal status: open title: functools.cached_property does not maintain the wrapped method's __isabstractmethod__ versions: Python 3.8 ___ Python tracker

[issue34473] pip is unusable on Windows 10 1803 - SHA-1 certificates are untrusted

2018-08-23 Thread Matt Tuttle
Matt Tuttle added the comment: Yep. You are right it is a firewall issue. -- ___ Python tracker <https://bugs.python.org/issue34473> ___ ___ Python-bugs-list m

[issue34473] pip is unusable on Windows 10 1803 - SHA-1 certificates are untrusted

2018-08-23 Thread Matt Tuttle
Matt Tuttle added the comment: Thanks Steve, you were right it is a firewall issue that impacted both pip and conda simultaneously. ☹ -- ___ Python tracker <https://bugs.python.org/issue34

[issue34473] pip is unusable on Windows 10 1803 - SHA-1 certificates are untrusted

2018-08-23 Thread Matt Tuttle
Matt Tuttle added the comment: It was a firewall issue that affected pip and conda in the same way. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue34473] pip is unusable on Windows 10 1803 - SHA-1 certificates are untrusted

2018-08-23 Thread Matt Tuttle
New submission from Matt Tuttle : Running pip install ANYTHING results in an SSL failure on Windows 10 1803 because SHA-1 certificates are untrusted. -- components: Installation, Windows messages: 323945 nosy: mtuttle, paul.moore, steve.dower, tim.golden, zach.ware priority: normal

[issue31710] setup.py: _ctypes won't get built when system ffi is only in $PREFIX

2018-08-11 Thread Matt Pruitt
Matt Pruitt added the comment: Also ran into this issue while building Python in an isolated environment. Realized that libffi is installing into the $EPREFIX/lib64 directory of our build environment. Despite pkg-config returning the correct directory for linking libffi, it took

[issue33034] urllib.parse.urlparse and urlsplit not raising ValueError for bad port

2018-04-03 Thread Matt Eaton
Matt Eaton <agnostic...@gmail.com> added the comment: Wanted to check in on this to see if there was any feedback on this topic? -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33181] SimpleHTTPRequestHandler shouldn't redirect to directories with code 301

2018-04-03 Thread Matt Eaton
Matt Eaton <agnostic...@gmail.com> added the comment: Wanted to check in on this to see if there was any feedback by any community or core members? -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33181] SimpleHTTPRequestHandler shouldn't redirect to directories with code 301

2018-03-31 Thread Matt Eaton
Matt Eaton <agnostic...@gmail.com> added the comment: Adding some core team members to the nosy list to get their take on this as well. -- nosy: +berker.peksag, eric.smith ___ Python tracker <rep...@bugs.python.org> <https://

[issue33034] urllib.parse.urlparse and urlsplit not raising ValueError for bad port

2018-03-30 Thread Matt Eaton
Matt Eaton <agnostic...@gmail.com> added the comment: I was able to get some time together today and created a rough draft for the idea that you had Berker on introducing a new API with more strict parsing rules. This will allow the ValueError to be raised when the URL is parsed rathe

[issue33181] SimpleHTTPRequestHandler shouldn't redirect to directories with code 301

2018-03-30 Thread Matt Eaton
Matt Eaton <agnostic...@gmail.com> added the comment: I agree with you in regards to the statement, "Apache's redirect can be turned off, whereas this can't." That is why my first thought would be to try and control this response to the client a bit better by providing a v

[issue33181] SimpleHTTPRequestHandler shouldn't redirect to directories with code 301

2018-03-30 Thread Matt Eaton
Matt Eaton <agnostic...@gmail.com> added the comment: It looks like the 301 redirect is in place to emulate the behavior that Apache provides when it runs into a trailing slash. This is observed when this condition is met: parts = urllib.parse.urlsplit(self.path) if not parts.path.en

[issue33181] SimpleHTTPRequestHandler shouldn't redirect to directories with code 301

2018-03-30 Thread Matt Eaton
Matt Eaton <agnostic...@gmail.com> added the comment: Oliver, A possible option that would work for both the client side caching and the server would be to pass back a Cache-Control header with a max-age attached when the 301 is returned. I am thinking something like this: if os.path

  1   2   3   4   5   6   >