[issue36175] Identity of bound methods

2019-03-03 Thread Abe Leite


Abe Leite  added the comment:

Thank you for the explanation. I looked up the documentation for descriptors 
and I understand better now. I appreciate it!

-Abe

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36175] Identity of bound methods

2019-03-03 Thread Inada Naoki


Inada Naoki  added the comment:

>
> Could you explain (or send me a link to) what happens when an instance method 
> is accessed

descriptor of function object creates bound method.  You can google "descriptor 
python".

> and why this should be different from what happens when an unbound method is 
> accessed?

No "should", just "can".

`3 + 5 is 8` can be True of False by language definition, while `3 + 5 == 8` is 
always True.

Like it, descriptor may or may not same instance by language definition.

>
> The `is` keyword has been very useful for me in introspection cases and that 
> is why I'm confused that it doesn't behave as expected here.
>

You're confused because you're using wrong guide; `is`.
There are many cases that language spec doesn't define same instance is 
returned or not.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20906] Issues in Unicode HOWTO

2019-03-03 Thread miss-islington


Change by miss-islington :


--
pull_requests: +12153

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34484] Unicode HOWTO incorrectly refers to Private Use Area for surrogateescape

2019-03-03 Thread miss-islington


Change by miss-islington :


--
keywords: +patch
pull_requests: +12154

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20906] Issues in Unicode HOWTO

2019-03-03 Thread A.M. Kuchling


A.M. Kuchling  added the comment:


New changeset 97c288df614dd7856f5a0336925f56a7a2a5bc74 by Andrew Kuchling in 
branch 'master':
bpo-20906: Various revisions to the Unicode howto  (#8394)
https://github.com/python/cpython/commit/97c288df614dd7856f5a0336925f56a7a2a5bc74


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34484] Unicode HOWTO incorrectly refers to Private Use Area for surrogateescape

2019-03-03 Thread A.M. Kuchling


A.M. Kuchling  added the comment:


New changeset 97c288df614dd7856f5a0336925f56a7a2a5bc74 by Andrew Kuchling in 
branch 'master':
bpo-20906: Various revisions to the Unicode howto  (#8394)
https://github.com/python/cpython/commit/97c288df614dd7856f5a0336925f56a7a2a5bc74


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36175] Identity of bound methods

2019-03-03 Thread Abe Leite


Abe Leite  added the comment:

Hi Inada-san,

Could you explain (or send me a link to) what happens when an instance method 
is accessed and why this should be different from what happens when an unbound 
method is accessed?

The `is` keyword has been very useful for me in introspection cases and that is 
why I'm confused that it doesn't behave as expected here.

Thank you,

Abe

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36175] Identity of bound methods

2019-03-03 Thread Inada Naoki


Inada Naoki  added the comment:

It is a designed behavior.

I agree that it looks strange to some users who don't know implementation.
And that's why people should not use `is` normally, except some use cases (e.g. 
`is None`.)

--
nosy: +inada.naoki
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36176] Make IDLE Autocomplete / Calltip Window Colors Configurable

2019-03-03 Thread Kristoffer Law


New submission from Kristoffer Law :

IDLE utilizes the foreground text color from KDE/Qt (Window Text) for the 
autocomplete and calltip windows. If a dark theme is selected and the window 
text changed to white or another bright color, it can be difficult or 
impossible to see due to lack of contrast. There does not appear to be any way 
to change these particular windows text or background color settings from 
IDLE's configuration.

Modifying the variables under line 192 in autocomplete_w.py (bg="white") and 
line 83 in calltip_w.py (background="#e0") allows these windows to change 
background colors.

Perhaps add these as settings in IDLE's config? Or force the foreground color 
to always be black?

Python 3.7.2
GCC 8.2.1

KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1

(This is my first bug submission ever, so if I missed something obvious, I 
apologize in advance)

--
assignee: terry.reedy
components: IDLE
messages: 337065
nosy: greylaw89, terry.reedy
priority: normal
severity: normal
status: open
title: Make IDLE Autocomplete / Calltip Window Colors Configurable
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33944] Deprecate and remove pth files

2019-03-03 Thread Ivan Pozdeev

Ivan Pozdeev  added the comment:

On 02.03.2019 9:01, Barry A. Warsaw

In all the cases you've described, Python is no different from any other 
Linux software. E.g. I can install something into /etc/profile.d that 
would break the shell or set an envvar that would change the behavior of 
standard utilities.
This is by design: Linux is designed for maximum interoperability, so 
there's only one of each component in the system and everything uses it 
whenever it needs that kind of functionality. It does support multiple 
versions of the same software, but it's a compromise that significantly 
complicates maintenance (primarily how to disambiguate them when 
something requests just "component X"), so they strive to avoid it 
whenever possible.
Likewise, complete freedom for root to wreak havoc in the system is also 
by design: distro maintainers only test and support official packages; 
anything else you use is either your responsibility or an app supplier's 
if they provide official support (and are within their right to deny 
support if you tweak the environment beyond their support promise) -- 
same as for any other software as well.

This is not even specific to .pth files, either, so you won't really 
eliminate the problem by removing them. You can break any other part of 
Python in subtle ways just as well -- e.g. overwrite or override binary 
files with incompatible ones, causing segfaults in random places 
(https://stackoverflow.com/q/51816639/648265 ).

Now, Linux does have "lower tier environments" that don't automatically 
affect "higher tiers". 1) Software installed into /usr/local doesn't 
hijack system scripts thanks to absolute paths in their shebangs; 
software in /opt is not on PATH at all; 2) /etc/profile* and bashrc are 
only executed by login shells and interactive shells, not by scripts, 
limiting their effect to processes created within a user session; 3) 
anything within a user's profile or run as a regular user (including 
~/.bash*) doesn't affect system-wide settings and processes run as root.

Blindly replicating 2) won't do for Python, however. Unlike Bash which 
has all the functionality compiled in, Python has an external standard 
library and arbitrary additional packages. They both are essential for 
its operation as a system component that other software can use without 
additional manipulations, AND Python gives the user freedom on how to 
arrange them in the system. So there must be a way to provide any 
"additional manipulations" that may be needed that the built-in startup 
logic doesn't have. From administration POV, any such startup logic is a 
part of the core offer to the system: core files+libraries+connecting 
logic = Python system component, so it must be invoked whenever Python 
is invoked.
And we do already have ways to apply startup code only to a "lower-tier 
environment" if such a need arises: user-specific -- user site; 
interactive-specific -- PYTHONSTARTUP.  There's no such thing as a 
"login shell" for Python but there's Python run in a user session; 
/etc/profile* can set envvars that would apply only there.

So it seems to me that what you are asking for is "/etc/profile.d for 
Python". When designing such a feature, note, however, that the concept 
of login sessions is completely alien to Python. I believe a way to 
provide an additional site-packages directory will do (I can't readily 
see an already available way to do so in 
https://docs.python.org/3/using/cmdline.html ).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36175] Identity of bound methods

2019-03-03 Thread Abe Leite


New submission from Abe Leite :

The following code produces unexpected behavior in all versions of Python I 
have tested.

>>> class a:
... def method(self): pass

>>> inst = a()
>>> inst.method is inst.method
False

It appears that id(inst.method) changes each time inst.method is accessed by 
normal means.

So the tuple (id(inst.method), id(inst.method)) will have the same item 
repeated, but the tuple (id(inst.method), inst.method, id(inst.method)) will 
not.

Note that for unbound methods and other functions, this issue does not occur.

This creates a transparency issue for bound instance methods taking the place 
of functions.

My apologies if this is a design decision that has already been resolved! It 
just seemed like a strange behavior to me.

--Abe

--
components: Interpreter Core
messages: 337063
nosy: Abe Leite
priority: normal
severity: normal
status: open
title: Identity of bound methods
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26707] plistlib fails to parse bplist with 0x80 UID values

2019-03-03 Thread Jon Janzen


Jon Janzen  added the comment:

I recently upgraded my python version and my hot-patch broke due to changes in 
bpo-32072 (GH-4455).

It reminded me of this b.p.o., and after reading through the messages to remind 
myself where the patch stood I realized that my tone friendly towards the end 
was not overly.

@ronaldoussoren, I apologize if I offended.

In other news, I re-implemented the patch (and filed a new pull-request) due to 
the following:

* Things got spread out over too many commits
* NSKeyedArchiver only uses binary mode, so I removed the XML compatibility
* I also wrote a few tests to verify the UID implementation

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31861] add aiter() and anext() functions to operator module

2019-03-03 Thread Dima Tisnek


Dima Tisnek  added the comment:

https://www.python.org/dev/peps/pep-0525/#aiter-and-anext-builtins kinda 
promised `aiter` and `anext` built-ins.

This ticket seems idle.

Perhaps it's time for the decider club to either remove that language from 
PEP-525 or make a plan for aiter/anext?

--
nosy: +Dima.Tisnek
versions: +Python 3.8 -Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36174] Remove licenseUrl field from nuget packages

2019-03-03 Thread Steve Dower


New submission from Steve Dower :

The licenseUrl field in the nuget packages has been deprecated. We should link 
to the license from the description or summary fields.

--
components: Windows
messages: 337060
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Remove licenseUrl field from nuget packages
versions: Python 2.7, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-03-03 Thread Ethan Furman


Ethan Furman  added the comment:

Thank you, everyone!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.6, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26707] plistlib fails to parse bplist with 0x80 UID values

2019-03-03 Thread Jon Janzen


Change by Jon Janzen :


--
pull_requests: +12152

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36171] tkinter scrollbar missing 'state' option

2019-03-03 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

You're welcome.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36171] tkinter scrollbar missing 'state' option

2019-03-03 Thread Anthony Zeeman

Anthony Zeeman  added the comment:

Cheryl, thank you for your help.

On Sunday, March 3, 2019, 7:02:47 p.m. EST, Cheryl Sabella 
 wrote:  

Cheryl Sabella  added the comment:

That's because state isn't an option.  :-)

I should have included the link to the ttk scrollbar manpage.
https://www.tcl.tk/man/tcl/TkCmd/ttk_scrollbar.htm

You'll see on that page that 'state' is listed as a Widget Command and not an 
Option:
    STANDARD OPTIONS

        -class, undefined, undefined 
        -cursor, cursor, Cursor 
        -style, style, Style 
        -takefocus, takeFocus, TakeFocus 

    WIDGET-SPECIFIC OPTIONS

        -command, command, Command 
        -orient, orient, Orient 

    WIDGET COMMAND

        pathName cget option 
        pathName configure ?option? ?value option value ...? 
        pathName get 
        pathName identify x y 
        pathName instate statespec ?script? 
        pathName set first last 
        pathName state ?stateSpec? 

    INTERNAL COMMANDS

        pathName delta deltaX deltaY 
        pathName fraction x y 

    SCROLLING COMMANDS

        prefix moveto fraction 
        prefix scroll number units 
        prefix scroll number pages 

If you notice, your listing of the options includes the 6 options listed above: 
command, orient, takefocus, cursor, style, class.  It doesn't list any of the 
other widget commands, such as cget or configure.  state is like those and not 
like the options.

In other words, you would use `w.state(['!disabled', 'selected'])` as shown in 
the example on the New Mexico Tech link.

--

___
Python tracker 

___

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33329] sigaddset() can fail on some signal numbers

2019-03-03 Thread Larry Hastings


Larry Hastings  added the comment:

Now fixed in 3.4 and 3.5.  I can cut the RCs.  Huzzah!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36171] tkinter scrollbar missing 'state' option

2019-03-03 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

That's because state isn't an option.  :-)

I should have included the link to the ttk scrollbar manpage.
https://www.tcl.tk/man/tcl/TkCmd/ttk_scrollbar.htm

You'll see on that page that 'state' is listed as a Widget Command and not an 
Option:
STANDARD OPTIONS

-class, undefined, undefined 
-cursor, cursor, Cursor 
-style, style, Style 
-takefocus, takeFocus, TakeFocus 

WIDGET-SPECIFIC OPTIONS

-command, command, Command 
-orient, orient, Orient 

WIDGET COMMAND

pathName cget option 
pathName configure ?option? ?value option value ...? 
pathName get 
pathName identify x y 
pathName instate statespec ?script? 
pathName set first last 
pathName state ?stateSpec? 

INTERNAL COMMANDS

pathName delta deltaX deltaY 
pathName fraction x y 

SCROLLING COMMANDS

prefix moveto fraction 
prefix scroll number units 
prefix scroll number pages 

If you notice, your listing of the options includes the 6 options listed above: 
command, orient, takefocus, cursor, style, class.  It doesn't list any of the 
other widget commands, such as cget or configure.  state is like those and not 
like the options.

In other words, you would use `w.state(['!disabled', 'selected'])` as shown in 
the example on the New Mexico Tech link.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33329] sigaddset() can fail on some signal numbers

2019-03-03 Thread Larry Hastings


Larry Hastings  added the comment:


New changeset 2226139aa2b69047cb54dbcfd79f5c2e36f98653 by larryhastings (Cheryl 
Sabella) in branch '3.4':
[3.4] bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) 
(#12145)
https://github.com/python/cpython/commit/2226139aa2b69047cb54dbcfd79f5c2e36f98653


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33329] sigaddset() can fail on some signal numbers

2019-03-03 Thread Larry Hastings


Larry Hastings  added the comment:


New changeset 8ec1fd11f2d524859cfefae76458fcfd22decf65 by larryhastings (Cheryl 
Sabella) in branch '3.5':
[3.5] bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) 
(#12144)
https://github.com/python/cpython/commit/8ec1fd11f2d524859cfefae76458fcfd22decf65


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36171] tkinter scrollbar missing 'state' option

2019-03-03 Thread Anthony Zeeman

Anthony Zeeman  added the comment:

Cheryl, here is the option listing from the ttk scrollbar configure method:
TTK Scrollbar options: {'command': ('command', 'command', 'Command', '', 
'140274415153928offsetChanged'), 'orient': ('orient', 'orient', 'Orient', 
, ), 'takefocus': 
('takefocus', 'takeFocus', 'TakeFocus', '', ''), 'cursor': ('cursor', 'cursor', 
'Cursor', '', ''), 'style': ('style', 'style', 'Style', '', ''), 'class': 
('class', '', '', '', '')}
Here is the listing from the tk scrollbar configure method:
TK Scrollbar options: {'activebackground': ('activebackground', 
'activeBackground', 'Foreground', '#ececec', '#ececec'), 'activerelief': 
('activerelief', 'activeRelief', 'Relief', 'raised', 'raised'), 'background': 
('background', 'background', 'Background', '#d9d9d9', '#d9d9d9'), 'bd': ('bd', 
'borderWidth'), 'bg': ('bg', 'background'), 'borderwidth': ('borderwidth', 
'borderWidth', 'BorderWidth', '1', '1'), 'command': ('command', 'command', 
'Command', '', '140677242826952offsetChanged'), 'cursor': ('cursor', 'cursor', 
'Cursor', '', ''), 'elementborderwidth': ('elementborderwidth', 
'elementBorderWidth', 'BorderWidth', '-1', '-1'), 'highlightbackground': 
('highlightbackground', 'highlightBackground', 'HighlightBackground', 
'#d9d9d9', '#d9d9d9'), 'highlightcolor': ('highlightcolor', 'highlightColor', 
'HighlightColor', '#00', '#00'), 'highlightthickness': 
('highlightthickness', 'highlightThickness', 'HighlightThickness', '0', '0'), 
'jump': ('jump', 'jump', 'Jump', '0', '0'), 'orient': ('orient', 'orient', 
'Orient', 'vertical', 'vertical'), 'relief': ('relief', 'relief', 'Relief', 
'sunken', 'sunken'), 'repeatdelay': ('repeatdelay', 'repeatDelay', 
'RepeatDelay', '300', '300'), 'repeatinterval': ('repeatinterval', 
'repeatInterval', 'RepeatInterval', '100', '100'), 'takefocus': ('takefocus', 
'takeFocus', 'TakeFocus', '', ''), 'troughcolor': ('troughcolor', 
'troughColor', 'Background', '#b3b3b3', '#b3b3b3'), 'width': ('width', 'width', 
'Width', '11', '11')}
The option is missing for both variants of the scrollbar.

On Sunday, March 3, 2019, 6:37:47 p.m. EST, Cheryl Sabella 
 wrote:  

Cheryl Sabella  added the comment:

You need to use the ttk Scrollbar to access state.  The standard tk Scrollbar 
doesn't have it.

Take a look at the doc page for ttk:
https://docs.python.org/3/library/tkinter.ttk.html

And the New Mexico Institute pages for ttk:
https://infohost.nmt.edu/tcc/help/pubs/tkinter/web/ttk-Scrollbar.html
https://infohost.nmt.edu/tcc/help/pubs/tkinter/web/ttk-Widget.html

--
nosy: +cheryl.sabella

___
Python tracker 

___

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36171] tkinter scrollbar missing 'state' option

2019-03-03 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

You need to use the ttk Scrollbar to access state.  The standard tk Scrollbar 
doesn't have it.

Take a look at the doc page for ttk:
https://docs.python.org/3/library/tkinter.ttk.html

And the New Mexico Institute pages for ttk:
https://infohost.nmt.edu/tcc/help/pubs/tkinter/web/ttk-Scrollbar.html
https://infohost.nmt.edu/tcc/help/pubs/tkinter/web/ttk-Widget.html

--
nosy: +cheryl.sabella

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35843] importlib.util docs for namespace packages innaccurate

2019-03-03 Thread Barry A. Warsaw


Barry A. Warsaw  added the comment:

+1

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23460] Decimals do not obey ':g' exponential notation formatting rules

2019-03-03 Thread Brennan D Baraban


Brennan D Baraban <3...@holbertonschool.com> added the comment:

Hi Stefan. Is there an update you would like me to make on this PR? Otherwise, 
pinging for review.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36173] apam

2019-03-03 Thread Ned Deily


Change by Ned Deily :


--
title: BROTHER PRINTER CENTER -> apam

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-03-03 Thread miss-islington


Change by miss-islington :


--
pull_requests: +12151

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-03-03 Thread miss-islington


Change by miss-islington :


--
pull_requests: +12150

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-03-03 Thread miss-islington


miss-islington  added the comment:


New changeset 8b914d2767acba3a9e78f1dacdc2d61dbfd7e304 by Miss Islington (bot) 
(Brennan D Baraban) in branch 'master':
bpo-35899: Fix Enum handling of empty and weird strings (GH-11891)
https://github.com/python/cpython/commit/8b914d2767acba3a9e78f1dacdc2d61dbfd7e304


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36173] BROTHER PRINTER CENTER

2019-03-03 Thread Steven D'Aprano


New submission from Steven D'Aprano :

No details given and a spammy, irrelevant title. Closing.

Dianmatang, if you are an actual person and not a spam bot, please try adding 
details of the bug, and using a more informative title.

--
nosy: +steven.daprano
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36169] Add overlap() method to statistics.NormalDist()

2019-03-03 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
keywords: +patch
pull_requests: +12149
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36172] csv module internal consistency

2019-03-03 Thread Martin Panter

Martin Panter  added the comment:

The documentation 
 says you should 
“open the files with newline=''.” IMO this is an unfortunate quirk of the CSV 
module. Everything else that I know of in the Python built-in library either 
works with binary files, which typically do no newline translation in Python 3, 
or is fine with newline translation enabled in text mode. See also Issue 10954 
about making the behaviour stricter.

--
nosy: +martin.panter

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared custom

2019-03-03 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

This is the state of the thread interpreter:

gdb) p tstate
$3 = (PyThreadState *) 0x80262ba10
(gdb) p tstate->interp
$4 = (PyInterpreterState *) 0xdbdbdbdbdbdbdbdb

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared custom

2019-03-03 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Apparently is the Thread 1 the one that is causing the core dump

--
nosy: +pitrou, vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared custom

2019-03-03 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I managed to access the core file and this is the traceback:


Thread 3 (LWP 100629):
#0  0x0008007d4828 in _accept4 () from /lib/libc.so.7
#1  0x000800672eda in ?? () from /lib/libthr.so.3
#2  0x0008016f7b75 in ?? ()
#3  0x000800acca10 in ?? ()
#4  0x7fffdfffcea0 in ?? ()
#5  0x7fffdfffcea8 in ?? ()
#6  0x7fffdfffce70 in ?? ()
#7  0x7fffdfffce70 in ?? ()
#8  0x0008025485a0 in ?? ()
#9  0x7fffdfffcdf0 in ?? ()
#10 0x0008016f820c in ?? ()
#11 0x7fffdfffcdb0 in ?? ()
#12 0x000800384d02 in cfunction_call_varargs (func=0x8016ffb70, args=0x0, 
kwargs=) at Objects/call.c:770
#13 PyCFunction_Call (func=0x8016ffb70, args=0x0, kwargs=) at 
Objects/call.c:786
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (LWP 101669):
#0  0x000801e0495d in CRYPTO_free () from /usr/local/lib/libcrypto.so.11
#1  0x000801de09bc in ?? () from /usr/local/lib/libcrypto.so.11
#2  0x000801e005b7 in OPENSSL_cleanup () from /usr/local/lib/libcrypto.so.11
#3  0x000800825ab1 in __cxa_finalize () from /lib/libc.so.7
#4  0x0008007b2791 in exit () from /lib/libc.so.7
#5  0x0008004ca84e in Py_Exit (sts=0) at Python/pylifecycle.c:2166
#6  0x0008004d6ffb in handle_system_exit () at Python/pythonrun.c:641
#7  0x0008004d6b07 in PyErr_PrintEx (set_sys_last_vars=1) at 
Python/pythonrun.c:651
#8  0x0008004d698e in PyErr_Print () at Python/pythonrun.c:547
#9  PyRun_SimpleStringFlags (command=0x80150de38 "from multiprocessing.spawn 
import spawn_main; spawn_main(tracker_fd=4, pipe_handle=9)\n", 
flags=0x7fffe860) at Python/pythonrun.c:462
#10 0x0008004f7a39 in pymain_run_command (command=, cf=0x0) 
at Modules/main.c:527
#11 pymain_run_python (interp=, exitcode=) at 
Modules/main.c:804
#12 pymain_main (args=) at Modules/main.c:896
#13 0x0008004f84f7 in _Py_UnixMain (argc=, argv=0x801bdb848) 
at Modules/main.c:937
#14 0x00201120 in _start (ap=, cleanup=) 
at /usr/src/lib/csu/amd64/crt1.c:76

Thread 1 (LWP 100922):
#0  0x00080047ca84 in take_gil (tstate=0x80262ba10) at 
Python/ceval_gil.h:216
#1  0x00080047d074 in PyEval_RestoreThread (tstate=0x80262ba10) at 
Python/ceval.c:281
#2  0x0008004f3325 in _Py_write_impl (fd=5, buf=0x8025e3e00, count=29, 
gil_held=1) at Python/fileutils.c:1558
#3  0x0008005051aa in os_write_impl (module=, fd=, data=) at ./Modules/posixmodule.c:8798
#4  os_write (module=, args=0x8015b3ba8, nargs=) 
at ./Modules/clinic/posixmodule.c.h:4182
#5  0x000800385a5d in _PyMethodDef_RawFastCallKeywords (method=, self=0x80127a5f0, args=, nargs=2, kwnames=) 
at Objects/call.c:653
#6  0x0008003847de in _PyCFunction_FastCallKeywords (func=0x8012820c0, 
args=0x0, nargs=0, kwnames=0xdbdbdbdbdbdbdbdb) at Objects/call.c:732
#7  0x00080048e1f5 in call_function (pp_stack=0x7fffdf7faf98, 
oparg=, kwnames=0x0) at Python/ceval.c:4673
#8  0x0008004892fa in _PyEval_EvalFrameDefault (f=0x8015b3a00, 
throwflag=) at Python/ceval.c:3294
#9  0x00080048f03a in PyEval_EvalFrameEx (f=, 
throwflag=) at 
Python/ceval.c:624
#10 _PyEval_EvalCodeWithName (_co=, globals=, 
locals=, args=, argcount=2, kwnames=0x0, 
kwargs=0x8025e25f8, kwcount=0, kwstep=1, defs=0x802567798,
defcount=1, kwdefs=0x0, closure=0x0, name=0x8017e2930, 
qualname=0x80255b7c0) at Python/ceval.c:4035
#11 0x000800384690 in _PyFunction_FastCallKeywords (func=, 
stack=, nargs=0, kwnames=) at Objects/call.c:435
#12 0x00080048e35f in call_function (pp_stack=0x7fffdf7fb2f0, 
oparg=, kwnames=0x0) at Python/ceval.c:4721

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36173] BROTHER PRINTER CENTER

2019-03-03 Thread Dian saputra


Change by Dian saputra :


--
components: Installation
nosy: Dianmatang
priority: normal
severity: normal
status: open
title: BROTHER PRINTER CENTER
type: behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36172] csv module internal consistency

2019-03-03 Thread Shane


New submission from Shane :

It occurred to me there is a slight mismatch in the behavioral consistency of 
the csv module (at least on Windows, Python 3.X).  Specifically, csv.writer() 
and csv.reader() treat the line terminator slightly differently.  To boil it 
down to a concise example:

#==
import csv

data = [[1, 2, 3], [4, 5, 6]]

with open('test.csv', 'w') as fout:
csv.writer(fout).writerows(data)

with open('test.csv', 'r') as fin:
data2 = list(csv.reader(fin))

print(data, data2, sep='\n')

>>> 
[[1, 2, 3], [4, 5, 6]]
[['1', '2', '3'], [], ['4', '5', '6'], []]
#==

So because csv.writer() uses lineterminator = '\r\n', data and data2 have a 
different structure (data2 has empty rows).  To me this seems undesirable, so I 
always go out of my way to use lineterminator = '\n'.  

#==
import csv

data = [[1, 2, 3], [4, 5, 6]]

with open('test.csv', 'w') as fout:
csv.writer(fout, lineterminator='\n').writerows(data)

with open('test.csv', 'r') as fin:
data2 = list(csv.reader(fin))

print(data, data2, sep='\n')

>>>
[[1, 2, 3], [4, 5, 6]]
[['1', '2', '3'], ['4', '5', '6']]
#==


Then the input and output have the same structure.  I assume there was a reason 
lineterminator = '\r\n' was chosen as default, but for me there is no benefit 
wrt csv files.  It seems like we would be better off with the more consistent, 
"reversible" behavior.

Alternatively, the default behavior of csv.reader() could be changed.  But in 
either case, I feel like their default behaviors should be in alignment.

Thoughts?  Thanks for reading.

--
messages: 337042
nosy: Shane Smith
priority: normal
severity: normal
status: open
title: csv module internal consistency
type: behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36171] tkinter scrollbar missing 'state' option

2019-03-03 Thread SilentGhost


Change by SilentGhost :


--
nosy: +gpolo, serhiy.storchaka
type:  -> enhancement
versions: +Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36171] tkinter scrollbar missing 'state' option

2019-03-03 Thread Anthony Zeeman


New submission from Anthony Zeeman :

The scrollbars in both tkinter and Tkinter don't have the 'state' option and 
cannot be disabled.

--
components: Tkinter
messages: 337041
nosy: azeeman
priority: normal
severity: normal
status: open
title: tkinter scrollbar missing 'state' option

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29539] [smtplib] collect response data for all recipients

2019-03-03 Thread sls


sls  added the comment:

I opened a new PR. 

I picked up some of FirefighterBlu3's suggestions and added some unittests and 
refactoring to assist. Hope this helps.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29539] [smtplib] collect response data for all recipients

2019-03-03 Thread sls


Change by sls :


--
keywords: +patch
pull_requests: +12148
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36116] test_multiprocessing_spawn fails on AMD64 Windows8 3.x

2019-03-03 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

See also https://bugs.python.org/issue36114

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared custom

2019-03-03 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

After some investigation, this turns out to be more complicated, as this 
'python.core' turns to be a core dumped from some of the processes spawned by 
test_multiprocessing_spawn. So the real problem is that 
test_multiprocessing_spawn segfaults, as in https://bugs.python.org/issue36116. 
I think this may be the same underlying problem. I will change the title to 
reflect this.

--
title: test_multiprocessing_spawn changes the execution environment -> 
test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared custom

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36170] posix_spawn doesn't exist in 3.7

2019-03-03 Thread Ned Deily


Ned Deily  added the comment:

Thanks for the report, Mark!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36170] posix_spawn doesn't exist in 3.7

2019-03-03 Thread Ned Deily


Ned Deily  added the comment:


New changeset 8b50400fbe607ef558d6c0033efa697c99417507 by Ned Deily (Mark 
Williams) in branch 'master':
bpo-36170: posix_spawn doesn't exist on 3.7 (GH-12143)
https://github.com/python/cpython/commit/8b50400fbe607ef558d6c0033efa697c99417507


--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21478] mock calls don't propagate to parent (autospec)

2019-03-03 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21478] mock calls don't propagate to parent (autospec)

2019-03-03 Thread miss-islington


Change by miss-islington :


--
pull_requests: +12147

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36091] clean up async generator from types module

2019-03-03 Thread Henry Chen


Change by Henry Chen :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36114] test_multiprocessing_spawn changes the execution environment

2019-03-03 Thread Henry Chen


Henry Chen  added the comment:

Another example of this, same bot:

https://buildbot.python.org/all/#/builders/168/builds/669

--
nosy: +scotchka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36125] Cannot cross-compile to more featureful but same tune

2019-03-03 Thread Xavier de Gaye


Xavier de Gaye  added the comment:

Re-opening and setting the stage as 'needs patch': at least the 
cross-compilation should fail with a clear message when the cross-built 
libraries names and those of the native interpreter have the same suffix.

> Assuming that you can rely on the loader to not open target binaries when 
> they're on the path to load from is unwise.

Meanwhile a workaround may be to build the native interpreter with Py_DEBUG 
defined (using the --with-pydebug configure option) so that libraries names 
become different.

--
components: +Cross-Build -Build
nosy: +Alex.Willmer
resolution: not a bug -> 
stage: resolved -> needs patch
status: closed -> open
type:  -> compile error

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36091] clean up async generator from types module

2019-03-03 Thread miss-islington


miss-islington  added the comment:


New changeset cd0416466f8a6d5333d6ea52f6907c39b8a6c3bc by Miss Islington (bot) 
in branch '3.7':
bpo-36091: Remove reference to async generator in Lib/types.py. (GH-11996)
https://github.com/python/cpython/commit/cd0416466f8a6d5333d6ea52f6907c39b8a6c3bc


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36091] clean up async generator from types module

2019-03-03 Thread miss-islington


Change by miss-islington :


--
pull_requests: +12146

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36091] clean up async generator from types module

2019-03-03 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 0a6a412fb27d6874a0db5cc82a97f54d7c5fd0f2 by Serhiy Storchaka 
(Henry Chen) in branch 'master':
bpo-36091: Remove reference to async generator in Lib/types.py. (GH-11996)
https://github.com/python/cpython/commit/0a6a412fb27d6874a0db5cc82a97f54d7c5fd0f2


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21074] Too aggressive constant folding

2019-03-03 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Fixed in issue30416.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
superseder: Build-out an AST optimizer, moving some functionality out of the 
peephole optimizer -> constant folding opens compiler to quadratic time hashing

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35889] sqlite3.Row doesn't have useful repr

2019-03-03 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I have the same doubts as Berker. sqlite3.Row represents a data from a 
database. Databases are used in particularly for storing a large amount of data 
which can not be all loaded in RAM. Therefore sqlite3.Row can contain a data 
with a very long repr.

If you need to inspect the sqlite3.Row object, it is easy to convert it to a 
list. If you want to see keys together with values, it is not hard to make a 
list of key-value pairs or a dict: list(zip(row.keys(), row)) or 
dict(zip(row.keys(), row)).

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36125] Cannot cross-compile to more featureful but same tune

2019-03-03 Thread Ross Burton


Ross Burton  added the comment:

That's exactly the glitch.  I'm cross-compiling to a more powerful IA process 
from IA.  This *is* a cross-compilation but the triple is the same.  Assuming 
that you can rely on the loader to not open target binaries when they're on the 
path to load from is unwise.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33329] sigaddset() can fail on some signal numbers

2019-03-03 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
pull_requests: +12145

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33329] sigaddset() can fail on some signal numbers

2019-03-03 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
pull_requests: +12144
stage: needs patch -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36170] posix_spawn doesn't exist in 3.7

2019-03-03 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

This was merged into 3.7 and later reverted after 3.7 first beta as per 
https://bugs.python.org/issue20104#msg316588 . Adding Pablo for review.

--
nosy: +pablogsal, xtreak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com