[issue35121] Cookie domain check returns incorrect results

2018-11-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Good catch Windson! I overlooked the tests. There is also a comment that it's liberal in the test function. Since the code was added in 2006 I don't if it's ok broken to fix this or not. I will let the reviewers take a call then. There is also

[issue35131] Cannot access to customized paths within .pth file

2018-11-02 Thread Windson Yang
Windson Yang added the comment: Hello, Valentin Zhao, do you have time to fix it? Or I can create a PR -- nosy: +Windson Yang ___ Python tracker ___

[issue35147] _Py_NO_RETURN is always empty on GCC

2018-11-02 Thread STINNER Victor
STINNER Victor added the comment: Thanks Alexey Izbyshev! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35121] Cookie domain check returns incorrect results

2018-11-02 Thread Windson Yang
Windson Yang added the comment: I wonder https://github.com/python/cpython/blob/master/Lib/test/test_http_cookiejar.py#L420 ("http://foo.bar.com/;, "com", True), ("http://foo.com/;, "com", True), are expected behavior? -- nosy: +Windson Yang

[issue35147] _Py_NO_RETURN is always empty on GCC

2018-11-02 Thread miss-islington
miss-islington added the comment: New changeset a9122d183b1fbc4484d72aec69fc0979c7fd91f2 by Miss Islington (bot) (Alexey Izbyshev) in branch '3.7': [3.7] bpo-35147: Fix _Py_NO_RETURN for GCC (GH-10300) (GH-10301)

[issue35151] Python 2 xml.etree.ElementTree documentation tutorial uses undocumented arguments

2018-11-02 Thread Joshua Honeycutt
New submission from Joshua Honeycutt : In python 2 documentation 19.7.1.6 (https://docs.python.org/2/library/xml.etree.elementtree.html#parsing-xml-with-namespaces) a second argument (ns) is passed to find and findall. However 19.7.3.2

[issue35131] Cannot access to customized paths within .pth file

2018-11-02 Thread Steve Dower
Steve Dower added the comment: Can you save your file in gbk encoding? That will be an immediate fix. I don't know that we can/should change the encoding we read without checking with everyone who writes out .pth files. (+Jason as a start here, but I suspect there are more tools that write

[issue35131] Cannot access to customized paths within .pth file

2018-11-02 Thread Steve Dower
Steve Dower added the comment: I'll mark this easy as well, since adding that handler is straightforward. Unless someone knows a reason we shouldn't do that either. -- keywords: +easy versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2018-11-02 Thread Chris Jerdonek
Chris Jerdonek added the comment: This seems like a bug in wsgiref.BaseHandler to me. BaseHandler.run() calls handle_error() if an error occurs inside finish_response(): https://github.com/python/cpython/blob/e2ed5adcb5db2d70cfa72da1ba8446f7aa9e05cd/Lib/wsgiref/handlers.py#L141 However,

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2018-11-02 Thread Chris Jerdonek
Change by Chris Jerdonek : -- stage: -> test needed title: wsgiref: Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine -> wsgiref BaseHandler / SimpleHandler can raise additional errors when

[issue34547] Wsgiref server does not handle closed connections gracefully

2018-11-02 Thread Chris Jerdonek
Chris Jerdonek added the comment: Closing this as a duplicate. Please carry over to issue 27682 any PR's that are still current. -- nosy: +chris.jerdonek resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> wsgiref: Windows Error 10053,

[issue35105] Document that CPython accepts "invalid" identifiers

2018-11-02 Thread STINNER Victor
STINNER Victor added the comment: > I don't know the proper markup for these. It's ".. impl-detail::". See for example: https://docs.python.org/dev/library/codecs.html#standard-encodings -- ___ Python tracker

[issue32666] Valgrind documentation seems to need updating

2018-11-02 Thread STINNER Victor
STINNER Victor added the comment: You may want to use PYTHONMALLOC=malloc environment variable, which changes the memory allocator from Python pymalloc to the regular libc malloc(). Valgrind false alarms come from pymalloc. -- nosy: +vstinner ___

[issue35150] Misc/README.valgrind out-of-date

2018-11-02 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thank you for the report. Closing as a duplicate of issue32666. -- nosy: +cheryl.sabella resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Valgrind documentation seems to need updating

[issue35143] Annotations future requires unparse, but not accessible from Python

2018-11-02 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35104] IDLE: On macOS, Command-M minimizes & opens "Open Module..."

2018-11-02 Thread Tal Einat
Tal Einat added the comment: Terry, does Shift-Command-s trigger "Save" or "Save As" for you? If "Save As", then surely this is something that can be worked out? -- ___ Python tracker

[issue35104] IDLE: On macOS, Command-M minimizes & opens "Open Module..."

2018-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I like the idea, but for me, Shift-Command-o does the same as Command-o -- open file, and setting open-module to shift-command-key-o does not override this. -- ___ Python tracker

[issue35084] binascii.Error: Incorrect padding

2018-11-02 Thread TestUser
TestUser added the comment: One of the problems reporting is the archaic way the bug trackers work. Sorry fo the confusion except I am not sure of the exact request. On my end I have provided what I can. You are welcome to fire up a VM and run the sample submitted. All the best. On Fri, Nov

[issue35104] IDLE: On macOS, Command-M minimizes & opens "Open Module..."

2018-11-02 Thread Tal Einat
Tal Einat added the comment: Indeed Command-M has been in use for a while. +1 for Shift-Command-o. I don't see it used in the default key config (Lib/idlelib/config-keys.def). We already use Shift-Command-s for "Save As...", so this would be a consistent use of a Shift-Command modifier.

[issue35144] TemporaryDirectory clean-up fails with unsearchable directories

2018-11-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: TemporaryDirectory can't be cleaned up if there are unsearchable directories -> TemporaryDirectory clean-up fails with unsearchable directories ___ Python tracker

[issue35104] IDLE: On macOS, Command-M minimizes & opens "Open Module..."

2018-11-02 Thread Ned Deily
Ned Deily added the comment: > is the system use of CMD-M newer than IDLE's (15 years?)? macOS has been using CMD-M for minimize for quite a while. It's listed in the current Apple "Human Interface Guidelines" which is the reference document that Apple itself and third-parties are strongly

[issue35105] Document that CPython accepts "invalid" identifiers

2018-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: It is an implementation detail that some people need to know, and that is very unlikely to change. In the pydev thread, Guido said " My feeling is that limiting it to strings is fine, but checking those strings for resembling identifiers is pointless and

[issue35084] binascii.Error: Incorrect padding

2018-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: TestUser, please re-read and follow Serhiy's request. -- nosy: +terry.reedy ___ Python tracker ___

[issue35131] Cannot access to customized paths within .pth file

2018-11-02 Thread Ned Deily
Change by Ned Deily : -- components: +Windows -Library (Lib) nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue35148] cannot activate a venv environment on a Swiss German windows

2018-11-02 Thread Eryk Sun
Eryk Sun added the comment: The Windows command line often has inconsistently localized strings. In this case it's from the ulib.dll utility library. For German, message 0x7692 in "de-DE\ulib.dll.mui" is "Aktive Codepage: %1.\r\n", which has a period after the %1 insert. In the English UI

[issue35104] IDLE: On macOS, Command-M minimizes & opens "Open Module..."

2018-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I routinely use Alt-M to open modules on Windows, so I would want a shortcut on Mac also. I just made a 'Mac-module' custom keyset with Control-Key-M for open-module, and it works. It that acceptable? We do not usually change default keysets, but this

[issue35145] sqlite3: "select *" should autoconvert datetime fields

2018-11-02 Thread Paul Ganssle
Paul Ganssle added the comment: According to the sqlite documentation, there's no fundamental datetime type in sqlite: https://www.sqlite.org/datatype3.html#date_and_time_datatype SQLite does not have a storage class set aside for storing dates and/or times. Instead, the built-in

[issue35104] IDLE: On macOS, Command-M minimizes & opens "Open Module..."

2018-11-02 Thread Tal Einat
Tal Einat added the comment: I agree with Ned's analysis. The shortcut for macOS should be changed, or simply removed if there's no good candidate for a shortcut. Terry, what do you suggest? -- ___ Python tracker

[issue34897] distutils test errors when CXX is not set

2018-11-02 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg329154 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34897] distutils test errors when CXX is not set

2018-11-02 Thread Tal Einat
Tal Einat added the comment: `not cmd` will but true if cmd is None, so it is completely equivalent to `cmd is None or not cmd`. This is a purely stylistic change which doesn't alter the logic. To get a clear understanding of what's going on, I recommend reading the short "Truth Value

[issue34897] distutils test errors when CXX is not set

2018-11-02 Thread Tal Einat
Tal Einat added the comment: `not cmd` will be true if cmd is None, so it is completely equivalent to `cmd is None or not cmd`. This is a purely stylistic change which doesn't alter the logic. To get a clear understanding of what's going on, I recommend reading the short "Truth Value

[issue26660] tempfile.TemporaryDirectory() cleanup exception on Windows if readonly files created

2018-11-02 Thread Mayank Asthana
Mayank Asthana added the comment: I think it is OK to delete read-only files since they are in a TemporaryDirectory and should be expected to be temporary. A note in the documentation about this behaviour should be sufficient. -- nosy: +masthana

[issue35147] _Py_NO_RETURN is always empty on GCC

2018-11-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset 29abad099535f4bcb1531df93bafbd75b26d6adc by Victor Stinner (Alexey Izbyshev) in branch '3.6': [3.6] bpo-35147: Fix _Py_NO_RETURN for GCC (GH-10300) (GH-10302) https://github.com/python/cpython/commit/29abad099535f4bcb1531df93bafbd75b26d6adc

[issue35150] Misc/README.valgrind out-of-date

2018-11-02 Thread Robert Henry
New submission from Robert Henry : File Misc/README.valgrind is out of date with respect to python3.8. There are important sections of this file that are 15 years old! Example: the README.valgrind refers to "Uncomment Py_USING_MEMORY_DEBUGGER in Objects/obmalloc.c" but there's no such

[issue29341] Missing accepting path-like object in docstrings of os module functions

2018-11-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg329149 ___ Python tracker ___ ___ Python-bugs-list

[issue29341] Missing accepting path-like object in docstrings of os module functions

2018-11-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The docstrings are fixed and the (manual!) backports to 3.7 and 3.6 are done. Very good job, Luna! -- ___ Python tracker ___

[issue29341] Missing accepting path-like object in docstrings of os module functions

2018-11-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The docstrings are fixed and the m(anual!) backports to 3.7 and 3.6 are done. Very good job, Luna! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29341] Missing accepting path-like object in docstrings of os module functions

2018-11-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 08026b103ea8f4c9f2b5045ef7806dd8b760da2b by Pablo Galindo (BNMetrics) in branch '3.7': [3.7]bpo-29341: Backport b942707 3.7 (#10298) https://github.com/python/cpython/commit/08026b103ea8f4c9f2b5045ef7806dd8b760da2b --

[issue29341] Missing accepting path-like object in docstrings of os module functions

2018-11-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 8d2f88fb17468642813108977bb9ec5f7a065b84 by Pablo Galindo (BNMetrics) in branch '3.6': [3.6]bpo-29341: Backport b942707 3.6 (GH-10299) https://github.com/python/cpython/commit/8d2f88fb17468642813108977bb9ec5f7a065b84 --

[issue33000] IDLE Doc: Text consumes unlimited RAM, consoles likely not

2018-11-02 Thread Big Stone
Big Stone added the comment: for the record, since summer 2018, idlex-1.18 is compatible again with Python-3.6+: the author simply forked the old IDLE library IDLEX was depending on. so IDLEX icon in recent Winpython is"truly" IDLEX again. --

[issue35148] cannot activate a venv environment on a Swiss German windows

2018-11-02 Thread Vinay Sajip
Vinay Sajip added the comment: So - are you saying that chcp prints "850." when asked for the current code page but won't accept "850." when setting the code page, requiring just "850"? -- ___ Python tracker

[issue35149] pip3 show causing Error for ConfigParaser

2018-11-02 Thread Dileep
New submission from Dileep : I' receiving error while viewing the package info of ConfigParser. The command `pip3 show ConfigParser` doesn't cause any error where as following batch script is resulting this error It has something to do with Autor name or Unicode handling of the Pip3 `for /f

[issue35147] _Py_NO_RETURN is always empty on GCC

2018-11-02 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- pull_requests: +9612 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35147] _Py_NO_RETURN is always empty on GCC

2018-11-02 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- pull_requests: +9611 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35148] cannot activate a venv environment on a Swiss German windows

2018-11-02 Thread Ned Deily
Change by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35137] Exception in isinstance when __class__ property raises

2018-11-02 Thread Brett Cannon
Brett Cannon added the comment: I'm with Serhiy that exceptions should not be swallowed up unless there's a very good reason to, and in this instance there isn't if there's a bug in code as that low of a level as debugging that would be atrocious. -- nosy: +brett.cannon resolution:

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-11-02 Thread Martin Bijl-Schwab
Martin Bijl-Schwab added the comment: I meant https://bugs.python.org/issue35148 -- ___ Python tracker ___ ___ Python-bugs-list

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-11-02 Thread Martin Bijl-Schwab
Martin Bijl-Schwab added the comment: it does not work as expected on swiss german (and likely other internationalised) windows systems. See https://bugs.python.org/issue32409 -- nosy: +Martin Bijl-Schwab ___ Python tracker

[issue35148] cannot activate a venv environment on a Swiss German windows

2018-11-02 Thread Martin Bijl-Schwab
New submission from Martin Bijl-Schwab : There is a small bug in the activate.bat script causing problems on internationalized Windows systems. C:\repo\gui>python -m venv venv C:\repo\gui>call venv\Scripts\activate.bat Parameterformat falsch - 850. This translates to "Wrong parameter -

[issue35147] _Py_NO_RETURN is always empty on GCC

2018-11-02 Thread miss-islington
miss-islington added the comment: New changeset e2ed5adcb5db2d70cfa72da1ba8446f7aa9e05cd by Miss Islington (bot) (Alexey Izbyshev) in branch 'master': bpo-35147: Fix _Py_NO_RETURN for GCC (GH-10300) https://github.com/python/cpython/commit/e2ed5adcb5db2d70cfa72da1ba8446f7aa9e05cd

[issue35147] _Py_NO_RETURN is always empty on GCC

2018-11-02 Thread STINNER Victor
STINNER Victor added the comment: Oh right, the major version is __GNUC__: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html -- nosy: +vstinner ___ Python tracker

[issue35147] _Py_NO_RETURN is always empty on GCC

2018-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, this is common error! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35147] _Py_NO_RETURN is always empty on GCC

2018-11-02 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +9609 stage: -> patch review ___ Python tracker ___ ___

[issue35147] _Py_NO_RETURN is always empty on GCC

2018-11-02 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : Non-existing __GNUC_MAJOR__ macro is used to check for GCC version at https://github.com/python/cpython/blob/b942707fc23454a998323c17e30be78ff1a4f0e7/Include/pyerrors.h#L97 . __GNUC__ should be used instead. -- components: Interpreter Core

[issue29341] Missing accepting path-like object in docstrings of os module functions

2018-11-02 Thread Luna Chen
Change by Luna Chen : -- pull_requests: +9608 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29341] Missing accepting path-like object in docstrings of os module functions

2018-11-02 Thread Luna Chen
Change by Luna Chen : -- pull_requests: +9607 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35146] Bad Regular Expression Broke re.findall()

2018-11-02 Thread Dan Boxall
Dan Boxall added the comment: Yes I realised that, as I said earlier. But it could say, "Invalid regular expression" and not produce ten lines of error messages. On Fri, 2 Nov 2018 at 14:21, Steven D'Aprano wrote: > > Steven D'Aprano added the comment: > > This is not a bug in Python, it

[issue29341] Missing accepting path-like object in docstrings of os module functions

2018-11-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset b942707fc23454a998323c17e30be78ff1a4f0e7 by Pablo Galindo (BNMetrics) in branch 'master': bpo-29341: Clarify that path-like objects are accepted in some os methods (GH-10101)

[issue35146] Bad Regular Expression Broke re.findall()

2018-11-02 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug in Python, it is an invalid (broken) regular expression. There is nothing that the interpreter or the regular expression engine can do, because you are telling it to do something that makes no sense. What do you expect findall to find, if

[issue35146] Bad Regular Expression Broke re.findall()

2018-11-02 Thread Dan Boxall
Dan Boxall added the comment: Thank you. I realised that and if I put a dot in front it worked fine. But it should not break the function, so they will surely want to fix the bug? Kind regards, Dan Boxall On Fri, 2 Nov 2018 at 13:56, Windson Yang wrote: > > Windson Yang added the

[issue35146] Bad Regular Expression Broke re.findall()

2018-11-02 Thread Windson Yang
Windson Yang added the comment: The last line "re.error: nothing to repeat at position 0" shows that you should not put raw * as the first element, use \* instead. -- nosy: +Windson Yang ___ Python tracker

[issue35146] Bad Regular Expression Broke re.findall()

2018-11-02 Thread Dan Boxall
New submission from Dan Boxall : Hi, I'm new to regular expressions and while playing around with them I tried this: >>> rex = '*New Revision:.* ([0-9]+)' >>> re.findall(rex, text) and got this: Traceback (most recent call last): File "", line 1, in File "C:\Python\Python37\lib\re.py",

[issue35145] sqlite3: "select *" should autoconvert datetime fields

2018-11-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +berker.peksag, ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35145] sqlite3: "select *" should autoconvert datetime fields

2018-11-02 Thread Robert Pollak
Robert Pollak added the comment: (In fact, I am currently taking the first non-missing entry of each text column and trying to dateutil.parser.parse it. If that works, I use pandas.to_datetime on the column.) -- ___ Python tracker

[issue26660] tempfile.TemporaryDirectory() cleanup exception on Windows if readonly files created

2018-11-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue35144] TemporaryDirectory can't be cleaned up if there are unsearchable directories

2018-11-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue35145] sqlite3: "select *" should autoconvert datetime fields

2018-11-02 Thread Robert Pollak
New submission from Robert Pollak : Currently, fields are converted to datetime as described in https://docs.python.org/3/library/sqlite3.html#sqlite3.PARSE_COLNAMES : 'select x as "x [datetime]" from table' In my use case I don't know the names and locations of the datetime fields in

[issue35144] TemporaryDirectory can't be cleaned up if there are unsearchable directories

2018-11-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems like a related issue : issue26660 . Maybe TemporaryDirectory can allow an onerror argument that is passed internally to rmtree during cleanup and state the same in the documentation that TemporaryDirectory can't cleanup read-only files?

[issue35134] Move !Py_LIMITED_API to Include/pycapi/

2018-11-02 Thread STINNER Victor
STINNER Victor added the comment: > Do you want to keep only stable ABI v.3.2 and move both newer stable API and > non-stable API to the pycapi/ subdirectory? Sorry, I don't found a sense in > this. The raw definition could be that Include/*.h is part of the stable ABI, and

[issue32972] unittest.TestCase coroutine support

2018-11-02 Thread Dave Shawley
Dave Shawley added the comment: I added a different implementation for consideration (https://github.com/python/cpython/pull/10296). -- pull_requests: +9606 ___ Python tracker

[issue32971] Docs on unittest.TestCase.assertRaises() should clarify context manager details

2018-11-02 Thread Dave Shawley
Change by Dave Shawley : -- keywords: +patch pull_requests: +9605 stage: -> patch review ___ Python tracker ___ ___

[issue35143] Annotations future requires unparse, but not accessible from Python

2018-11-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Extension Modules nosy: +lukasz.langa versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue35144] TemporaryDirectory can't be cleaned up if there are unsearchable directories

2018-11-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35134] Move !Py_LIMITED_API to Include/pycapi/

2018-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you want to keep only stable ABI v.3.2 and move both newer stable API and non-stable API to the pycapi/ subdirectory? Sorry, I don't found a sense in this. -- ___ Python tracker

[issue6717] Some problem with recursion handling

2018-11-02 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- nosy: +thatiparthy ___ Python tracker ___ ___

[issue35134] Move !Py_LIMITED_API to Include/pycapi/

2018-11-02 Thread STINNER Victor
STINNER Victor added the comment: > There are not just two sides. It is common to wrap new stable C API with > something like: > #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x0305 > What will you do with this? objimpl.h always includes pycapi/pycapi_objimpl.h, so I don't think

[issue35140] encoding problem: coding:gbk cause syntaxError

2018-11-02 Thread Windson Yang
Change by Windson Yang : -- title: encoding problem: gbk -> encoding problem: coding:gbk cause syntaxError ___ Python tracker ___

[issue35140] encoding problem: gbk

2018-11-02 Thread Windson Yang
Windson Yang added the comment: It's fine @anmikf, keep practice :D. Let's recap what happened: Run encoding_problem_gbk.py on Windows10 using Python 3.7.0 will cause "SyntaxError: encoding problem: gbk". But it will run as expected if 1. The file has less than less than 15 lines. 2. Change

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-11-02 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +9604 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35140] encoding problem: gbk

2018-11-02 Thread Tim Golden
Tim Golden added the comment: I'm afraid you'll have to use English in this forum so that all current and future readers have the best chance of understanding the situation. Thank you very much for making the effort this far. If anyone on this issue knows of a Chinese-language forum where

[issue35140] encoding problem: gbk

2018-11-02 Thread 安迷
安迷 added the comment: I'm sorry for my english. Can I use Chinese? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35140] encoding problem: gbk

2018-11-02 Thread 安迷
安迷 added the comment: this problem not exist on macOS. this problem not exist in python2. Windows10x64 Python 3.7.0 (v3.7.0:1bf9cc5093 script have no problem with 15 blank lines. script haveproblem with fist line '#coding:gbk' and 14 blank lines. --

[issue35143] Annotations future requires unparse, but not accessible from Python

2018-11-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- title: Annotations future requires unparse, but not accessible from Pythpn -> Annotations future requires unparse, but not accessible from Python ___ Python tracker

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2018-11-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35140] encoding problem: gbk

2018-11-02 Thread Ma Lin
Ma Lin added the comment: Yes, I can reproduce on my Windows 10 (Simplfied Chinese). The file is a pure ASCII file, and doesn't have a BOM prefix. -- ___ Python tracker ___

[issue35140] encoding problem: gbk

2018-11-02 Thread Windson Yang
Windson Yang added the comment: Thank you, Lin. Can you reproduce on your machine, I guess it is related to terminal encoding or text file ending. However, I can't reproduce on macOS. -- ___ Python tracker

[issue25416] Add encoding aliases from the (HTML5) Encoding Standard

2018-11-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Please note that we can only add aliases if the encodings are indeed the same. Given that WhatWG has made changes to several standard encodings, this is especially important, since our codecs are mostly based on what the Unicode consortium defines as

[issue35144] TemporaryDirectory can't be cleaned up if there are unsearchable directories

2018-11-02 Thread lilydjwg
New submission from lilydjwg : If the title doesn't explain clearly, here's a demo program that will fail: import tempfile import pathlib def test(): with tempfile.TemporaryDirectory(prefix='test-bad-') as tmpdir: tmpdir = pathlib.Path(tmpdir) subdir = tmpdir / 'sub'

[issue35143] Annotations future requires unparse, but not accessible from Pythpn

2018-11-02 Thread Kay Hayen
New submission from Kay Hayen : Hello, in trying to know what to put into "__annotations__" at run time, the "from __future__ import annotations" pose a new problem. It is now necessary to "unparse" to ast code that is still there. Code to do so, is in C API "_PyAST_ExprAsUnicode", but

[issue35140] encoding problem: gbk

2018-11-02 Thread Ma Lin
Ma Lin added the comment: Let me give an explanation. Run encoding_problem_gbk.py, get an error: D:\>encoding_problem_gbk.py File "D:\encoding_problem_gbk.py", line 1 SyntaxError: encoding problem: gbk If remove the comment line, run as expected. -- nosy: +Ma Lin

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

2018-11-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think parsing with regex especially on multiline cases like here is little tricky handling all cases. I find AST module to be a good fit. I tried using a callback where every class definition is taken up and then from that line to rest of the

[issue33000] IDLE Doc: Text consumes unlimited RAM, consoles likely not

2018-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Roger, John may have run IDLE rather than IDLEX. This issue is about documenting the fact that tk Texts do not throw away lines, and will accept text until there are memory problems. (Command Prompt, for instance, only keeps the last N lines, where N

[issue35142] html.entities.html5 should require a trailing semicolon

2018-11-02 Thread Daniel Lovell
Daniel Lovell added the comment: I'm setting this back to closed as I unintentionally reopened. Please forgive me as I'm new to the Python BPO. However, I did mean to continue the conversation if not reopen the issue. -- resolution: -> not a bug status: open -> closed

[issue35142] html.entities.html5 should require a trailing semicolon

2018-11-02 Thread Daniel Lovell
Daniel Lovell added the comment: Ah, I stupidly overlooked that as I'm only familiar with this HTML5 specification: https://html.spec.whatwg.org/multipage/syntax.html#character-references Where it states that characters MUST be terminated with a semicolon. Honestly never seen it done

[issue35140] encoding problem: gbk

2018-11-02 Thread Windson Yang
Windson Yang added the comment: If I understand your question correctly, you should save the file(the one contain Chinese chars) with GBK encoding using your editor. Otherwise, your editor would save it using the default encoding which led to python can't decode it correctly. --

[issue35142] html.entities.html5 should require a trailing semicolon

2018-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The documentation clearly says that this is for intention and give a reference to the HTML5 specification. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue35075] Doc: pprint example uses dead URL

2018-11-02 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___