[issue8135] urllib.unquote doesn't decode mixed-case percent escapes

2010-03-14 Thread Matt Giuca
Matt Giuca added the comment: Oh, I just discovered that urlparse contains a copy of unquote, which will also need to be patched. I've submitted a patch to remove the duplicate (#8143) -- if that is accepted first then there's no need to worr

[issue8136] urllib.unquote decodes percent-escapes with Latin-1

2010-03-14 Thread Matt Giuca
Matt Giuca added the comment: Oh, I just discovered that urlparse contains a copy of unquote, which will also need to be patched. I've submitted a patch to remove the duplicate (#8143) -- if that is accepted first then there's no need to worr

[issue8135] urllib.unquote doesn't decode mixed-case percent escapes

2010-03-14 Thread Matt Giuca
Matt Giuca added the comment: I thought more about it, and wrote a different patch which doesn't remove the dictionary. I just replaced the dictionary creation code -- now it includes keys for all combinations of upper and lower case (for two-letter hex codes). This dictionary isn&#

[issue8135] urllib.unquote doesn't decode mixed-case percent escapes

2010-03-14 Thread Matt Giuca
Changes by Matt Giuca : Removed file: http://bugs.python.org/file16551/urllib-unquote-mixcase.patch2 ___ Python tracker <http://bugs.python.org/issue8135> ___ ___ Pytho

[issue8135] urllib.unquote doesn't decode mixed-case percent escapes

2010-03-14 Thread Matt Giuca
Matt Giuca added the comment: Tiny fix to patch2 -- replaced list comprehension with generator expression in dictionary construction. -- Added file: http://bugs.python.org/file16552/urllib-unquote-mixcase.patch2 ___ Python tracker <h

[issue8143] urlparse has a duplicate of urllib.unquote

2010-03-14 Thread Matt Giuca
Matt Giuca added the comment: If this patch is rejected, then at the very least, the urllib.unquote function needs a comment at the top explaining that it is duplicated in urlparse, so any changes should be made to both. Note that urlparse.unquote is not a documented function, or in the

[issue8135] urllib.unquote doesn't decode mixed-case percent escapes

2010-03-15 Thread Matt Giuca
Matt Giuca added the comment: Thanks very much. Importantly, note that unquote is currently duplicated between urllib and urlparse. I have a bug on it (#8143) but in the meantime, you will have to commit this fix to both modules. -- ___ Python

[issue8143] urlparse has a duplicate of urllib.unquote

2010-03-15 Thread Matt Giuca
Matt Giuca added the comment: What about the alternative (newmodule) patch? That doesn't have threading issues, or break backwards compatibility. -- ___ Python tracker <http://bugs.python.org/i

[issue8247] Can't Import Tkinter

2010-03-27 Thread Matt B
New submission from Matt B : >>> import _tkinter Traceback (most recent call last): File "", line 1, in ImportError: DLL load failed: %1 is not a valid Win32 application. I 'upgraded' to python 2.6.5 by downloading the windows 64 bit installer. I'm run

[issue8029] bug in 2to3 dealing with "print FOO, " followed by "sys.stdout.write('')"

2010-04-07 Thread Matt Bond
Matt Bond added the comment: I've attached a patch that fixes this particular idiom as well as a problem with the handling of bare 'print' statements. It also includes updated tests for these issues. -- keywords: +patch nosy: +zxaos Added file: http://bugs.pytho

[issue8562] hasattr(open, 'newlines') example gives incorrect results from PEP0278

2010-04-28 Thread Matt Wartell
Changes by Matt Wartell : -- nosy: +Matt.Wartell ___ Python tracker <http://bugs.python.org/issue8562> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8601] bz2.BZ2File should support "with" protocol per PEP 343

2010-05-02 Thread Matt Wartell
New submission from Matt Wartell : As the bz2.BZ2File object claims to be a file-like object it should conform to PEP 343 "The 'with' statement" by implementation of the __enter__ and __exit__ methods. boring, substantiating detail follows: $ uname -a Linux tallguy 2

[issue8602] documentation of bz2 module mildly erroneous

2010-05-03 Thread Matt Wartell
New submission from Matt Wartell : This is related to http://bugs.python.org/issue8601 "bz2.BZ2File should support "with" protocol per PEP 343" The documentation at http://docs.python.org/library/bz2.html states: "This module provides a comprehensive interfac

[issue8601] bz2.BZ2File should support "with" protocol per PEP 343

2010-05-03 Thread Matt Wartell
Matt Wartell added the comment: cross referenced with documentation issue http://bugs.python.org/issue8602 "documentation of bz2 module mildly erroneous" -- ___ Python tracker <http://bugs.python.

[issue8601] bz2.BZ2File should support "with" protocol per PEP 343

2010-05-03 Thread Matt Wartell
Matt Wartell added the comment: Sorry for the dup, and thanks for the patch. My patch for Module/bz2module.c was almost done - I learned a lot in the process, but foremost to check better for dups, first ;) -- ___ Python tracker <h

[issue8602] documentation of bz2 module mildly erroneous

2010-05-07 Thread Matt Wartell
Matt Wartell added the comment: Per request, I have attached a context diff for both bz2.txt and 3.0.txt suitable for http://docs.python.org/library/bz2.html and http://docs.python.org/release/3.0.1/whatsnew/3.0.html respectively. The modification in bz2.txt may border on redundant and

[issue1722225] Build on QNX

2007-12-10 Thread Matt Kraai
Matt Kraai added the comment: I'm willing to maintain the QNX 6 port, but I can't promise that I'll be able to do so for 5 years. I don't know if that's sufficient or not. _ Tracker <[EMAIL PROTECTED]> <h

[issue1722225] Build on QNX 6

2007-12-17 Thread Matt Kraai
Matt Kraai added the comment: I'm not interested in QNX 4, as that's not what I use. I'd be willing to supporting threads on QNX 6. -- title: Build on QNX -> Build on QNX 6 _ Tracker <[EMAIL PROTECTED]> <http://b

[issue1722225] Build on QNX 6

2008-01-23 Thread Matt Kraai
Matt Kraai added the comment: If they're defined, TCGETA, TCSETA, TCSETAW, and TCSETAF are used on lines 702, 714, 717, and 720 of Modules/termios.c as of r60219. They are defined by sys/ioctl.h as #define TCGETA _IOR('T', 1, struct termio) #define TCSETA

[issue1722225] Build on QNX 6

2008-01-23 Thread Matt Kraai
Matt Kraai added the comment: This patch contains two improvements over the previous version: * it uses configure to check whether sys/termio.h is available and uses the result to determine whether to include it and * it makes malloc_closure.c use _SC_PAGESIZE instead of getpagesize if it&#

[issue1722225] Build on QNX 6

2008-01-25 Thread Matt Kraai
Matt Kraai added the comment: Regarding the curses issue, I removed that portion of the patch and the curses module still compiled. It must have been an artifact from before I disabled _XOPEN_SOURCE. Thanks for catching that. Regarding the stack size, without the "-N 2048K" option,

[issue2027] Module containing C implementations of common text algorithms

2008-02-06 Thread Matt Chaput
New submission from Matt Chaput: Add a module to the standard library containing fast (C) implementations of common text/language related algorithms, to begin specifically Porter (and perhaps other) stemming and Levenshtein (and perhaps other) edit distance. Both these algorithms are useful

[issue2027] Module containing C implementations of common text algorithms

2008-02-07 Thread Matt Chaput
Matt Chaput added the comment: The Porter stemming and Levenshtein edit-distance algorithms are not "fast-moving" nor are they fusion reactors... they've been around forever, and are simple to implement, but are still useful in various common scenarios. I'd say this

[issue2803] heapq.heappush called with too few arguments in sched.py

2008-05-09 Thread Matt Harden
New submission from Matt Harden <[EMAIL PROTECTED]>: In the method scheduler.run in the sched module, heapq.heappush is called with single argument (event). It's a two argument function. The correct call would be heapq.heappush(q, event). This problem is probably not frequently

[issue4239] Email example should use SMTP.quit() rather than SMTP.close()

2008-10-29 Thread Matt Johnston
New submission from Matt Johnston <[EMAIL PROTECTED]>: The email module example has "s.close()", while the smtplib docs say to use .quit() The latter is probably correct? -- assignee: georg.brandl components: Documentation messages: 75354 nosy: georg.brandl, matt

[issue4239] Email example should use SMTP.quit() rather than SMTP.close()

2008-10-29 Thread Matt Johnston
Matt Johnston <[EMAIL PROTECTED]> added the comment: Another problem with that example - the .connect() isn't required and causes the SMTP session to fail to send anything and time out. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue4532] Fails to build on QNX 6.3.2

2008-12-04 Thread Matt Kraai
New submission from Matt Kraai <[EMAIL PROTECTED]>: When I try to build Python 3.0 on QNX 6.3.2, the build has the following error: gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Python/pythonrun.o Python/pytho

[issue4943] trace.CoverageResults.write_results can't write results file for modules loaded by __path__ manipulation

2009-01-13 Thread Matt McClure
New submission from Matt McClure : The function trace.CoverageResults.write_results() can't write coverage results on Windows for modules loaded by using the __path__ feature of PEP 302. For example, Bazaar uses the __path__ feature to load plugins from directories specified b

[issue4943] trace.CoverageResults.write_results can't write results file for modules loaded by __path__ manipulation

2009-01-13 Thread Matt McClure
Matt McClure added the comment: The attached patch replaces the offending colon with a period. -- keywords: +patch Added file: http://bugs.python.org/file12735/tracebug.patch ___ Python tracker <http://bugs.python.org/issue4

[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 it

[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

[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/is

[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

[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

[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

[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:

[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

[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 -

[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> ___ ___

[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/is

[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

[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 that, the

[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

[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

[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: 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

[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: 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 c

[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 Victo

[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_p

[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

[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 _

[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

[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> ___ ___

[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 "!!

[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: 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-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

[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

[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 impo

[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

[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

[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(

[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 that 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

[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:

[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/

[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

[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

[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

[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

[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

[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

[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

[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

[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-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

[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
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 co

[issue13791] Other versions

2012-01-15 Thread Matt Joiner
New submission from Matt Joiner : The navigation region at http://docs.python.org/dev/ should list "Other versions" instead of "Old versions" as the in development docs are also available here. Docs for other versions Python 2.7 (stable) Python 3.2 (stable) Old

[issue13839] -m pstats should combine all the profiles given as arguments

2012-01-22 Thread Matt Joiner
New submission from Matt Joiner : Frequently when profiling multiple threads, I need to combine several dump stat files. Currently -m pstats reads the profiling data at only the first path given. It should merge all the profiling data from all the paths given. $ python3.3 -m pstats prof/5506

[issue12684] profile does not dump stats on exception like cProfile does

2012-01-22 Thread Matt Joiner
Changes by Matt Joiner : -- resolution: works for me -> status: languishing -> open versions: +Python 3.4 ___ Python tracker <http://bugs.python.org/i

[issue13858] readline fails on nonblocking, unbuffered io.FileIO objects

2012-01-24 Thread Matt Joiner
New submission from Matt Joiner : _io._IOBase.readline doesn't seem to like _io.FileIO.read returning None, which occurs when it's unbuffered and nonblocking. (Modules/_io/fileio.c:745 in trunk). Can this be handled some other way? $ python3.3 Python 3.3.0a0 (default:fb0f4fe8123

[issue13322] buffered read() and write() does not raise BlockingIOError

2012-01-25 Thread Matt Joiner
Matt Joiner added the comment: The patches only fix write? What about read? http://bugs.python.org/issue13858 -- nosy: +anacrolix ___ Python tracker <http://bugs.python.org/issue13

[issue13859] Lingering StandardError in logging module

2012-01-25 Thread Matt Joiner
New submission from Matt Joiner : There's a lingering StandardError referenced in the logging module. StandardError was removed in Python 3, and execution across this code path generates a NameError: File "/home/matt/src/cpython/Lib/logging/__init__.py", line 291, in __in

[issue13859] Lingering StandardError in logging module

2012-01-25 Thread Matt Joiner
Matt Joiner added the comment: Interesting this also occurs in 3.2 and 2.7, but not 2.6 or 3.1. It's probably not an error in 2.x tho. -- versions: +Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.org/is

[issue13859] Lingering StandardError in logging module

2012-01-25 Thread Matt Joiner
Matt Joiner added the comment: Cheers, thanks for the fast turn around. -- ___ Python tracker <http://bugs.python.org/issue13859> ___ ___ Python-bugs-list mailin

[issue13872] socket.detach doesn't mark socket._closed

2012-01-26 Thread Matt Joiner
New submission from Matt Joiner : socket.socket.detach doesn't mark the socket._closed flag. The flag is specific to the Python wrapper, so the fix is put there. Test included. -- components: Library (Lib) files: socket-detach-mark-closed.patch keywords: patch messages: 152005

[issue13894] threading._CRLock should not be tested if _thread.RLock isn't implemented

2012-01-28 Thread Matt Joiner
New submission from Matt Joiner : _threading.RLock is optional, and threading._CRLock is set to None if it isn't available. If this happens, the test_threading unittests crash. Some implementations don't provide _thread.RLock. Patch attached. -- components: Library (Lib) f

[issue12655] Expose sched.h functions

2012-02-16 Thread Matt Joiner
Matt Joiner added the comment: Please also expose sched_getcpu(). -- nosy: +anacrolix ___ Python tracker <http://bugs.python.org/issue12655> ___ ___ Python-bug

[issue14003] __self__ on built-in functions is not as documented

2012-02-17 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +anacrolix ___ Python tracker <http://bugs.python.org/issue14003> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14059] Implement multiprocessing.Barrier

2012-02-19 Thread Matt Joiner
New submission from Matt Joiner : There is no Barrier in multiprocessing corresponding to threading.Barrier. -- components: Library (Lib) messages: 153744 nosy: anacrolix priority: normal severity: normal status: open title: Implement multiprocessing.Barrier type: enhancement versions

[issue14060] Implement a CSP-style channel

2012-02-19 Thread Matt Joiner
New submission from Matt Joiner : >From the mailing list, there is some interest in a CSP-style channel. >http://mail.python.org/pipermail/python-ideas/2012-February/014073.html -- components: Library (Lib) messages: 153748 nosy: anacrolix priority: normal severity: normal status

[issue14060] Implement a CSP-style channel

2012-02-20 Thread Matt Joiner
Matt Joiner added the comment: As I see it, here are the desirable features of CSP-style concurrency as it pertains to channels: 1) At least an unbuffered mode 2) Can be marked closed 3) Block on multiple send/receives until one can proceed Specifically features 1 and 2 could be bolted onto

[issue10115] Support accept4() for atomic setting of flags at socket creation

2012-02-28 Thread Matt Joiner
Matt Joiner added the comment: Can we get this exposed as an os.accept4, and an optional flags parameter to socket.socket.accept? -- nosy: +anacrolix ___ Python tracker <http://bugs.python.org/issue10

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2012-02-29 Thread Matt Joiner
New submission from Matt Joiner : If an argument of '-' is handled by argparse.FileType, it defaults to sys.stdin. However a mode of 'rb' is ignored, the returned file object does not work with raw bytes. -- components: Library (Lib) messages: 154612 nosy: anacro

[issue14267] TimedRotatingFileHandler chooses wrong file name due to daylight saving time "spring forward"

2012-03-12 Thread Matt Mullins
New submission from Matt Mullins : As logs were rotated at midnight this morning (at the end of the day 2012-03-11), we detected that the logs were incorrectly renamed to *.log.2012-03-10, causing logs from Saturday to be overwritten. I believe this bug is related to the transition to

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2012-03-14 Thread Matt Joiner
Matt Joiner added the comment: Roger that. I'll start on a patch for this in a month or two if all goes well. -- ___ Python tracker <http://bugs.python.org/is

[issue14222] Using time.time() in Queue.get breaks when system time is changed

2012-03-14 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +anacrolix ___ Python tracker <http://bugs.python.org/issue14222> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12684] profile does not dump stats on exception like cProfile does

2012-03-15 Thread Matt Joiner
Matt Joiner added the comment: Jim the code was lifted verbatim from Lib/cProfile.py, line 47. That code in cProfile.py has not changed since 2006 when it was committed by Armin Rigo. I can modernize it if it's a requirement to get it committed, but I'm also okay with my conserva

<    1   2   3   4   5   6   >