[issue41277] documentation: os.setxattr() errno EEXIST and ENODATA

2020-07-10 Thread Pablo Dumas
New submission from Pablo Dumas : Shouldn't os.setxattr() errno EEXIST be when "XATTR_CREATE was specified, and the attribute exists already" and errno ENODATA be when "XATTR_REPLACE was specified, and the attribute does not exist."? In the current os module documentation, it's the other way

[issue41276] Min / Max returns different values depending on parameter order

2020-07-10 Thread Calvin Davis
Calvin Davis added the comment: Thank you for the clarification, sorry for the report! You're awesome! -- ___ Python tracker ___

[issue41276] Min / Max returns different values depending on parameter order

2020-07-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: In your first example, `min([(-5, 2), (0, 2)])` the min() function compares the two tuples and finds that the first one is lexicographically smaller: py> (-5, 2) < (0, 2) True so (-5, 2) is considered the minimum. In the second example, using the

[issue41276] Min / Max returns different values depending on parameter order

2020-07-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is correct behaviour. What makes you think otherwise? For future bug reports, please don't post screen shots of text, copy and paste the text into the body of your bug report. Posting screenshots makes it difficult for us to copy and run your code,

[issue41276] Min / Max returns different values depending on parameter order

2020-07-10 Thread Calvin Davis
New submission from Calvin Davis : See attached image The behavior of min() (and probably max and other related functions) changes depending on the order of the parameters it sorts. In the image, I sorted two tuples, coordinate points, with the same Y value and different X values. When the

[issue32528] Change base class for futures.CancelledError

2020-07-10 Thread Guido van Rossum
Guido van Rossum added the comment: Can you send a PR against what’s new 3.8? On Fri, Jul 10, 2020 at 20:14 JustAnotherArchivist wrote: > > JustAnotherArchivist added the comment: > > As another datapoint, this also broke some of my code on 3.8 because I was > using

[issue32528] Change base class for futures.CancelledError

2020-07-10 Thread JustAnotherArchivist
JustAnotherArchivist added the comment: As another datapoint, this also broke some of my code on 3.8 because I was using `concurrent.futures.CancelledError` rather than `asyncio.CancelledError` to handle cancelled futures. And I'm certainly not the only one to have done this given that it's

[issue41202] Allow to provide custom exception handler to asyncio.run()

2020-07-10 Thread Kyle Stanley
Kyle Stanley added the comment: > Should I set status for this issue for closed with resolution rejected ? I'll proceed with closing the issue. > Should I delete branch on my forked git repo ? > Can I delete my forked git repo ? Might as well delete the branch, but the forked repo might be

[issue41265] lzma/bz2 module: inefficient buffer growth algorithm

2020-07-10 Thread Ma Lin
Ma Lin added the comment: Maybe the zlib module can also use the same algorithm. zlib module's initial buffer size is 16KB [1], each time the size doubles [2]. [1] zlib module's initial buffer size: https://github.com/python/cpython/blob/v3.9.0b4/Modules/zlibmodule.c#L32 [2] zlib module

[issue41228] Fix the typo in the description of calendar.monthcalendar(year, month)

2020-07-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41236] "about" button in MacOS caused an error

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Messages like this are an occasional nuisance when shutting down a tkinter app started in a terminal/console window. I have gone to a lot of effort to suppress than in IDLE GUI tests so that other developers do not suffer the noise or puzzlement of

[issue41220] add optional make_key argument to lru_cache

2020-07-10 Thread Felipe Rodrigues
Felipe Rodrigues added the comment: Correction: (...) on the _caller_ to solve the hashing* issue (...) -- ___ Python tracker ___

[issue41220] add optional make_key argument to lru_cache

2020-07-10 Thread Felipe Rodrigues
Felipe Rodrigues added the comment: Hello all, I love discussions about caching! While I do see the point of Itayazolay's proposal, I think that it should be on the _caller_ to solve the caching issue, and not on the _callee_ to provide a way to make it happen. That is, I think that if one

[issue41275] Clarify whether Futures can be awaited multiple times

2020-07-10 Thread JustAnotherArchivist
New submission from JustAnotherArchivist : While the situation is clear regarding coroutine objects (#25887), as far as I can see, the documentation doesn't specify whether asyncio.Futures can be awaited multiple times. The code has always (at least since the integration into CPython)

[issue41234] Remove symbol.sym_name

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that import symbol works in 3.9 and raises in 3.10. So yes, doc and its reference should have gone too. Good catch. -- nosy: +terry.reedy ___ Python tracker

[issue41273] asyncio: proactor read transport: use recv_into instead of recv

2020-07-10 Thread Tony
Change by Tony : -- keywords: +patch pull_requests: +20588 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21439 ___ Python tracker ___

[issue41228] Fix the typo in the description of calendar.monthcalendar(year, month)

2020-07-10 Thread miss-islington
miss-islington added the comment: New changeset c77f71f9819022fa3adeb2f710e564a392ff24c6 by Miss Islington (bot) in branch '3.8': bpo-41228: Fix /a/are/ in monthcalendar() descripton (GH-21372) https://github.com/python/cpython/commit/c77f71f9819022fa3adeb2f710e564a392ff24c6 --

[issue41228] Fix the typo in the description of calendar.monthcalendar(year, month)

2020-07-10 Thread miss-islington
miss-islington added the comment: New changeset a77b1f6b5bb3b76cb913e62ad68f5fd803d515bd by Miss Islington (bot) in branch '3.9': bpo-41228: Fix /a/are/ in monthcalendar() descripton (GH-21372) https://github.com/python/cpython/commit/a77b1f6b5bb3b76cb913e62ad68f5fd803d515bd --

[issue41233] Missing links to errnos on Built-in Exceptions page

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Only 3.8+ for bug fixes. -- nosy: +terry.reedy versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue41232] Python `functools.wraps` doesn't deal with defaults correctly

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is this actually a bugfix? -- nosy: +terry.reedy versions: +Python 3.10 -Python 3.8 ___ Python tracker ___

[issue41229] Asynchronous generator memory leak

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Only 3.8+ for bug fixes. -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list

[issue41231] Type annotations lost when using wraps by default

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Only 3.8+ for bug fixes. -- nosy: +terry.reedy versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue41228] Fix the typo in the description of calendar.monthcalendar(year, month)

2020-07-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +20587 pull_request: https://github.com/python/cpython/pull/21441 ___ Python tracker ___

[issue41228] Fix the typo in the description of calendar.monthcalendar(year, month)

2020-07-10 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +20586 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21440 ___ Python tracker

[issue41229] Asynchronous generator memory leak

2020-07-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41228] Fix the typo in the description of calendar.monthcalendar(year, month)

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 344dce312a0cf86d5a5772d54843cc179acaf6e3 by Nima Dini in branch 'master': bpo-41228: Fix /a/are/ in monthcalendar() descripton (GH-21372) https://github.com/python/cpython/commit/344dce312a0cf86d5a5772d54843cc179acaf6e3 -- nosy:

[issue41212] Emoji Unicode failing in standard release of Python 3.8.3 / tkinter 8.6.8

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python internally uses an encoding system that represents all unicode chars efficiently, including O(1) indexing. It is not utf-8, which does not do O(1) indexing. There is already an issue about upgrading (separately) the Python Windows and macOS

[issue41004] [CVE-2020-14422] Hash collisions in IPv4Interface and IPv6Interface

2020-07-10 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41274] Better way to random.seed()?

2020-07-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is definitely cool though. It might make a really sweet example in the demos that come with Python, or in the tutorial, showcasing both the awesomeness of HelioViewer and how to use Python to connect to web APIs.

[issue41259] Find adverbs is not correct on the documentation

2020-07-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think it's fine as-is. The real purpose of the example is show basic patterns in writing regexes. Pig-latin examples or searching for words ending in -ly make for nice beginner examples. I like the OP's modification because it teaches a general

[issue41274] Better way to random.seed()?

2020-07-10 Thread Juan Jimenez
Juan Jimenez added the comment: Thanks Rémi. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41274] Better way to random.seed()?

2020-07-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Marking as closed for these reasons listed by Rémi Lapeyre. Also note that the default is to use a system source of entropy. Time is only used as a fallback if such as source is unavailable. -- resolution: -> not a bug stage: -> resolved

[issue41274] Better way to random.seed()?

2020-07-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: > is it possible to write a new module that overrides the seed() > method in the random library in its initialization code and > replaces it with this method of seeding the generator? Yes. The simplest way is override seed() in a subclass. You can put

[issue41274] Better way to random.seed()?

2020-07-10 Thread Juan Jimenez
Juan Jimenez added the comment: I'm not a Python guru, but I was wondering, is it possible to write a new module that overrides the seed() method in the random library in its initialization code and replaces it with this method of seeding the generator? --

[issue41274] Better way to random.seed()?

2020-07-10 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi, this is very specific and I don't think a way to seed the random generator using a third uncontrolled party will get merged in Python. You should probably try to package this as a third party library. -- nosy: +remi.lapeyre

[issue41274] Better way to random.seed()?

2020-07-10 Thread Juan Jimenez
New submission from Juan Jimenez : I have invented a new way to seed the random number generator with about as random a source of seeds as can be found: hashes generated from high cadence, high resolution images of the surface of the Sun. These are captured by the Solar Dynamics

[issue41270] NamedTemporaryFile is not its own iterator.

2020-07-10 Thread Tony
Change by Tony : -- nosy: +tontinton nosy_count: 3.0 -> 4.0 pull_requests: +20585 pull_request: https://github.com/python/cpython/pull/21439 ___ Python tracker ___

[issue41272] New clause in FOR and WHILE instead of ELSE

2020-07-10 Thread Eric V. Smith
Eric V. Smith added the comment: You should bring this up on the python-ideas mailing list so that it gets more visibility. -- nosy: +eric.smith ___ Python tracker ___

[issue41256] activate script created by venv is not smart enough

2020-07-10 Thread Eric V. Smith
Eric V. Smith added the comment: Changing versions to those that are currently receiving support. -- nosy: +eric.smith versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue41253] unittest -h shows a flag -s but it doesn't work

2020-07-10 Thread Eric V. Smith
Eric V. Smith added the comment: This appears to just be a misunderstanding: -s is a flag to "unittest discover", not to "unittest" itself. I think this is clear from the help text, so I'm closing this. If I'm incorrect, let me know. -- nosy: +eric.smith resolution: -> not a bug

[issue41273] asyncio: proactor read transport: use recv_into instead of recv

2020-07-10 Thread Tony
New submission from Tony : Using recv_into instead of recv in the transport _loop_reading will speed up the process. >From what I checked it's about 120% performance increase. This is only because there should not be a new buffer allocated each time we call recv, it's really wasteful.

[issue41261] 3.9-dev SEGV in object_recursive_isinstance in ast.literal_eval

2020-07-10 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: Nevermind, `ast`/`_ast` is not pre-loaded by default, so it's in fact getting GC'ed after the first `run_path` is executed. -- ___ Python tracker

[issue41261] 3.9-dev SEGV in object_recursive_isinstance in ast.literal_eval

2020-07-10 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: > If sys.modules['_ast'] is cleared and then _ast is imported again, > _PyState_AddModule() is called to store the new _ast module instance which > calls astmodule_clear() on the old module instance. I'm confused about this. In the repro below the

[issue41261] 3.9-dev SEGV in object_recursive_isinstance in ast.literal_eval

2020-07-10 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: Yes, indeed, please, because I don't know what I would do for 3.9 if this is not fixed. :D -- ___ Python tracker ___

[issue41272] New clause in FOR and WHILE instead of ELSE

2020-07-10 Thread catrudis
New submission from catrudis : ELSE-clause in FOR and WHILE has unclear syntax. I suggest new clause instead: if COND: ... [elif COND: ...] [else: ...] This IF-clause like must be immediately after FOR- or WHILE-cycle (only comment allowed between). It looks like a regular IF, but COND

[issue36346] Prepare for removing the legacy Unicode C API

2020-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4c8f09d7cef8c7aa07d5b5232b5b64f63819a743 by Serhiy Storchaka in branch 'master': bpo-36346: Make using the legacy Unicode C API optional (GH-21437) https://github.com/python/cpython/commit/4c8f09d7cef8c7aa07d5b5232b5b64f63819a743 --

[issue41271] Add support for io_uring to cpython

2020-07-10 Thread Cooper Lees
New submission from Cooper Lees : Would adding support for io_uring in Linux to stadlib IO and/or asyncio make sense? More info on io_uring: - https://kernel.dk/io_uring.pdf - https://lwn.net/Articles/810414/ -- components: IO messages: 373477 nosy: cooperlees priority: normal

[issue17490] Improve ast.literal_eval test suite coverage

2020-07-10 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41261] 3.9-dev SEGV in object_recursive_isinstance in ast.literal_eval

2020-07-10 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41261] 3.9-dev SEGV in object_recursive_isinstance in ast.literal_eval

2020-07-10 Thread STINNER Victor
STINNER Victor added the comment: It would be nice to fix this 3.9 regression before 3.9 final. -- priority: normal -> release blocker ___ Python tracker ___

[issue20171] Derby #2: Convert 115 sites to Argument Clinic in Modules/_cursesmodule.c

2020-07-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2020-07-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41270] NamedTemporaryFile is not its own iterator.

2020-07-10 Thread Peter
Change by Peter : -- nosy: +maubp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39959] Bug on multiprocessing.shared_memory

2020-07-10 Thread David Parks
David Parks added the comment: Having a flag seems like a good solution to me. I've also encountered this issue and posted on stack overflow about it here: https://stackoverflow.com/questions/62748654/python-3-8-shared-memory-resource-tracker-producing-unexpected-warnings-at-appli

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2020-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9650fe0197779b4dfded94be111e39c5810f098f by Zackery Spytz in branch 'master': bpo-20179: Convert the _overlapped module to the Argument Clinic (GH-14275) https://github.com/python/cpython/commit/9650fe0197779b4dfded94be111e39c5810f098f

[issue39017] Infinite loop in the tarfile module

2020-07-10 Thread Ethan Furman
Ethan Furman added the comment: Absolutely! But first, you'll need to sign the Contributor License Agreement: https://www.python.org/psf/contrib/contrib-form/ Thank you for your help! -- ___ Python tracker

[issue41145] EmailMessage.as_string is altering the message state and actually fix bugs

2020-07-10 Thread R. David Murray
R. David Murray added the comment: The as_strings docs say: "Flattening the message may trigger changes to the Message if defaults need to be filled in to complete the transformation to a string (for example, MIME boundaries may be generated or modified)." So, while this is indeed an API

[issue30044] shutil.copystat should (allow to) copy ownership, and other attributes

2020-07-10 Thread Eryk Sun
Eryk Sun added the comment: In Windows, I wouldn't expect shutil.copy2 to preserve the owner and ACLs. They change whenever a file gets copied via CopyFileExW [1]. Keeping them exactly as in the source file generally requires a privileged backup and restore operation, such as via BackupRead

[issue41255] Argparse.parse_args exits on unrecognized option with exit_on_error=False

2020-07-10 Thread paul j3
paul j3 added the comment: The docs could change "catch errors manually" to "catch ArgumentError manually" But while 'argparse.ArgumentError' is imported, it is not documented. We have to study the code to learn when it is raised. Its class def: def __init__(self, argument,

[issue41227] minor typo in asyncio transport protocol

2020-07-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Faris for the report and @ys19991 for the patch. Closing this as fixed. -- nosy: +xtreak resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36346] Prepare for removing the legacy Unicode C API

2020-07-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +20584 pull_request: https://github.com/python/cpython/pull/21437 ___ Python tracker ___

[issue41227] minor typo in asyncio transport protocol

2020-07-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +20583 pull_request: https://github.com/python/cpython/pull/21436 ___ Python tracker ___

[issue41227] minor typo in asyncio transport protocol

2020-07-10 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +20582 pull_request: https://github.com/python/cpython/pull/21435 ___ Python tracker

[issue41268] 3.9-dev regression? TypeError: exec_module() missing 1 required positional argument: 'module'

2020-07-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39017] Infinite loop in the tarfile module

2020-07-10 Thread Rishi
Rishi added the comment: Hi ! I would like to start contributing to CPython. Can I start working on this issue ? -- ___ Python tracker ___

[issue41270] NamedTemporaryFile is not its own iterator.

2020-07-10 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +20581 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21434 ___ Python tracker

[issue41270] NamedTemporaryFile is not its own iterator.

2020-07-10 Thread Seth Sims
New submission from Seth Sims : _TemporaryFileWrapper does not proxy __next__ to the underlying file object. There was a discussion on the mailing list in 2016 mentioning this, however it seems it was dropped without a consensus. Biopython encountered this issue (referenced below) and we

[issue41269] Wrong subtraction calculations

2020-07-10 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report. This isn't a Python bug, but a common issue when working with floating-point numbers. I recommend taking a look at this section of the tutorial for more information: https://docs.python.org/3.8/tutorial/floatingpoint.html --

[issue41269] Wrong subtraction calculations

2020-07-10 Thread Ivan
New submission from Ivan : I've started to learn python and tried command: print(-2.989 + 2) it gives me result of -0.9889 same error can be observed with numbers from 4 and below like: print(-2.989 + 4) 1.0111 print(-2.989 + 3) 0.01112 print(-2.989 + 1)

[issue41268] 3.9-dev regression? TypeError: exec_module() missing 1 required positional argument: 'module'

2020-07-10 Thread Hugo van Kemenade
New submission from Hugo van Kemenade : For the past 3 months we've been testing Pillow on Travis CI using 3.9-dev, which Travis builds nightly from the 3.9 branch. Two days ago the 3.9-dev build passed, but it failed yesterday with the same Pillow commit, and all subsequent builds. * Last

[issue41202] Allow to provide custom exception handler to asyncio.run()

2020-07-10 Thread tomaszdrozdz
tomaszdrozdz added the comment: I just wanted to call def main(): asyncio.run(...) But I can go with Your aproach. Thanks for discusion. Should I set status for this issue for closed with resolution rejected ? Should I delete branch on my forked git repo ? Can I delete

[issue39017] Infinite loop in the tarfile module

2020-07-10 Thread Rishi
Change by Rishi : -- nosy: +rishi93 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41267] Attribute error: Pandas module doesn't have 'Plotting' attribute

2020-07-10 Thread Eric V. Smith
Eric V. Smith added the comment: This bug tracker is for reporting bugs in python, not for getting help using python. I suggest asking for help on the python-list mailing list: https://mail.python.org/mailman/listinfo/python-list Or, since this sounds like you're having problems with

[issue41267] Attribute error: Pandas module doesn't have 'Plotting' attribute

2020-07-10 Thread owais
New submission from owais : Hello... I am deploying a django application over the AWS Cloud Server EC2 windows instance having AMD64 architecture. I have installed python 3.7.6 over the server and install all modules (numpy pandas matplotlib django etc) using pip. I have set the sqlite

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-07-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1 by Victor Stinner in branch 'master': bpo-39573: Use the Py_TYPE() macro (GH-21433) https://github.com/python/cpython/commit/8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1 --

[issue41261] 3.9-dev SEGV in object_recursive_isinstance in ast.literal_eval

2020-07-10 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +dino.viehland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41175] Static analysis issues reported by GCC 10

2020-07-10 Thread miss-islington
miss-islington added the comment: New changeset 51b36ed96d29c9440fbca18fb0c9e3087f763da5 by Miss Islington (bot) in branch '3.9': bpo-41175: Guard against a NULL pointer dereference within bytearrayobject (GH-21240)

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-07-10 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20580 pull_request: https://github.com/python/cpython/pull/21433 ___ Python tracker ___

[issue41175] Static analysis issues reported by GCC 10

2020-07-10 Thread miss-islington
miss-islington added the comment: New changeset 33672c019179be279ae979f709c974593fbbbe84 by Miss Islington (bot) in branch '3.8': bpo-41175: Guard against a NULL pointer dereference within bytearrayobject (GH-21240)

[issue41175] Static analysis issues reported by GCC 10

2020-07-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +20579 pull_request: https://github.com/python/cpython/pull/21432 ___ Python tracker ___

[issue41175] Static analysis issues reported by GCC 10

2020-07-10 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +20578 pull_request: https://github.com/python/cpython/pull/21431 ___ Python tracker

[issue41261] 3.9-dev SEGV in object_recursive_isinstance in ast.literal_eval

2020-07-10 Thread STINNER Victor
STINNER Victor added the comment: This bug is a follow-up of bpo-41194: "Python 3.9.0b3 crash on compile() in PyAST_Check() when the _ast module is loaded more than once". -- ___ Python tracker

[issue41261] 3.9-dev SEGV in object_recursive_isinstance in ast.literal_eval

2020-07-10 Thread STINNER Victor
STINNER Victor added the comment: Ok, I can reproduce the crash on the 3.9 branch using: ./python repro.py. The first problem is that astmodule_clear() doesn't reset the initiallized member: add "state->initialized = 0;". The _ast module is special. Not only it has regular module function

[issue38893] broken container/selinux integration

2020-07-10 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +20577 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21430 ___ Python tracker

[issue41266] Wrong hint when class methods and builtins named same

2020-07-10 Thread wyz23x2
New submission from wyz23x2 : There is a function hex(number, /), and float objects have a method hex(). When something like 1.3.hex( is typed, the yellow box's first line contains hex(number, /). But the method is actually hex(), no arguments. It confuses users. And when 1.3.list( is typed,

[issue41265] lzma/bz2 module: inefficient buffer growth algorithm

2020-07-10 Thread Ma Lin
New submission from Ma Lin : lzma/bz2 modules are using the same buffer growth algorithm: [1][2] newsize = size + (size >> 3) + 6; lzma/bz2 modules' default output buffer is 8192 bytes [3][4], so the growth step is below. For many cases, maybe the buffer is resized too many times.

[issue41075] Make support of navigating through prev. commands in IDLE more conspicuous

2020-07-10 Thread wyz23x2
Change by wyz23x2 : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41145] EmailMessage.as_string is altering the message state and actually fix bugs

2020-07-10 Thread Eric V. Smith
Change by Eric V. Smith : -- components: +email nosy: +barry, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35350] importing "ctypes" immediately causes a segmentation fault

2020-07-10 Thread Christian Heimes
Christian Heimes added the comment: Python 2.7 has reached its end of lifetime. Please re-open the bug if you can reproduce the issue on Python 3.8 or newer. -- nosy: +christian.heimes resolution: -> out of date stage: -> resolved status: open -> closed

[issue26328] shutil._copyxattr() function shouldn't fail if setting security.selinux xattr fails

2020-07-10 Thread Christian Heimes
Christian Heimes added the comment: I'm marking this as duplicate of #38893. The other bug has more information. -- nosy: +christian.heimes resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> broken container/selinux integration

[issue38893] broken container/selinux integration

2020-07-10 Thread Christian Heimes
Change by Christian Heimes : -- assignee: -> christian.heimes versions: +Python 3.10 -Python 3.7 ___ Python tracker ___ ___

[issue38893] broken container/selinux integration

2020-07-10 Thread Christian Heimes
Christian Heimes added the comment: The issue came up at $WORK now. Core utils like copy command ignore "security.selinux" xattr unless the user explicitly asks to preserve the security context, see

[issue36346] Prepare for removing the legacy Unicode C API

2020-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d878349bac6c154fbfeffe7d4b38e2ddb833f135 by Serhiy Storchaka in branch 'master': bpo-36346: Do not use legacy Unicode C API in ctypes. (#21429) https://github.com/python/cpython/commit/d878349bac6c154fbfeffe7d4b38e2ddb833f135 --

[issue40982] copytree example in shutil

2020-07-10 Thread Wansoo Kim
Wansoo Kim added the comment: Can I solve this issue? -- nosy: +ys19991 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41264] Do not use the name of the built-in function as a variable.

2020-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We usually do not accept pure cosmetic changes. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue20257] test_socket fails if using tipc module and SELinux enabled

2020-07-10 Thread Christian Heimes
Christian Heimes added the comment: The bug report is over six years ago and I haven't seen any TIPC related issues for a while. The test suite has additional guards to skip TIPC tests when the Kernel module is not loaded. -- nosy: +christian.heimes resolution: -> out of date

[issue24163] shutil.copystat fails when attribute security.selinux is present

2020-07-10 Thread Christian Heimes
Christian Heimes added the comment: I'm marking this as duplicate of #38893 because the newer bug contains more information. -- nosy: +christian.heimes resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> broken container/selinux integration

[issue30044] shutil.copystat should (allow to) copy ownership, and other attributes

2020-07-10 Thread Christian Heimes
Christian Heimes added the comment: POSIX ACLs and SELinux context information are stored in extended file attributes. The information is copied from source to destination. POSIX ACLs are stored in xattr "system.posix_acl_access" and SELinux context in xattr "security.selinux". --

[issue36346] Prepare for removing the legacy Unicode C API

2020-07-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +20576 pull_request: https://github.com/python/cpython/pull/21429 ___ Python tracker ___

[issue41263] Convert code.__new__ to Argument Clinic

2020-07-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

  1   2   >