[issue33757] Failed separate test_pdb_next_command_in_generator_for_loop in test_pdb

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

[issue35156] Consider revising documentation on Python Builds from source

2018-11-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue31453] Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS

2018-11-03 Thread bryan mabra
bryan mabra added the comment: FYI, This is how I figured out and fixed the issue on my debian system. -Run nmap to figure out what ssl version is being used by the server nmap -p443 -sV --script ssl-enum-ciphers 10.10.10.7 output says TLSv1.0 test 10.10.10.7 using example in this comment

[issue35154] subprocess.list2cmdline() does not allow running some commands.

2018-11-03 Thread Eryk Sun
Eryk Sun added the comment: In case you don't know, on Windows an args sequence has to be converted to a command line that's compatible with CreateProcess[AsUser]. If the executable path isn't passed separately, the system has to parse it from the command line, and in this case paths with

[issue33834] test_asyncio: test_sendfile_close_peer_in_the_middle_of_receiving() of ProactorEventLoop logs InvalidStateError error

2018-11-03 Thread Jorge Ramos
Jorge Ramos added the comment: While building 3.6.7. Path set to 3.6.7 working directory Running PGInstrument|x64 interpreter... Run tests sequentially Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF...ne, 64, None)>) handle: )> Traceback (most recent call last):

[issue35105] Document that CPython accepts "invalid" identifiers

2018-11-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Documenting something as an 'implementation detail' denies that it is a language feature and does not offer stability guarantees. -- ___ Python tracker

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

2018-11-03 Thread Robert Pollak
Change by Robert Pollak : -- title: sqlite3: "select *" should autoconvert datetime fields -> sqlite3: "select *" should optionally autoconvert TEXT datetime fields ___ Python tracker

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

2018-11-03 Thread Robert Pollak
Robert Pollak added the comment: Thank you, Paul, for your hints on sniffing. I have now asked at SqliteStudio for confirmation that they also do content sniffing to detect datetime text fields: https://github.com/pawelsalawa/sqlitestudio/issues/3449 . So in this issue I am suggesting to

[issue35158] Fix PEP 3115 to NOT imply that the class dictionary is used in the final created class

2018-11-03 Thread Joy Diamond
New submission from Joy Diamond : Fix the following in https://www.python.org/dev/peps/pep-3115/ REPLACE: """ def __new__(cls, name, bases, classdict): # Note that we replace the classdict with a regular # dict before passing it to the superclass, so that we #

[issue35157] Missing pyconfig.h when building from source

2018-11-03 Thread Jorge Ramos
New submission from Jorge Ramos : When testing the builds when PGO is enabled, or by simply running rt.bat, the following error is (always) issued: cpython\include\Python.h(8): fatal error C1083: Cannot include: 'pyconfig.h': No such file or directory One example of steps taken is: git

[issue35156] Consider revising documentation on Python Builds from source

2018-11-03 Thread Jorge Ramos
New submission from Jorge Ramos : I want to build from source a 3.6 Python, using PGO for windows. Followed instructions at https://devguide.python.org/setup/ (the original search from google was "build python from source windows"). From a newbie perspective there are several problems: 1) it

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2018-11-03 Thread Denton Liu
Change by Denton Liu : -- keywords: +patch pull_requests: +9616 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2018-11-03 Thread Denton Liu
New submission from Denton Liu : The urllib.request documentation that they can add their own protocol handlers, however they are unclear on how they should be named. We should replace instances of things like protocol_request with _request to make it clear that we are literally replacing

[issue35105] Document that CPython accepts "invalid" identifiers

2018-11-03 Thread Chris Jerdonek
Chris Jerdonek added the comment: > 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 > wasteful." But in a later message, after additional discussion, he acknowledged there could be

[issue35105] Document that CPython accepts "invalid" identifiers

2018-11-03 Thread Ned Batchelder
Ned Batchelder added the comment: This seems like a confusion of two things: identifiers are lexical elements of the language. Attributes are not limited to identifiers. We could add to the docs for setattr: "The attribute name does not have to be a valid identifier." I don't know what

[issue34969] Add --fast, --best to the gzip CLI

2018-11-03 Thread Julien Palard
Change by Julien Palard : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35154] subprocess.list2cmdline() does not allow running some commands.

2018-11-03 Thread Roffild
New submission from Roffild : This issue has already been discussed in #23862 Have to use this hack: import subprocess def list2cmdlineHack(seq): return " ".join(seq) subprocess.list2cmdline = list2cmdlineHack There must be an argument in subprocess.run() to disable

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

2018-11-03 Thread Eryk Sun
Eryk Sun added the comment: Serhiy, do you also plan to work around immutable files in POSIX? What about permissions on directories that prevent deleting files? In BSD and macOS, we have os.chflags for modifying file flags. Modifying the immutable flag requires superuser access. In Linux,

[issue29982] tempfile.TemporaryDirectory fails to delete itself

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

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

2018-11-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yury, could you please take a look? -- ___ Python tracker ___ ___ Python-bugs-list mailing

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

2018-11-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As for the line number for class, I have not heard anything about this. I think there is no large technical difficulty, but there is a little need. The first line number of the code object is needed first at all for tracing and debugging. Function has

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

2018-11-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Serhiy for the details. I think there are also less tests for inspect.findsource with respect to classes though it's more robust than the regex approach. Thus there might be different effects which are correct now or selects an alternate

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

2018-11-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, now the hardest problem remains. Sometimes there are more than one place where the class with the same __qualname__ is defined. See for example multiprocessing/heap.py: if sys.platform == 'win32': class Arena(object): ... else: class

[issue34969] Add --fast, --best to the gzip CLI

2018-11-03 Thread Julien Palard
Julien Palard added the comment: New changeset 3e28eed9ec2249bb11ad0db4629271b7ce9b7918 by Julien Palard (Stéphane Wirtel) in branch 'master': bpo-34969: Add --fast, --best on the gzip CLI (GH-9833) https://github.com/python/cpython/commit/3e28eed9ec2249bb11ad0db4629271b7ce9b7918 --

[issue35109] Doctest in CI uses python binary built from master causing DeprecationWarnings

2018-11-03 Thread Julien Palard
Julien Palard added the comment: Yes we can close it. Also -W from sphinx-build won't cause errors from those warnings. Yes we'll probably suffer a bit if someone push the final step of a deprecation if one of our build dependencies is still using it. -- resolution: -> third party

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

2018-11-03 Thread Jason R. Coombs
Jason R. Coombs added the comment: Also, I would argue that this is an enhancement request and not a bug - that the prior expectation was that the .pth file is encoded in whatever encoding the system expects by default, and that adding support for a standardized encoding for .pth files is a

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

2018-11-03 Thread Jason R. Coombs
Jason R. Coombs added the comment: I'm only aware of one tool that writes .pth files, and that's setuptools, and it always writes ASCII (assuming package names are ASCII), so any encoding handling should be fine there. > We could add a handler for UnicodeDecodeError that falls back on

[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2018-11-03 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ok +1 for me and I understand the need. But there is no defined experts for the xmlrpc part. We have to wait for a review just for the feature. -- ___ Python tracker

[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2018-11-03 Thread Cédric Krier
Cédric Krier added the comment: We have a library proteus which uses xmlrpc.client to connect to our server. The server support basic authentication but also session authentication. The session authentication is much faster because the password hash verification is slow by design. So to be

[issue27321] Email parser creates a message object that can't be flattened

2018-11-03 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- versions: +Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17305] IDNA2008 encoding is missing

2018-11-03 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- nosy: -matrixise ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35109] Doctest in CI uses python binary built from master causing DeprecationWarnings

2018-11-03 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I think we could close this issue because the DeprecationWarnings are not related to Python itself but to the dependencies. We could open an issue about the DeprecationWarnings and the dependency like python-babel (thanks for the issue). @mdk? Can we close

[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2018-11-03 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: and could you add some tests for this new feature? Thank you. -- ___ Python tracker ___ ___

[issue35032] Remove the videos from faq/Windows

2018-11-03 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I close this issue because all the PR and backports (3.7, 3.6 & 2.7) are merged. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2018-11-03 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Do you have an example where we need to have extra headers? but +1 for the feature, I marked this issue for 3.8 -- nosy: +matrixise versions: +Python 3.8 ___ Python tracker

[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2018-11-03 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +9615 stage: -> patch review ___ Python tracker ___ ___

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

2018-11-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +9614 stage: -> patch review ___ Python tracker ___ ___

[issue35153] Allow to set headers in xmlrpc.client.ServerProxy

2018-11-03 Thread Cédric Krier
New submission from Cédric Krier : If we want to support other authentication method than basic, we need to be able to set headers to the request sent. I propose to add an argument headers to ServerProxy which is a list of header tuples that will be put as header. -- components:

[issue35152] too small type for struct.pack/unpack in mutliprocessing.Connection

2018-11-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> problem using multiprocessing with really big objects? ___ Python tracker

[issue35152] too small type for struct.pack/unpack in mutliprocessing.Connection

2018-11-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report and PR. I think these are related issues : issue17560, issue28506 with issue17560 being open one. Correct me if I am wrong here. -- nosy: +xtreak ___ Python tracker

[issue35152] too small type for struct.pack/unpack in mutliprocessing.Connection

2018-11-03 Thread Oleksandr Buchkovskyi
Change by Oleksandr Buchkovskyi : -- keywords: +patch pull_requests: +9613 stage: -> patch review ___ Python tracker ___ ___

[issue35152] too small type for struct.pack/unpack in mutliprocessing.Connection

2018-11-03 Thread Oleksandr Buchkovskyi
New submission from Oleksandr Buchkovskyi : the problem is reproduced on big multiprocessing.Process output when the size of the output gets bigger than signed int a struct error is raised ``` python3 test.py Process ForkPoolWorker-1: Traceback (most recent call last): File

[issue32666] Valgrind documentation seems to need updating

2018-11-03 Thread Reuben Thomas
Reuben Thomas added the comment: Victor, thanks; that's precisely the sort of thing that would make a useful addition to the docs. -- ___ Python tracker ___

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

2018-11-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Serhiy, I am going with the same approach too using a Stack. I am working on it and I have fixed the set initial cases I reported with tests. I just stumbled upon the nested definitions and inner classes. I will raise a PR by end of today

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

2018-11-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am working on this. Left to test on Windows and analyze possible security issues. -- ___ Python tracker ___

[issue35144] TemporaryDirectory clean-up fails with unsearchable directories

2018-11-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am working on this. Left to test on Windows and analyze possible security issues. -- ___ Python tracker ___

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

2018-11-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Use a stack of names. Every time when you enter a class and function nodes, push the current name on the stack, and pop it out after handling child nodes. Compare the qualified name with '.'.join(self.stack). Don't use the recursive decorator, it is not

[issue35144] TemporaryDirectory clean-up fails with unsearchable directories

2018-11-03 Thread lilydjwg
lilydjwg added the comment: Yes issue26660 is similar but not the same. On Windows it seems a read-only file cannot be deleted while on Linux a file resident in a non-searchable directory cannot be deleted. An onerror for TemporaryDirectory will work. Also I'd like to add an optional

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

2018-11-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Serhiy, object.__qualname__ can be used to get qualified name of the object but ast nodes don't have qualified name for the node where I can match against it. node.name returns unqualified name and hence using ast module I can't

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

2018-11-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Use __qualname__. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

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

2018-11-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I tried ast module and it passes my test cases but I found another case since object.__name__ returns unqualified name thus matching against nested class names might conflict with the ones on the top level. Example is below where there is Spam at