[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-26 Thread tom.r


tom.r  added the comment:

Frankly, because it bothered me that ``...`` evaluates to ``Ellipsis`` but that 
``Ellipsis`` could never print as ``...``.

--

___
Python tracker 

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



[issue34512] Document platform-specific strftime() behavior for non-ASCII format strings

2018-09-26 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue34512] Document platform-specific strftime() behavior for non-ASCII format strings

2018-09-26 Thread Tal Einat


Change by Tal Einat :


--
versions: +Python 2.7, Python 3.5

___
Python tracker 

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



[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-26 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the PR but this seems to be backwards incompatible though I don't 
know if anyone depends on this and I am curious about the reason to change. 
Since this was added in e449af7da94 (1996) and I am not sure if this needs to 
be changed though it's up to Guido to take a call. There seems to be no tests 
for this in test suite that catches this change too.

$ python2.7
Python 2.7.14 (default, Mar 12 2018, 13:54:56)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> str(Ellipsis)
'Ellipsis'
>>> repr(Ellipsis)
'Ellipsis'

Thanks

--

___
Python tracker 

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



[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

What is the rationale of this change?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +gvanrossum

___
Python tracker 

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



[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-26 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue32956] python 3 round bug

2018-09-26 Thread Nathaniel Smith


Nathaniel Smith  added the comment:

FWIW, I hadn't noticed this change in py3, but it would never have occurred to 
me that it's controversial... I thought everyone who'd studied the issue agreed 
that round-half-to-even was the best default :-). Numpy has always done 
round-to-even, and it's the default rounding mode mandated by IEEE754. (This 
doesn't mean that they mandate that round() itself follow this rule, but the 
implicit rounding that all floating point operations do has to follow this 
rule.) See also: https://en.wikipedia.org/wiki/Rounding#Round_half_to_even

--
nosy: +njs

___
Python tracker 

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



[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-26 Thread tom.r


Change by tom.r :


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

___
Python tracker 

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



[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-26 Thread tom.r


New submission from tom.r :

Added ellipsis_str function to Objects/sliceobject.c such that 
str(Ellipsis)=='...'.

--
components: Interpreter Core
files: sliceobject.c
messages: 326522
nosy: photofone
priority: normal
severity: normal
status: open
title: Change Py_Ellipse __str__ behavior.
type: enhancement
versions: Python 3.8
Added file: https://bugs.python.org/file47833/sliceobject.c

___
Python tracker 

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



[issue34806] distutils tests fail with recent 3.7 branch

2018-09-26 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

@doko As an update 3.7.1rc1 is available . The fixes should be there. I think 
they are worth checking out to see if the cases still fail or if you can add 
the links for the branches 20180925 and 20180911 snapshot. I can do a clean 
rebuild of these branches to test them.

3.7.rc1 announcement : 
https://mail.python.org/pipermail/python-dev/2018-September/155329.html

Thanks

--

___
Python tracker 

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



[issue34803] argparse int type does not accept scientific notation

2018-09-26 Thread paul j3


paul j3  added the comment:

The `type` parameter is normally a function (or more generally a callable).  
When given a string it should convert it as needed, or raise an error.  In your 
example that function is the stock, 'int()'.

Test `int('123')`, `int('1e3')` etc for yourself to see what it can handle.

If you want to convert '1e3' to an integer, write your own function that handle 
it.  Don't expect argparse or the stock int() to do it for you.

More commonly people use 'type=bool', expecting it convert 'True' or 'False' 
strings to boolean values.  But that's not what the bool() function does.

To reiterate, 'type' is a function, not a desired class.

Since this is not a bug, I think this should be closed.

--
nosy: +paul.j3

___
Python tracker 

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



[issue34744] New %(flag)s format specifier for argparse.add_argument help string

2018-09-26 Thread paul j3


paul j3  added the comment:

The preferred way of adding new features to the Formatter is to subclass it, 
and modify one or more methods.  That's what the existing alternative 
formatters do.

A user can easily create such a subclass, and use it with their own parser, 
without having to modify the stock `argparse.py` file.

Given that flexibility, adding new features (as opposed to bug fixes) to the 
help formatter should have a low priority.

--

___
Python tracker 

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



[issue31551] test_distutils fails if current directory contains spaces

2018-09-26 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

There is a similar issue with whitespace in filenames causing failure in 
bdist_rpm tracked at issue809163. It has test cases but unfortunately the issue 
didn't move forward and has only patches. I tried the patches but none of them 
seem to fix the issue here. The issue seems to be in spec file generation with 
space in path of python executable. Did some debugging and my analysis as 
follows. Renamed my source directory 'cpython' as 'cpy thon' and made a clean 
build. It seems that sys.executable returns '/home/karthi/cpy thon/python' 
which is used as the python binary for the commands and hence with normal 
string concatenation the spec file generated [0] . I tried very basic fix of 
sys.executable.replace(' ', '\ ') to be used as a path. It generates the 
correct spec file [1] which passes and ./python -m test -vuall test_distutils 
also passes.

I am not sure if Python has a function to escape spaces for shell commands 
which would be more reliable. I tried shlex.quote but it handles only ' and ". 
I think having space in the directory might cause issues in places where we use 
string concatenation with sys.executable without taking spaces into account 
like the other issue with windows. I will try running the test suite sometime 
with space.

[0] With spaces. The commands that fail are /home/karthi/cpy thon/python 
setup.py build and /home/karthi/cpy thon/python setup.py install -O1 
--root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

%define name foo
%define version 0.1
%define unmangled_version 0.1
%define release 1

Summary: UNKNOWN
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{unmangled_version}.tar.gz
License: UNKNOWN
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: %{_prefix}
BuildArch: noarch
Vendor: xxx 
Url: xxx

%description
UNKNOWN

%prep
%setup -n %{name}-%{unmangled_version}

%build
/home/karthi/cpy thon/python setup.py build

%install
/home/karthi/cpy thon/python setup.py install -O1 --root=$RPM_BUILD_ROOT 
--record=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)


[1] sys.executable.replace(' ', '\ ') and the tests pass


%define name foo
%define version 0.1
%define unmangled_version 0.1
%define release 1

Summary: UNKNOWN
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{unmangled_version}.tar.gz
License: UNKNOWN
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: %{_prefix}
BuildArch: noarch
Vendor: xxx 
Url: xxx

%description
UNKNOWN

%prep
%setup -n %{name}-%{unmangled_version}

%build
/home/karthi/cpy\ thon/python setup.py build

%install
/home/karthi/cpy\ thon/python setup.py install -O1 --root=$RPM_BUILD_ROOT 
--record=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)


I am adding 3.8 also as a target as part of triaging this issue.

Thanks

--
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



[issue34370] Tkinter scroll issues on macOS

2018-09-26 Thread Ned Deily


Ned Deily  added the comment:

FYI, for the python.org binary macOS installers for the 3.7.1rc1 and 3.6.7rc1 
releases, I cherry-picked a post-8.6.8 development snapshot of Tk 8.6 that 
should include Kevin's fix.  I would appreciate any feedback one way or the 
other whether this version of Tk 8.6 improves things over the vanilla 8.6.8 
version used for the 3.7.0 and 3.6.6 releases.  Thanks!

--
nosy: +rhettinger
resolution:  -> third party
stage:  -> commit review
status: open -> pending

___
Python tracker 

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



[issue34370] Tkinter scroll issues on macOS

2018-09-26 Thread Ned Deily


Ned Deily  added the comment:


New changeset d9cfe5ed2c2c61eeae915b76f5e10aadbbb28da6 by Ned Deily in branch 
'3.7':
bpo-34370: Update Tk 8.6 used with macOS installers
https://github.com/python/cpython/commit/d9cfe5ed2c2c61eeae915b76f5e10aadbbb28da6


--

___
Python tracker 

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



[issue34370] Tkinter scroll issues on macOS

2018-09-26 Thread Ned Deily


Ned Deily  added the comment:


New changeset adf493227f1efd5d6b34f46b854142bf3b5a411c by Ned Deily in branch 
'3.6':
bpo-34370: Update Tk 8.6 used with macOS installers
https://github.com/python/cpython/commit/adf493227f1efd5d6b34f46b854142bf3b5a411c


--
nosy: +ned.deily

___
Python tracker 

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



[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

2018-09-26 Thread Eryk Sun


Eryk Sun  added the comment:

In a patch review [1] for issue 24505, I had a discussion with Toby Tobkin 
about extending the behavior of shutil.which() on Windows. This was to match 
the behavior of the CMD shell, including securing the search path via 
NeedCurrentDirectoryForExePath, searching for the exact filename, and 
implementing a real execute-access check. 

CMD won't directly execute a file that lacks execute access -- even a script or 
data file. We can implement this with a real implementation of os.access() that 
checks file security, for which there's an existing issue. (My previous 
suggestion to use CreateProcess and AssocQueryString to check for execute 
access was over the top. At the time I was thinking about building out support 
for a high-level shutil.execute, but it's out of scope here.)

Note that CMD will only try to execute an extensionless file if "." is in 
PATHEXT. (In the Windows file namespace, "name" and "name." are equivalent.) 
This obviously works for PE binaries, but we can also define an association for 
"." in the registy, which is useful for extensionless script files. Just 
associate "." files with a launcher that tries CreateProcess and falls back on 
a shebang line.

[1]: 
https://web.archive.org/web/20170619131224/http://bugs.python.org:80/review/24505/diff/16179/Lib/shutil.py

--
nosy: +eryksun

___
Python tracker 

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



[issue34691] _contextvars missing in xmaster branch Windows build?

2018-09-26 Thread Helena Centanin


Helena Centanin  added the comment:

Good night I installed the python program at the start it appears this message
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit 
(Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>>

--
components: +Installation -Build, Library (Lib), Windows
nosy: +helena.marina
title: _contextvars missing in x64 master branch Windows build? -> _contextvars 
missing in xmaster branch Windows build?
versions: +Python 3.7 -Python 3.8
Added file: https://bugs.python.org/file47832/Captura de Tela (12).png

___
Python tracker 

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



[issue34751] Hash collisions for tuples

2018-09-26 Thread Tim Peters


Tim Peters  added the comment:

>> The two-liner above with the xor in the second line is
>> exactly Bernstein 33A, followed by a permutation
>> of 33A's _output_ space.

> Not output space, but internal state

?  33A's output _is_ its internal state at the end.  This is a distinction that 
makes no difference.  I do distinguish here between 33A and the output of 
Python's `tuplehash()`, but the output space of both on a 64-bit box is a 
64-bit int, so that's another pointless distinction to me.

> (I assume that you do that operation inside the loop).

Yes, as I said at the start, "this is the only code remaining in the loop apart 
from setting y to the next tuple component's hash".

> It's replacing DJBX33A by a different algorithm which is not
> DJBX33A.

Replacing DJBX33A's multiplier of 33 is also a different algorithm.  So is 
working with inputs other than unsigned bytes.  So is mucking with the inputs 
before adding them in.

> It may or may not work, that's not my point. It's just that
> I would avoid changing the structure of the algorithm if
> there is no reason to.

Which is also fine by me, except I see no actual reason to care.  All 
variations of "chain permutations" I've tried appear to work fine, except for 
those (which I haven't mentioned at all) that tried replacing multiplication 
with "weaker" permutations.

A minor exception is that, as already mentioned, applying the "leftshift-xor" 
permutation to the inputs with a shift count of 1 didn't pass the original 
tuple hash test in several cases.

--

___
Python tracker 

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



[issue31425] Expose AF_QIPCRTR in socket module

2018-09-26 Thread Tal Einat


Tal Einat  added the comment:


New changeset f55c64c632af438d0daa043acdd95a5e74f31441 by Tal Einat in branch 
'master':
bpo-31425: fix versionadded in docs and add attribution in NEWS (GH-9595)
https://github.com/python/cpython/commit/f55c64c632af438d0daa043acdd95a5e74f31441


--

___
Python tracker 

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



[issue31425] Expose AF_QIPCRTR in socket module

2018-09-26 Thread Tal Einat


Change by Tal Einat :


--
pull_requests: +8993

___
Python tracker 

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



[issue34521] test_socket.RecvmsgIntoSCMRightsStreamTest fails on AMD64 FreeBSD CURRENT Debug 3.x

2018-09-26 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue34751] Hash collisions for tuples

2018-09-26 Thread Jeroen Demeyer


Jeroen Demeyer  added the comment:

> The two-liner above with the xor in the second line is exactly Bernstein 33A, 
> followed by a permutation of 33A's _output_ space.

Not output space, but internal state (I assume that you do that operation 
inside the loop). It's replacing DJBX33A by a different algorithm which is not 
DJBX33A. It may or may not work, that's not my point. It's just that I would 
avoid changing the structure of the algorithm if there is no reason to.

--

___
Python tracker 

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



[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2018-09-26 Thread Xavier de Gaye


Xavier de Gaye  added the comment:

> Downstream (RHEL) issue:
> https://bugzilla.redhat.com/show_bug.cgi?id=1585201

Not sure that this is a bug. As Petr Viktorin points out in Comment #4, the 
reproducer is not expected to work because of the semantics of RTLD_LOCAL.

So the current bpo issue would be related only to a slight inconsistency 
between the build of extension modules by distutils and those built by the 
Makefile.

However, it seems that the loader of Android requires that those libraries be 
explicitly linked against libpython:

* The last paragraph on https://github.com/termux/termux-packages and the 
related termux issue "Shared library symbols not visible on dlopen()?" (at 
https://github.com/android-ndk/ndk/issues/201) explain this point.

* The issue I have submitted to pyephem "android cross-build needs the 
extension module to be linked against the math library" at 
https://github.com/brandon-rhodes/pyephem/issues/114 confirms this point on 
Android API level 21.

--

___
Python tracker 

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



[issue34751] Hash collisions for tuples

2018-09-26 Thread Jeroen Demeyer


Jeroen Demeyer  added the comment:

> please restore the original tuple hash test.

Sure. I wasn't sure what to do and was I afraid that having 2 tests for tuple 
hashes would be too much. If that's OK for you, then surely I will restore the 
test.

--

___
Python tracker 

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



[issue34751] Hash collisions for tuples

2018-09-26 Thread Jeroen Demeyer


Jeroen Demeyer  added the comment:

> Do you believe any other multiplier would work better toward that end?

Absolutely. Ideally, the multiplier should just be a random 64-bit number.

--

___
Python tracker 

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



[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

2018-09-26 Thread Steve Dower


Steve Dower  added the comment:

It certainly doesn't match "which" semantics, but given the F_OK and X_OK flags 
I can see cases where it ought not to. I'm not sure it does what it implies for 
those either though.

I can see uses for "find files according to 'which'" and "find executable files 
according to 'which'".

Either way, I don't see an easy way to change the semantics any earlier than 
3.8, so changing the target.

--
versions: +Python 3.8 -Python 3.6

___
Python tracker 

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



[issue34751] Hash collisions for tuples

2018-09-26 Thread Tim Peters


Tim Peters  added the comment:

High-order bit:  please restore the original tuple hash test.  You have the 
worst case of "but I didn't write it" I've ever encountered ;-)  Your new test 
is valuable, but I've seen several cases now where it fails to detect any 
problems where the original test fails catastrophically.  Tests are written to 
ensure known problems don't recur, so there's _never_ "a reason" to throw one 
away unless the test itself is in error.  The test suite only grows over time, 
and that's how it should be.

Example:  when I replace the computational guts of the tuple hash with the 
single line (64-bit build, and this is the only code remaining in the loop 
apart from setting y to the next tuple component's hash):

x = (x * mult) + y;

both tests fail spectacularly.

But if I add one more line:

x = (x * mult) + y;
x += x >> 16;

your new test falls to 0 collisions, while the original test still suffers 
83447 collisions (an improvement - down from 120050 - but still a spectacular 
failure).

We're flying blind enough here without deliberately plucking out one of our 
eyes ;-)  Indeed, the original tuple test is the only one in my collection that 
showed even a single collision after the two-line replacement just above.  "My 
collection" means your test, the original tuple hash test, and every example 
given in all the messages in this bug report.

Another "surprise":  replace addition with xor in the second line above:

x = (x * mult) + y;
x ^= x >> 16;

and then the original tuple test drops from 83447 to 0(!) collisions, while 
your new one jumps from 0 to a measly 12.


> The collision hash((3,3)) == hash((-3,-3)) is due a specific
> structure in the input to the FNV algorithm.

This is all so hypothetical it's impossible to know.  Perhaps the tuple hash 
function simply subtracts the hash of the first component from the hash of the 
second.  Then it's impossible to make any deterministic change to the component 
hashes that can stop either of the tuples from hashing to 0.  The weakness is 
entirely in the hash combining function then.

> The operation t ^= t << 7 that you suggested (and which I approve, except
> for the shift amount) is meant precisely to destroy that structure.

Except I have no reason to believe that destroying the input structure is of 
unique value.  As shown above, it's easy to change the tuple hash in a simple 
way that passes all known tests without touching `y` (aka `t`) at all.

>> It's x you care about directly, not t.

> That would not be a good solution, because that destroys the structure
> of the hash algorithm.   For Bernstein for example, each loop iteration
> should do something like
>
>x = (x * m) + t
>
> for *some* value t depending on the input. If you mess with x, then it
> really becomes a different hash algorithm.

The two-liner above with the xor in the second line is exactly Bernstein 33A, 
followed by a permutation of 33A's _output_ space.  It works fine in tests.  
Why should I care about merely that it's "different"?  33A on its own fails 
spectacularly - it damned well _better_ be "different" ;-)

There is no "Bernstein theory" to appeal to here - just raw assertions.  I'm 
not attached to any of these approaches.  The strongest I can say from trying 
many things is that "chaining permutations works best, but no detail appears to 
matter much, except that multiplication is the most valuable of all the 
permutations I've tried".

x*M is a permutation of the word-size space for any odd M, and any "big enough" 
odd M I tried appears to work about as well as any other.  Adding t is another. 
 The shift-xor in the second line above is a third (but the "+=" version 
instead was not a permutation, and it failed).

> That is far more dangerous than simply applying a permutation on t.

Why?

> Which "desirable properties" of t does the operation t ^= (t << 1) damage?

On second thought, none!  Across any contiguous range of integers, that 
preserves that the last k bits (for all k >= 1) remain as evenly distributed as 
in the inputs.  That wasn't obvious to me at first.  It's not true if the left 
shift is replaced by a right shift, though.

However, with a shift count of 1 I've generally found that the _original_ tuple 
hash test fails (not spectacularly, but fails all the same).  "Generally" means 
across a substantial number of varying the permutations used in other places.

--

___
Python tracker 

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



[issue34771] test_ctypes failing on Linux SPARC64

2018-09-26 Thread Frank Schaefer


Frank Schaefer  added the comment:

Further details:

I cloned libffi from a few days ago to see if I had any different behavior.  So 
far the test fails the same way with the updated libffi.

I'll also see about contacting libffi upstream and see what they can suggest 
here.

--

___
Python tracker 

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



[issue2771] Test issue

2018-09-26 Thread Ned Batchelder


Ned Batchelder  added the comment:

Also a test.

--

___
Python tracker 

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



[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

2018-09-26 Thread Ryan McCampbell


Ryan McCampbell  added the comment:

This is how windows looks up commands, as well as the built in "where" command. 
(Note that windows doesn't actually distinguish between "executable" files and 
just plain old files, so this could be confusing for UNIX users... a text file 
for instance will simply open in the default text editor when "executed" by the 
shell.)

--

___
Python tracker 

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



[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

2018-09-26 Thread Paul Moore


Paul Moore  added the comment:

On further reflection, I'm less sure that the proposed behaviour is the best 
option, but I do think this warrants further consideration.

--

___
Python tracker 

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



[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-09-26 Thread Eli Schwartz


Change by Eli Schwartz :


--
nosy: +eschwartz

___
Python tracker 

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



[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

2018-09-26 Thread Paul Moore


Paul Moore  added the comment:

I don't think this is expected behaviour. It's not documented what should 
happen in this case but the behaviour suggested by the OP (to search for the 
path as given, followed by [path+e for e in 
os.environ['PATHEXT'].split(os.pathsep)] seems reasonable to me.

The details and corner cases need thrashing out, which I don't have time to do 
right now, but the principle seems sound.

--

___
Python tracker 

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



[issue34781] infinite waiting in multiprocessing.Pool

2018-09-26 Thread Tomáš Bouda

Tomáš Bouda  added the comment:

By now I have spent several days trying to reproduce the behaviour in 
production environment with debugger attached. Unfortunately, no success. On 
the other hand yesterday the application froze, again, and colleague today 
experienced the problem in his script, too. (talking about RHEL)

Dealing with this kind of problem is always very frustrating.

By now, I agree with @pitrou that OSX/RHEL could be two different problems. In 
advance, I tried the approach by @calimeroteknik and this would actually make 
sense.

If the child process receives a signal (SIGTERM or SIGSEGV), parent waits 
forever. We do call 3rd party libraries and segfault is indeed possible. I've 
tried to send signal to a child and script really froze. By now, it seems to be 
the most probable explanation.

OSX debugger may also be buggy, yesterday I completely broke my system just by 
trying my original script, leading to a regular segfaults and system restart 
(never happened before).

Since I can't reproduce the problem under controlled conditions, I am ok with 
closing this bug. The script by @calimeroteknik seems to be pointing in the 
same direction and I think this may solve our problem, too.

--

___
Python tracker 

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



[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

2018-09-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Isn't this an expected behavior?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue34694] Dismiss To Avoid Slave/Master wording cause it easier for non English spoken programmers

2018-09-26 Thread Matthew Barnett


Change by Matthew Barnett :


--
nosy:  -mrabarnett

___
Python tracker 

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



[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

2018-09-26 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I am adding windows as a component during triaging since PATHEXT seems to be 
windows specific. Unfortunately, I couldn't verify this since I don't have 
windows system to check this against master so leaving it to 3.6.

Thanks

--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

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



[issue31551] test_distutils fails if current directory contains spaces

2018-09-26 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

2018-09-26 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue34813] child process disappears when removing a print statement after its creation

2018-09-26 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

Indeed!

--

___
Python tracker 

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



[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2018-09-26 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

Of course, one workaround to satisfy everyone would be to build a (empty) 
libpython.so even on static Python builds.  But I'm not sure Debian/Ubuntu 
would package it.

--
nosy: +doko

___
Python tracker 

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



[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2018-09-26 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

Why do you call this a bug?
For me it's the reverse: it's linking to libpython.so which is a bug.  It means 
a C extension compiled with a shared-library Python cannot be imported on a 
monolithic Python (which doesn't have libpython.so).  It's a real problem when 
you want to redistribute compiled C extensions: if you compile it on 
RedHat/CentOS, it won't work on Ubuntu/Debian (the reverse works).

I even opened an issue about that: issue21536
("extension built with a shared python cannot be loaded with a static python")

--

___
Python tracker 

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



[issue34813] child process disappears when removing a print statement after its creation

2018-09-26 Thread calimeroteknik


calimeroteknik  added the comment:

So this is invalid library usage, we need to run .wait() on the Popen object.

--
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



[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2018-09-26 Thread STINNER Victor


STINNER Victor  added the comment:

I copied the nosy list from bpo-32430: people who understand and care about the 
Modules/Setup file :-)

--
nosy: +barry, eric.smith, koobs, martin.panter, mdk, nascheme, pitrou, 
twouters, xdegaye, yan12125

___
Python tracker 

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



[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2018-09-26 Thread STINNER Victor


STINNER Victor  added the comment:

Example of the bug:

---
$ git apply ~/Setup.patch
$ ./configure --with-pydebug --enable-shared
$ make
$ grep _contextvars Makefile
(...)

Modules/_contextvarsmodule.o: $(srcdir)/Modules/_contextvarsmodule.c; $(CC) 
$(CCSHARED) $(PY_CFLAGS) $(PY_CPPFLAGS)  -c 
$(srcdir)/Modules/_contextvarsmodule.c -o Modules/_contextvarsmodule.o

Modules/_contextvars$(EXT_SUFFIX):  Modules/_contextvarsmodule.o; $(BLDSHARED)  
Modules/_contextvarsmodule.o   -o Modules/_contextvars$(EXT_SUFFIX)

$ find -name "_contextvars.*so"
./Modules/_contextvars.cpython-38dm-x86_64-linux-gnu.so

$ ldd $(find -name "_contextvars.*so")
linux-vdso.so.1 (0x7ffd27973000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x7fd081433000)
libc.so.6 => /lib64/libc.so.6 (0x7fd081074000)
/lib64/ld-linux-x86-64.so.2 (0x7fd081854000)
---

The _contextvars shared library is not linked to libpython. There is not 
"-lpythonX.Y" in the Makefile rule.


Now with the patch:
---
$ git clean -fdx
$ git apply ~/Setup.patch
$ ./configure --with-pydebug --enable-shared
$ make
$ grep _contextvars Makefile
(...)

Modules/_contextvarsmodule.o: $(srcdir)/Modules/_contextvarsmodule.c; $(CC) 
$(CCSHARED) $(PY_CFLAGS) $(PY_CPPFLAGS)  -c 
$(srcdir)/Modules/_contextvarsmodule.c -o Modules/_contextvarsmodule.o

Modules/_contextvars$(EXT_SUFFIX):  Modules/_contextvarsmodule.o $(LDLIBRARY); 
$(BLDSHARED)  Modules/_contextvarsmodule.o $(BLDLIBRARY)   -o 
Modules/_contextvars$(EXT_SUFFIX)

$ find -name "_contextvars.*so"
./Modules/_contextvars.cpython-38dm-x86_64-linux-gnu.so

$ ldd $(find -name "_contextvars.*so")
linux-vdso.so.1 (0x7ffd1e918000)
libpython3.8dm.so.1.0 => not found
(...)
---

With my patch, _contextvars.cpython-38dm-x86_64-linux-gnu.so is linked to 
libpython3.8dm.so.1.0 as expected. The Makefile rule adds  $(LDLIBRARY) to the 
dependencies of the _contextvars(...).so rule and it adds $(BLDLIBRARY) to the 
linker flags of this rule.

--

___
Python tracker 

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



[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2018-09-26 Thread STINNER Victor


STINNER Victor  added the comment:

Downstream (RHEL) issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1585201

--

___
Python tracker 

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



[issue34813] child process disappears when removing a print statement after its creation

2018-09-26 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

Those remarks apply to except-out.py, as well.

--

___
Python tracker 

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



[issue34813] child process disappears when removing a print statement after its creation

2018-09-26 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

I don't think hang.py is correct.  If you launch a process using subprocess, 
the subprocess owns the child process.  You should not call waitpid() or 
os.kill() separately.  Also, since you don't keep a reference to the 
subprocess.Popen object, its destructor will run and may call waitpid() on the 
child process.  Depending on when exactly the destructor runs, it can interfere 
with your own waitpid() call.

--
nosy: +giampaolo.rodola, gregory.p.smith

___
Python tracker 

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



[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2018-09-26 Thread STINNER Victor


STINNER Victor  added the comment:

Setup.patch: Example of patch to modify Modules/Setup to compile _contextvars 
as a shared library, to test the fix.

--
Added file: https://bugs.python.org/file47831/Setup.patch

___
Python tracker 

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



[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2018-09-26 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2018-09-26 Thread STINNER Victor


New submission from STINNER Victor :

Python can be compiled in "shared" mode: "./configure --enable-shared", 
Py_ENABLE_SHARED is defined in pyconfig.h. Most Linux distributions use this 
configuration.

By default, Python builds most C extensions using setup.py which is based on 
distutils. The get_libraries() method of Lib/distutils/command/build_ext.py 
explicity add a dependency to libpythonX.Y if Py_ENABLE_SHARED is defined.

But it is possible to use Modules/Setup to build some C extensions using 
Makefile rather than setup.py. If "*shared*" is in Modules/Setup, following 
modules will be compiled as libraries (".so" files on Linux). For example, RHEL 
and Fedora use this configuration for many C extensions. Problem: C extensions 
compiled like are not linked to libpython.


Example of the issue on Fedora 28 with Python 2.7:

$ ldd $(python2 -c 'import _struct; print(_struct.__file__)')
linux-vdso.so.1 (0x7ffeedf38000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x7fb4da876000)
libc.so.6 => /lib64/libc.so.6 (0x7fb4da4b7000)
/lib64/ld-linux-x86-64.so.2 (0x7fb4daca1000)

=> notice the lack of libpython

Python 3.6 is fine:

$ ldd $(python3 -c 'import _struct; print(_struct.__file__)')
linux-vdso.so.1 (0x7ffd493dd000)
libpython3.6m.so.1.0 => /lib64/libpython3.6m.so.1.0 (0x7f47b916)
...


Patch used by Fedora to build _struct (and other modules) using Makefile:

https://src.fedoraproject.org/rpms/python2/blob/f27/f/python-2.7.1-config.patch



Another example of patch, to build _contextvars as a shared library:

diff --git a/Modules/Setup b/Modules/Setup
index a0622cc8c6..975aeff70d 100644
--- a/Modules/Setup
+++ b/Modules/Setup
@@ -148,7 +148,7 @@ _symtable symtablemodule.c
 # modules are to be built as shared libraries (see above for more
 # detail; also note that *static* or *disabled* cancels this effect):
 
-#*shared*
+*shared*
 
 # GNU readline.  Unlike previous Python incarnations, GNU readline is
 # now incorporated in an optional module, configured in the Setup file
@@ -166,7 +166,7 @@ _symtable symtablemodule.c
 #array arraymodule.c   # array objects
 #cmath cmathmodule.c _math.c # -lm # complex math library functions
 #math mathmodule.c _math.c # -lm # math library functions, e.g. sin()
-#_contextvars _contextvarsmodule.c  # Context Variables
+_contextvars _contextvarsmodule.c  # Context Variables
 #_struct _struct.c # binary structure packing/unpacking
 #_weakref _weakref.c   # basic weak reference support
 #_testcapi _testcapimodule.c# Python C API test module


Attached PR fixes Modules/makesetup to:

* (1) Add a dependency on the Makefile target to libpython: to make sure that 
the parallel compilation works as expected
* (2) Add a dependency to libpythonX.Y on the compiled shared library (".so" 
file on Linux)

--
components: Build
messages: 326486
nosy: vstinner
priority: normal
severity: normal
status: open
title: makesetup: must link C extensions to libpython when compiled in shared 
mode
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



[issue34813] child process disappears when removing a print statement after its creation

2018-09-26 Thread calimeroteknik


Change by calimeroteknik :


Added file: https://bugs.python.org/file47830/except-out.py

___
Python tracker 

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



[issue34813] child process disappears when removing a print statement after its creation

2018-09-26 Thread calimeroteknik


New submission from calimeroteknik :

When two processes are created and killed, the behaviour is different if print 
or sleep statements are inserted.
It can also be random (different results executing the same program several 
times) on certain machines and versions of python.

Attached two versions, one where the child process mysteriously disappears in 
the cpython interpreter, and another other one that raises ChildProcessError: 
[Errno 10] No child processes.

This shows up with cpython, all versions I tested (3.7, 3.6, 3.5, 2.7). pypy is 
unaffected.

--
files: hang.py
messages: 326485
nosy: calimeroteknik, davin, pitrou
priority: normal
severity: normal
status: open
title: child process disappears when removing a print statement after its 
creation
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7
Added file: https://bugs.python.org/file47829/hang.py

___
Python tracker 

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



[issue34781] infinite waiting in multiprocessing.Pool

2018-09-26 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

@calimeroteknik, this doesn't seem to have anything to do with the issue at 
hand.  Please open a separate issue with your scripts.

--

___
Python tracker 

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



[issue34781] infinite waiting in multiprocessing.Pool

2018-09-26 Thread Antoine Pitrou


Change by Antoine Pitrou :


Removed file: https://bugs.python.org/file47827/hang.py

___
Python tracker 

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



[issue34781] infinite waiting in multiprocessing.Pool

2018-09-26 Thread Antoine Pitrou


Change by Antoine Pitrou :


Removed file: https://bugs.python.org/file47828/except-out.py

___
Python tracker 

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



[issue34781] infinite waiting in multiprocessing.Pool

2018-09-26 Thread calimeroteknik


calimeroteknik  added the comment:

Attaching the version that randomly raises ChildProcessError: [Errno 10] No 
child processes.
The child process is lost in limbo if we don't sleep/print after creating it.

--
Added file: https://bugs.python.org/file47828/except-out.py

___
Python tracker 

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



[issue34781] infinite waiting in multiprocessing.Pool

2018-09-26 Thread calimeroteknik


calimeroteknik  added the comment:

A friend has found a very simple example that triggers such an issue in a very 
reproducible manner.

Attached two versions, one where the child process mysteriously disappears in 
the cpython interpreter.

pypy is unaffected.

--
nosy: +calimeroteknik
Added file: https://bugs.python.org/file47827/hang.py

___
Python tracker 

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



[issue34812] support.args_from_interpreter_flags() doesn't inherit -I (isolated) flag

2018-09-26 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue33053] Avoid adding an empty directory to sys.path when running a module with `-m`

2018-09-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 43500a5907eb9ae2e470dcbffe73012cd456f5a1 by Victor Stinner in 
branch '3.6':
bpo-28655: Fix test_import.test_missing_source_legacy() (GH-9589)
https://github.com/python/cpython/commit/43500a5907eb9ae2e470dcbffe73012cd456f5a1


--
nosy: +vstinner

___
Python tracker 

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



[issue28655] Tests altered the execution environment in isolated mode

2018-09-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 43500a5907eb9ae2e470dcbffe73012cd456f5a1 by Victor Stinner in 
branch '3.6':
bpo-28655: Fix test_import.test_missing_source_legacy() (GH-9589)
https://github.com/python/cpython/commit/43500a5907eb9ae2e470dcbffe73012cd456f5a1


--

___
Python tracker 

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



[issue28655] Tests altered the execution environment in isolated mode

2018-09-26 Thread STINNER Victor


STINNER Victor  added the comment:

> I can confirm this on 3.6. Interestingly `--fail-env-changed` flag didn't 
> catch this but running in verbose mode failed.

Oh... When using -j0, regrtest doesn't spawn worker processes using -I: the 
flag is simply omitted... As a side effect, forget() in test_import doesn't 
remove pyc_file from the current directory.

I created bpo-34812 to track this issue.

--

___
Python tracker 

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



[issue34812] support.args_from_interpreter_flags() doesn't inherit -I (isolated) flag

2018-09-26 Thread STINNER Victor


New submission from STINNER Victor :

The support.args_from_interpreter_flags() function recreates Python command 
line arguments from sys.flags, but it omits -I (sys.flags.isolated).

Because of that, "./python -I -m test ..." behaves differently than "./python 
-I -m test -j0 ...":
https://bugs.python.org/issue28655#msg326477

--
components: Library (Lib), Tests
messages: 326478
nosy: vstinner
priority: normal
severity: normal
status: open
title: support.args_from_interpreter_flags() doesn't inherit -I (isolated) flag
versions: 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



[issue28655] Tests altered the execution environment in isolated mode

2018-09-26 Thread Karthikeyan Singaravelan

Karthikeyan Singaravelan  added the comment:

Verified the fix in the PR and there are no warnings

➜  cpython git:(pr_9589) ./python.exe
Python 3.6.6+ (heads/pr_9589:844abda318, Sep 26 2018, 20:59:26)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
➜  cpython git:(pr_9589) ./python.exe -I -S -m test.regrtest -vv test_import 
test_lib2to3 >/dev/null
➜  cpython git:(pr_9589) ./python.exe -I -S -m test.regrtest -j0 
--fail-env-changed test_asyncio test_ctypes test_email test_idle test_import 
test_importlib test_json test_lib2to3
Run tests in parallel using 6 child processes
0:00:06 load avg: 3.19 [1/8] test_import passed
0:00:10 load avg: 3.73 [2/8] test_ctypes passed
0:00:12 load avg: 3.73 [3/8] test_idle passed
0:00:20 load avg: 4.08 [4/8] test_importlib passed
0:00:27 load avg: 4.07 [5/8] test_json passed
0:00:29 load avg: 4.15 [6/8] test_email passed
running: test_asyncio (59 sec 700 ms), test_lib2to3 (49 sec 60 ms)
0:01:04 load avg: 3.97 [7/8] test_asyncio passed (1 min 2 sec) -- running: 
test_lib2to3 (54 sec 18 ms)
0:01:07 load avg: 3.97 [8/8] test_lib2to3 passed (55 sec 380 ms)

== Tests result: SUCCESS ==

All 8 tests OK.

Total duration: 1 min 7 sec
Tests result: SUCCESS


Thanks

--

___
Python tracker 

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



[issue34262] Asyncio test fails under Win 7

2018-09-26 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

ProactorEventLoop is the default event loop with issue34687. There doesn't seem 
to be any warnings in buildbots as I have checked and as @panesen has mentioned 
this is not consistent. I am adding Victor as a notification if he has any 
thoughts. Victor, feel free to remove yourself if this is not relevant.

Thanks

--

___
Python tracker 

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



[issue34262] Asyncio test fails under Win 7

2018-09-26 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +vstinner

___
Python tracker 

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



[issue34765] Update install-sh

2018-09-26 Thread Charalampos Stratakis


Change by Charalampos Stratakis :


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

___
Python tracker 

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



[issue28556] typing.py upgrades

2018-09-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8989

___
Python tracker 

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



[issue28556] typing.py upgrades

2018-09-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8988

___
Python tracker 

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



[issue28655] Tests altered the execution environment in isolated mode

2018-09-26 Thread Karthikeyan Singaravelan

Karthikeyan Singaravelan  added the comment:

Thanks Serhiy. Thanks Victor for the fix. I can confirm this on 3.6. 
Interestingly `--fail-env-changed` flag didn't catch this but running in 
verbose mode failed.

`--fail-env-changed` passes

➜  cpython git:(3707bcf02b) ./python.exe -I -S -m test.regrtest -j0 
--fail-env-changed test_asyncio test_ctypes test_email test_idle test_import 
test_importlib test_json test_lib2to3
Run tests in parallel using 6 child processes
0:00:04 load avg: 3.51 [1/8] test_import passed
0:00:07 load avg: 3.51 [2/8] test_ctypes passed
0:00:09 load avg: 3.87 [3/8] test_idle passed
0:00:19 load avg: 6.23 [4/8] test_importlib passed
0:00:27 load avg: 6.05 [5/8] test_json passed
0:00:29 load avg: 5.72 [6/8] test_email passed
running: test_asyncio (59 sec 815 ms), test_lib2to3 (51 sec 972 ms)
0:01:06 load avg: 4.33 [7/8] test_asyncio passed (1 min 4 sec) -- running: 
test_lib2to3 (58 sec 276 ms)
0:01:09 load avg: 4.33 [8/8] test_lib2to3 passed (1 min 244 ms)

== Tests result: SUCCESS ==

All 8 tests OK.

# warnings are present

➜  cpython git:(3707bcf02b) ./python.exe -I -S -m test.regrtest -vv test_import 
test_lib2to3 >/dev/null
Warning -- files was modified by test_import
  Before: []
  After:  ['@test_10093_tmp.pyc']

Total duration: 1 min 9 sec
Tests result: SUCCESS

--

___
Python tracker 

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



[issue28655] Tests altered the execution environment in isolated mode

2018-09-26 Thread STINNER Victor


STINNER Victor  added the comment:

> test_import still fails on 3.6.

Oh, I only tested master. I wrote PR 9589 to fix test_import on 3.6.

--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue33053] Avoid adding an empty directory to sys.path when running a module with `-m`

2018-09-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +8987

___
Python tracker 

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



[issue28655] Tests altered the execution environment in isolated mode

2018-09-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +8986

___
Python tracker 

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



[issue34811] test_gdb fails with latest gdb

2018-09-26 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue34810] Maximum and minimum value of C types integers from Python

2018-09-26 Thread Sébastien Celles

Sébastien Celles  added the comment:

About raising exception with converting integer value that should overflow 
maybe we should have a parameter

ctypes.c_uint8(256, raise=True)

will raise an exception but 

ctypes.c_uint8(256)

will silently return c_ubyte(0)

--

___
Python tracker 

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



[issue34810] Maximum and minimum value of C types integers from Python

2018-09-26 Thread Sébastien Celles

Sébastien Celles  added the comment:

Thanks @serhiy.storchaka I'm aware of this... but I think it could be returned 
programmatically without much difficulty.

--

___
Python tracker 

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



[issue34811] test_gdb fails with latest gdb

2018-09-26 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner

___
Python tracker 

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



[issue34811] test_gdb fails with latest gdb

2018-09-26 Thread Charalampos Stratakis


Charalampos Stratakis  added the comment:

FAIL: test_NULL_ob_type (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with NULL ob_type is handled gracefully
--
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 485, in 
test_NULL_ob_type
'set v->ob_type=0')
  File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 456, in 
assertSane
cmds_after_breakpoint=cmds_after_breakpoint)
  File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in 
get_gdb_repr
self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output))
AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) 
pending.\n[Thread debugging using libthread_db enabled]\nUsing host 
libthread_db library "/lib64/libthread_db.so.1".\n'
Breakpoint 1 (builtin_id) pending.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
==
FAIL: test_NULL_ptr (test.test_gdb.PrettyPrintTests)
Ensure that a NULL PyObject* is handled gracefully
--
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 477, in 
test_NULL_ptr
'backtrace'])
  File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in 
get_gdb_repr
self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output))
AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) 
pending.\n[Thread debugging using libthread_db enabled]\nUsing host 
libthread_db library "/lib64/libthread_db.so.1".\n'
Breakpoint 1 (builtin_id) pending.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
==
FAIL: test_builtin_method (test.test_gdb.PrettyPrintTests)
--
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 607, in 
test_builtin_method
gdb_repr, gdb_output = self.get_gdb_repr('import sys; 
id(sys.stdout.readlines)')
  File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in 
get_gdb_repr
self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output))
AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) 
pending.\n[Thread debugging using libthread_db enabled]\nUsing host 
libthread_db library "/lib64/libthread_db.so.1".\n'
Breakpoint 1 (builtin_id) pending.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
==
FAIL: test_builtins_help (test.test_gdb.PrettyPrintTests)
Ensure that the new-style class _Helper in site.py can be handled
--
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 513, in 
test_builtins_help
gdb_repr, gdb_output = self.get_gdb_repr('id(__builtins__.help)', 
import_site=True)
  File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in 
get_gdb_repr
self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output))
AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) 
pending.\n[Thread debugging using libthread_db enabled]\nUsing host 
libthread_db library "/lib64/libthread_db.so.1".\n'
Breakpoint 1 (builtin_id) pending.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
==
FAIL: test_bytes (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of bytes
--
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 301, in 
test_bytes
self.assertGdbRepr(b'')
  File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 266, in 
assertGdbRepr
gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')')
  File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in 
get_gdb_repr
self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output))
AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) 
pending.\n[Thread debugging using libthread_db enabled]\nUsing host 
libthread_db library "/lib64/libthread_db.so.1".\n'
Breakpoint 1 (builtin_id) pending.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
==
FAIL: test_corrupt_ob_type (test.test_gdb.PrettyPrintTests)
Ens

[issue34811] test_gdb fails with latest gdb

2018-09-26 Thread Charalampos Stratakis


Change by Charalampos Stratakis :


--
versions: +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



[issue34810] Maximum and minimum value of C types integers from Python

2018-09-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Maximum values for uint8, int8, uint16, int16, uint32, int32, uint64, int64 are 
2**8-1, 2**7-1, 2**16-1, 2**15-1, 2**32-1, 2**31-1, 2**64-1, 2**63-1 by 
definition. Minimum values are 0, -2**7, 0, -2**15, 0, -2**31, 0, -2**63.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue34811] test_gdb fails with latest gdb

2018-09-26 Thread Charalampos Stratakis


New submission from Charalampos Stratakis :

In Fedora we got a new build of gdb which makes python's test_gdb fail on 
x86_64, i686 and aarch64(arm 64 bits) architectures.

gdb's commits between the passing and failing tests:
https://github.com/bminor/binutils-gdb/compare/ab080c102869dd3ad300a99d0c00b256404fd76b...e08ef628a7e3098699ec6939584e2c9f7a9e1952

This is too big of a list, so here is the commits from gdb's python folder:

https://github.com/bminor/binutils-gdb/commits/master/gdb/python

The offensive commits should be between 
89fbedf3abc90b62fbb7f08782ed78d87b3fccaa on Aug 18, 2018 and
94c8b7253a5e165ee92f7302f3247764d69b55e5 on Sep 16, 2018

Traceback to follow.

--
components: Tests
messages: 326469
nosy: cstratak
priority: normal
severity: normal
status: open
title: test_gdb fails with latest gdb

___
Python tracker 

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



[issue28655] Tests altered the execution environment in isolated mode

2018-09-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

test_import still fails on 3.6.

--

___
Python tracker 

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



[issue34810] Maximum and minimum value of C types integers from Python

2018-09-26 Thread Sébastien Celles

New submission from Sébastien Celles :

Hello,

I'm looking for a way to get (using Python) the maximum and minimum values of C 
types integers (ie  uint8, int8, uint16, int16, uint32, int32, uint64, 
int64...) from Python.

I asked this question on StackOverflow and get a nice answer 
https://stackoverflow.com/questions/52475749/maximum-and-minimum-value-of-c-types-integers-from-python

but I wonder if this kind of feature couldn't be add directly in `ctypes.c_` as 
property.

Maybe we could have the following properties:
- `issigned`
- `max`
- `min`

Moreover being able to convert a number into a C type integer raising exception 
when input data is out of range could also be considered
Maybe using code like https://pastebin.com/cvm95m1x
(instead of silently overflow)

Kind regards

--
messages: 326467
nosy: scls
priority: normal
severity: normal
status: open
title: Maximum and minimum value of C types integers from Python

___
Python tracker 

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



[issue34694] Dismiss To Avoid Slave/Master wording cause it easier for non English spoken programmers

2018-09-26 Thread Paul Moore


Change by Paul Moore :


--
nosy:  -paul.moore

___
Python tracker 

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



[issue28655] Tests altered the execution environment in isolated mode

2018-09-26 Thread STINNER Victor


STINNER Victor  added the comment:

I confirm that "./python -I -S -m test.regrtest -j0 --fail-env-changed 
test_asyncio test_ctypes test_email test_idle test_import test_importlib 
test_json test_lib2to3" now pass on master. I close the issue.

Thanks Karthikeyan ;-)

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



[issue31425] Expose AF_QIPCRTR in socket module

2018-09-26 Thread Tal Einat


Change by Tal Einat :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue31425] Expose AF_QIPCRTR in socket module

2018-09-26 Thread Tal Einat


Tal Einat  added the comment:


New changeset bb8165172ac2ef8c7092e8e82928cc7f5f310ab3 by Tal Einat (Bjorn 
Andersson) in branch 'master':
bpo-31425: Expose AF_QIPCRTR in socket module (GH-3706)
https://github.com/python/cpython/commit/bb8165172ac2ef8c7092e8e82928cc7f5f310ab3


--
nosy: +taleinat

___
Python tracker 

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



[issue34809] On MacOSX with 3.7 python getting "Symbol not found: _PyString_AsString"

2018-09-26 Thread Zachary Ware


Change by Zachary Ware :


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

___
Python tracker 

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



[issue34804] Repetition of 'for example' in documentation

2018-09-26 Thread Aydin


Change by Aydin :


--
versions: +Python 2.7, Python 3.4, Python 3.5, 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



[issue34804] Repetition of 'for example' in documentation

2018-09-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +akuchling

___
Python tracker 

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



[issue34804] Repetition of 'for example' in documentation

2018-09-26 Thread Aydin


Aydin  added the comment:

https://docs.python.org/3/howto/functional.html

In the 5th paragraph.

--

___
Python tracker 

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



[issue34804] Repetition of 'for example' in documentation

2018-09-26 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Can you provide a link to the occurence of this repetition?

Thanks!

--
nosy: +pablogsal

___
Python tracker 

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



[issue34806] distutils tests fail with recent 3.7 branch

2018-09-26 Thread STINNER Victor


STINNER Victor  added the comment:

> well, it was top of the branch yesterday

Hum, I don't understand because we don't have the same line number:

  File "/usr/lib/python3.7/distutils/log.py", line 34, in _log
stream.write('%s\n' % msg)

$ git show bbdf8723324e31675f298dd273733cc13e1518df:Lib/distutils/log.py|gvim -

(...)
try:
stream.write('%s\n' % msg)
except UnicodeEncodeError:
# emulate backslashreplace error handler
encoding = stream.encoding   # <~~~ line 34
msg = msg.encode(encoding, "backslashreplace").decode(encoding)
stream.write('%s\n' % msg)

--

___
Python tracker 

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



[issue34262] Asyncio test fails under Win 7

2018-09-26 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue34807] pathlib.[r]glob fails when the toplevel directory is not readable, whereas glob.glob "succeeds"

2018-09-26 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue31837] ParseError in test_all_project_files()

2018-09-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Thanks Karthikeyan!

--

___
Python tracker 

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



[issue32956] python 3 round bug

2018-09-26 Thread Joshua Bronson


Joshua Bronson  added the comment:

I spent a few minutes with git blame/checkout/show and so far have found 
https://bugs.python.org/issue1869 (via 
https://github.com/python/cpython/commit/e6a076d). Still reading -- looks like 
there were a number of different changes made to round() at the same time for 
various reasons -- so maybe changing from round_half_up to round_half_even was 
necessary for the other improvements, and it couldn't have been exposed as a 
separate function? Or maybe that was just never proposed?

--

___
Python tracker 

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



[issue28655] Tests altered the execution environment in isolated mode

2018-09-26 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

The dependency issue31837 dealing with test_lib2to3 failure was resolved by 
Victor in issue30117 and hence I marked it as a duplicate. The other issue 
regarding test_import is not reproducible on master as of  
2aaf98c16ae3070378de523a173e29644037d8bd. test_import warning was reproducible 
with 14e976e00e65bf343ba0fca016c3c9132a843daf and it seems to have been fixed 
later. The same issue with test_import was reported by Victor in issue30834 
which was closed as outdated since it was not reproducible. I will try to 
bisect to the commit that fixed test_import. I propose closing this as outdated 
as part of triaging.

Thanks much Serhiy and Victor for the reports and fixes.

--
nosy: +xtreak

___
Python tracker 

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



  1   2   >