[issue29036] logging module: Add `full_module_name` to LogRecord details

2018-08-08 Thread Ram Rachum
Ram Rachum added the comment: Hi Vinay, Since it's been a couple of years since I opened this ticket, I can't tell you the case in which I wanted to know the full module name of a logger. But it's probably been a logger from a third-party library. Since I can't force a third-party library

[issue34365] datetime's documentation refers to "comparison [...] falling back to the default scheme of comparing object addresses"

2018-08-08 Thread Kevin Norris
New submission from Kevin Norris : The 3.x datetime documentation contains the following footnote: > In other words, date1 < date2 if and only if date1.toordinal() < > date2.toordinal(). In order to stop comparison from falling back to the > default scheme of comparing object addresses, date

[issue34296] Speed up python startup by pre-warming the vm

2018-08-08 Thread INADA Naoki
INADA Naoki added the comment: On Thu, Aug 9, 2018 at 3:17 AM Cyker Way wrote: > > Cyker Way added the comment: > > I'm fine with stdlib, 3rd party tools, or whatever. My focus is to understand > is whether this idea can be correctly implemented on the python VM or not. > I've been

[issue33989] ms.key_compare is not initialized in all paths of list_sort_impl()

2018-08-08 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +8197 stage: -> patch review ___ Python tracker ___ ___

[issue33989] ms.key_compare is not initialized in all paths of list_sort_impl()

2018-08-08 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz title: ms.key_compare is not initialized in all pathes of list_sort_impl -> ms.key_compare is not initialized in all paths of list_sort_impl() ___ Python tracker

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-08-08 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the pointer, Ivan. I haven't really thought it through yet, but this fixes the problem at hand: diff --git a/dataclasses.py b/dataclasses.py index ba34f6b..54916ee 100644 --- a/dataclasses.py +++ b/dataclasses.py @@ -1019,7 +1019,7 @@ def

[issue34364] problem with traceback for syntax error in f-string

2018-08-08 Thread Eric V. Smith
Eric V. Smith added the comment: I think this is a duplicate, but I can't find the exact issue. I don't think it's exactly the same as #29051. -- assignee: -> eric.smith components: +Interpreter Core nosy: +eric.smith stage: -> needs patch type: -> behavior versions: +Python 3.6,

[issue33125] Windows 10 ARM64 platform support

2018-08-08 Thread Paul Monson
Paul Monson added the comment: I'm interested in getting python working on Windows running on Raspberry Pi (Thumb-2 instruction set). I can also contribute to ARM64 Windows. I've made some progress getting ARM32 working on a fork. The next roadblock for my investigation is libffi support

[issue34364] problem with traceback for syntax error in f-string

2018-08-08 Thread Josh Rosenberg
Josh Rosenberg added the comment: So the bug is that the line number and module are incorrect for the f-string, right? Nothing else? -- nosy: +josh.r ___ Python tracker ___

[issue11191] test_search_cpp error on AIX (with xlc)

2018-08-08 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +8196 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34244] Add support of check logger

2018-08-08 Thread Vinay Sajip
Vinay Sajip added the comment: Closing, as no response received. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29036] logging module: Add `full_module_name` to LogRecord details

2018-08-08 Thread Vinay Sajip
Vinay Sajip added the comment: Closing this as rejected, as when using the recommended approach for naming loggers, you get the full package name which can be output in logs. -- resolution: -> rejected stage: -> resolved status: open -> closed

[issue34350] Non obvious logging handler behaviour

2018-08-08 Thread Vinay Sajip
Vinay Sajip added the comment: The logging module-level convenience functions are specifically there for the use of casual, short scripts where users don't want to be concerned with the details of loggers and handlers. Even if you accidentally configure logging in library code because you

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-08-08 Thread Eric V. Smith
Eric V. Smith added the comment: Oops, didn't see that you commented on this, Ivan. I'll do some analysis tomorrow. -- ___ Python tracker ___

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-08-08 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith components: +Library (Lib) -Interpreter Core versions: +Python 3.8 ___ Python tracker ___

[issue34355] SIGSEGV (Address boundary error)

2018-08-08 Thread Julien Palard
Julien Palard added the comment: After noticing that without pydebug I can reproduce in v3.7.0 but not in master I ran a git bisect, the following commit looks like it fixes the issue: ``` commit 16dfca4d829e45f36e71bf43f83226659ce49315 Author: INADA Naoki Date: Sat Jul 14 12:06:43 2018

[issue5322] object.__new__ argument calling autodetection faulty

2018-08-08 Thread ppperry
Change by ppperry : -- title: Python 2.6 object.__new__ argument calling autodetection faulty -> object.__new__ argument calling autodetection faulty ___ Python tracker ___

[issue34270] Add names to asyncio tasks

2018-08-08 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you for the contribution! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34270] Add names to asyncio tasks

2018-08-08 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset cca4eec3c0a67cbfeaf09182ea6c097a94891ff6 by Yury Selivanov (Alex Grönholm) in branch 'master': bpo-34270: Make it possible to name asyncio tasks (GH-8547) https://github.com/python/cpython/commit/cca4eec3c0a67cbfeaf09182ea6c097a94891ff6

[issue34364] problem with traceback for syntax error in f-string

2018-08-08 Thread bob gailer
New submission from bob gailer : Inconsistent tracebacks. Note that the traceback for bug.py does not reference the module file and line number. # bug.py def f():   f'''   {d e}''' a=b import bug Traceback (most recent call last):   File "", line 1     (d e)    ^ SyntaxError:

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-08-08 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: OK, so the crux of the bug is this difference: >>> a = (1, 2) >>> tuple(x for x in a) (1, 2) >>> NamedTupleAttribute(x for x in a) NamedTupleAttribute(example= at 0x10e2e52a0>) A potential solution would be to either use `type(obj) in (list, tuple)`

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

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

[issue34362] User-created types with wrong __new__ can be instantiated

2018-08-08 Thread ppperry
ppperry added the comment: Whoops, realized this is a duplicate of issue5322. -- ___ Python tracker ___ ___ Python-bugs-list

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-08-08 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-08-08 Thread Alex DeLorenzo
New submission from Alex DeLorenzo : Example: from typing import NamedTuple from dataclasses import dataclass, asdict class NamedTupleAttribute(NamedTuple): example: bool = True @dataclass class Data: attr1: bool attr2: NamedTupleAttribute data = Data(True,

[issue34362] User-created types with wrong __new__ can be instantiated

2018-08-08 Thread ppperry
New submission from ppperry : If you have a class that defines __new__ to the __new__ of another builtin type that it isn't a subclass of: >>> class X: ...__new__ = tuple.__new__ Instantiating this class should produce an error because `tuple.__new__` can't handle non-tuples, but instead

[issue34361] An error should be returned when there are spaces in between function name and parameters

2018-08-08 Thread R. David Murray
R. David Murray added the comment: Sorry, but ignoring that whitespace is part of the python language definition. At this point in time, whatever the merits of the "beginner" argument, it is not going to change, for backward compatibility reasons if nothing else. -- nosy:

[issue34296] Speed up python startup by pre-warming the vm

2018-08-08 Thread Cyker Way
Cyker Way added the comment: I'm fine with stdlib, 3rd party tools, or whatever. My focus is to understand is whether this idea can be correctly implemented on the python VM or not. I've been searching for similar implementations on standard JVM, but the results mostly come from research

[issue34361] An error should be returned when there are spaces in between function name and parameters

2018-08-08 Thread Sanyam Khurana
New submission from Sanyam Khurana : I noticed this while reviewing the code. The print function works like: ``` print (5) ``` This works with user-defined function too. Ideally, this is a function call and we should return an error stating that there shouldn't be any spaces between

[issue34284] Nonsensical exception message when calling `__new__` on non-instaniable objects

2018-08-08 Thread Vadim Pushtaev
Vadim Pushtaev added the comment: Usually, tp_new==NULL means that __new__ is inherited, but not always. Here is the comment from typeobject.c: /* The condition below could use some explanation. It appears that tp_new is not inherited for static types whose base class is 'object'; this

[issue34350] Non obvious logging handler behaviour

2018-08-08 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34360] urllib.parse doesn't fail with multiple unmatching square brackets

2018-08-08 Thread Florian Bruhin
New submission from Florian Bruhin : Since bpo-29651, the urllib.parse docs say: > Unmatched square brackets in the netloc attribute will raise a ValueError. However, when there are at least one [ and ], but they don't match, there's somewhat inconsistent behavior: >>>

[issue33802] Regression in logging configuration

2018-08-08 Thread Łukasz Langa
Łukasz Langa added the comment: None is an invalid value in the configparser. It only accepts strings. See: >>> cp = ConfigParser() >>> cp['asd'] = {'a': None} Traceback (most recent call last): ... TypeError: option values must be strings The DEFAULT section was an omission which is now

[issue34359] Wrong virtual environment found

2018-08-08 Thread sfx2k
Change by sfx2k : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2651] Strings passed to KeyError do not round trip

2018-08-08 Thread Łukasz Langa
Łukasz Langa added the comment: I agree with Inadasan. I was eager to fix this until I actually got to it at the '16 core sprint. I think there's too little value in fixing this versus possible backwards compatibility breakage. -- resolution: -> wont fix stage: patch review ->

[issue34359] Wrong virtual environment found

2018-08-08 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: it's normal because this path is in the PATH env variable. so in this case, I think we can close this issue. -- ___ Python tracker ___

[issue34242] configparser: SectionProxy.get is silent on missing options

2018-08-08 Thread Łukasz Langa
Łukasz Langa added the comment: > I still find the remark about the parser-level `get` being maintained for > backwards compatibility strange (and it is eight years old), could this be > improved? How? Parser-level `.get()` predates mapping protocol access and has an incompatible API. Thus,

[issue34359] Wrong virtual environment found

2018-08-08 Thread sfx2k
sfx2k added the comment: Okay, thanks anyway :) btw: "Oh, and I suspect that the reason that "The thing with the relative path works if I change the order in the path" is simply because the bit of code that searches PATH just ignores what's after #!/usr/bin/env and looks for python.exe.

[issue34242] configparser: SectionProxy.get is silent on missing options

2018-08-08 Thread Łukasz Langa
Łukasz Langa added the comment: > Maybe a ConfigParser object could have an option to raise errors, because > they are useful for discovering errors in config files. For this option, use mapping access instead of `.get()`: >>> cp['section']['key'] Traceback (most recent call last): ...

[issue23835] configparser does not convert defaults to strings

2018-08-08 Thread Łukasz Langa
Łukasz Langa added the comment: That's intentional. In ConfigParser objects this exception would be raised for any other section's assignment already. You want RawConfigParser if you want to put (invalid) types as option values. See: >>> cp = ConfigParser() >>> cp['asd'] = {'a': None}

[issue34359] Wrong virtual environment found

2018-08-08 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Now, you could use a Windows shortcut where you specify the version of Python when you execute your script. F:\python\scripts3\.venv\bin\python myscript.py For example. -- nosy: +matrixise resolution: not a bug -> stage: resolved -> status:

[issue34359] Wrong virtual environment found

2018-08-08 Thread Paul Moore
Paul Moore added the comment: Oh, and I suspect that the reason that "The thing with the relative path works if I change the order in the path" is simply because the bit of code that searches PATH just ignores what's after #!/usr/bin/env and looks for python.exe. (More or less - I haven't

[issue34359] Wrong virtual environment found

2018-08-08 Thread Paul Moore
Paul Moore added the comment: Others use absolute paths, as I mentioned in my reply. -- ___ Python tracker ___ ___

[issue34359] Wrong virtual environment found

2018-08-08 Thread Paul Moore
Change by Paul Moore : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34359] Wrong virtual environment found

2018-08-08 Thread sfx2k
sfx2k added the comment: Thanks for your feedback, Paul and Stephane. The thing with the relative path works if I change the order in the path from [...]F:\Python\scripts3;F:\Python\projects\timetracking[...] to [...]F:\Python\projects\timetracking;F:\Python\scripts3[...] ;) An absolut

[issue34359] Wrong virtual environment found

2018-08-08 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: And the Shebang is specific to the Unix-like systems, the loader from the operating system, will read the first line and will try to execute the defined interpreter. https://en.wikipedia.org/wiki/Shebang_(Unix) On Windows, I am not sure, but like Paul

[issue34359] Wrong virtual environment found

2018-08-08 Thread Paul Moore
Paul Moore added the comment: >From https://docs.python.org/3.7/using/windows.html#shebang-lines the >supported shebang lines are * /usr/bin/env python * /usr/bin/python * /usr/local/bin/python * python There's a provision in there: """ The /usr/bin/env form of shebang line has one further

[issue34359] Wrong virtual environment found

2018-08-08 Thread Sascha Fuhrmann
New submission from Sascha Fuhrmann : For my python development I have several directories on my Windows system: common: F:\python\scripts -> one-file-scripts based on python 2 F:\python\scripts3 -> one-file-scripts base on python 3 projects: F:\python\projects\timetracking ... Each

[issue34358] round() combined with product outputs ugly result

2018-08-08 Thread Steven D'Aprano
Change by Steven D'Aprano : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34358] round() combined with product outputs ugly result

2018-08-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is expected behaviour, the FAQ entry on floating point gives a good explanation about what's going on here: https://docs.python.org/3.7/tutorial/floatingpoint.html -- nosy: +ronaldoussoren ___ Python

[issue34358] round() combined with product outputs ugly result

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

[issue34358] round() combined with product outputs ugly result

2018-08-08 Thread Sandu
New submission from Sandu : `from scipy import stats` `a = stats.norm.cdf(2.1882658846227234)` `round(a,4)` gives: `0.9857` `round(a,4)*100` one would expect to output 98.57. It returns: `98.570001` For comparison, if I multiply with 10 or 1000 the output is as expected. --

[issue34357] situation where urllib3 works, but urllib does not work

2018-08-08 Thread David
New submission from David : Hello! Newbie to python here. I run into an issue with one desktop library, Cinnamon. Specifically this one: https://github.com/linuxmint/Cinnamon/issues/5926#issuecomment-411232144. This library uses the urllib in the standard library to download some json. But

[issue34177] test_site fails in macOS-PR VSTS builds for 3.7 branch

2018-08-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this can be closed with https://github.com/python/buildmaster-config/commit/9a456462fb891328b5b8a170522d5f56f480fdfb. The buildbots are also green now with the failure reported in https://buildbot.python.org/all/#/builders/147/builds/174

[issue34238] When BROWSER is set on Mac webbrowser.register_standard_browsers doesn't work

2018-08-08 Thread Farzeen
Farzeen added the comment: Arch Linux is also affected. Steps to reproduce: ``` $ python Python 3.7.0 (default, Jul 15 2018, 10:44:58) [GCC 8.1.1 20180531] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import webbrowser >>> webbrowser.get(None) Traceback

[issue34355] SIGSEGV (Address boundary error)

2018-08-08 Thread Yohan Boniface
Yohan Boniface added the comment: Thanks all :) As noted by Julien, to reproduce the test cases, one also needs to install the dev requirements (or just `pip instal minicli hupper`): pip install -r requirements-dev.txt > and what's the issue with asyncio ? Nothing specific as far as I can

[issue34355] SIGSEGV (Address boundary error)

2018-08-08 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- components: -asyncio nosy: -asvetlov, yselivanov ___ Python tracker ___ ___ Python-bugs-list

[issue34355] SIGSEGV (Address boundary error)

2018-08-08 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: and what's the issue with asyncio ? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34355] SIGSEGV (Address boundary error)

2018-08-08 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: With the last revision of 3.7 (w/o --with-debug), I don't get this issue on Fedora 28 :/ -- nosy: +matrixise ___ Python tracker ___

[issue34356] Add support for args and kwargs in logging.conf

2018-08-08 Thread Xavier Hardy
New submission from Xavier Hardy : The behavior of formatters and handlers in logging.conf files is inconsistent. With handlers, it is possible to add custom (keyword and non-keyword) arguments, but it is not possible for formatters (only class, format, datefmt, style).

[issue24255] Replace debuglevel-related logic with logging

2018-08-08 Thread Sanyam Khurana
Sanyam Khurana added the comment: Yeah, that is understandable. I've reverted major chunk of it. Just in the http client file, I've added blank lines where ever necessary (which I think won't change the blame information for any of the code :)) Would that be okay? Also, I did a change in

[issue34296] Speed up python startup by pre-warming the vm

2018-08-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: This might be a useful feature but I think it would be better to develop this outside the stdlib, especially when the mechanism needs application specific code (such as preloading modules used by a specific script). If/when such a tool has enough traction

[issue34355] SIGSEGV (Address boundary error)

2018-08-08 Thread Julien Palard
Julien Palard added the comment: Can reproduce with python3.7 from Debian packages, but can't reproduce with a python3.7 built with --with-pydebug. -- nosy: +mdk ___ Python tracker

[issue34309] Trouble when reloading extension modules.

2018-08-08 Thread chris
chris added the comment: For short-term / mid-term we have now decided to start python as seperate process and interact with some kind of IPC. That leads to a limited interaction model between python and the embedded app but it has the advantage that unloading is possible (by simply

[issue30105] Duplicated connection_made() call for some SSL connections

2018-08-08 Thread Neil Booth
Neil Booth added the comment: Can someone close this please; I submitted this and no longer see it with recent Python versions; I suspect it has been fixed by one of the many SSL fixes in the last 12 months -- ___ Python tracker

[issue34355] SIGSEGV (Address boundary error)

2018-08-08 Thread Yohan Boniface
New submission from Yohan Boniface : Hi! Just installed 3.7 (ArchLinux) and I've a SIGSEGV on one of my projects. I've a hard time reducing to a minimal testcase, because it seems whatever random piece of code I remove the crash disappears at some point. Here is the repository: