[issue44028] Request for locals().update() to work, it is

2021-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: When quoting, please include the source, preferably a direct link. In Python 1 and 2, there were two function local namespace *implementations* -- array index by number or dictionary indexed by name. The implementation, and hence the lookup mode, was fixed

[issue37903] IDLE Shell sidebar.

2021-05-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Rather than request a specific solution, I'll state what new problems need to be solved. For teaching purposes in live demos, it is essential to have a clear visual distinction between the inputs and outputs: >>> beatles = ['john', 'paul', 'ringo',

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-05-07 Thread guangli dong
guangli dong added the comment: i am intersting in "stdlib security", do you has any recommended info about this topic? what i know is "https://python-security.readthedocs.io; and "cve list". -- ___ Python tracker

[issue16866] libainstall doesn't create $(BINDIR) directory

2021-05-07 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +24632 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25980 ___ Python tracker ___

[issue16866] libainstall doesn't create $(BINDIR) directory

2021-05-07 Thread Senthil Kumaran
Senthil Kumaran added the comment: Looks like the BINDIR dependency was added here - https://github.com/python/cpython/commit/49fd7fa4431da299196d74087df4a04f99f9c46f#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767cR833 but we didn't add the directory creation dependency

[issue44023] "tarfile" library will lead to "write any content to any file on the host".

2021-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: TL;DR - A tar file being extracted doesn't check to see if it is overwriting an existing file, which could be a symlink to elsewhere leading to elsewhere's contents being clobbered assuming the elsewhere file exists. doing an unlink before opening the

[issue44026] IDLE: print "Did you mean?" for AttributeError and NameError

2021-05-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44026] IDLE: print "Did you mean?" for AttributeError and NameError

2021-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Merged to 3.11.0a0 first, bot forget to post it. Dennis, thank you for the analysis and then the suggestion as to how to access the not directly accessible. It would likely have been awhile before I stumbled from 'cannot' to 'can with workaround'. Feel

[issue44026] IDLE: print "Did you mean?" for AttributeError and NameError

2021-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5a5237c6d08ed97458b0903d6836624168df0b51 by Miss Islington (bot) in branch '3.10': bpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912) https://github.com/python/cpython/commit/5a5237c6d08ed97458b0903d6836624168df0b51

[issue44026] IDLE: print "Did you mean?" for AttributeError and NameError

2021-05-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +24631 pull_request: https://github.com/python/cpython/pull/25975 ___ Python tracker ___

[issue42725] PEP 563: Should the behavior change for yield/yield from's

2021-05-07 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +24630 pull_request: https://github.com/python/cpython/pull/25974 ___ Python tracker ___

[issue44070] __file__ is now fully qualified in 3.8 and 3.9

2021-05-07 Thread Steve Dower
Steve Dower added the comment: Yeah, you're probably right. That effect was not noticed when implementing it. We should update the fix in 3.9 and 3.8 to limit it to .pyd's on Windows to protect against the security risks, but leave other import types loaded with relative paths. I think

[issue44026] IDLE: print "Did you mean?" for AttributeError and NameError

2021-05-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24629 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25973 ___ Python tracker

[issue44070] Regression with relative paths in sys.path in python 3.8.10

2021-05-07 Thread Andy Fiddaman
Andy Fiddaman added the comment: I've just found this while investigating a regression with my project following update to 3.9.5. It took me some time to discover that the new test failures were due to __file__ now being fully qualified when it wasn't before. As far as I can tell so far it

[issue44045] canonicalize "upper-case" -> "uppercase"; "lower-case" -> "lowercase"

2021-05-07 Thread Eric V. Smith
Eric V. Smith added the comment: That's exactly the kind of manual check I had in mind. After all "anal retentive doesn't have a hyphen unless it's used as a compound adjective". I think we should go with "lowercase" when a noun, and "lower-case" as an adjective. --

[issue44070] Regression with relative paths in sys.path in python 3.8.10

2021-05-07 Thread James Saryerwinnie
James Saryerwinnie added the comment: > What's the actual scenario that this broke? I only noticed this because a project that I work on (https://github.com/aws/chalice/) started failing CI for seemingly unrelated changes. A specific test run is here:

[issue44045] canonicalize "upper-case" -> "uppercase"; "lower-case" -> "lowercase"

2021-05-07 Thread Jürgen Gmach
Jürgen Gmach added the comment: I did some more research. It looks like US English tends to use `lowercase`, while British English tends to `lower case`, and as an alternative to `lowercase` you can also use `lower-case` when using it as an adjective. See also

[issue44058] 'master' refs in 3.10 version of .azure-pipelines

2021-05-07 Thread Skip Montanaro
Skip Montanaro added the comment: Perhaps I should point out that this doesn't matter to me. I just noticed the old name. I can't claim anything is broken that I need. -- ___ Python tracker

[issue44058] 'master' refs in 3.10 version of .azure-pipelines

2021-05-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Should these references to "master" be changed to "main"? We could, but won't change anything IIUC as the string that triggers the build on main is the one placed in the files on the "main" branch. The important thing in the 3.10 branch is that it

[issue44071] Syntax error in Python3 documentation

2021-05-07 Thread Sergey Maslyakov
Sergey Maslyakov added the comment: Thank you, Dennis! I was wrong. Closing the ticket. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue44071] Syntax error in Python3 documentation

2021-05-07 Thread Dennis Sweeney
Dennis Sweeney added the comment: I think the docs are correct. For example: >>> import subprocess >>> subprocess.run("ls", check=True, stdout=subprocess.PIPE).stdout >>> subprocess.check_output("ls") -- nosy: +Dennis Sweeney ___ Python tracker

[issue44071] Syntax error in Python3 documentation

2021-05-07 Thread Sergey Maslyakov
New submission from Sergey Maslyakov : https://docs.python.org/3/library/subprocess.html#subprocess.check_output The code sample seems to have a misplaced closing round bracket. It should go after "stdout" ``` run(..., check=True, stdout=PIPE).stdout ``` -- assignee: docs@python

[issue44063] compiler: does not revert back the end_* locations

2021-05-07 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue44063] compiler: does not revert back the end_* locations

2021-05-07 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: New changeset 13de28f17af02563cb8c6d0f6da3c178a4241ff3 by Miss Islington (bot) in branch '3.10': bpo-44063: set the missing end locations on the compiler (GH-25956) (#25972) https://github.com/python/cpython/commit/13de28f17af02563cb8c6d0f6da3c178a4241ff3

[issue44070] Regression with relative paths in sys.path in python 3.8.10

2021-05-07 Thread Steve Dower
Steve Dower added the comment: It's almost certainly due to that change, though I'd be interested to see a more realistic repro. For the repro shown, you really ought to be clearing the importer cache as well when you remove a search path (as implied by chdir with a relative path on

[issue44023] "tarfile" library will lead to "write any content to any file on the host".

2021-05-07 Thread Éric Araujo
Éric Araujo added the comment: Can you contact the security team (info at https://www.python.org/dev/security/ ) directly? In general, tarfile (and other Python file functions!) can create files anywhere on the filesystem, provided that the process user has the right permissions. But it

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: You need to create your type objects dynamically when using the Limited API. See PEP 384 for how to do so: https://www.python.org/dev/peps/pep-0384/#type-objects Quoting from the PEP: "The structure of type objects is not available to applications;

[issue44045] canonicalize "upper-case" -> "uppercase"; "lower-case" -> "lowercase"

2021-05-07 Thread Éric Araujo
Éric Araujo added the comment: I don’t think that there is a problem to be fixed. Separated «lower case» could be unfriendly, but the hyphen is there in the adjective forms so it seems that changing these instances would add churn for no benefit. -- nosy: +eric.araujo

[issue43992] Unable to get external dependencies for CPython on Ubuntu Linux 20.04.1

2021-05-07 Thread Éric Araujo
Éric Araujo added the comment: Some results from a quick web search: - https://wiki.debian.org/BuildingTutorial - https://unix.stackexchange.com/questions/158395/apt-get-build-dep-is-unable-to-find-a-source-package - https://www.linuxfordevices.com/tutorials/debian/build-packages-from-source

[issue43992] Unable to get external dependencies for CPython on Ubuntu Linux 20.04.1

2021-05-07 Thread Éric Araujo
Éric Araujo added the comment: apt build-dep (or aptitude build-dep) is a command used to get build-time dependencies for the system package, which are not always the same as the upstream in-development version of Python. As the error message told you, you need deb-src lines in your

[issue44058] 'master' refs in 3.10 version of .azure-pipelines

2021-05-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> pablogsal nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35663] webbrowser.py firefox bug [python3, windows 10]

2021-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: Others are reporting this works. if that is not true on the most recent python 3.9 release, please reopen with more detailed reproduction instructions. -- nosy: +gregory.p.smith resolution: -> works for me stage: -> needs patch status: open ->

[issue44070] Regression with relative paths in sys.path in python 3.8.10

2021-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: without inspecting the code: I wonder if this is related to the same change as https://bugs.python.org/issue44061 ? -- nosy: +gregory.p.smith ___ Python tracker

[issue44070] Regression with relative paths in sys.path in python 3.8.10

2021-05-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +3.10regression, 3.8regression, 3.9regression priority: normal -> high ___ Python tracker ___

[issue44070] Regression with relative paths in sys.path in python 3.8.10

2021-05-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44070] Regression with relative paths in sys.path in python 3.8.10

2021-05-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44070] Regression with relative paths in sys.path in python 3.8.10

2021-05-07 Thread James Saryerwinnie
New submission from James Saryerwinnie : There was a change in behavior in Python 3.8.10 when using relative paths in sys.path. It appears that the paths are now converted to absolute paths that are cached and can cause import errors in some cases. Repro: $ cat repro.sh #!/bin/bash python

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-07 Thread Senthil Kumaran
Senthil Kumaran added the comment: Ned wrote: > Senthil, I am not sure which previous message you are referring to but. I meant, the messages from other developers who raised that change broke certain test cases. Ned, but I got little concerned, if we planned to revert the change. > the

[issue40297] test_socket.CANTest is broken at HEAD on master

2021-05-07 Thread Ned Deily
Ned Deily added the comment: New changeset 1beae7e523d2db4e3ce383b2032095ef956f21c4 by Zachary Ware in branch '3.7': [3.7] bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-25960) https://github.com/python/cpython/commit/1beae7e523d2db4e3ce383b2032095ef956f21c4 -- nosy:

[issue43124] [security] smtplib multiple CRLF injection

2021-05-07 Thread Ned Deily
Ned Deily added the comment: There is no sign of anyone currently working on it, so please feel free to dig in! -- ___ Python tracker ___

[issue43124] [security] smtplib multiple CRLF injection

2021-05-07 Thread Miguel Brito
Miguel Brito added the comment: If there's no one working on it I'd be happy to prepare a fix. -- nosy: +miguendes ___ Python tracker ___

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: There is no less intrusive fix as far as I can see. I believe we're down to either stick with what we've done, or do nothing. It doesn't have to be the same choice in all release branches, being more conservative with changes the older the stable branch

[issue43124] [security] smtplib multiple CRLF injection

2021-05-07 Thread Ned Deily
Ned Deily added the comment: Still in "deferred blocker" status awaiting a PR from someone -- ___ Python tracker ___ ___

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-07 Thread Ned Deily
Ned Deily added the comment: > My reading of the previous message was, even if we raised exception > or gave as a parameter, it wont be any better for certain downstream > users, as we let the security problem open, and have it only as opt-in fix. Senthil, I am not sure which previous message

[issue44030] Markup with_traceback code example

2021-05-07 Thread Irit Katriel
Change by Irit Katriel : -- versions: -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44065] "configure: error: internal configure error for the platform triplet" on macOS with Clang supporting --print-multiarch:

2021-05-07 Thread Ned Deily
Ned Deily added the comment: We don't recommend nor do we test building Python for macOS with anything but the Apple-supplied compilers in either Xcode or the Command Line Tools and this hasn't been a problem with the clang versions in them so far but, if someone wants to provide a PR to

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-07 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hello All, I think, the current striping of ASCII newline and tab is a _reasonable_ solution given it was a security issue. It also follows the guidelines of "WHATWG" (Specifically Point 3) > 2. If input contains any ASCII tab or newline, validation

[issue43568] Drop support for Mac OS X < 10.3 module linking

2021-05-07 Thread Ned Deily
Ned Deily added the comment: > Would it be OK to backport just the distutils change to 3.9? While this seems like a minor feature behavior change rather than a bug fix, it probably wouldn't cause any problems to make such a change. I don't recall this issue coming up before as a problem

[issue21381] Python 3.4+ interpreter built on/with OS X 10.7 deployment target segfaults on 10.8+

2021-05-07 Thread Ned Deily
Ned Deily added the comment: A number of changes have been made since the initial report in 3.4 that might affect this area including as of 3.9.1 finally supporting weaklinking, that is, building on a newer version of macOS to run on older systems. Plus we no actively support systems older

[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`

2021-05-07 Thread Irit Katriel
Irit Katriel added the comment: I think pdb is a different story because it's an interactive application rather than a library. pdb can decide that it prints an error to the screen and returns to the interactive prompt, if that is appropriate. The functions of the traceback module don't

[issue43656] StackSummary.format fails if str(value) fails

2021-05-07 Thread Irit Katriel
Irit Katriel added the comment: I think it's the other way around - the documentation usually states what exceptions a function can raise as part of its published API, not which exceptions it should not raise. -- ___ Python tracker

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-07 Thread Ned Deily
Ned Deily added the comment: > Unfortunately you already have to deal with the existence of 3.9.5 having the > new behavior but not having a control. I have been holding off on 3.7.x and 3.6.x security releases pending resolutions of this and other open security issues. But based on the

[issue43568] Drop support for Mac OS X < 10.3 module linking

2021-05-07 Thread Joshua Root
Joshua Root added the comment: Thanks Ned. Would it be OK to backport just the distutils change to 3.9? -- ___ Python tracker ___

[issue16866] libainstall doesn't create $(BINDIR) directory

2021-05-07 Thread Senthil Kumaran
Senthil Kumaran added the comment: issue25696 was related, and it fixed bininstall issue. -- ___ Python tracker ___ ___

[issue44063] compiler: does not revert back the end_* locations

2021-05-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +24628 pull_request: https://github.com/python/cpython/pull/25972 ___ Python tracker

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: httplib.py is a Python 2 concept. Python 2 is end of life. bugs.python.org no longer tracks issues with its code. I don't doubt that Python 2.7 has bugs. As a matter of policy, we don't care - https://www.python.org/doc/sunset-python-2/. Python 3.6

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-05-07 Thread guangli dong
guangli dong added the comment: @Gregory P. Smith yes, i agree that there are many other ways to make "urllib" or "httplib" such http client hang, because "timeout" is not global read timeout, this "timeout" has effects when every "read socket" operation. why you think it will not result

[issue35590] logging.handlers.SysLogHandler with STREAM connects in constructor without timeout

2021-05-07 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +vinay.sajip versions: +Python 3.11 -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue16866] libainstall doesn't create $(BINDIR) directory

2021-05-07 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is still a problem behaviour as of May 2021. ./configure --prefix=/home/senthil/foobar make libainstall failed with /usr/bin/install: cannot create regular file '/home/senthil/foobar/bin/python3.11-config': No such file or directory make: ***

[issue41730] Show deprecation warnings for tkinter.tix

2021-05-07 Thread miss-islington
miss-islington added the comment: New changeset ec6a1ea1ee67a5e7c8ee5f5b1541bc1c6e17a373 by Miss Islington (bot) in branch '3.10': bpo-41730: Show deprecation warnings for tkinter.tix (GH-22186) https://github.com/python/cpython/commit/ec6a1ea1ee67a5e7c8ee5f5b1541bc1c6e17a373 --

[issue41730] Show deprecation warnings for tkinter.tix

2021-05-07 Thread wyz23x2
Change by wyz23x2 : -- versions: -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41730] Show deprecation warnings for tkinter.tix

2021-05-07 Thread wyz23x2
wyz23x2 added the comment: Merged! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41730] Show deprecation warnings for tkinter.tix

2021-05-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24627 pull_request: https://github.com/python/cpython/pull/25971 ___ Python tracker

[issue44069] pathlib.Path.glob's generator is not a real generator

2021-05-07 Thread Elijah Rippeth
New submission from Elijah Rippeth : I have a directory with hundreds of thousands of text files. I wanted to explore one file, so I wrote the following code expecting it to happen basically instantaneously because of how generators work: ```python from pathlib import Path base_dir =

[issue44068] Possible divide by zero problems

2021-05-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It cannot be 0 if PyUnicode_IS_READY() returns true. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue44068] Possible divide by zero problems

2021-05-07 Thread yiyuaner
New submission from yiyuaner : In the file Objects/unicodeobject.c, we have the following code: static PyObject* resize_compact(PyObject *unicode, Py_ssize_t length) { ... char_size = PyUnicode_KIND(unicode); ... if (length > ((PY_SSIZE_T_MAX - struct_size) / char_size - 1)) {

[issue25872] multithreading traceback KeyError when modifying file

2021-05-07 Thread So Ukiyama
So Ukiyama added the comment: I apologize if this is rude, as I am not familiar with this method. I created a following PR to add unit tests about this issue. https://github.com/python/cpython/pull/25913 I would be happy to receive feedback on the PR. -- components: +Interpreter

[issue30164] Testing FTP support in urllib shouldn't use Debian FTP server

2021-05-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +24626 pull_request: https://github.com/python/cpython/pull/25970 ___ Python tracker ___

[issue30164] Testing FTP support in urllib shouldn't use Debian FTP server

2021-05-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +24625 pull_request: https://github.com/python/cpython/pull/25969 ___ Python tracker

[issue9725] urllib.request.FancyURLopener won't connect to pages requiring username and password

2021-05-07 Thread Senthil Kumaran
Senthil Kumaran added the comment: urllib.request.FancyURLopener has been deprecated since 3.3 https://docs.python.org/3/library/urllib.request.html#urllib.request.FancyURLopener This bug wont be fixed. The other higher level methods (urlopen) could used for basic authentication with

[issue44056] Incorrect line number for syntax error.

2021-05-07 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> needs patch status: open -> closed ___ Python tracker ___

[issue40297] test_socket.CANTest is broken at HEAD on master

2021-05-07 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8a12f46dd8c780de84d78e6dd8350230e52e0c46 by Miss Islington (bot) in branch '3.8': bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548) (#25957) https://github.com/python/cpython/commit/8a12f46dd8c780de84d78e6dd8350230e52e0c46 --

[issue30164] Testing FTP support in urllib shouldn't use Debian FTP server

2021-05-07 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +24624 pull_request: https://github.com/python/cpython/pull/25968 ___ Python tracker ___

[issue30164] Testing FTP support in urllib shouldn't use Debian FTP server

2021-05-07 Thread Senthil Kumaran
Senthil Kumaran added the comment: This has been fixed here - https://github.com/python/cpython/pull/2755/files Python docs demonstrate the usage of ftplib using ftp.debian.org. I think, it is perfectly reasonable and welcome thing to do so. https://docs.python.org/3/library/ftplib.html

[issue12441] _GLOBAL_DEFAULT_TIMEOUT remains as an object() in HTTPConnection and the connection hangs

2021-05-07 Thread Senthil Kumaran
Senthil Kumaran added the comment: The _GLOBAL_DEFAULT_TIMEOUT usage is an established pattern with socket module. https://github.com/python/cpython/blob/main/Lib/socket.py#L805 This is not a bug and we don't have a good reproducible step mentioned in the report. -- resolution: ->

[issue44047] [sqlite3] remove unused argument from _pysqlite_seterror()

2021-05-07 Thread Berker Peksag
Berker Peksag added the comment: Thank you! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: This is a Visual Studio solution. Will I attach the whole zip containing the projects and files and the the solution file? -- ___ Python tracker

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-05-07 Thread Douwe Hoekstra
Change by Douwe Hoekstra : -- keywords: +patch pull_requests: +24623 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25967 ___ Python tracker

[issue43806] asyncio.StreamReader hangs when reading from pipe and other process exits unexpectedly

2021-05-07 Thread Marko
Marko added the comment: @jaswdr Hm, this is was somewhat unexpected for me, since when reading directly from pipe, and EOF is sent. Timeout was somewhat awkward in my case, since I don't know when other process will start sending, and how long it would take. On the other hand, I use

[issue44067] Zipfile lib overwrites the extra field during closing when the archive size is more then ZIP64_LIMIT

2021-05-07 Thread AMRIT RAI
AMRIT RAI added the comment: The issue stems from the following code inside the def _write_end_record(self): method ,where the extra fields are trimmed . if zinfo.header_offset > ZIP64_LIMIT: extra.append(zinfo.header_offset) header_offset = 0x else: header_offset =

[issue31904] Python should support VxWorks RTOS

2021-05-07 Thread Peixing Xin
Change by Peixing Xin : -- pull_requests: +24622 pull_request: https://github.com/python/cpython/pull/25965 ___ Python tracker ___

[issue44067] Zipfile lib overwrites the extra field during closing when the archive size is more then ZIP64_LIMIT

2021-05-07 Thread AMRIT RAI
New submission from AMRIT RAI : The current zipFile implementation supports the allowZip64,which can make large zip files. There is a bug in the current implementation of close method ,where the extra field is overwritten . To reproduce it : 1.Create a directory with more then 4 GB of

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Shreyan Avigyan
Change by Shreyan Avigyan : Added file: https://bugs.python.org/file50024/Extension2.h ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Shreyan Avigyan
Change by Shreyan Avigyan : Added file: https://bugs.python.org/file50023/Extension.h ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I've two header files, one main.c file and it's on my local machine. My platform is Windows, Python is 3.9.5 32bit and IDE is Visual Studio 2019. I'm attaching those files. -- Added file: https://bugs.python.org/file50022/main.c

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Christian Heimes
Christian Heimes added the comment: Is your code on Github, Gitlab, or BitBucket? Otherwise please attach Extension.h. What's your platform and exact Python version? -- ___ Python tracker

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Thanks for the quick response but I'm using PyTypeObject only. But in stable ABI it uses the name _typeobject to represent it. And I have a lot of files in my module therefore it's difficult to attach them. --

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-07 Thread Miguel Brito
Change by Miguel Brito : -- keywords: +patch pull_requests: +24621 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25964 ___ Python tracker

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Christian Heimes
Christian Heimes added the comment: Looks like you are doing something wrong. For example you seem to use internal, private bits like "_typeobject" instead of public APIs like PyTypeObject. These kind of questions are more appropriate for mailing list or https://discuss.python.org/ . Please

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : I usually program in Python C API without defining Py_LIMITED_API. I thought about using the stable ABI today. To my surprise, there are lot of conflicts occurring if Py_LIMITED_API is defined. The whole list of errors are:-

[issue44065] "configure: error: internal configure error for the platform triplet" on macOS with Clang supporting --print-multiarch:

2021-05-07 Thread Christian Heimes
Change by Christian Heimes : -- components: +macOS nosy: +lukasz.langa, ned.deily, pablogsal, ronaldoussoren versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.8 ___ Python tracker

[issue43949] binascii.Error raised in smtplib when initial_response_ok=False

2021-05-07 Thread junpengruan
junpengruan <632077...@qq.com> added the comment: Hi Pandu, thanks for your reply! I have read the RFC4954 you mentioned and agree that the server shouldn't react like this. Then I notice that this RFC's publication date is 2007 and the server I use is published in 2003, that's maybe the

[issue44065] "configure: error: internal configure error for the platform triplet" on macOS with Clang supporting --print-multiarch:

2021-05-07 Thread Stephan Bergmann
Stephan Bergmann added the comment: "from the sources it looks like it would still be an issue with the latest cpython main branch", and if I check out current main branch and run `CC='/path-to-local-llvm-trunk/bin/clang -isysroot

[issue10513] sqlite3.InterfaceError after commit

2021-05-07 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I cannot reproduce this with Python 3.8, 3.9, nor 3.10 (macOS builds from python.org). Suggesting to close this. -- nosy: +erlendaasland status: open -> pending ___ Python tracker

[issue44029] PEP 624: Remove Py_UNICODE APIs

2021-05-07 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44065] "configure: error: internal configure error for the platform triplet" on macOS with Clang supporting --print-multiarch:

2021-05-07 Thread Christian Heimes
Christian Heimes added the comment: Python 3.8 is in security fix-only mode and does no longer updates for non-security fixes. Are Python 3.9 and 3.10 beta affected, too? -- nosy: +christian.heimes ___ Python tracker

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-07 Thread Rikard Nordgren
Rikard Nordgren added the comment: Thanks all for looking into this! > Though I'm sure the OP would > have noticed if their call was never returning any modules, so > presumably it must have worked somehow. Yes, that snippet returns modules with the previous versions of python 3.8 and

[issue44065] "configure: error: internal configure error for the platform triplet" on macOS with Clang supporting --print-multiarch:

2021-05-07 Thread Stephan Bergmann
New submission from Stephan Bergmann : I experienced this with Python 3.8 when building it as part of LibreOffice (see "external/python3: Clang 13 trunk implements --print-multiarch now", quoting from its