[issue35664] Optimize itemgetter()

2019-01-04 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Please provide microbenchmark results also for the following cases:

* Negative index with tuple.
* Slice index with tuple.
* Tuple subclass.
* List.
* Large (2**61 and -2**61) index.

I do not expect significant regression, but if it is, we should be aware.

If the above cases are not covered by tests, it may be worth to add them.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35662] Windows #define _PY_EMULATED_WIN_CV 0 bug

2019-01-04 Thread Jeff Robbins


Jeff Robbins  added the comment:

I did a search and couldn't find exactly this issue. This issue is about a
broken function. It is broken because it treats a timeout as a fatal error
which crashes your Python program.

I supplied a proposed fix for the function.

If there are other known issues or tests, happy to dig in.  Seems a shame
that Python 3 on Windows needs to be running on emulated condition
variables when the OS has (apparently) working actual ones.

Jeff

On Sat, Jan 5, 2019, 1:11 AM Steve Dower 
> Steve Dower  added the comment:
>
> There's an existing issue for this somewhere - we've tried a couple times
> to switch over and run into various issues. I'm not in a place to find it
> right now, but worth looking.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue9305] Don't use east/west of UTC in date/time documentation

2019-01-04 Thread Ajay Mahato


Ajay Mahato  added the comment:

I am taking up this issue.

--

___
Python tracker 

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



[issue35647] Cookie path check returns incorrect results

2019-01-04 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
keywords: +patch, patch, patch
pull_requests: +10868, 10869, 10870
stage:  -> patch review

___
Python tracker 

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



[issue35647] Cookie path check returns incorrect results

2019-01-04 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
keywords: +patch, patch
pull_requests: +10868, 10869
stage:  -> patch review

___
Python tracker 

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



[issue35647] Cookie path check returns incorrect results

2019-01-04 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


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

___
Python tracker 

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



[issue35662] Windows #define _PY_EMULATED_WIN_CV 0 bug

2019-01-04 Thread Steve Dower


Steve Dower  added the comment:

There's an existing issue for this somewhere - we've tried a couple times to 
switch over and run into various issues. I'm not in a place to find it right 
now, but worth looking.

--

___
Python tracker 

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



[issue35328] Set a environment variable for venv prompt

2019-01-04 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

issue34439 seems like a similar proposal. I am adding @vinay.sajip. Since this 
seems like a new feature I have removed 3.7 from the version list.

--
components: +Library (Lib)
nosy: +vinay.sajip, xtreak
type:  -> enhancement
versions:  -Python 3.7

___
Python tracker 

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



[issue34439] Expose venv --prompt value to an environment value

2019-01-04 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

issue35328 seems like a related issue with a PR that sets VIRTUAL_ENV_PROMPT. 
Also see issue35661 to store the venv prompt in config file.

--
nosy: +xtreak
versions:  -Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue35325] imp.find_module() return value documentation discrepancy

2019-01-04 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +brett.cannon
versions:  -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



[issue35664] Optimize itemgetter()

2019-01-04 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
keywords: +patch, patch, patch
pull_requests: +10865, 10866, 10867
stage:  -> patch review

___
Python tracker 

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



[issue35664] Optimize itemgetter()

2019-01-04 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
keywords: +patch, patch
pull_requests: +10865, 10866
stage:  -> patch review

___
Python tracker 

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



[issue35664] Optimize itemgetter()

2019-01-04 Thread Raymond Hettinger


Change by Raymond Hettinger :


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

___
Python tracker 

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



[issue35664] Optimize itemgetter()

2019-01-04 Thread Raymond Hettinger


New submission from Raymond Hettinger :

Improve performance by 33% by optimizing argument handling and by adding a fast 
path for the common case of a single non-negative integer index into a tuple 
(which is the typical use case in the standard library).

--
components: Library (Lib)
messages: 333041
nosy: rhettinger
priority: normal
severity: normal
status: open
title: Optimize itemgetter()
type: performance
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



[issue35663] webbrowser.py firefox bug [python3, windows 10]

2019-01-04 Thread Tanmay Jain


Tanmay Jain  added the comment:

>>> import webbrowser
>>> brwsr = webbrowser.get("C:/Program Files/Mozilla Firefox/firefox.exe %s")
>>> brwsr.open('www.google.com')
False # <-- even though firefox opens the url

>>> brwsr = webbrowser.get("C:/Program Files 
>>> (x86)/Google/Chrome/Application/chrome.exe %s")
>>> brwsr.open('www.google.com')
True
>>> brwsr = webbrowser.get(using ='windows-default')
>>> brwsr.open('www.google.com')
True
>>>

--

___
Python tracker 

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



[issue35663] webbrowser.py firefox bug [python3, windows 10]

2019-01-04 Thread Tanmay Jain


New submission from Tanmay Jain :

https://docs.python.org/3/library/webbrowser.html#webbrowser.controller.open

browser_controller = webbrowser.get()

result = browser_controller.open(url)# <-- return False even though firefox 
successfully opens url

# expected behavior when url is opened successfully in browser it should return 
True

# like it return True for chrome and edge.

--
components: Library (Lib), Tkinter, Windows
messages: 333039
nosy: codextj, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: webbrowser.py firefox bug [python3, windows 10]
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



[issue35624] Shelve sync issues while using Gevent

2019-01-04 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

The docs already note a restriction: "the shelve module does not support 
concurrent read/write access to shelved objects".  We should further document 
that sync() is not thread-safe.  When sync() is running, the *writeback* 
attribute is set to False and other threads will stop updating the cache.

--
nosy: +rhettinger

___
Python tracker 

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



Re: the python name

2019-01-04 Thread Gene Heskett
On Friday 04 January 2019 19:18:46 Avi Gross wrote:

> Oops. They autocorrected the word piethon below so it makes no sense.
> I meant a pie-eating-marathon or whatever.
>
I did wonder about that, damn the spiel chucker's anyway.

> -Original Message-
> From: Python-list
>  On Behalf Of Avi
> Gross
> Sent: Friday, January 4, 2019 6:55 PM
> To: python-list@python.org
> Subject: RE: the python name
>
> Gene,
>
> It is simple in Python:
>
> if "IV" in "FIVE":
> print("Roman 4 is 5!")
>
> prints:
>
> Roman 4 is 5!
>
> Just a stupid coincidence that the spelling in current English for the
> numeral Five happens to have the silly one-less than 5 notation of the
> Roman numerals IV.
>
> Maybe someone with my perverted sense of humor found it amusing to
> change the nomenclature so WAT remains the same in WATFOR and in
> WATFIV but they did not retain the FOR and make WATFORIV which might
> be harder to pronounce.
>
> Now if they had named the language pithon or python instead of python,
> we might be having marathon sessions evaluating digits of pi or eating
> dessert.
>
> Time to stop posting before ...
>
> -Original Message-
> From: Python-list
>  On Behalf Of
> Gene Heskett
> Sent: Friday, January 4, 2019 4:20 PM
> To: python-list@python.org
> Subject: Re: the python name
>
> On Friday 04 January 2019 13:22:03 Ian Kelly wrote:
> > On Fri, Jan 4, 2019 at 10:59 AM Dennis Lee Bieber
>
>  wrote:
> > > On Fri, 4 Jan 2019 01:12:42 -0500, "Avi Gross"
> > > 
> > >
> > > declaimed the following:
> > > >language, Formula Translator? (I recall using the What For
> > > >version).
> > >
> > > WATFOR => WATerloo FORtran
> >
> > And then there was WATFIV, which stands for WATerloo Fortran IV.
> > Because 5 == IV.
>
> Not what I was taught 75 years ago. Thats a brand new definition of
> fuzzy logic. :(
>
> Cheers, Gene Heskett
> --
> "There are four boxes to be used in defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author)
> Genes Web page 
> --
> https://mail.python.org/mailman/listinfo/python-list
>
> --
> https://mail.python.org/mailman/listinfo/python-list


Cheers, Gene Heskett
-- 

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue35625] Comprehension doc doesn't mention buggy class scope behavior

2019-01-04 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

We should remove the "equivalent to for-loops" wording for list comprehensions. 
 That is a hold-over from 2.7 where it used to be true.  That said, the list 
comprehension section is too early in the tutorial to go into scopes and 
generators, so a full explanation will need to be deferred.

> As an aside, I agree with the developers who consider 
> this scope "limitation" a bug and not (paraphrasing) 
> "just how the language works", since the exact same two
> lines of code, which depend on no other variables or 
> functions, work in a function or module but not in a class.

If you view classes as just another nested scope, I can see why you might think 
the behavior is buggy, limited, or undesirable.  That however is not how the 
language is designed.  Think about why methods have to reference class 
variables using "self.classvar" rather than just "classvar".  When the methods 
run, they have access to their own locals() and to the module level globals().  
To access the locals() for the class, they need use "self.classvar" or 
"classname.classvar".  This is central to how python works .  There are two 
separate lookup chains, one for variables (locals -> nested scopes -> globals 
-> __builtins__ -> NameError) and another for attributes (inst_dict -> 
class_dict -> parent_class_dict -> AttributeError).

Guido intentionally shifted list comprehensions to work like generator 
expressions.  In a class scope, they behave like methods in that they have 
access to the outer globals but no direct access to the locals() in the class.

--
nosy: +rhettinger

___
Python tracker 

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



RE: the python name

2019-01-04 Thread Avi Gross
I don't go back to the beginning of FORTRAN. My comment was not that FORTRAN
was badly named when it was among the first to do such things. I am saying
that in retrospect, almost any language can do a basic subset of arithmetic
operations. And there is nothing in principle that necessarily stops any
modern language code from being optimized by translators to be even more
rapid than the original versions of FORTRAN. If anything, I can well imagine
algorithms using parallel architectures from performing some operations way
faster. True, many languages tend to add overhead but that is not
necessarily required.

As some have said here, many things these days are fast enough not to need
ultimate optimization.

Having said that, there is no reason why code used over and over should not
be optimized. Functions in higher-level languages can be written using the
language and then can be replaced if there is a great enough improvement and
they do not need some of the interactive features the language might offer. 

Someone mentioned that in principle all data types can be stored in a
string. Python does have a concept of converting many, but not all data
structures into a byte form that can be written to files and restored or
sent to other processes including on other machines. Of course entire
programs written in text can be shipped this way to some extent. But when
your data is a long list of real numbers that you want to find the standard
deviation of, then converting it into a compact C/C++ array (or something
similar in Fortran) and calling a function in that language that works fast
on that, may be a good way to go. Why interpret a step at a time when one
pass generates the data that can be processed in tighter loops and a result
returned?

-Original Message-
From: Python-list  On
Behalf Of Dennis Lee Bieber
Sent: Friday, January 4, 2019 1:17 PM
To: python-list@python.org
Subject: Re: the python name

On Fri, 4 Jan 2019 11:34:24 -0500, "Avi Gross" 
declaimed the following:

>
>Although I used FORTRAN ages ago and it still seems to be in active use, I
am not clear on why the name FORMULA TRANSLATOR was chosen. I do agree it
does sound more like a computer language based on both the sound and feel of
FORTRAN as well as the expanded version.
>
>It seems to have been designed as a mathematical extension of sorts that
allowed you to evaluate a mathematical formula efficiently. I mean things
like quadratic equations. But there is overlap with what other languages
like COBOL or BASIC did at the time.
>

FORTRAN predates BASIC by a decade.

COBOL was never meant to be an in-depth number cruncher language
(original data type is packed BCD). Writing a quadratic equation in it
probably takes two or three pages (as I recall, the COMPUTE verb was a later
addition, so everything would have been long sentences: 
DIVIDE C BY B GIVING TMP1. MULTIPLY TMP1 BY 2. SUBTRACT TMP1 FROM A GIVING
RESULT1. ADD TMP1 TO A GIVING RESULT2. 
vs
COMPUTE TMP1 = (C / B) * 2. COMPUTE RESULT1 = A - TMP1. COMPUTE RESULT2 = A
+ TMP1. )

>What gets me is the vagueness of the words looked at by ME today. Any
modern computing language can do what standard FORTRAN does, albeit perhaps
more slowly as I know some languages do some of their math using libraries
from FORTRAN. But do we use the word TRANSLATOR quite that way much anymore?
Heck, do we use FORMULA in the same way?

Meanings change... "COMPUTER" means "one who computes" -- those poor
overworked engineers with slide-rules creating ballistic tables for
battleships.

"Translator" still applies -- in the sense of taking one language
(source) and producing the equivalent meaning in another language
(assembler, and then translating that to pure machine binary). "Formula"
has likely been superceded by "algorithm" (cf ALGOL)

>
>My most recent use of formula has been in the R language where there is a
distinct object type called a formula that can be used to specify models
when doing things like a regression on data. I am more likely to call the
other kind using words like "equation". Python has an add-on that does
symbolic manipulation. Did FORTRAN have any of these enhanced objects back
when created, or even now?

No body had symbolic manipulation when FORTRAN was created. At the
time, the goal was to produce a higher order language that the scientists
could write without having to /know/ the computer assembly/machine code,
with the hope that it could be portable at the source level. Users were
charged by the minute for CPU time, and operating systems were lucky to be
able to handle more than one program in parallel. Batch systems were the
norm -- where a program would run until it either finished, or it ran out of
CPU time (as specified on a LIMIT in the job control deck). One would turn
in a deck of cards to be spooled in the job queue, and come back some hours
later to get the printout from the job.



-- 
Wulfraed Dennis 

[issue35662] Windows #define _PY_EMULATED_WIN_CV 0 bug

2019-01-04 Thread Jeff Robbins


New submission from Jeff Robbins :

Python 3.x defaults to using emulated condition variables on Windows.  I tested 
a build with native Windows condition variables (#define _PY_EMULATED_WIN_CV 
0), and found a serious issue.

The problem is in condvar.h, in this routine:


/* This implementation makes no distinction about timeouts.  Signal
 * 2 to indicate that we don't know.
 */
Py_LOCAL_INLINE(int)
PyCOND_TIMEDWAIT(PyCOND_T *cv, PyMUTEX_T *cs, long long us)
{
return SleepConditionVariableSRW(cv, cs, (DWORD)(us/1000), 0) ? 2 : -1;
}


The issue is that `SleepConditionVariableSRW` returns FALSE in the timeout 
case.  PyCOND_TIMEDWAIT returns -1 in that case. 

But... COND_TIMED_WAIT, which calls PyCOND_TIMEDWAIT, in ceval_gil.h, fatals(!) 
on a negative return value


#define COND_TIMED_WAIT(cond, mut, microseconds, timeout_result) \
{ \
int r = PyCOND_TIMEDWAIT(&(cond), &(mut), (microseconds)); \
if (r < 0) \
Py_FatalError("PyCOND_WAIT(" #cond ") failed"); \



I'd like to suggest that we use the documented behavior of the OS API call 
already being used (SleepConditionVariableSRW 
https://docs.microsoft.com/en-us/windows/desktop/api/synchapi/nf-synchapi-sleepconditionvariablesrw)
 and return 0 on regular success and 1 on timeout, like in the _POSIX_THREADS 
case.  

"""
Return Value
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error 
information, call GetLastError.

If the timeout expires the function returns FALSE and GetLastError returns 
ERROR_TIMEOUT.
"""

I've tested this rewrite -- the main difference is in the FALSE case, check 
GetLastError() for ERROR_TIMEOUT and then *do not* treat this as a fatal error.
 


/*
 * PyCOND_TIMEDWAIT, in addition to returning negative on error,
 * thus returns 0 on regular success, 1 on timeout
*/
Py_LOCAL_INLINE(int)
PyCOND_TIMEDWAIT(PyCOND_T *cv, PyMUTEX_T *cs, long long us)
{
BOOL result = SleepConditionVariableSRW(cv, cs, (DWORD)(us / 1000), 0);

if (result)
return 0;

if (GetLastError() == ERROR_TIMEOUT)
return 1;

return -1;
}


I've attached the test I ran to reproduce the crash.

--
components: Windows
files: thread_test2.py
messages: 333036
nosy: je...@livedata.com, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows #define _PY_EMULATED_WIN_CV 0 bug
type: crash
versions: Python 3.7
Added file: https://bugs.python.org/file48024/thread_test2.py

___
Python tracker 

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



[issue35325] imp.find_module() return value documentation discrepancy

2019-01-04 Thread Windson Yang


Windson Yang  added the comment:

> The documentation should state that "pathname" will be None (not the empty 
> string) for built-in and frozen modules in order to be in line with the 
> implementation.

Both the "file" and "pathname" will be None for built-in and frozen modules, 
right? In the PR @ericsnowcurrently suggested add:

>  If the module is built-in or frozen then *file* and *pathname* are both 
> ``None`` and the *description* tuple contains empty...

I think it also works.

--

___
Python tracker 

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



[issue35606] Add prod() function to the math module

2019-01-04 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I don't like the name overlap with itertools.product().  Currently, math and 
itertools have no overlapping names.  Also, I expect that like sum(), the 
prod() function will be used with generator comprehensions and should best be 
kept short and not dominating the rest of the expression.

It's true that factorial is spelled-out, but that was probably a mistake -- it 
has been somewhat awkward in expressions that contain factorial terms.  
Ideally, we would have comb, perm, fact, and prod.

--

___
Python tracker 

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



[issue35105] Document that CPython accepts "invalid" identifiers

2019-01-04 Thread Windson Yang


Windson Yang  added the comment:

I agreed with @Raymond Hettinger, I will update the PR from your suggestion if 
no other ideas in next week.

--

___
Python tracker 

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



[issue35635] asyncio.create_subprocess_exec() only works in main thread

2019-01-04 Thread Stefan Seefeld


Stefan Seefeld  added the comment:

That's quite an unfortunate limitation ! I'm working on a GUI frontend to a 
Python tool I wrote using asyncio, and the GUI (Qt-based) itself insists to run 
its own event loop in the main thread.

I'm not sure how to work around this limitation, but I can report that my 
previously reported strategy appears to be working well (so far).

What are the issues I should expect to encounter running an asyncio event loop 
in a worker thread ?

--

___
Python tracker 

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



Re: the python name

2019-01-04 Thread Michael Torrie
On 01/03/2019 06:35 PM, Gene Heskett wrote:
> On Thursday 03 January 2019 15:28:49 Grant Edwards wrote:
>> About 20 years ago, the RedHat Linux (way before RHEL) installer
>> (which was written in Python) was called Anaconda.

> Thanks for rescuing my old wet ram Grant, thats exactly what I was 
> thinking of. AIR, it wasn't anywhere near a "real installer" and I spent 
> a decent amount of time turning perfectly good air blue. 

On the other hand I never had any troubles with it, nor have I had any
problems with it recently.  Not sure what you mean about it not being
anywhere near a "real installer."

The non-linear redesign that came out a few years ago really threw me,
and I still don't like it.

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue35661] Store the venv prompt in pyvenv.cfg

2019-01-04 Thread Brett Cannon


New submission from Brett Cannon :

When creating the pyvenv.cfg file, the prompt setting should be stored there so 
that tools can introspect on it (e.g. VS Code could read the value to tell 
users the name of the venv they have selected in the status bar).

--
assignee: brett.cannon
components: Library (Lib)
messages: 333030
nosy: brett.cannon, vinay.sajip
priority: normal
severity: normal
stage: test needed
status: open
title: Store the venv prompt in pyvenv.cfg
type: behavior

___
Python tracker 

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



[issue35661] Store the venv prompt in pyvenv.cfg

2019-01-04 Thread Brett Cannon


Change by Brett Cannon :


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



[issue35661] Store the venv prompt in pyvenv.cfg

2019-01-04 Thread Brett Cannon


Change by Brett Cannon :


--
priority: normal -> low

___
Python tracker 

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



[issue18747] Re-seed OpenSSL's PRNG after fork

2019-01-04 Thread Christian Heimes


Christian Heimes  added the comment:

I have no plans to work on the issue any more. OpenSSL 1.1.1 has fixed the RNG 
issue with a new DRBG implementation. Eventually all platforms will move to 
1.1.1 because it also provides TLS 1.3.

In the mean time, application can work around the limitation by seeding OpenSSL 
by calling ssl.RAND_add().

--

___
Python tracker 

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



[issue35659] Add heapremove() function to heapq

2019-01-04 Thread Tim Peters


Tim Peters  added the comment:

For history, note that `bisect` doesn't always work in this context either:  a 
heap is NOT always in sorted order.  For example, this is "a (min) heap" too:  
[1, 3, 2].

More, that's "the real" problem.  If we could find the element to be removed in 
log(n) time, then it's possible to remove it from the heap in log(n) time too 
(you can, e.g., bubble elements up to fill the interior hole, then move the 
last heap element into the leaf hole that may leave behind and possibly sift it 
up to restore the heap property; and each of those phases takes log(n) time).

--
nosy: +tim.peters

___
Python tracker 

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



RE: the python name

2019-01-04 Thread Avi Gross
Oops. They autocorrected the word piethon below so it makes no sense. I
meant a pie-eating-marathon or whatever. 

-Original Message-
From: Python-list  On
Behalf Of Avi Gross
Sent: Friday, January 4, 2019 6:55 PM
To: python-list@python.org
Subject: RE: the python name

Gene,

It is simple in Python:

if "IV" in "FIVE":
print("Roman 4 is 5!")

prints:

Roman 4 is 5!

Just a stupid coincidence that the spelling in current English for the
numeral Five happens to have the silly one-less than 5 notation of the Roman
numerals IV. 

Maybe someone with my perverted sense of humor found it amusing to change
the nomenclature so WAT remains the same in WATFOR and in WATFIV but they
did not retain the FOR and make WATFORIV which might be harder to pronounce.

Now if they had named the language pithon or python instead of python, we
might be having marathon sessions evaluating digits of pi or eating dessert.

Time to stop posting before ...

-Original Message-
From: Python-list  On
Behalf Of Gene Heskett
Sent: Friday, January 4, 2019 4:20 PM
To: python-list@python.org
Subject: Re: the python name

On Friday 04 January 2019 13:22:03 Ian Kelly wrote:

> On Fri, Jan 4, 2019 at 10:59 AM Dennis Lee Bieber
 wrote:
> > On Fri, 4 Jan 2019 01:12:42 -0500, "Avi Gross"
> > 
> >
> > declaimed the following:
> > >language, Formula Translator? (I recall using the What For 
> > >version).
> >
> > WATFOR => WATerloo FORtran
>
> And then there was WATFIV, which stands for WATerloo Fortran IV.
> Because 5 == IV.

Not what I was taught 75 years ago. Thats a brand new definition of fuzzy
logic. :(

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 
--
https://mail.python.org/mailman/listinfo/python-list

--
https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue35660] IDLE: Remove import * from window.py

2019-01-04 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
keywords: +patch, patch, patch
pull_requests: +10862, 10863, 10864
stage:  -> patch review

___
Python tracker 

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



[issue35660] IDLE: Remove import * from window.py

2019-01-04 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
keywords: +patch, patch
pull_requests: +10862, 10863
stage:  -> patch review

___
Python tracker 

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



[issue35660] IDLE: Remove import * from window.py

2019-01-04 Thread Cheryl Sabella


Change by Cheryl Sabella :


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

___
Python tracker 

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



[issue35660] IDLE: Remove import * from window.py

2019-01-04 Thread Cheryl Sabella


New submission from Cheryl Sabella :

Remove use of `from tkinter import *` from windows.py.

--
assignee: terry.reedy
components: IDLE
messages: 333028
nosy: cheryl.sabella, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Remove import * from window.py
type: enhancement
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



[issue35659] Add heapremove() function to heapq

2019-01-04 Thread Wanja Chresta


Wanja Chresta  added the comment:

After thinking about it some more I realised that this doesn't make sense since 
heapq is based on lists and lists have an insertion complexity of O(n). Thus, 
they'll never read the needed O(log n) and heapq is the wrong place.

Never mind.

--
resolution:  -> wont fix
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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2019-01-04 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
pull_requests:  -10861

___
Python tracker 

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



RE: the python name

2019-01-04 Thread Avi Gross
Gene,

It is simple in Python:

if "IV" in "FIVE":
print("Roman 4 is 5!")

prints:

Roman 4 is 5!

Just a stupid coincidence that the spelling in current English for the
numeral Five happens to have the silly one-less than 5 notation of the Roman
numerals IV. 

Maybe someone with my perverted sense of humor found it amusing to change
the nomenclature so WAT remains the same in WATFOR and in WATFIV but they
did not retain the FOR and make WATFORIV which might be harder to pronounce.

Now if they had named the language pithon or python instead of python, we
might be having marathon sessions evaluating digits of pi or eating dessert.

Time to stop posting before ...

-Original Message-
From: Python-list  On
Behalf Of Gene Heskett
Sent: Friday, January 4, 2019 4:20 PM
To: python-list@python.org
Subject: Re: the python name

On Friday 04 January 2019 13:22:03 Ian Kelly wrote:

> On Fri, Jan 4, 2019 at 10:59 AM Dennis Lee Bieber
 wrote:
> > On Fri, 4 Jan 2019 01:12:42 -0500, "Avi Gross"
> > 
> >
> > declaimed the following:
> > >language, Formula Translator? (I recall using the What For  
> > >version).
> >
> > WATFOR => WATerloo FORtran
>
> And then there was WATFIV, which stands for WATerloo Fortran IV.
> Because 5 == IV.

Not what I was taught 75 years ago. Thats a brand new definition of fuzzy
logic. :(

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 
--
https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue33987] IDLE: use ttk.Frame for ttk widgets

2019-01-04 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
pull_requests:  -10860

___
Python tracker 

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



Re: the python name

2019-01-04 Thread Gene Heskett
On Friday 04 January 2019 16:37:49 Chris Angelico wrote:

> On Sat, Jan 5, 2019 at 8:31 AM Gene Heskett  
wrote:
> > On Friday 04 January 2019 13:22:03 Ian Kelly wrote:
> > > And then there was WATFIV, which stands for WATerloo Fortran IV.
> > > Because 5 == IV.
> >
> > Not what I was taught 75 years ago. Thats a brand new definition of
> > fuzzy logic. :(
>
> Maybe it's different if you went to an IV league school?

Dunno Chris, but I'd swear that was morning glory's blooming on the 
fences surrounding that rural schoolhouse, rubble and mortered walls 
about 3 feet thick, as long as we had coal for the warm morning stove, 
we were fine.  Its sans roof now as it was thatched then, but that 
building still stands with well over 100 years worth of Iowa winters on 
its log now.  Near a ghost town called Pitzer in Madison County IA. 
Yeah, the subject of the Eastwood and Streep movie called The Bridges of 
Madison County. Many of them covered, been over most of them as a 5 year 
old. And I remember the evening of Dec 7th, 1941. Listening to the news 
on a battery radio, and watching my grandfather crying because he knew 
lots of men would give their all before the as yet undeclared war was 
over. There was never any doubt that we would win it, but for the city 
folks, hard times were ahead with the rationing. Lots of fat folks got 
in shape by 1945-46 whether they wanted to or not. Out on a farm, with a 
good team of horses, we were somehat insulated from the hardships of the 
war as we raised our own food. But I remember it well.

>
> ChrisA


Cheers, Gene Heskett
-- 

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue33987] IDLE: use ttk.Frame for ttk widgets

2019-01-04 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
pull_requests: +10859, 10860, 10861

___
Python tracker 

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2019-01-04 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
pull_requests: +10859

___
Python tracker 

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2019-01-04 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
pull_requests: +10859, 10860

___
Python tracker 

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



[issue35385] time module: why not using tzname from the glibc?

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

See also bpo-28108.

--

___
Python tracker 

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



[issue28108] Python configure fails to detect tzname on platforms that have it.

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

See also bpo-35385.

--

___
Python tracker 

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



[issue35659] Add heapremove() function to heapq

2019-01-04 Thread Wanja Chresta


Change by Wanja Chresta :


--
type:  -> enhancement

___
Python tracker 

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



[issue35659] Add heapremove() function to heapq

2019-01-04 Thread Wanja Chresta


New submission from Wanja Chresta :

Heap Queues are extremely useful data structures. They can, for example, be 
used to implement Dijkstra's algorithm for finding the shortest paths between 
nodes in a graph in O(edge * log vertices) time instead of (edge * vertices) 
without heaps.

One operation such implementations need, though, is the possibility to modify 
an element in the heap (and thus having to reorder it afterwards) in O(log n) 
time. One can model such an operation by removing a specific element from the 
heap and then adding the modified element.

So far, heapq only allows removing the first element through heappop; this is 
not what we need. Instead, we would want to support a heapremove function that 
removes an arbitrary element in the heap (if it exists) and raises ValueError 
if the value is not present.

list.remove cannot be used, since it needs O(n) time.

heapremove can be easily implemented by using bisect.bisect_left since heap is 
always sorted:

def heapremove(heap, x):
  i = bisect.bisect_left(heap, x)
  if heap[i] == x:
del heap[i]
  else:
raise ValueError

c.f. remove method in 
https://docs.oracle.com/javase/7/docs/api/java/util/PriorityQueue.html

--
components: Library (Lib)
messages: 333024
nosy: Wanja Chresta
priority: normal
severity: normal
status: open
title: Add heapremove() function to heapq
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



[issue35432] str.format and string.Formatter bug with French (and other) locale

2019-01-04 Thread STINNER Victor

STINNER Victor  added the comment:

This bug is a duplicate of bpo-33954. Good news: it's now fixed in Python 3.6.8!

https://docs.python.org/3.6/whatsnew/changelog.html#python-3-6-8-release-candidate-1

"bpo-33954: For str.format(), float.__format__() and complex.__format__() 
methods for non-ASCII decimal point when using the “n” formatter."

Note: I fixed other bugs with special locales (mostly LC_NUMERIC and/or 
LC_MONETARY using a different encoding than the LC_CTYPE locale).

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
superseder:  -> float.__format__('n') fails with _PyUnicode_CheckConsistency 
assertion error for locales with non-ascii thousands separator

___
Python tracker 

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



[issue13927] Document time.ctime format

2019-01-04 Thread STINNER Victor


Change by STINNER Victor :


--
title: Extra spaces in the output of time.ctime -> Document time.ctime format
versions:  -Python 3.2, Python 3.3, 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



[issue8538] Add FlagAction to argparse

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

I reopen the issue since it seems like there are people requesting the feature. 
(I also removed myself from the issue, I'm not interested to implement it.)

--
resolution: out of date -> 
status: closed -> open

___
Python tracker 

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



[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

Michael created bpo-35633: test_eintr: test_lockf() fails with 
"PermissionError: [Errno 13] Permission denied" on AIX.

--

___
Python tracker 

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



[issue35633] test_eintr: test_lockf() fails with "PermissionError: [Errno 13] Permission denied" on AIX

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

Previous discussion at:
https://bugs.python.org/issue35189#msg332580

--

___
Python tracker 

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



[issue35629] hang and/or leaked processes with multiprocessing.Pool(...).imap(...)

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

> I'm using `contextlib.closing`

Oh, I missed that: good!

--

___
Python tracker 

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



[issue35616] Change references to '4.0'.

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

> One or two versions after using Py_DEPRECATED for all deprecated functions 
> (but not earlier than EOL of 2.7) we can make them issuing run-time warnings.

Maybe we can experiment adding warnings only in development mode, when python3 
-X dev is used?

> I'm working on this.

Thanks :-)

--

___
Python tracker 

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



[issue35616] Change references to '4.0'.

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

I disagree. It's acceptable to break the C API in a minor release if the change 
has been properly promoted, documented, announced, etc.

IMHO breaking the C API in 4.0 is going to send a bad signal to users.

Multiple core developers asked multiple times to wait until Python 2 is really 
dead before removing some features which are used on Python 2 and Python 3. So 
at least, we must wait until January 1st, 2020, before removing Py_UNICODE APIs.

I also would like to see the deprecation warning supported on Windows.

I didn't see any announcement of future removal of C API on the capi-sig 
mailing list.

--

___
Python tracker 

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



[issue18747] Re-seed OpenSSL's PRNG after fork

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

The issue is closed. If you want to change anything, please open a new issue. 
IMHO this issue is too long, it's better to start a fresh issue with up to date 
info, just mention this old issue: bpo-18747.

--

___
Python tracker 

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



Re: the python name

2019-01-04 Thread songbird
Rick Johnson wrote:
...
> You're singing a sad tune songbird, but i feel your pain...

  like all things, this too shall pass...  :)


  songbird
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue35633] test_eintr: test_lockf() fails with "PermissionError: [Errno 13] Permission denied" on AIX

2019-01-04 Thread STINNER Victor


Change by STINNER Victor :


--
title: test_eintr fails on AIX since fcntl functions were modified -> 
test_eintr: test_lockf() fails with "PermissionError: [Errno 13] Permission 
denied" on AIX

___
Python tracker 

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



[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

Does the test pass if you open the file in read+write ("w+b") mode rather than 
write-only ("wb") mode?

I'm talking about this line:

open(support.TESTFN, 'wb')

Note: if you want to test, you have the modify the mode twice:
  "with open('%s', 'wb') as f:" % support.TESTFN,
and
  with open(support.TESTFN, 'wb') as f:

--
nosy: +vstinner

___
Python tracker 

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



RE: Type hinting of Python is just a toy ?

2019-01-04 Thread Avi Gross
You can play mathematical reduction games and declare the only type of
variable needed is a memory location but who cares?

The reality is that well designed data structure can allow you to think
about a problem in a way that leads to easy solutions. True, you can store
something like an employee record with N fields in an amazing number of
ways. It can be a simple or nested list construct, or an instance of some
class or a dictionary, perhaps nested, or it can be a newly minted object
like a NamedTuple or it can even be stored in N unrelated variables. But
some representations appeal to some people and some perhaps to others and
some depend on the situation. There tends to be room for multiple ways.

Anyone ever use a version of LISP where the dominant or even only data
structure was nested lists. I shudder at memories of having to use weird
functions like CAADDR which effectively did the equivalent of multiple
instances of CAR and CDR to dig deeply into such a mess. Why would anyone
want to use that representation on a regular basis.

Python thought it had all the primitive data types in the base. What more do
you need than strings, numbers, and several variants on a list? Throw in
dictionaries, and clearly you can write anything? Heck, throw in
classes/objects and you can make anything else?

Well, it seems that over the years people have felt the need to make so much
more and then set it aside for reuse. I use what amounts to a restricted
list all the time. A numpy array forces all entries to be of the same type.
Not necessarily pythonic but when you are used to a language where there is
no simpler data type consisting of a single int or a single character and
everything is of indefinite length so the above is just a vector of length
1, you start wanting that to represent things like columns of data. When you
are used to something that is a 2D representation, you may want something
like a matrix or DataFrame and so on. True, these can be built easily using
1D components in a list along with algorithms on how to calculate where the
nth item will be stored. But to program more the way you think and be able
to ignore lower-level details, more is needed. 

And, in the same vein, you may want to add a layer of logic or restrictions
around those basic types such as requiring them to be non-negative. You may
want to handle a concept like infinity which simply cannot be an aspect in a
truly primitive type.

It takes some Gaul to say all variables can be divided into three parts
(just kidding.)

Of course having too many choices can freeze new learners and old ones
alike. Research on human psychology shows that people in a 401K plan or IRA
(several of many U.S. tax-advantaged plans) that offers too many choices
often results in people making no choice (getting a low interest account by
default perhaps) or putting a small amount I MANY of them since they have no
idea what makes sense and have trouble with decisions.

But any good programming language needs a decent number of choices.
Arguments that a tuple is just a restricted list so why do you need it are
more reductionist than practical. There are quite a few reasons to have both
and repercussions of your choice.



-Original Message-
From: Python-list  On
Behalf Of Joel Goldstick
Sent: Friday, January 4, 2019 9:04 AM
Cc: Python 
Subject: Re: Type hinting of Python is just a toy ?

On Fri, Jan 4, 2019 at 7:50 AM Chris Angelico  wrote:
>
> On Fri, Jan 4, 2019 at 8:06 PM iamybj--- via Python-list 
>  wrote:
> >
> > In fact, there is only 3 types in all prigramming languages.
> > Primitive type: int, string, bool, char
> > Complex type: struct or class
> > Array Type: int[10], string[100], struct[1000]
> >
> > These 3 type can represent all thins in the world.
>
> Why do you need three types? REXX has just one type: the string.
> Structures, classes, arrays, mappings, etc are all implemented with a 
> special type of variable, the "stem".
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list

I don't normally comment on this type of thread, but I believe the OP is
showing an example of the dunning-kruger effect
https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect

Not teasing, really.

--
Joel Goldstick
http://joelgoldstick.com/blog
http://cc-baseballstats.info/stats/birthdays
--
https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue35629] hang and/or leaked processes with multiprocessing.Pool(...).imap(...)

2019-01-04 Thread Anthony Sottile


Anthony Sottile  added the comment:

If you see the bottom of my issue, I've suggested (nearly) the same thing -- 
though I require python2.x compatibility so I'm using `contextlib.closing`

--

___
Python tracker 

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



[issue35629] hang and/or leaked processes with multiprocessing.Pool(...).imap(...)

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

I suggest you to write:

with multiprocessing.Pool(4) as pool: result = tuple(pool.imap(print, (1, 2, 
3)))

On Python 3.8, your example will now log a resource warning since you don't 
close/terminate explicitly the pool.

--
nosy: +vstinner

___
Python tracker 

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



[issue35378] multiprocessing.Pool.imaps iterators do not maintain alive the multiprocessing.Pool objects

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

bpo-35629 has been marked as a duplicate of this issue.

--

___
Python tracker 

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



[issue35627] multiprocessing.queue in 3.7.2 doesn't behave as it was in 3.7.1

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

I ran mp_hang.py on Windows 10 with Python 3.7.2: the script completes (it 
doesn't hang). The issue might be specific to VS Code (on Windows?).

--

___
Python tracker 

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



[issue35635] asyncio.create_subprocess_exec() only works in main thread

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

By the way, asyncio doc is outdated:
"The default asyncio event loop implementation on Windows does not support 
subprocesses. Subprocesses are available for Windows if a ProactorEventLoop is 
used. See Subprocess Support on Windows for details."
https://docs.python.org/dev/library/asyncio-subprocess.html#creating-subprocesses

It's no longer true in Python 3.8:

"Changed in version 3.8: On Windows, ProactorEventLoop is now the default event 
loop."
https://docs.python.org/dev/library/asyncio-platforms.html

--

___
Python tracker 

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



[issue35635] asyncio.create_subprocess_exec() only works in main thread

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

> Am I missing something ? Given the complexity of this, I would expect this to 
> be better documented in the sections explaining how `asyncio.subprocess` and 
> `threading` interact.

The current documentation says:

"To handle signals and to execute subprocesses, the event loop must be run in 
the main thread."

https://docs.python.org/dev/library/asyncio-dev.html#concurrency-and-multithreading

But I agree that the doc can be enhanced :-) Do you have suggestions?

--
nosy: +vstinner

___
Python tracker 

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



[issue35627] multiprocessing.queue in 3.7.2 doesn't behave as it was in 3.7.1

2019-01-04 Thread STINNER Victor


STINNER Victor  added the comment:

mp_hang.py: I created the example into a script, I added the __main__ section 
described by Antoine. I cannot reproduce the bug on the Python master branch on 
Linux.

@June Kim: What is the output when it hangs? Can you try your example without 
VS Code? For example, try to run it in a cmd.exe terminal?

--
Added file: https://bugs.python.org/file48023/mp_hang.py

___
Python tracker 

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



[issue35627] multiprocessing.queue in 3.7.2 doesn't behave as it was in 3.7.1

2019-01-04 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



[issue35611] open doesn't call IncrementalEncoder with final=True

2019-01-04 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



[issue35622] RFE: Add os.sched_setattr() and os.sched_getattr() functions

2019-01-04 Thread STINNER Victor


Change by STINNER Victor :


--
title: Add support for Linux SCHED_DEADLINE -> RFE: Add os.sched_setattr() and 
os.sched_getattr() functions
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



[issue35606] Add prod() function to the math module

2019-01-04 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

I agree with Mark that correctness, rather than performance, should be the main 
attraction of a stdlib implementation.

By the way "prod" is slightly obscure (though it's Numpy's chosen spelling), 
how about "product"?  After all, we went with the full "factorial".

--
nosy: +pitrou

___
Python tracker 

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



[issue35657] multiprocessing.Process.join() ignores timeout if child process use os.exec*()

2019-01-04 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



[issue35616] Change references to '4.0'.

2019-01-04 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

After reading Serhiy's explanation, I agree that '4.0' is better than a 
specific '3.nn'.  I did not realize how much was still left to be done.  We can 
revisit this when there is a definite removal date.  A literal 'sometime' might 
be better, but not worth arguing for.  Most of the other occurrences of '4.0' 
are related to the old unicode API.

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

___
Python tracker 

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



[issue35606] Add prod() function to the math module

2019-01-04 Thread STINNER Victor

STINNER Victor  added the comment:

Computing the geometric mean of numbers require to compute the product of these 
numbers:
https://en.wikipedia.org/wiki/Geometric_mean

The geometric mean can be used to summarize benchmark results using different 
units to get a single number.

--

When computing the product of floats, is there a smart implementation reducing 
the error? I'm asking because math.fsum() doesn't use a naive loop but a smart 
implementation to minimize the error.

--

Mark Dickinson:
> On this subject, some effort has been made in the past to make (almost) all 
> the math module functions behave consistently with respect to things like 
> exceptions, overflow, infinities, nans, signed zeros, etc.

"versus"

Rémi Lapeyre:
> A naive implementation would also support user-defined types which would 
> probably be a good thing IMO

Would it make sense to only implement product for an iterable of floats, as 
math.fsum()?

--
nosy: +vstinner

___
Python tracker 

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



[issue35657] multiprocessing.Process.join() ignores timeout if child process use os.exec*()

2019-01-04 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

I'm in favor of #1 *and* not documenting it either.  I don't think it's 
reasonable for the documentation to enumerate all the kinds of situations where 
executing arbitrary code in a child process might lead to dysfunction.

Realistically, if you want to spawn a subprocess, you should just use 
subprocess, not multiprocessing + exec().

In other words, I'd like to close this issue as "won't fix" if nobody objects.

--

___
Python tracker 

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



[issue35657] multiprocessing.Process.join() ignores timeout if child process use os.exec*()

2019-01-04 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy: +davin, pitrou
stage:  -> needs patch
versions:  -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



Re: the python name

2019-01-04 Thread Chris Angelico
On Sat, Jan 5, 2019 at 8:31 AM Gene Heskett  wrote:
>
> On Friday 04 January 2019 13:22:03 Ian Kelly wrote:
> > And then there was WATFIV, which stands for WATerloo Fortran IV.
> > Because 5 == IV.
>
> Not what I was taught 75 years ago. Thats a brand new definition of fuzzy
> logic. :(

Maybe it's different if you went to an IV league school?

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue35654] Remove 'guarantee' that sorting only relies on __lt__ from sorting howto

2019-01-04 Thread Terry J. Reedy


Change by Terry J. Reedy :


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



[issue35651] PEP 257 (active) references PEP 258 (rejected) as if it were active

2019-01-04 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Guido, you are the

--
nosy: +goodger, gvanrossum, terry.reedy
versions:  -Python 2.7, Python 3.4, Python 3.5, 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



[issue35651] PEP 257 (active) references PEP 258 (rejected) as if it were active

2019-01-04 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
Removed message: https://bugs.python.org/msg333003

___
Python tracker 

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



[issue35649] http.client doesn't close. Infinite loop

2019-01-04 Thread Terry J. Reedy


Change by Terry J. Reedy :


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



[issue35639] Lowecasing Unicode Characters

2019-01-04 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Latin Capital Letter I with Dot Above

___
Python tracker 

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



Re: the python name

2019-01-04 Thread Gene Heskett
On Friday 04 January 2019 13:22:03 Ian Kelly wrote:

> On Fri, Jan 4, 2019 at 10:59 AM Dennis Lee Bieber 
 wrote:
> > On Fri, 4 Jan 2019 01:12:42 -0500, "Avi Gross"
> > 
> >
> > declaimed the following:
> > >language, Formula Translator? (I recall using the What For
> > > version).
> >
> > WATFOR => WATerloo FORtran
>
> And then there was WATFIV, which stands for WATerloo Fortran IV.
> Because 5 == IV.

Not what I was taught 75 years ago. Thats a brand new definition of fuzzy 
logic. :(

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue35634] kwargs regression when there are multiple entries with the same key

2019-01-04 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Serhiy, nosying you because Ammar identified your commit as relevant.
https://github.com/python/cpython/commit/e036ef8fa29f27d57fe9f8cef8d931d4122d8223
---

3.6 is also security-fix only.

Normally, code bug reports need a minimal, reproducible, initially-failing test 
case that only uses the stdlib, not 3rd party code.  A test case would have to 
include a simplified version of a multidict.

The problem here is that a multidict with duplicate keys is not a proper 
mapping, in spite of having a MutableMapping interface.  (Just curious, what 
does d['a'] return?). 

The purpose of the package is to meet the needs of HTTP Headers and URL query 
strings (and other situations) where the 'keys' are value-type tags, not true 
mapping keys.  Another example would be a bibliography entry that tags each of 
multiple author names with 'Author:'.  (Aside: A deficiency of git (github) is 
allowing only 1 author key and only one github username as the value.)

Is an object with duplicate keys legal for **expression in calls?
https://docs.python.org/3/reference/expressions.html#index-48
says that expression must evaluate to a 'mapping'.  The glossary entry
https://docs.python.org/3/glossary.html#term-mapping says
"A container object that supports arbitrary key lookups and implements the 
methods specified in the Mapping or MutableMapping abstract base classes." 
followed by unique-key examples.  To me, 'key lookup' implies unique keys.  The 
Mapping functions include 'keys' and 'items'.  What signature?  To return 
set-like views, the keys should be unique.

If we take the call to be a bug, is CPython *obligated* to immediately raise an 
exception?  In other words, must every call with **mapping take the time to 
check for duplicates because someone might pass a dup-key 'mapping'.

--
nosy: +serhiy.storchaka, terry.reedy
stage:  -> test needed
versions: +Python 3.7, 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



[issue35616] Change references to '4.0'.

2019-01-04 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Removing the C API function is a major breaking change. AFAIK there was no 
precedence since 3.0. It may be that we will name the new version 4.0 after 
doing this.

In any case, first than remove this API, we need to pass the following steps:

* Implement Py_DEPRECATED on Windows and use it for *all* deprecated functions.
* Get rid of using deprecated API in the core and stdlib. I'm working on this.
* I think it is good idea to implement a custom build without wchar_t cache and 
deprecated API for testing with third-party code. I'm working on this.

One or two versions after using Py_DEPRECATED for all deprecated functions (but 
not earlier than EOL of 2.7) we can make them issuing run-time warnings. One or 
two versions after this we can replace them with stub functions that always 
fail. I think they can be removed after around 5 years from now. Currently we 
do not have exact terms. I do not see a problem with using 4.0 as a 
hypothetical removal term.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue32660] Solaris should support constants like termios' FIONREAD

2019-01-04 Thread Cheryl Sabella


Change by Cheryl Sabella :


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

___
Python tracker 

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



[issue35638] Introduce fixed point locale aware format type for floating point numbers

2019-01-04 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

You can use locale.format_string() for locale aware formatting.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-04 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Would not be better to just remove a backslash?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue18747] Re-seed OpenSSL's PRNG after fork

2019-01-04 Thread Gabriel Corona


Gabriel Corona  added the comment:

Now that the default PRNG of the 'random' package is automatically reseeded at 
fork, wouldn't it make sense to reseed the OpenSSL seed as well?

(At the same time the OpenSSL wiki states [1] that "The situation has changed 
greatly, starting with OpenSSL 1.1.1 which completely rewrote RNG. The concerns 
[of fork unsafety] do not really apply any more".)

[1] https://wiki.openssl.org/index.php/Random_fork-safety

--
nosy: +Gabriel Corona

___
Python tracker 

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



[issue15457] consistent treatment of generator terminology

2019-01-04 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

Issue24400 changed some of the documentation wording around generators.  I 
don't know if there is still interest in applying the other parts of this patch.

--
nosy: +cheryl.sabella
versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

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



[issue35381] Heap-allocated posixmodule types

2019-01-04 Thread Eric Snow


Change by Eric Snow :


--
nosy: +eric.snow

___
Python tracker 

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



[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler

2019-01-04 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

Closed based on msg323776.

--
nosy: +cheryl.sabella
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



Re: conda/anaconda and pip3 (pip)

2019-01-04 Thread Paulo da Silva
Às 19:39 de 02/01/19, Hartmut Goebel escreveu:
> Am 03.12.18 um 18:39 schrieb Paulo da Silva:
>> This also has a bad side effect! It reinstalls there some depedencies
>> already installed in the conda created environment!
>>
>> Is there a way to avoid this situation?
> 
> Try whether  `pyvenv --system-site-packages` suites you.
> 

I need to use conda for this.
I need anaconda because it has all stuff to work with GPUs. Otherwise
I'd need to install lots of SW. One package, for example, requires
registration at Nvidia. It also difficult to determine a common base of
compatible versions.

Thanks for responding.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue33896] Document what components make up the filecmp.cmp os.stat signature.

2019-01-04 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
assignee:  -> docs@python
components: +Documentation -Library (Lib)
nosy: +docs@python
versions:  -Python 3.6

___
Python tracker 

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



Re: the python name

2019-01-04 Thread songbird
Peter J. Holzer wrote:
> songbird wrote:

hi,

  thank you for your reply.


...
> Almost all of these points don't seem to be related to the language, but
> to your environment.

  an application isn't useful unless it actually can
be deployed and used in an environment.

  the easier it is for me to stay within the language
itself using whatever modules and features it provides.
and more the the better because every time i have to 
go outside to investigate or debug other things that 
adds complexity and more points of failure and more 
issues that get in the way of me actually working on 
the program (it also interferes with my goals if i'm
having to deal with beaurocracy issues instead of
fixing bugs or learning Python better).


  at least these make sense:

  https://packaging.python.org/tutorials/installing-packages/
  https://docs.python.org/3/installing/index.html#installing-index

  and this helps answer a lot of my questions that have been
hovering around:
  https://pip.pypa.io/en/stable/reference/pip_install/#caching


>>   there must be a more local way to do the same thing but=20
>
> I do some of my Python development locally and and some remotely, but
> that's mostly because to me it doesn't make much difference (vim in a
> terminal works the same when I'm ssh'd into a server as when I work
> locally) and not having to replicate the environment is a plus for me.
> If my tools worked only locally, I could do all development locally.

  i'm always working on my local machine first and 
foremost.  i always need a quick method for testing 
the whole chain from code to install and running tests
that doesn't involve a large turn around in time.

  as an example, the program hugo which lets me
generate a static web site.  it is great that i can 
do all of my local development and testing without 
having to upload it to the web server and then 
when i finally do upload it and test it out it 
almost always works the same way and there isn't
a half hour delay between me finding out something
didn't work.


>> as of yet the develop option doesn't seem to work how i
>> would expect.
>
> What is "the develop option"? Again, it seems like you are talking about
> a specific environment, not Python the language.

   i hope my comments above are sufficient to get 
my points across about "environment".


  i use this command to put my project into a
local virtual environment:

(env)$ pip3 install -e $NGFP_SRC_HOME/ --no-cache-dir --force-reinstall


where:
-e,--editable 
  Install  a  project  in editable mode (i.e.  setuptools "develop
  mode") from a local project path or a VCS url.

  it doesn't seem to work how i expect, but that could be
my own bug someplace.  haven't tracked it down yet.

  i'm also trying to get back more to what my initial 
goals were with this project (to learn the language 
and to learn OOP concepts better).  when i can get back
to the code itself and whack it into better shape then
i'll feel a lot better.  i admit it is a mess now.


  songbird
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: conda/anaconda and pip3 (pip)

2019-01-04 Thread Paulo da Silva
Às 19:54 de 09/12/18, Tim Williams escreveu:
> On Saturday, December 8, 2018 at 10:13:14 PM UTC-5, Monte Milanuk wrote:
>> Did you find any solution(s)?
> 
> I usually just lurk and read on this list. I don't reply since there's 
> usually more competent people that regularly post helpful answers. (I lurk to 
> learn from them!)
> 
> If no one's replied yet, I'll give it my 2 cents ...
> 
> Without being a pip expert, I see from 'pip install -h' that you can specify 
> where you want the package to be installed.
> 
> Install Options:
...

>   path or a VCS url.
>   -t, --target   Install packages into . By default this 
> will not replace existing files/folders in
>   . Use --upgrade to replace existing 
> packages in  with new versions.
...

> 
> I'm thinking the the --target option may be the solution.
> 

I don't think this is a solution.
It seems that there is no really solutions at all.
(ana)conda has its own dependencies management. Playing with pip just
seems to cause dependencies problems, eventually.
So far, I have not found any problems, probably because the newer
modules are backwards compatible.

Thanks for responding.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue35629] hang and/or leaked processes with multiprocessing.Pool(...).imap(...)

2019-01-04 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

Indeed, looks like a duplicate.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> multiprocessing.Pool.imaps iterators do not maintain alive the 
multiprocessing.Pool objects

___
Python tracker 

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



[issue35624] Shelve sync issues while using Gevent

2019-01-04 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

3.6 only gets security fixes.  Please verify that there is a problem in 3.8 (or 
at least 3.7)

Also demonstrate that issue is not with the 3rd party gevent module.  Does 
gevent includes compiled non-python code?  (I suspect it does, but don't know.) 
 If so, your script should *not* import that extension.  Or you should close 
this as '3rd party' and submit a report to the gevent authors, who should be 
better able to determine where the problem originates.

--
nosy: +terry.reedy
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



[issue35627] multiprocessing.queue in 3.7.2 doesn't behave as it was in 3.7.1

2019-01-04 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

I couldn't reproduce on Ubuntu either.  I tried the "fork", "forkserver" and 
"spawn" methods (all with 3.7.2).

Terry, if you are on Windows, can you try the script?  Be sure to enclose the 
test() call in a "if __name__ == '__main__'" guard.

--

___
Python tracker 

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



  1   2   >