[issue41988] No hyphen in broken up word in documentation

2020-10-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I am seeing this in Brave (a Chrome derivative). Many examples in https://docs.python.org/3/library/email.html See the words "in\nterface" and "ob\nject' in the attached screenshot. -- nosy: +barry Added file: https://bugs.

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2020-10-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: The other question is what to do about `EmailMessage` objects, which don't have a `set_charset()` method. For now, I'll ignore that. -- ___ Python tracker <https://bugs.python.

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2020-10-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Actually, I think I am going to close this as won't fix, for two reasons. First, this only potentially affects the legacy API, and second, in Python 3, the error you get when you do it like the original repro example seems obvious to me. ``` &

[issue35181] Doc: Namespace Packages: Inconsistent documentation of __loader__ being None

2020-10-21 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Apologies for the long delay in reviewing this bug. I'm looking at it now, however since Python 3.7 is in security-only mode, this will only apply to 3.10, 3.9, and 3.8. -- versions: +Python 3.10, Python 3.9 -Pytho

[issue35181] Doc: Namespace Packages: Inconsistent documentation of __loader__ being None

2020-10-21 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @maggyero - I haven't merged PR 10016, but I left some additional comments. Are you still interested in shepherding this PR? -- ___ Python tracker <https://bugs.python.org/is

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2020-10-22 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <https://bugs.python.org/issue42115> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31522] _mboxMMDF.get_string() fails to pass param to get_bytes()

2020-10-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Actually, it looks to me like the PR *does* include unittests, and I see them in the repo, so I'm closing this bug. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @sim0n - I added a comment to your open PR. My main question for the rest of the group is whether we can and should backport this. Given the new defect class being introduced, it seems like this should only land in 3.10. Thoughts

[issue38486] Dead links in mailbox doc

2020-10-22 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- versions: +Python 3.10 ___ Python tracker <https://bugs.python.org/issue38486> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38486] Dead links in mailbox doc

2020-10-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks for the PR @ZackerySpytz - this has landed in git head and is currently being backported to 3.9 and 3.8 (3.7 is in security-fix only mode). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -P

[issue42129] Support resources in namespace packages

2020-10-23 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <https://bugs.python.org/issue42129> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Aside: I noticed that on _parseaddr.py:68, there's a bare `return`. That should really be `return None` (EIBTI). Can you fix that in your PR? I think it's confusing to raise both TypeError and ValueError. I suggest we check the `None` r

[issue42155] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Hi Serhiy. I believe this is a duplicate of bpo-30681 which is active and has a good PR IMHO. The only hold up is whether to backport that PR to 3.9 and 3.8. See the bug and PR for details. -- resolution: -> duplicate superse

[issue42155] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-26 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue42155> ___ ___ Python-bugs-list

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-26 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.or

Re: [issue28468] Add platform.freedesktop_os_release()

2020-11-25 Thread M.-A. Lemburg
On 25.11.2020 11:13, STINNER Victor wrote: > Platform was always a thin wrapper to OS functions. For example, there is no > unified API to retrieve OS name and version on Windows, macOS or Linux. You > need to pick the proper function. For me, freedesktop_os_release() just > follow

[issue13815] tarfile.ExFileObject can't be wrapped using io.TextIOWrapper

2012-01-18 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue13815> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13703] Hash collision security issue

2012-01-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 28, 2012, at 07:26 PM, Dave Malcolm wrote: >This turns out to pass without PYTHONHASHRANDOMIZATION in the >environment, and fail intermittently with it. > >Note that "make test" invokes the built python with "-E", so

[issue13956] add a note regarding building on recent versions of Debian and Ubuntu

2012-02-08 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 08, 2012, at 12:53 PM, Antoine Pitrou wrote: >Or, rather, setup.py should be smart enough to warn about that. It shouldn't just be limited to Debian and its derivatives. Other platforms (even Linux OSes) will probably have simila

[issue13956] add a note regarding building on recent versions of Debian and Ubuntu

2012-02-08 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 08, 2012, at 03:51 PM, Éric Araujo wrote: >The correct way to get build dependencies on Debian and derivatives is to use >“aptitude build-dep pythonX.Y” (see #13472). I think dpkg-dev would get >installed as a dependency; Tshepang, could you

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2012-02-13 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue7475> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14040] Deprecate some of the module file formats

2012-02-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 17, 2012, at 01:36 PM, Antoine Pitrou wrote: >Stating module files of the form "xxxmodule.so" consumes all 1/3 of stat >calls at startup. Looking at the site-packages folders on my machine, both >for 2.7 and 3.2, reveals no C ext

[issue13703] Hash collision security issue

2012-02-21 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 21, 2012, at 09:48 AM, Marc-Andre Lemburg wrote: >Exposing the seed value as sys.hashseed would be better and more useful >to applications. That makes the most sense to me. -- ___ Python tracker

[issue13703] Hash collision security issue

2012-02-21 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 21, 2012, at 09:48 AM, Marc-Andre Lemburg wrote: >The flag should probably be removed - simply because >the env var is not a flag, it's a configuration parameter. > >Exposing the seed value as sys.hashseed would be better an

[issue13703] Hash collision security issue

2012-02-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I have to amend my suggestion about sys.flags.hash_randomization. It needs to be non-zero even if $PYTHONHASHSEED is given instead of -R. Many other flags that also have envars work the same way, e.g. -O and $PYTHONOPTIMIZE. So hash_randomization has to

[issue13703] Hash collision security issue

2012-02-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Never mind about sys.hash_seed. See my follow up in python-dev. I consider this issue is closed wrt the 2.6 branch. -- ___ Python tracker <http://bugs.python.org/issue13

[issue10722] IDLE's subprocess didnit make connection ..... Python 2.7

2012-02-23 Thread Larry A. Taylor
Larry A. Taylor added the comment: I have had this happen to me many times with Windows XP, the standard OS here. Using IDLE and Python 2.7. Some of the time the following applies: I have more than one Python Shell open at the same time. The first Python shell/IDLE with debug is running a

[issue14105] Breakpoints in debug lost if line is inserted; IDLE

2012-02-23 Thread Larry A. Taylor
New submission from Larry A. Taylor : My environment is Windows XP, using IDLE and Python 2.7 distribution. Open an IDLE Python shell. Open the file with three lines in it, 1,2 and 3. In IDLE, Set Breakpoint on Line 2. In Shell, set Debug. In IDLE, select run. In the Debug window, click Go

[issue14111] IDLE Debugger should handle interrupts

2012-02-24 Thread Larry A. Taylor
New submission from Larry A. Taylor : The attached script runs a long processing loop. Start it in IDLE. Open the script and run it. Press control-C. Result: message, KeyboardInterrupt with traceback message. In shell window, turn on Debugger. Run the script. Press control-C. Result: Restrat

[issue14120] ARM Ubuntu 3.x buildbot failing test_dbm

2012-02-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I was missing libgdbm-dev on that machine. I just installed it and am running the buildbottests by hand. Let's see if that fixes things. -- ___ Python tracker <http://bugs.python.org/is

[issue14134] "xmlrpc.client.ServerProxy()" -- need for "timeout"-parameter

2012-02-26 Thread Andrej A Antonov
New submission from Andrej A Antonov : good day! "xmlrpc.client.ServerProxy()" -- not has "timeout"-parameter "xmlrpc.client.Transport()" and "xmlrpc.client.SafeTransport()" -- not has "timeout"-parameter too but "http.client.HTT

[issue14134] "xmlrpc.client.ServerProxy()" -- need for "timeout"-parameter

2012-02-28 Thread Andrej A Antonov
Andrej A Antonov added the comment: in this subject -- I think about like this changes (see file "example-of-changes.patch") -- keywords: +patch Added file: http://bugs.python.org/file24675/example-of-changes.patch ___ Python trac

[issue13512] ~/.pypirc created insecurely

2012-03-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I don't think it's worth fixing in Python 2.6, at least not in 2.6.8 which is ready for rc2 today. -- ___ Python tracker <http://bugs.python.o

[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 29, 2012, at 06:25 PM, Carl Meyer wrote: > >Carl Meyer added the comment: > >Alternatively, the conditional definition of urandom in os.py (removed in >http://hg.python.org/cpython/rev/a0f43f4481e0#l7.1) could be reintroduced, >allow

[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 29, 2012, at 09:24 PM, Jason R. Coombs wrote: >My mistake - Georg has not yet weighed in. Perhaps it's best to wait for his >opinion. I'm happy to go along with RM consensus. It should work the same in all

[issue9762] Multiarch related build failures on Ubuntu >= 11.04

2012-04-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- title: PEP 3149 related build failures -> Multiarch related build failures on Ubuntu >= 11.04 ___ Python tracker <http://bugs.python.org/

[issue9762] PEP 3149 related build failures

2012-04-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Apr 17, 2012, at 01:56 PM, Senthil Kumaran wrote: >I stumbled upon this bug when trying to compile Python2.6 from source on >Ubuntu 11.10. If this bug report or the related one issue11715 is a problem >due to Ubuntu changes, I think, it is good

[issue34632] Port importlib_metadata to Python 3.8

2019-05-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks @jaraco! This is now merged into 3.8. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34632] Port importlib_metadata to Python 3.8

2019-05-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 1bbf7b661f0ac8aac12d5531928d9a85c98ec1a9 by Barry Warsaw (Jason R. Coombs) in branch 'master': bpo-34632: Add importlib.metadata (GH-12547) https://github.com/python/cpython/commit/1bbf7b661f0ac8aac12d5531928d9a

[issue37043] Buildbots fail when new files are added

2019-05-25 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <https://bugs.python.org/issue37043> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37044] Build/test artifacts not ignored for framework build

2019-05-25 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <https://bugs.python.org/issue37044> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33725] Python crashes on macOS after fork with no exec

2019-05-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 27, 2019, at 16:28, STINNER Victor wrote: > I don't see a clear consensus to switch to spawn on *all* platforms, so I > wrote PR 13603 which is the minimum fix: switch to spawn by default, but only > on macOS. Fair enough. Let’s fi

[issue33725] Python crashes on macOS after fork with no exec

2019-05-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 28, 2019, at 16:43, Ned Deily wrote: > Thanks, I was just going to add that I would accept a doc change for 3.7. > But the wording should be a little clearer that fork has *always* been unsafe > on macOS, i.e. this is not a new issue for

[issue33725] Python crashes on macOS after fork with no exec

2019-05-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 28, 2019, at 17:21, STINNER Victor wrote: > > > STINNER Victor added the comment: > >> To be clear, what is unsafe on macOS (as of 10.13, but even more so on >> 10.14) is calling into the Objective-C runtime between fork an

[issue33725] Python crashes on macOS after fork with no exec

2019-05-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 28, 2019, at 17:38, Ned Deily wrote: > > Ned Deily added the comment: > >> To be clear, what is unsafe on macOS (as of 10.13, but even more so on >> 10.14) is calling into the Objective-C runtime between fork and exec. &g

[issue33725] Python crashes on macOS after fork with no exec

2019-06-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jun 4, 2019, at 08:11, STINNER Victor wrote: > Ned Deily: >> No, it has *always* been unsafe. What's new as of 10.13/14 is that macOS >> tries much harder at runtime to detect such cases and more predictably cause >> an error r

[issue35805] email package folds msg-id identifiers using RFC2047 encoded words where it must not

2019-06-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 46d88a113142b26c01c95c93846a89318ba87ffc by Barry Warsaw (Abhilash Raj) in branch 'master': bpo-35805: Add parser for Message-ID email header. (GH-13397) https://github.com/python/cpython/commit/46d88a113142b26c01c95c93846a89

[issue30835] AttributeError when parsing multipart email with invalid non-decodable Content-Transfer-Encoding

2019-06-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset aa79707262f893428665ef45b5e879129abca4aa by Barry Warsaw (Abhilash Raj) in branch 'master': bpo-30835: email: Fix AttributeError when parsing invalid CTE (GH-13598) https://github.com/python/cpyt

[issue21315] email._header_value_parser does not recognise in-line encoding changes

2019-06-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 66c4f3f38b867d8329b28c032bb907fd1a2f22d2 by Barry Warsaw (Abhilash Raj) in branch 'master': bpo-21315: Fix parsing of encoded words with missing leading ws. (#13425) https://github.com/python/cpyt

[issue21315] email._header_value_parser does not recognise in-line encoding changes

2019-06-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset dc20fc4311dece19488299a7cd11317ffbe4d3c3 by Barry Warsaw (Miss Islington (bot)) in branch '3.7': bpo-21315: Fix parsing of encoded words with missing leading ws. (GH-13425) (#13846) https://github.com/python/cpyt

[issue36520] Email header folded incorrectly

2019-06-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset f6713e84afc5addcfa8477dbdf2c027787f711c0 by Barry Warsaw (websurfer5) in branch 'master': bpo-36520: Email header folded incorrectly (#13608) https://github.com/python/cpython/commit/f6713e84afc5addcfa8477dbdf2c02

[issue34796] Tkinter scrollbar issues on Mac.

2019-06-16 Thread Christopher A. Chavez
Change by Christopher A. Chavez : -- nosy: +chrstphrchvz ___ Python tracker <https://bugs.python.org/issue34796> ___ ___ Python-bugs-list mailing list Unsub

[issue34796] Tkinter scrollbar issues on Mac.

2019-06-16 Thread Christopher A. Chavez
Christopher A. Chavez added the comment: I have not successfully reproduced the issue here with tkinter 3.7.3 using 8.6.9.1 or recent core-8-6-branch on macOS Mojave. I understand the reporter of this issue believed this was not an upstream Tk issue. However there's a recently o

[issue34796] Tkinter scrollbar issues on Mac.

2019-06-16 Thread Christopher A. Chavez
Christopher A. Chavez added the comment: > Apparently, the current ttk.Scrollbar on the 8.6.8 we currently deliver > should sort of work. I'm not sure if that is the case, though I have not tested with 8.6.8 (I do not currently have access to High Sierra or earlier). Based on a

[issue33972] AttributeError in email.message.iter_attachments()

2019-06-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 02257012f6d3821d816cb6a7e8461a88a05b9a08 by Barry Warsaw (Abhilash Raj) in branch 'master': bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. (GH-14119) https://github.com/python/cpyt

[issue29412] IndexError thrown on email.message.Message.get

2019-06-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 7213df7bbfd85378c6e42e1ac63144d5974bdcf6 by Barry Warsaw (Abhilash Raj) in branch 'master': bpo-29412: Fix indexError when parsing a header value ending unexpectedly (GH-14387) https://github.com/python/cpyt

[issue29412] IndexError thrown on email.message.Message.get

2019-06-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 82654a037211a3466a294d53952926fc87f8403d by Barry Warsaw (Miss Islington (bot)) in branch '3.8': bpo-29412: Fix indexError when parsing a header value ending unexpectedly (GH-14387) (GH-14411) https://github.com/python/cpyt

[issue29412] IndexError thrown on email.message.Message.get

2019-06-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset b950cdb4beabeb093fa3ccc35f53d51cc0193aba by Barry Warsaw (Miss Islington (bot)) in branch '3.7': bpo-29412: Fix indexError when parsing a header value ending unexpectedly (GH-14387) (GH-14412) https://github.com/python/cpyt

[issue37449] Move ensurepip off of pkgutil and to importlib.resources

2019-06-30 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <https://bugs.python.org/issue37449> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37459] importlib docs improperly reference get_resource_loader()

2019-07-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Good catch. Are you going to submit a PR? -- nosy: +barry ___ Python tracker <https://bugs.python.org/issue37459> ___ ___

[issue37459] importlib docs improperly reference get_resource_loader()

2019-07-01 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python ___ Python tracker <https://bugs.python.org/issu

[issue34155] email.utils.parseaddr mistakenly parse an email

2019-07-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I still think the only way to read the documentation for parseaddr('a@b@c') is to return ('', '') - a tuple of empty strings. The documentations says: "Returns a tuple of that information, unless the parse fails, in w

[issue37459] importlib docs improperly reference get_resource_loader()

2019-07-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset b607d992e76e485f20be3bfd6b311525123f936b by Barry Warsaw (aldwinaldwin) in branch 'master': bpo-37459: importlib docs improperly reference get_resource_loader() (#14568) https://github.com/python/cpyt

[issue37459] importlib docs improperly reference get_resource_loader()

2019-07-03 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- resolution: -> fixed stage: patch review -> backport needed status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37459] importlib docs improperly reference get_resource_loader()

2019-07-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 070d3d928d20ccb4790dd077f3794af3c2932e5c by Barry Warsaw (Miss Islington (bot)) in branch '3.8': bpo-37459: importlib docs improperly reference get_resource_loader() (GH-14568) (GH-14580) https://github.com/python/cpyt

[issue37459] importlib docs improperly reference get_resource_loader()

2019-07-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset d7d9c9f7c22113a405f1a340d050edfa2d024dff by Barry Warsaw (Miss Islington (bot)) in branch '3.7': bpo-37459: importlib docs improperly reference get_resource_loader() (GH-14568) (GH-14581) https://github.com/python/cpyt

[issue35224] PEP 572: Assignment Expressions

2019-07-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I might be missing it, but I think the Language Reference still doesn't document assignment expressions. https://docs.python.org/3/reference/lexical_analysis.html#operators There are likely other places in the LR that need to be filled out with PE

[issue36564] Infinite loop with short maximum line lengths in EmailPolicy

2019-07-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset f69d5c61981ea97d251db515c7ff280fcc17182d by Barry Warsaw (Paul Ganssle) in branch 'master': Fix infinite loop in email folding logic (GH-12732) https://github.com/python/cpython/commit/f69d5c61981ea97d251db515c7ff28

[issue37461] email.parser.Parser hang

2019-07-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset a4a994bd3e619cbaff97610a1cee8ffa87c672f5 by Barry Warsaw (Abhilash Raj) in branch 'master': bpo-37461: Fix infinite loop in parsing of specially crafted email headers (GH-14794) https://github.com/python/cpyt

[issue37757] TargetScopeError not raised for comprehension scope conflict

2019-08-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I know the PEP defines TargetScopeError as a subclass of SyntaxError, but it doesn't really explain why a subclass is necessary. I think seeing "TargetScopeError" will be a head scratcher. Why not just SyntaxError without introducing

[issue37741] importlib.metadata docs not showing up in the module index

2019-08-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: There's an importlib.metadata.rst file which describes how to use the API, but that doesn't appear to be linked from either the main library ToC or the importlib documentation itself. I'll see if I can put together a PR to fix this.

[issue37741] importlib.metadata docs not showing up in the module index

2019-08-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @jaraco - Why is the code in `Lib/importlib/metadata/__init__.py` instead of `Lib/importlib/metadata.py`? Is that to make it easier to port between CPython stdlib and the standalone version? -- ___ Python

[issue37741] importlib.metadata docs not showing up in the module index

2019-08-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I’ll do a PR for that too. > On Aug 6, 2019, at 14:07, Brett Cannon wrote: > > > Brett Cannon added the comment: > > If there's no porting benefit then let's move it to a single mo

[issue37741] importlib.metadata docs not showing up in the module index

2019-08-06 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- keywords: +patch pull_requests: +14887 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15153 ___ Python tracker <https://bugs.python.org/issu

[issue37757] TargetScopeError not raised for comprehension scope conflict

2019-08-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: > OTOH This would require a PEP change, formal review, etc. It would be trivial though. There are only two references to TargetScopeError in the PEP. One talks about adding the exception and the other just mentions it almost in passing as a subclass

[issue34632] Port importlib_metadata to Python 3.8

2019-08-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @jaraco will be able to answer that better than me. I actually thought those did return concrete lists. I also thought that the APIs accepted either a module or a package name, but maybe I'm thinking about importlib.resources. Again, @jaraco can cl

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2017-06-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm not sure it would be any better, but what about defining something like a DateFormatDefect and returning that? -- ___ Python tracker <http://bugs.python.org/is

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2017-06-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks for all the great detailed background, and the suggested approaches. I think there are a couple of constraints that would be good to resolve. * parsedate_to_datetime() is documented as "performing the same function as parsedate()" with a

[issue30429] bdb and pdb: Add watchpoint function

2017-06-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue30429> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29755] python3 gettext.lgettext sometimes returns bytes, not string

2017-06-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I agree with everything @serhiy.storchaka said, including the questionable utility of the l* methods in Python 3. ;) Thanks also for updating the documentation. Reading the existing docs over now, it's shocking how imprecise "the translation is r

[issue29593] Improve UnboundLocalError message for deleted names

2017-08-16 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue29593> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31232] Backport the new custom "print >> sys.stderr" error message?

2017-08-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: It's probably fine, since it should be a rare occurrence, but it of course has the potential to break things like tests (doc and otherwise). Unlikely, but it should be pointed out. Still, I'm also fine with backporting it. -- no

[issue31274] Support building against homebrew on macOS

2017-08-24 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: The devguide does touch on how to build Python from source using homebrew installed libraries on macOS, although I found it to be 1) a bit incomplete; 2) not so easy to discover. It might make sense to modify configure to autodetect homebrew, or to have a

[issue31280] Namespace packages in directories added to path aren't importable if packages from the same namespace are in site-packages

2017-08-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue31280> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30761] pdb: Add step / next count arguments

2017-08-26 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue30761> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31337] Small opportunity for NULL dereference in compile.c

2017-09-04 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: There is a very minor opportunity for NULL dereference in compile.c. compiler_subdict() does not check the return value of get_const_value(), which could be NULL. This was found by Kirit Sankar Gupta. This is not a security issue in practice, since

[issue31337] Small opportunity for NULL dereference in compile.c

2017-09-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: As it's barely worth fixing, it's not worth backporting. -- ___ Python tracker <http://bugs.python.org/issue31337> ___ ___

[issue31337] Small opportunity for NULL dereference in compile.c

2017-09-04 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- pull_requests: +3325 ___ Python tracker <http://bugs.python.org/issue31337> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31337] Small opportunity for NULL dereference in compile.c

2017-09-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'll preface that it's not a major issue that I feel *has* to be fixed, but given that assert *can* be compiled away, does it make sense to use abort() instead? E.g. 1 file changed, 2 insertions(+), 2 deletions(-) Python/compile.c | 4 ++--

[issue1198569] string.Template not flexible enough to subclass (regexes)

2017-09-04 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- versions: +Python 3.7 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue1198569> ___ ___ Python-bugs-list mailin

[issue1198569] string.Template not flexible enough to subclass (regexes)

2017-09-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Sorry for the long delay. It looks like Ian's original link is no longer valid. Do you have an updated link to a possible doctest or example? -- ___ Python tracker <http://bugs.python.org/issu

[issue31337] Small opportunity for NULL dereference in compile.c

2017-09-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 4, 2017, at 10:18, Serhiy Storchaka wrote: > Serhiy Storchaka added the comment: > > Could you please also look at other asserts? I have counted 48 occurrences of > assert(0), 11 assert(0 && "message") and 2

[issue1198569] string.Template not flexible enough to subclass (regexes)

2017-09-04 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- pull_requests: +3326 ___ Python tracker <http://bugs.python.org/issue1198569> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31338] Use abort() for code we never expect to hit

2017-09-04 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: Over in bpo-31337 the observation was made that we often use the following pattern in situations we never expect to hit: assert(0); return NULL; but this isn't strictly optimal. First, the asserts can be compiled away. Second, it's possibl

[issue31337] Small opportunity for NULL dereference in compile.c

2017-09-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: See bpo-31338 for adopting the abort() idiom. -- ___ Python tracker <http://bugs.python.org/issue31337> ___ ___ Python-bug

[issue1198569] string.Template not flexible enough to subclass (regexes)

2017-09-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Never mind; I crafted a decent test for the PR. -- ___ Python tracker <http://bugs.python.org/issue1198569> ___ ___ Python-bug

[issue1198569] string.Template not flexible enough to subclass (regexes)

2017-09-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset ba4279683f8eb8f59be10d12547ea89480614388 by Barry Warsaw in branch 'master': bpo-1198569: Allow string.Template braced pattern to be different (#3288) https://github.com/python/cpython/commit/ba4279683f8eb8f59be10d12547ea8

[issue1198569] string.Template not flexible enough to subclass (regexes)

2017-09-04 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue1198569] string.Template not flexible enough to subclass (regexes)

2017-09-04 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- pull_requests: +3334 ___ Python tracker <http://bugs.python.org/issue1198569> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1198569] string.Template not flexible enough to subclass (regexes)

2017-09-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 973b901212bd84d279904bab6654709f4ec32470 by Barry Warsaw in branch 'master': What's New for bpo-1198569 (#3303) https://github.com/python/cpython/commit/973b901212bd84d279904bab6

<    6   7   8   9   10   11   12   13   14   15   >