[issue25312] Cryptic error message if incorrect spec is set on a callable mock

2019-07-31 Thread Karthikeyan Singaravelan

Karthikeyan Singaravelan  added the comment:

Using spec only checks for the attribute to be present and not the signature of 
the actual attribute being called. You might need autospec for this behavior. 
The below example to use create_autospec does the correct validation for 
mock_foo.func. There is an open issue to make spec also do signature validation 
but it could go into 3.9 only if accepted since it changes semantics : 
issue30587. Regarding the error message being cryptic there are other issues 
open on assertion error being displayed with actual and expected call list 
being same. I would propose closing this issue. Maybe the docs could be updated 
about this behavior to make sure using spec is more clear on the expected 
behavior.

https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock

spec: This can be either a list of strings or an existing object (a class or 
instance) that acts as the specification for the mock object. If you pass in an 
object then a list of strings is formed by calling dir on the object (excluding 
unsupported magic attributes and methods). Accessing any attribute not in this 
list will raise an AttributeError.

# bpo25312.py

from unittest.mock import call, create_autospec, Mock
import inspect

class Foo:

def __init__(self, val):
pass

def func(self):
pass

class FooMock(Mock):

def _get_child_mock(self, **kwargs):
return create_autospec(Foo)

mock_foo = FooMock()
print(inspect.signature(mock_foo.func)) # Signature is correct with 
create_autospec whereas with Mock(spec=Foo) it is (*args, **kwargs)
mock_foo.func() # Raises TypeError with (val) being signature.
mock_foo.func.assert_has_calls([call()])


➜  cpython git:(master) ✗ ./python.exe bpo25312.py
(val)
Traceback (most recent call last):
  File "/Users/karthikeyansingaravelan/stuff/python/cpython/bpo25312.py", line 
19, in 
mock_foo.func()
  File 
"/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/unittest/mock.py", 
line 1027, in __call__
self._mock_check_sig(*args, **kwargs)
  File 
"/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/unittest/mock.py", 
line 119, in checksig
sig.bind(*args, **kwargs)
  File "/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/inspect.py", 
line 3025, in bind
return self._bind(args, kwargs)
  File "/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/inspect.py", 
line 2940, in _bind
raise TypeError(msg) from None
TypeError: missing a required argument: 'val'

--
nosy: +cjw296, mariocj89
versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.4, Python 3.5, Python 
3.6

___
Python tracker 

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



[issue18049] Re-enable threading test on macOS

2019-07-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14814
pull_request: https://github.com/python/cpython/pull/15065

___
Python tracker 

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



[issue18049] Re-enable threading test on macOS

2019-07-31 Thread Ronald Oussoren


Ronald Oussoren  added the comment:


New changeset 1a057bab0f18d6ad843ce321d1d77a4819497ae4 by Ronald Oussoren in 
branch 'master':
bpo-18049: Sync thread stack size to main thread size on macOS (GH-14748)
https://github.com/python/cpython/commit/1a057bab0f18d6ad843ce321d1d77a4819497ae4


--

___
Python tracker 

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



[issue33668] Wrong behavior of help function on module

2019-07-31 Thread Dong-hee Na


Dong-hee Na  added the comment:

I close PR 8284.

If there is a chance to work with this issue.
Please let me know

Thanks!

--

___
Python tracker 

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



[issue29750] smtplib doesn't handle unicode passwords

2019-07-31 Thread Windson Yang


Windson Yang  added the comment:

I just updated the PR

--

___
Python tracker 

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



[issue29750] smtplib doesn't handle unicode passwords

2019-07-31 Thread Windson Yang


Change by Windson Yang :


--
pull_requests: +14813
pull_request: https://github.com/python/cpython/pull/15064

___
Python tracker 

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



[issue37595] Python 3.7.4 does not build on Raspbian Buster

2019-07-31 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

Presumably dropping --enable-optimizations will fix this problem.

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue37595] Python 3.7.4 does not build on Raspbian Buster

2019-07-31 Thread Kal Sze


Kal Sze  added the comment:

Sorry, I meant most up-to-date version of binutils in Raspbian *Buster* in my 
previous message.

--

___
Python tracker 

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



[issue37595] Python 3.7.4 does not build on Raspbian Buster

2019-07-31 Thread Kal Sze


Kal Sze  added the comment:

I looked at my build log again.

The very first line that jumps out as abnormal is this:

/usr/bin/ld: /usr/bin/ld: DWARF error: invalid abstract instance DIE ref

A quick DuckDuckGoing suggests that this *may* be related to a broken version 
of binutils: 
https://lists.gnu.org/archive/html/bug-binutils/2018-07/msg00150.html

The current, most up-to-date version of binutils in Raspbian Stretch is this:

$ dpkg -l binutils
Desired=Unknown/Install/Remove/Purge/Hold
| 
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name   VersionArchitecture Description

+++-==-==--==
ii  binutils   2.31.1-16+rpi1 armhfGNU assembler, linker and 
binary utilities

A quick grep of the output of `apt changelog binutils` doesn't mention the bug 
number (23425).

I don't know what conclusion to draw.

--

___
Python tracker 

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



[issue37724] [[Errno 17] File exists: ] # Try create directories that are not part of the archive with

2019-07-31 Thread Giovanni Cappellotto


Giovanni Cappellotto  added the comment:

There's also the `makedirs`'s `exist_ok` optional parameter, `False` by 
default. You could use it to avoid this error, but I'm not an expert on this 
particular library, so I'm not sure if it would make sense to make this change.

On a side note, searching for `_extract_member`, I found a very similar 
implementation of that function in `tarfile.py`. In case I think we should 
apply the same behavior in that module too.

--
nosy: +potomak

___
Python tracker 

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



[issue29750] smtplib doesn't handle unicode passwords

2019-07-31 Thread Windson Yang


Windson Yang  added the comment:

Sorry, I forgot about this PR, I will update the patch depends on review soon :D

--

___
Python tracker 

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



[issue29750] smtplib doesn't handle unicode passwords

2019-07-31 Thread Sebastien Luttringer


Sebastien Luttringer  added the comment:

I hit the same issue.
Do you have news about the patch review and its inclusion?

--
nosy: +seblu

___
Python tracker 

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



[issue37734] Registry keys for Windows Store package have wrong executable

2019-07-31 Thread Steve Dower


Steve Dower  added the comment:

So far we've figured out that using the full installed path will work fine (by 
design) if you have enabled the matching alias. So essentially, if Python is on 
your PATH, you can also launch it using the full path.

I'm trying to convince them that it should only have to be installed for the 
current user. If they agree with that, we might get this fixed properly and 
then there's nothing to do here.

--

___
Python tracker 

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



[issue21161] list comprehensions don't see local variables in pdb in python3

2019-07-31 Thread daniel hahler


daniel hahler  added the comment:

Georg, please consider re-opening.
This patch here appears to fix this after all.

--
nosy: +blueyed
versions: +Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue37708] Harmonize random.choice(s) behavior with random.sample on iterators

2019-07-31 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

The sample() function accepts d.keys() because a keys view is registered as 
being an instance of collections.abc.Set.  We have to do that because sample() 
is specifically documented as accepting sets.  If we had it do over again, that 
functionality would likely not be supported (it implicitly the population into 
a tuple).

For a fine-grained function like choice() that implicit population conversion 
would make no sense at all.  For choices(), we can choose not to make that API 
mistake again.

Thanks for the suggestion, but I am going to decline.  It isn't something that 
we need in practice and it would add complication for near zero gain.  (Also, 
there is no rule that all of these functions have to accept the same kinds of 
inputs -- different algorithms and different use cases allow for some 
flexibility).

--
resolution:  -> rejected
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



[issue37708] Harmonize random.choice(s) behavior with random.sample on iterators

2019-07-31 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
assignee:  -> rhettinger

___
Python tracker 

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



[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-07-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14812
pull_request: https://github.com/python/cpython/pull/15063

___
Python tracker 

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



[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-07-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset ed5e8e06cbf766e89d6c58a882ee024abb5b2ed7 by Serhiy Storchaka 
(David H) in branch 'master':
bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in docs. 
(GH-15062)
https://github.com/python/cpython/commit/ed5e8e06cbf766e89d6c58a882ee024abb5b2ed7


--

___
Python tracker 

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



[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-07-31 Thread David Heiberg


Change by David Heiberg :


--
keywords: +patch
pull_requests: +14811
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/15062

___
Python tracker 

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



[issue37695] Incorrect error message for `unget_wch(bytes_object)`

2019-07-31 Thread miss-islington


miss-islington  added the comment:


New changeset 462f07040b39b778aa782d0f62050b70416dec7b by Miss Islington (bot) 
in branch '3.8':
bpo-37695: Correct unget_wch error message. (GH-14986)
https://github.com/python/cpython/commit/462f07040b39b778aa782d0f62050b70416dec7b


--

___
Python tracker 

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



[issue37695] Incorrect error message for `unget_wch(bytes_object)`

2019-07-31 Thread miss-islington


miss-islington  added the comment:


New changeset 35d9c37e271c35b87d64cc7422600e573f3ee244 by Miss Islington (bot) 
in branch '3.7':
bpo-37695: Correct unget_wch error message. (GH-14986)
https://github.com/python/cpython/commit/35d9c37e271c35b87d64cc7422600e573f3ee244


--
nosy: +miss-islington

___
Python tracker 

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



[issue37695] Incorrect error message for `unget_wch(bytes_object)`

2019-07-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14810
pull_request: https://github.com/python/cpython/pull/15061

___
Python tracker 

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



[issue37723] important performance regression on regular expression parsing

2019-07-31 Thread miss-islington


miss-islington  added the comment:


New changeset 77fcccb5321137456549b7f55b819f2c8a4c78a4 by Miss Islington (bot) 
in branch '3.8':
bpo-37723: Fix performance regression on regular expression parsing. (GH-15030)
https://github.com/python/cpython/commit/77fcccb5321137456549b7f55b819f2c8a4c78a4


--
nosy: +miss-islington, miss-islington

___
Python tracker 

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



[issue37723] important performance regression on regular expression parsing

2019-07-31 Thread miss-islington


miss-islington  added the comment:


New changeset 33b700ba8cbb128519442eeed8c8747ff73f4524 by Miss Islington (bot) 
in branch '3.7':
bpo-37723: Fix performance regression on regular expression parsing. (GH-15030)
https://github.com/python/cpython/commit/33b700ba8cbb128519442eeed8c8747ff73f4524


--
nosy: +miss-islington

___
Python tracker 

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



[issue37723] important performance regression on regular expression parsing

2019-07-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14809
pull_request: https://github.com/python/cpython/pull/15060

___
Python tracker 

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



[issue37723] important performance regression on regular expression parsing

2019-07-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 9f1f3df238e58315e724e50cb0d574d75b94 by Serhiy Storchaka 
(yannvgn) in branch 'master':
bpo-37723: Fix performance regression on regular expression parsing. (GH-15030)
https://github.com/python/cpython/commit/9f1f3df238e58315e724e50cb0d574d75b94


--

___
Python tracker 

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



[issue37723] important performance regression on regular expression parsing

2019-07-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14808
pull_request: https://github.com/python/cpython/pull/15059

___
Python tracker 

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



[issue37723] important performance regression on regular expression parsing

2019-07-31 Thread yannvgn


yannvgn  added the comment:

Hey Matthew,

we decided to go for this, which is simpler and straightforward:

def _uniq(items):
return list(dict.fromkeys(items))

(see https://github.com/python/cpython/pull/15030)

--

___
Python tracker 

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



[issue2920] Patch to print symbolic value of errno in OSError.__str__()

2019-07-31 Thread Eryk Sun


Eryk Sun  added the comment:

How about doing something similar for Windows when winerror is set? This is a 
common case since many os functions use the Windows API directly. Showing the 
symbolic error name will help to disambiguate exceptions, such as 

FileNotFoundError (ENOENT) from:

ERROR_FILE_NOT_FOUND
ERROR_PATH_NOT_FOUND
ERROR_FILENAME_EXCED_RANGE
ERROR_BAD_PATHNAME
ERROR_BAD_NET_NAME

PermissionError (EACCES) from:

ERROR_ACCESS_DENIED
ERROR_SHARING_VIOLATION
ERROR_LOCK_VIOLATION
ERROR_NETWORK_ACCESS_DENIED
ERROR_NOT_READY

It could also support additional error codes that are common or used 
internally, such as 

ERROR_NOT_SUPPORTED
ERROR_INVALID_NAME
ERROR_MOD_NOT_FOUND
ERROR_PRIVILEGE_NOT_HELD
ERROR_CANT_RESOLVE_FILENAME
ERROR_INVALID_REPARSE_DATA

Modules/_winapi.c:

ERROR_NETNAME_DELETED
ERROR_SEM_TIMEOUT
ERROR_PIPE_BUSY
ERROR_MORE_DATA
ERROR_PIPE_CONNECTED
ERROR_OPERATION_ABORTED
ERROR_IO_PENDING
ERROR_NO_SYSTEM_RESOURCES

--
nosy: +ZackerySpytz, eryksun

___
Python tracker 

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



[issue37544] Test hang causes --enable-optimizations build to hang

2019-07-31 Thread Ned Deily


Ned Deily  added the comment:

Jerek, is there anything more you are expecting us to do for this issue?  The 
only thing I can think of at the moment might be to add something to the 
"Profile Guided Optimization" section of the top-level README.rst to include 
@gps's suggestions for tailoring PROFILE_TASK.

--

___
Python tracker 

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



[issue34313] Tkinter crashes with Tk-related error on macOS with ActiveTcl 8.6

2019-07-31 Thread Ned Deily


Ned Deily  added the comment:

Good question. I don't think there's anything more to do here other than to 
continue to monitor and evaluate future Tk releases, which we do anyway.  
Improvements to the build documentation etc are covered by other open issues.

--
resolution:  -> third party
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



[issue37723] important performance regression on regular expression parsing

2019-07-31 Thread Matthew Barnett


Matthew Barnett  added the comment:

I've just had a look at _uniq, and the code surprises me.

The obvious way to detect duplicates is with a set, but that requires the items 
to be hashable. Are they?

Well, the first line of the function uses 'set', so they are.

Why, then, isn't it using a set to detect the duplicates?

How about this:

def _uniq(items):
newitems = []
seen = set()
for item in items:
if item not in seen:
newitems.append(item)
seen.add(item)
return newitems

--

___
Python tracker 

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



[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-07-31 Thread Brett Cannon


Change by Brett Cannon :


--
nosy: +brett.cannon

___
Python tracker 

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



[issue37735] Current Region as a Method either in openpyxl.worksheet.cell.Cell or .cell_range.CellRange

2019-07-31 Thread Brett Cannon


Brett Cannon  added the comment:

This is the issue tracker for Python itself, not openpyxl, so this isn't the 
right place to report this. I would go to openpyxl's website and see where they 
specify to report bugs.

--
nosy: +brett.cannon
resolution:  -> third party
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



[issue37735] Current Region as a Method either in openpyxl.worksheet.cell.Cell or .cell_range.CellRange

2019-07-31 Thread anand Mohan


New submission from anand Mohan :

Excel has a CurrentRegion Method that is invoked as 
Range(range_string).CurrentRegion

The Idea behind this is to choose a region that have contiguous blank cells on 
all sides ( except the case of 1 column and 1 row ) that separate

I have Python code that I written to accomplish this Method. I have extended 
the CellRange class and added the methodand it is working as expected.

Please let me know if this will be a useful feature and I will submit code. It 
may not be the best code, but has performed well and correctly in all my 
testing so far 

Please see example snap shots attached fro Current Region is expected to work 
(for reference from the link
https://www.excel-easy.com/vba/examples/currentregion.html

Here is additional reference to the Method as implemented in Excel VBA
https://docs.microsoft.com/en-us/office/vba/api/excel.range.currentregion

--
components: Demos and Tools
files: CurrentRegion.Example.png
messages: 348815
nosy: anand Mohan
priority: normal
severity: normal
status: open
title: Current Region as a Method either in openpyxl.worksheet.cell.Cell or 
.cell_range.CellRange
type: enhancement
versions: Python 3.7
Added file: https://bugs.python.org/file48524/CurrentRegion.Example.png

___
Python tracker 

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



[issue37734] Registry keys for Windows Store package have wrong executable

2019-07-31 Thread Jeremy Kloth


Change by Jeremy Kloth :


--
nosy: +jkloth

___
Python tracker 

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



[issue37723] important performance regression on regular expression parsing

2019-07-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Oh, this is convincing.

--

___
Python tracker 

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



[issue37723] important performance regression on regular expression parsing

2019-07-31 Thread yannvgn


yannvgn  added the comment:

> Indeed, it was not expected that the character set contains hundreds of 
> thousands items. What is its size in your real code?

> Could you please show benchmarking results for different implementations and 
> different sizes?

I can't precisely answer that, but sacremoses (a tokenization package) for 
example is strongly impacted. See 
https://github.com/alvations/sacremoses/issues/61#issuecomment-516401853

--

___
Python tracker 

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



[issue37734] Registry keys for Windows Store package have wrong executable

2019-07-31 Thread Steve Dower


New submission from Steve Dower :

The next update to Windows will prevent launching executables from within the 
package install folder, and require you to launch from the user's local symlink 
to the executable (see issue37369).

Currently, the only value we can put into the registry when installing via the 
Store package points directly to the package install. There is no way to point 
at the local symlink.

I'm working with the Windows team to find either a fix or a workaround, but 
right now anyone who updates to preview Windows (or gets the update when it 
releases at the end of the year) will not be able to launch Python through 
tools that look in the registry.

--
assignee: steve.dower
components: Windows
messages: 348812
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Registry keys for Windows Store package have wrong executable
type: behavior
versions: Python 3.8, Python 3.9

___
Python tracker 

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



[issue28053] parameterize what serialization is used in multiprocessing

2019-07-31 Thread Pierre Glaser


Change by Pierre Glaser :


--
pull_requests: +14807
pull_request: https://github.com/python/cpython/pull/15058

___
Python tracker 

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



[issue35943] PyImport_GetModule() can return partially-initialized module

2019-07-31 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


--
keywords: +patch
pull_requests: +14806
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/15057

___
Python tracker 

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



[issue37733] Fail to build _curses module of Python 3.7.4 on AIX 7.1 using gcc

2019-07-31 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +David.Edelsohn

___
Python tracker 

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



[issue37733] Fail to build _curses module of Python 3.7.4 on AIX 7.1 using gcc

2019-07-31 Thread STINNER Victor


Change by STINNER Victor :


--
title: Fail to build Python 3.7.4 on AIX 7.1 using gcc -> Fail to build _curses 
module of Python 3.7.4 on AIX 7.1 using gcc

___
Python tracker 

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



[issue37733] Fail to build Python 3.7.4 on AIX 7.1 using gcc

2019-07-31 Thread LIU YONG


New submission from LIU YONG :

Trying to build Python 3.7.4 on AIX 7.1 using gcc 6.3.0 but failed

Failed to build these modules:
_ctypes   _curses   _curses_panel


building '_curses' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration 
-I./Include -I. -I/uxx/bxx/Python-3.7.4/Include -I/uxx/bxx/Python-3.7.4 -c 
/uxx/bxx/Python-3.7.4/Modules/_cursesmodule.c -o 
build/temp.aix-7.1-3.7/uxx/bxx/Python-3.7.4/Modules/_cursesmodule.o
Modules/ld_so_aix gcc -pthread -bI:Modules/python.exp 
build/temp.aix-7.1-3.7/uxx/bxx/Python-3.7.4/Modules/_cursesmodule.o -lncurses 
-o build/lib.aix-7.1-3.7/_curses.so
ld: 0711-317 ERROR: Undefined symbol: .box32
ld: 0711-317 ERROR: Undefined symbol: ._setqiflush
ld: 0711-317 ERROR: Undefined symbol: .setsyx
ld: 0711-317 ERROR: Undefined symbol: ._getsyx
ld: 0711-317 ERROR: Undefined symbol: .w32attroff
ld: 0711-317 ERROR: Undefined symbol: .w32attron
ld: 0711-317 ERROR: Undefined symbol: .w32attrset
ld: 0711-317 ERROR: Undefined symbol: .w32addch
ld: 0711-317 ERROR: Undefined symbol: _unctrl
ld: 0711-317 ERROR: Undefined symbol: .w32insch
ld: 0711-317 ERROR: Undefined symbol: .w32echochar
ld: 0711-317 ERROR: Undefined symbol: .p32echochar
ld: 0711-317 ERROR: Undefined symbol: .initscr32
ld: 0711-317 ERROR: Undefined symbol: wacs_map
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: error: ld returned 8 exit status
building '_curses_panel' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration 
-I./Include -I. -I/uxx/bxx/Python-3.7.4/Include -I/uxx/bxx/Python-3.7.4 -c 
/uxx/bxx/Python-3.7.4/Modules/_curses_panel.c -o 
build/temp.aix-7.1-3.7/uxx/bxx/Python-3.7.4/Modules/_curses_panel.o
In file included from /opt/freeware/include/ncurses/panel.h:42:0,
 from /uxx/bxx/Python-3.7.4/Modules/_curses_panel.c:17:
/opt/freeware/include/ncurses/curses.h:388:16: error: conflicting types for 
'attr_t'
 typedef chtype attr_t;  /* ...must be at least as wide as chtype */
^~
In file included from ./Include/py_curses.h:36:0,
 from /uxx/bxx/Python-3.7.4/Modules/_curses_panel.c:15:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/6.3.0/include-fixed/curses.h:80:21:
 note: previous declaration of 'attr_t' was here
 typedef int attr_t;
 ^~

--
components: Build
messages: 348811
nosy: LIU YONG
priority: normal
severity: normal
status: open
title: Fail to build Python 3.7.4 on AIX 7.1 using gcc
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



[issue34101] PyBuffer_GetPointer() not documented

2019-07-31 Thread miss-islington


miss-islington  added the comment:


New changeset 29a3a33d99dae0106c6af9d0fd75a11bef26d15c by Miss Islington (bot) 
in branch '3.8':
bpo-34101: Add doc of PyBuffer_GetPointer (GH-14994)
https://github.com/python/cpython/commit/29a3a33d99dae0106c6af9d0fd75a11bef26d15c


--
nosy: +miss-islington

___
Python tracker 

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



[issue34101] PyBuffer_GetPointer() not documented

2019-07-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14805
pull_request: https://github.com/python/cpython/pull/15056

___
Python tracker 

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



[issue34101] PyBuffer_GetPointer() not documented

2019-07-31 Thread Antoine Pitrou


Change by Antoine Pitrou :


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

___
Python tracker 

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



[issue34101] PyBuffer_GetPointer() not documented

2019-07-31 Thread Antoine Pitrou


Change by Antoine Pitrou :


--
versions: +Python 3.9

___
Python tracker 

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



[issue34101] PyBuffer_GetPointer() not documented

2019-07-31 Thread Antoine Pitrou


Antoine Pitrou  added the comment:


New changeset 353306137176985f1a2995ff964b0c00eccd1434 by Antoine Pitrou (Miss 
Islington (bot)) in branch '3.7':
bpo-34101: Add doc of PyBuffer_GetPointer (GH-14994) (GH-15055)
https://github.com/python/cpython/commit/353306137176985f1a2995ff964b0c00eccd1434


--

___
Python tracker 

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



[issue34101] PyBuffer_GetPointer() not documented

2019-07-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14804
pull_request: https://github.com/python/cpython/pull/15055

___
Python tracker 

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



[issue34101] PyBuffer_GetPointer() not documented

2019-07-31 Thread Antoine Pitrou


New submission from Antoine Pitrou :


New changeset 1b29af83bc17e773b0c0d117f5fe1018fde46b0d by Antoine Pitrou (Hai 
Shi) in branch 'master':
bpo-34101: Add doc of PyBuffer_GetPointer (GH-14994)
https://github.com/python/cpython/commit/1b29af83bc17e773b0c0d117f5fe1018fde46b0d


--

___
Python tracker 

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



[issue37731] Possible redifinition of _POSIX_C_SOURCE in ./pyconfig.h

2019-07-31 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


--
type: behavior -> compile error

___
Python tracker 

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



[issue37732] Possible uninitialized variable in Objects/obmalloc.c

2019-07-31 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


--
type: behavior -> compile error

___
Python tracker 

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



[issue37732] Possible uninitialized variable in Objects/obmalloc.c

2019-07-31 Thread Joannah Nanjekye

New submission from Joannah Nanjekye :

Here is a compilation warning I got;

Objects/obmalloc.c: In function ‘_PyObject_Malloc’:
Objects/obmalloc.c:1646:16: warning: ‘ptr’ may be used uninitialized in this 
function [-Wmaybe-uninitialized]
 return ptr;
^~~
We can investigate If its not a false alarm.

--
messages: 348807
nosy: nanjekyejoannah
priority: normal
severity: normal
status: open
title: Possible uninitialized variable in Objects/obmalloc.c
type: behavior

___
Python tracker 

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



[issue37731] Possible redifinition of _POSIX_C_SOURCE in ./pyconfig.h

2019-07-31 Thread Joannah Nanjekye


New submission from Joannah Nanjekye :

While compiling Python, I got this warning.

./pyconfig.h:1590:0: warning: "_POSIX_C_SOURCE" redefined
 #define _POSIX_C_SOURCE 200809L

In file included from 
/usr/include/s390x-linux-gnu/bits/libc-header-start.h:33:0,
 from /usr/include/string.h:26,
 from 
/homes/jnanjeky/projects/cpython/Modules/expat/xmltok.c:34:
/usr/include/features.h:294:0: note: this is the location of the previous 
definition
 # define _POSIX_C_SOURCE 199506L

I think there is need to investigate this warning and potential remedy.

--
messages: 348806
nosy: nanjekyejoannah
priority: normal
severity: normal
status: open
title: Possible redifinition of _POSIX_C_SOURCE in ./pyconfig.h
type: behavior

___
Python tracker 

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



[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-07-31 Thread David Heiberg


David Heiberg  added the comment:

Super, thanks for the help, I'll submit a PR as soon as it is ready

--

___
Python tracker 

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



[issue36974] Implement PEP 590

2019-07-31 Thread STINNER Victor


STINNER Victor  added the comment:

> [3.8] bpo-36974: separate vectorcall functions for each calling convention 
> (GH-13781) (#14782)
> https://github.com/python/cpython/commit/bf8e82f976b37856c7d35cdf88a238cb6f57fe65

FYI this change caused a regression in libcomps with Python 3.8 beta3, whereas 
it works well with Python 3.8 beta2.

It's not a bug in Python, but it was a bug in libcomps (already fixed 
upstream). I just fixed libcomps:
https://github.com/rpm-software-management/libcomps/pull/50

This project used the following method descriptors (for module functions):

{"categories_match", (PyCFunction)PyCOMPS_categories_match, METH_KEYWORDS,
 PyCOMPS_validate__doc__},
{"environments_match", (PyCFunction)PyCOMPS_envs_match, METH_KEYWORDS,
 PyCOMPS_validate__doc__},

In Python 3.7, importing the module was just fine: descriptor flags are only 
checked at the  first call to the method.

In Python 3.8, descriptor flags are checked when the module is imported.

Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=1734777

The fix is to use the right flags: "METH_VARARGS | METH_KEYWORDS" instead of 
"METH_KEYWORDS".

Should we add a note like "if you get a 'SystemError: bad call flags' on 
import, check the descriptor flags of your functions" in What's New in Python 
3.8? Maybe with a link to this issue.
https://docs.python.org/dev/whatsnew/3.8.html#changes-in-the-c-api

--
nosy: +vstinner

___
Python tracker 

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



[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-07-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Create a PR for master. When it be merged it can be backported automatically to 
other branches. Sometimes it may require manually backporting, but changes 
should be merged to master first.

--

___
Python tracker 

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



[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-07-31 Thread David Heiberg


David Heiberg  added the comment:

I'm happy to take a look at this, I found one example here: 
https://docs.python.org/3/library/winreg.html#winreg.DisableReflectionKey

How would I go about submitting a patch for all of the docs across the 
versions? Would I apply the patch to the relevant branches and submit a PR for 
each? Still fairly new to this, thanks for any pointers!

--
nosy: +dheiberg

___
Python tracker 

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



[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-07-31 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

In some places in the documentation NotImplemented is used instead of correct 
NotImplementedError.

All occurrences of NotImplemented should be manually checked and wrong spelling 
should be corrected.

--
assignee: docs@python
components: Documentation
keywords: easy, newcomer friendly
messages: 348801
nosy: docs@python, serhiy.storchaka
priority: normal
severity: normal
status: open
title: NotImplemented is used instead of NotImplementedError in docs
versions: Python 2.7, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue37695] Incorrect error message for `unget_wch(bytes_object)`

2019-07-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset c9345e382c630ddcc2b148b30954640e0e435c8a by Serhiy Storchaka 
(Anthony Sottile) in branch 'master':
bpo-37695: Correct unget_wch error message. (GH-14986)
https://github.com/python/cpython/commit/c9345e382c630ddcc2b148b30954640e0e435c8a


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue37695] Incorrect error message for `unget_wch(bytes_object)`

2019-07-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14803
pull_request: https://github.com/python/cpython/pull/15053

___
Python tracker 

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



[issue37085] Expose additional socket constants for CAN_BCM flags

2019-07-31 Thread Tal Einat


Tal Einat  added the comment:

Karl, many thanks for bringing this up, making a PR and iterating on it with me!

--
nosy: +taleinat
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.9

___
Python tracker 

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



[issue37729] gc: stats from multi process are mixed up

2019-07-31 Thread Inada Naoki


Inada Naoki  added the comment:

I updated the PR to show "gc: collecting generation 0...\n" before counting 
objects in each generations.

--

___
Python tracker 

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



[issue37726] Tutorial should not recommend getopt

2019-07-31 Thread mental


mental  added the comment:

It's nice to see the newcomer friendly tag being encouraged :thumbsup:

I'm submitting a PR for a doc change (I'd appreciate a review :D).

I've replaced any mention of getopt in the tutorial section with the argparse 
module. Additionally I have added several small examples of usage promoting its 
usability.

Should the section recommend using other dedicated packages for parsing: fire, 
click, docopt? urllib.request does this for the requests package.

--
nosy: +mental

___
Python tracker 

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



[issue37726] Tutorial should not recommend getopt

2019-07-31 Thread mental


Change by mental :


--
keywords: +patch
pull_requests: +14802
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/15052

___
Python tracker 

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



[issue37729] gc: stats from multi process are mixed up

2019-07-31 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

Delaying the write means you don't get an indication of the steps in the 
process; if someone is trying to debug a crash caused by corruption of the gc 
list (e.g. due to a bad extension module), deferring the writes means they 
won't see any output before the crash, where before, they'd see:

gc: collecting generation 0...
gc: objects in each generation:

and numbers for however many gc list traversals succeeded before the corrupt 
entry in the gc list was hit.

--
nosy: +josh.r

___
Python tracker 

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



[issue37729] gc: stats from multi process are mixed up

2019-07-31 Thread Inada Naoki


Change by Inada Naoki :


--
keywords: +patch
pull_requests: +14801
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/15050

___
Python tracker 

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



[issue37729] gc: stats from multi process are mixed up

2019-07-31 Thread Inada Naoki


New submission from Inada Naoki :

gc used several PySys_WriteStderr() calls to write stats.
This caused stats mixed up when stderr is shared by multiple
threads or processes.

Attached file (t.py) demonstrates it.
Sometimes stats from two processes are mixed up like this:

```
gc: collecting generation 0...
gc: objects in each generation: 782 0 7759
gc: objects in permanent generation: 0gc: collecting generation 0...

gc: objects in each generation: 782 0 7764
gc: objects in permanent generation: 0gc: done, 781 unreachable, 0 
uncollectable, 0.0001s elapsed

gc: done, 781 unreachable, 0 uncollectable, 0.s elapsed
```

Writing one stat by one PySys_WriteStderr() reduces this.

--
components: Interpreter Core
files: t.py
messages: 348795
nosy: inada.naoki
priority: normal
severity: normal
status: open
title: gc: stats from multi process are mixed up
versions: Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file48523/t.py

___
Python tracker 

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



[issue37728] 'is' behaving differently in script and interactive shel

2019-07-31 Thread Eryk Sun


Eryk Sun  added the comment:

The CPython interpreter doesn't centrally cache and reuse float objects, and 
even if it did that would be an implementation detail, like what it does with 
small int objects and strings. 

What you're seeing at the module level is a compilation side effect. The 
compiler is free to reuse immutable constants in a code object. For example:

>>> code = compile('af=1.1\nbf=1.1', '', 'exec')
>>> dis.dis(code)
  1   0 LOAD_CONST   0 (1.1)
  2 STORE_NAME   0 (af)

  2   4 LOAD_CONST   0 (1.1)
  6 STORE_NAME   1 (bf)
  8 LOAD_CONST   1 (None)
 10 RETURN_VALUE

In the above case, both af and bf are initialized with the same `1.1` constant 
float object, which is at index 0 of the code object's tuple of constants: 

>>> code.co_consts
(1.1, None)

But if we run `af=1.1` and `bf=1.1` as separate statements in the REPL shell, 
the statements are compiled separately, and af and bf won't necessarily 
reference the same float object. 

Don't expect two immutable objects that have the same value to be the same 
object -- unless it's a singleton such as `None` and `Ellipsis`:

>>> type(None)() is None
True
>>> type(Ellipsis)() is Ellipsis
True

Or an n-way extension of this case, such as bool in Python 3:

>>> bool(0) is False
True
>>> bool(1) is True
True

The consequences of immutability on object identity are discussed briefly in 
the final paragraph of "3.1 Objects, values, and types" [1]. Offhand, I don't 
know where the specific implementation details of CPython builtin immutable 
types and compiler behavior are discussed, if it's discussed at all.

[1] https://docs.python.org/3/reference/datamodel.html#objects-values-and-types

--
nosy: +eryksun
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



[issue37085] Expose additional socket constants for CAN_BCM flags

2019-07-31 Thread miss-islington


miss-islington  added the comment:


New changeset d8b914a30b0849476345a19ce0a0ab1ade171b19 by Miss Islington (bot) 
in branch '3.8':
bpo-37085: Expose SocketCAN bcm_msg_head flags (GH-13646)
https://github.com/python/cpython/commit/d8b914a30b0849476345a19ce0a0ab1ade171b19


--
nosy: +miss-islington

___
Python tracker 

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



[issue37085] Expose additional socket constants for CAN_BCM flags

2019-07-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14800
pull_request: https://github.com/python/cpython/pull/15049

___
Python tracker 

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



[issue37085] Expose additional socket constants for CAN_BCM flags

2019-07-31 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 31c4fd2a10d90beaa37d630e5f74a471e14e089d by Łukasz Langa (karl 
ding) in branch 'master':
bpo-37085: Expose SocketCAN bcm_msg_head flags (#13646)
https://github.com/python/cpython/commit/31c4fd2a10d90beaa37d630e5f74a471e14e089d


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue37728] 'is' behaving differently in script and interactive shel

2019-07-31 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Hi rathinavelu thiruvenkatam, cPython has some optimizations where some 
immutable constants will be folded in the same object to save memory so this is 
not a bug, it's just that those optimization are not run when typing directly 
in the shell.

You should just use == to compare floats.

--
nosy: +remi.lapeyre

___
Python tracker 

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



[issue37728] 'is' behaving differently in script and interactive shel

2019-07-31 Thread rathinavelu thiruvenkatam


New submission from rathinavelu thiruvenkatam :

af=1.1
bf=1.1
print(f'{af==bf},{af is bf}, {bf is af}' )

"""  Script outputs
 True,True, True. 

On Shell 
af=1.1
bf=1.1
print(f'{af==bf},{af is bf}, {bf is af}' )
True,False, False
"""

--
messages: 348790
nosy: rathinavelu thiruvenkatam
priority: normal
severity: normal
status: open
title: 'is'  behaving differently in script and interactive shel
type: behavior
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



[issue37723] important performance regression on regular expression parsing

2019-07-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Indeed, it was not expected that the character set contains hundreds of 
thousands items. What is its size in your real code?

Could you please show benchmarking results for different implementations and 
different sizes?

--

___
Python tracker 

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



[issue37723] important performance regression on regular expression parsing

2019-07-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +serhiy.storchaka

___
Python tracker 

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