[issue39883] Use BSD0 license for code in docs

2020-06-26 Thread bbayles


Change by bbayles :


--
nosy: +bbayles

___
Python tracker 
<https://bugs.python.org/issue39883>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38200] Adding itertools.pairwise to the standard library?

2019-11-30 Thread bbayles


Change by bbayles :


--
nosy: +bbayles

___
Python tracker 
<https://bugs.python.org/issue38200>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38938] Possible performance improvement for heaqq.merge()

2019-11-30 Thread bbayles


Change by bbayles :


--
nosy: +bbayles

___
Python tracker 
<https://bugs.python.org/issue38938>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32146] multiprocessing freeze_support needed outside win32

2019-01-12 Thread bbayles


bbayles  added the comment:

I'm currently having difficulty getting either cx_Freeze or PyInstaller to work 
with Python 3.8, which is hindering testing. I also no longer have easy access 
to a Windows environment.

If I change the implementation to use -m instead of -c would you be able to 
test?

--

___
Python tracker 
<https://bugs.python.org/issue32146>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32146] multiprocessing freeze_support needed outside win32

2019-01-10 Thread bbayles


bbayles  added the comment:

Thanks for the note. I've merged in master and fixed a conflict in the test 
file.

In an earlier rev I tried to do the argument parsing without ast.literal_eval, 
but found it awkward to support all the ways [1] can manifest. You might have a 
better idea?


[1] 
https://github.com/python/cpython/blob/3.7/Lib/multiprocessing/forkserver.py#L106-L107

--

___
Python tracker 
<https://bugs.python.org/issue32146>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28806] Improve the netrc library

2018-10-29 Thread bbayles


Change by bbayles :


--
pull_requests: +9533

___
Python tracker 
<https://bugs.python.org/issue28806>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34202] 3.6 ZipFile fails with Path

2018-07-23 Thread bbayles


Change by bbayles :


--
nosy: +bbayles

___
Python tracker 
<https://bugs.python.org/issue34202>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34182] Lib/test/test_pydoc.py failed when ran as a script

2018-07-21 Thread bbayles


Change by bbayles :


--
nosy: +bbayles

___
Python tracker 
<https://bugs.python.org/issue34182>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34182] Lib/test/test_pydoc.py failed when ran as a script

2018-07-21 Thread bbayles


Change by bbayles :


--
keywords: +patch
pull_requests: +7917
stage:  -> patch review

___
Python tracker 
<https://bugs.python.org/issue34182>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34179] test_statistics fails after test_time

2018-07-21 Thread bbayles


Change by bbayles :


--
keywords: +patch
pull_requests: +7907
stage:  -> patch review

___
Python tracker 
<https://bugs.python.org/issue34179>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34179] test_statistics fails after test_time

2018-07-21 Thread bbayles


Change by bbayles :


--
nosy: +bbayles

___
Python tracker 
<https://bugs.python.org/issue34179>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34132] Obscure netrc parser "bug"

2018-07-20 Thread bbayles


bbayles  added the comment:

I realized that the Python 2 solution was adapt-able after all; I've 
re-submitted as GitHub PR 8360.

https://github.com/python/cpython/pull/8360

--

___
Python tracker 
<https://bugs.python.org/issue34132>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34132] Obscure netrc parser "bug"

2018-07-20 Thread bbayles


Change by bbayles :


--
pull_requests: +7895

___
Python tracker 
<https://bugs.python.org/issue34132>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34132] Obscure netrc parser "bug"

2018-07-19 Thread bbayles


bbayles  added the comment:

I took a shot at this, but closed my PR when I found that it introduced a 
different regression.

After playing with it for a bit, I think that this commit [1] is a bit 
problematic because it uses lexer.instream.readline(), which can make the line 
number in lexer.lineno incorrect.

I may take another look if I have time, but someone else is free to tackle this.

[1] 
https://github.com/python/cpython/commit/1df0f214a9fdb4dde7506576b144cf6a7fd01b65#diff-e6896f6d68ca3fd8094a933533f8b2ed

--

___
Python tracker 
<https://bugs.python.org/issue34132>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34132] Obscure netrc parser "bug"

2018-07-17 Thread bbayles


Change by bbayles :


--
keywords: +patch
pull_requests: +7856
stage: needs patch -> patch review

___
Python tracker 
<https://bugs.python.org/issue34132>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34132] Obscure netrc parser "bug"

2018-07-16 Thread bbayles


Change by bbayles :


--
nosy: +bbayles

___
Python tracker 
<https://bugs.python.org/issue34132>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33939] Raise OverflowError in __length_hint__ for consistently infinite iterators

2018-06-22 Thread bbayles


Change by bbayles :


--
nosy: +bbayles

___
Python tracker 
<https://bugs.python.org/issue33939>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22454] Adding the opposite function of shlex.split()

2018-06-10 Thread bbayles


Change by bbayles :


--
nosy: +bbayles

___
Python tracker 
<https://bugs.python.org/issue22454>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22454] Adding the opposite function of shlex.split()

2018-06-10 Thread bbayles


Change by bbayles :


--
keywords: +patch
pull_requests: +7228
stage:  -> patch review

___
Python tracker 
<https://bugs.python.org/issue22454>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33491] mistype of method's name

2018-05-14 Thread bbayles

bbayles <bbay...@gmail.com> added the comment:

I think you'll find that your link points to the exception class `SkipTest`, 
which does start with a capital level.

This is distinct from the `skipTest` method of `unittest.TestCase` objects, 
which starts with a lowercase letter.

The documentation looks right to me. See [1] for a demonstration of the 
difference.

[1] https://gist.github.com/bbayles/5158750b48a5accfceaa53a898b8b902

--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33491>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33038] GzipFile doesn't always ignore None as filename

2018-05-02 Thread bbayles

bbayles <bbay...@gmail.com> added the comment:

Is there someone who might be in a position to review the PR? It's pretty short.

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33038>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32362] multiprocessing.connection.Connection misdocumented as multiprocessing.Connection

2018-04-29 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
pull_requests: +6343

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32362>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32362] multiprocessing.connection.Connection misdocumented as multiprocessing.Connection

2018-03-24 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
keywords: +patch
pull_requests: +5964
stage: needs patch -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32362>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32362] multiprocessing.connection.Connection misdocumented as multiprocessing.Connection

2018-03-24 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32362>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33069] Maintainer information discarded when writing PKG-INFO

2018-03-13 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33069>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30528] ipaddress.IPv{4,6}Network.reverse_pointer is broken

2018-03-13 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue30528>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33038] GzipFile doesn't always ignore None as filename

2018-03-12 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
pull_requests: +5857
stage:  -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33038>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32996] Improve What's New in 3.7

2018-03-11 Thread bbayles

bbayles <bbay...@gmail.com> added the comment:

Two things I'm familiar with that should probably be mentioned in the Library 
updates:

* bpo-32102: New argument capture_output for subprocess.run
* bpo-21417: Added support for setting the compression level for 
zipfile.ZipFile.

--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32996>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33038] GzipFile doesn't always ignore None as filename

2018-03-10 Thread bbayles

bbayles <bbay...@gmail.com> added the comment:

da, would you mind if I add a test and a news entry to your patch and submit it 
as a Github pull request?

--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33038>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2018-03-10 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33034>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31528] Let ConfigParser parse systemd units

2018-03-05 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31528>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28788] ConfigParser should be able to write config to a given filename, not only into file object

2018-03-05 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue28788>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32933] mock_open does not support iteration around text files.

2018-03-04 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32933>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32974] Add bitwise operations and other missing comparison methods to Python's IP address module

2018-02-28 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32974>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32959] zipimport fails when the ZIP archive contains more than 65535 files

2018-02-27 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32959>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21417] Compression level for zipfile

2018-02-26 Thread bbayles

bbayles <bbay...@gmail.com> added the comment:

I made a comment about that in the pull request that went unchallenged ([1]), 
but I'm happy to change it.

[1] https://github.com/python/cpython/pull/5385#pullrequestreview-92055354

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue21417>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19894] zipfile ignores deflate level settings in zipinfo object

2018-02-25 Thread bbayles

bbayles <bbay...@gmail.com> added the comment:

This was fixed in issue 21417, in Github PR 5385:

https://github.com/python/cpython/pull/5385

--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue19894>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17286] Make subprocess handling text output with universal_newlines more obious

2018-02-25 Thread bbayles

bbayles <bbay...@gmail.com> added the comment:

This is fixed in 3.7 with the `text` parameter. See GitHub PR 4049: 
https://github.com/python/cpython/pull/4049

--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue17286>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32017] profile.Profile() has no method enable()

2018-02-25 Thread bbayles

bbayles <bbay...@gmail.com> added the comment:

I've made a pull request that clarifies things in the docs.

As csabella notes, there are some more differences that could be pointed out. 
The 'subcalls' and 'builtins' arguments could be explained as well.

Nonetheless, I think the PR does fix some definitely incorrect aspects of the 
existing documentation and is at least an improvement.

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32017>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32017] profile.Profile() has no method enable()

2018-02-25 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
keywords: +patch
pull_requests: +5659
stage: needs patch -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32017>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32017] profile.Profile() has no method enable()

2018-02-25 Thread bbayles

bbayles <bbay...@gmail.com> added the comment:

I'm afraid that profile.Profile and cProfile.Profile behave pretty differently, 
and there's not a good way to bring the methods from the C version to the 
Python version.

The example at [1] shows a cProfile.Profile object being instantiated and 
enabled. At this point the profiler is tracing execution - until the disable() 
method is called, any activity is recorded.

profile.Profile doesn't work this way. Creating a profile.Profile object 
doesn't cause activity to be recorded. It doesn't do anything until you call 
one of its run* methods.

This is because the C version uses PyEval_SetProfile ([2]) to take advantage of 
CPython's "low-level support for attaching profiling and execution tracing 
facilities" ([3]). I don't think we can do that from the Python version.

There is already a precedent for showing differences between cProfile.Profile 
and profile.Profile in the existing docs - see [4].


[1] https://docs.python.org/3/library/profile.html#profile.Profile
[2] 
https://github.com/python/cpython/blob/6f0eb93183519024cb360162bdd81b9faec97ba6/Modules/_lsprof.c#L693
[3] https://docs.python.org/3/c-api/init.html#profiling-and-tracing
[4] https://docs.python.org/3/library/profile.html#using-a-custom-timer

------
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32017>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32146] multiprocessing freeze_support needed outside win32

2018-02-24 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
pull_requests: +5626

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32146>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32728] Extend zipfile's compression level support to LZMA

2018-02-04 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
keywords: +patch
pull_requests: +5361
stage:  -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32728>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32695] tarfile.open() raises TypeError when using compresslevel parameter with LZMA

2018-02-03 Thread bbayles

bbayles <bbay...@gmail.com> added the comment:

In working on a patch I convinced myself that a better change might just be to 
document that you can use the *preset* keyword for LZMA compression instead of 
*compresslevel*.

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32695>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32728] Extend zipfile's compression level support to LZMA

2018-01-30 Thread bbayles

New submission from bbayles <bbay...@gmail.com>:

In [1] (issue 21417), support for setting an archive (or its files) compression 
level was added to the zipfile module.

That currently works for the ZIP_DEFLATED and ZIP_BZIP2 compression methods, 
but not for ZIP_LZMA. This is because zipfile includes its own implementation 
of LZMACompressor that hard-codes the default preset's parameters (see also 
[2]).

It should be possible to extend compression level settings to ZIP_LZMA by 
making zipfile.LZMACompressor more flexible, i.e. able to accept an LZMA 
preset. I think this would involve porting the function that translates presets 
to options (lzma_lzma_preset, see [3]) and passing in those options to 
lzma.LZMACompressor .

[1] https://bugs.python.org/issue21417
[2] https://github.com/python/cpython/pull/5385
[3] 
https://git.tukaani.org/?p=xz.git;a=blob;f=src/liblzma/lzma/lzma_encoder_presets.c;hb=HEAD

--
components: Library (Lib)
messages: 311283
nosy: bbayles
priority: normal
severity: normal
status: open
title: Extend zipfile's compression level support  to LZMA
type: enhancement
versions: Python 3.8

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32728>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32146] multiprocessing freeze_support needed outside win32

2018-01-30 Thread bbayles

bbayles <bbay...@gmail.com> added the comment:

I presume it's too late to get my pull request in for 3.7, but perhaps we could 
get a note in the documentation for this before release?

That could be as simple as: 

.. warning::

The ``'spawn'`` and ``'forkserver'`` start methods cannot currently be used 
with "frozen" executables (i.e., binaries produced by packages like 
**PyInstaller** and **cx_Freeze**) on Unix. The ``'fork'`` start method does 
work.

I will make that into a PR if it seems like a good option.

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32146>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32695] tarfile.open() raises TypeError when using compresslevel parameter with LZMA

2018-01-28 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
keywords: +patch
pull_requests: +5232
stage:  -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32695>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32695] tarfile.open() raises TypeError when using compresslevel parameter with LZMA

2018-01-28 Thread bbayles

New submission from bbayles <bbay...@gmail.com>:

tarfile.open() allows for specifying both a compression type and a compression 
level. However, the compresslevel parameter doesn't work when using the xz 
modes.

import tarfile
good_archive = tarfile.open('/tmp/dummy.tar.gz', 'w:gz', compresslevel=9)
bad_archive = tarfile.open('/tmp/dummy.tar.gz', 'w:xz', compresslevel=9)

This gives an error in the tarfile.TarFile constructor:

TypeError: __init__() got an unexpected keyword argument 'compresslevel'

This appears to be due to tarfile.xzopen() specifying a preset keyword instead 
of a compresslevel keyword. This matches the LZMAFile compressor, but it means 
that it doesn't get passed in and is then carried along in the kwargs - see [1].

Changing to lzma.LZMAFile(fileobj or name, mode, preset=compresslevel) seems to 
fix the issue. Assuming that's the right fix, I'll submit a PR.

[1] 
https://github.com/python/cpython/blob/374c6e178a7599aae46c857b17c6c8bc19dfe4c2/Lib/tarfile.py#L1684-L1699

--
components: Library (Lib)
messages: 310954
nosy: bbayles
priority: normal
severity: normal
status: open
title: tarfile.open() raises TypeError when using compresslevel parameter with 
LZMA
versions: Python 3.6, Python 3.7

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32695>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21417] Compression level for zipfile

2018-01-28 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
keywords: +patch
pull_requests: +5222
stage: needs patch -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue21417>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21417] Compression level for zipfile

2018-01-28 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue21417>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32304] Upload failed (400): Digests do not match on .tar.gz ending with x0d binary code

2018-01-25 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
pull_requests: +5176

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32304>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32304] Upload failed (400): Digests do not match on .tar.gz ending with x0d binary code

2018-01-25 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
pull_requests: +5175

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32304>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32502] uuid1() fails if only 64-bit interface addresses are available

2018-01-23 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
pull_requests: +5136

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32502>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32102] Add "capture_output=True" option to subprocess.run

2018-01-22 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32102>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32502] uuid1() fails if only 64-bit interface addresses are available

2018-01-22 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32502>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32304] Upload failed (400): Digests do not match on .tar.gz ending with x0d binary code

2018-01-22 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32304>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32304] Upload failed (400): Digests do not match on .tar.gz ending with x0d binary code

2018-01-21 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
keywords: +patch
pull_requests: +5110
stage: needs patch -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32304>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32502] uuid1() fails if only 64-bit interface addresses are available

2018-01-20 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
keywords: +patch
pull_requests: +5101
stage: needs patch -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32502>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32146] multiprocessing freeze_support needed outside win32

2018-01-15 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
keywords: +patch
pull_requests: +5049
stage: needs patch -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32146>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32146] multiprocessing freeze_support needed outside win32

2018-01-12 Thread bbayles

bbayles <bbay...@gmail.com> added the comment:

I ran into this issue, and found references to it on StackOverflow [1] and 
GitHub [2] as well. I found that the problem applies to both the 'spawn' and 
'forkserver' start methods on Linux.

I made an attempt to implement dancol's fix above. (1) and (3) are 
straightforward, but if there's an elegant way to do the "tickle" in (2) I 
wasn't able to figure it out?

My branch [3] has something that seems to work with the 'spawn' method and 
cx_Freeze. Perhaps someone could look at that and tell me if I'm on a 
reasonable track? If so, I can attempt to extend the method to cover 
'forkserver' as well.

[1] https://stackoverflow.com/q/47325297/353839

[2] https://github.com/anthony-tuininga/cx_Freeze/issues/264

[3] 
https://github.com/python/cpython/compare/master...bbayles:bpo-32146-freeze_support

------
nosy: +bbayles

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32146>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2018-01-11 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
pull_requests: +5016

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32248>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32102] Add "capture_output=True" option to subprocess.run

2018-01-11 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
keywords: +patch
pull_requests: +5015
stage: needs patch -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32102>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2018-01-10 Thread bbayles

Change by bbayles <bbay...@gmail.com>:


--
pull_requests: +5006

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32248>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com