[issue31353] Implement PEP 553 - built-in breakpoint()

2017-10-02 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
title: Implement PEP 553 - built-in debug() -> Implement PEP 553 - built-in 
breakpoint()

___
Python tracker 

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



[issue31668] "fixFirefoxAnchorBug" function in doctools.js causes navigating problem in Py3 doc in Chrome

2017-10-02 Thread fireattack

New submission from fireattack :

Problem

This is a regression bug/flaw in Sphinx's doctools.js, a JS file used in its 
base template, and therefore got inherited to Python 3's documentation website. 
Python 2's documentation website is not affected because it's based on an older 
version of Sphinx.

There is a function in doctools.js:

/**
* workaround a firefox stupidity
* see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075
*/
fixFirefoxAnchorBug : function() {
if (document.location.hash)
window.setTimeout(function() {
document.location.href += '';
}, 10);
}


This function was supposed to fix an anchor bug in Firefox (see comment). It 
*used to* have a condition of $.browser outside, so it will only be applied to 
Firefox; but it was removed in JQuery so it was removed here as well. 
Therefore, this function now applies to all the browsers. Unfortunately, it 
causes navigating problem in Chrome now, when you use back and forward.

The problem STR (Chrome only):

1. Open a link with hash (anchor), e.g. 
https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str
2. Scroll away from the anchor position.
3. Click any external link (means the link that is not an anchor of current 
page).
4. Hit "back" button in the browser.

What happened:

When you navigating back, it doesn't go to your previous position. Instead, it 
goes to the anchor's location.

What it should do:

It should go to your previous position.

Ironically, it won't cause this problem in Firefox, despite it's supposed to be 
a fix for (a different) anchor bug in Firefox.

Comments

I reported it to Sphinx as well: 
https://github.com/sphinx-doc/sphinx/issues/3549 but didn't get any response so 
far.

Please keep in mind the Firefox anchor bug mentioned above will only happen if 
the anchor is assigned with . From my observation we don't really 
use  in HTML, so I don't think this workaround function is really 
necessary here to begin with.

--
assignee: docs@python
components: Documentation
messages: 303576
nosy: docs@python, fireattack
priority: normal
severity: normal
status: open
title: "fixFirefoxAnchorBug" function in doctools.js causes navigating problem 
in Py3 doc in Chrome
type: behavior
versions: 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



[issue31622] Make threading.get_ident() return an opaque type

2017-10-02 Thread pdox

pdox  added the comment:

If we don't want to change the type of get_ident(), there is another option.

We could have PyThread keep track of which thread ids (e.g. pthread_t) values 
are valid (meaning, the thread is still running). This could be tracked in a 
global data structure (protected by a mutex) internal to PyThread. This can be 
done automatically for threads created by PyThread, and threads where Python is 
running (in between PyGILState_Ensure/PyGILState_Release, or other entry 
functions). If PyThread had this ability, then pthread_kill, etc. could raise 
an exception when the thread_id is invalid.

The tricky part would be non-Python-created threads. There two obvious options 
there... one would be to provide explicit PyThread_Register/PyThread_Unregister 
functions that a thread could call to make itself known to PyThread. The other, 
would be to allow the use of unsafe thread_id's, as long as an override flag is 
provided. (e.g. pthread_kill(thread_id, sig, allow_unsafe=True).

To take the abstraction one step further, we could completely hide the OS-level 
thread identifier inside PyThread, and instead generate our own ids, 
guaranteeing that they will always be integers. (and perhaps also guaranteeing 
a higher level of uniqueness)

(This is not so unusual, as pthread_t is itself an abstraction, unrelated to 
kernel-level thread ids. On linux, the kernel identifies threads using globally 
unique TIDs, which can be fetched with SYS_gettid. This value does not match 
pthread_self(). With GLIBC, the value of pthread_t is (usually) a pointer to 
the bottom of the stack for the thread, which holds a thread descriptor (placed 
there by pthread_create). For this reason, pthread doesn't mesh well with 
threads that it didn't create (e.g., calling pthread_self in a thread which was 
created with clone(), will not do the right thing). pthread_kill is essentially 
a wrapper around tkill(), which first resolves the pthread_t into a TID.)

--

___
Python tracker 

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



[issue31353] Implement PEP 553 - built-in debug()

2017-10-02 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

PEP is accepted.  PR needs review.

--
stage:  -> patch review

___
Python tracker 

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



[issue31630] math.tan has poor accuracy near pi/2 on OpenBSD

2017-10-02 Thread Tim Peters

Tim Peters  added the comment:

When Sun was developing fdlibm, I was (among other things) working on a 
proprietary libm for Kendall Square Research.  I corresponded with fdlibm's 
primary author (KC Ng) often at the time.  There's no way he would have left 
errors this egregious slip by, or neglect careful testing near singularities.

But writing portable code at this level is very delicate, and fdlibm failed in 
many ways when I first compiled it for the KSR machine.  That was the first 
64-bit box fdlibm was tried on, & it exposed many unwarranted assumptions in 
the code.

Browsing the OpenBSD port, they bumped into more, seemingly driven by gcc 
violating assumptions about how tricky casting would work - there are many 
places in the code that, e.g., want to view a single double as a pair of int32s 
(or vice versa), at the bit level.  An aggressive compiler can easily be 
provoked into reordering operations in fatally damaging ways, if it doesn't 
realize that, under the maze of cast and union tricks, successive operations 
are actually operating on the _same_ bits.

So, if possible, it would be great to try compiling OpenBSD's libm with every 
conceivable optimization disabled, to see if that changes results.

Why I suspect that may be promising:  as Stefan pointed out, for arguments near 
pi/2 fdlibm's tan() subtracts pi/2 and evaluates the result as tan(x) = 
-1/tan(x - pi/2).  But these arguments are _so_ close to pi/2 that |x - pi/2| 
is "tiny".  But for tiny arguments z, tan(z) == z to machine precision (tan(z) 
= sin(z) / cos(z) ~= z/1 = z for tiny |z|).  So it's effectively using tan(x) = 
-1/(x - pi/2) in this range.

In the original failing, test, behold:

>>> (1.0 / 1978937966095219.0).hex() # correct
'0x1.234c4c6628b81p-51'

>>> (1.0 / 1978945885716843.0).hex() # OpenBSD
'0x1.234c0p-51'

It's very hard to believe all those trailing zero bits in the OpenBSD 
reciprocal are a coincidence.  It's extremely hard to believe that fdlibm 
_intended_ them to be all zeroes.  But it's pretty easy to believe an 
aggressive optimizer managed to lose the intent of the code.

--

___
Python tracker 

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



[issue23404] 'make touch' does not work with git clones of the source repository

2017-10-02 Thread Ned Deily

Ned Deily  added the comment:

Nick, were you planning to do the work for the other (non-3.6) branches?  If 
not, can someone else pick this up please?

--

___
Python tracker 

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



[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2017-10-02 Thread Ned Deily

Ned Deily  added the comment:

Is there more to do on this issue or can it be closed now?

--
nosy: +ned.deily

___
Python tracker 

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



[issue31660] sys.executable different in os.execv'd python3.6 virtualenv session in python2 vs python3

2017-10-02 Thread Stephen Moore

Stephen Moore  added the comment:

I just realised python3 sets it's own __PYVENV_LAUNCHER__ and if you unset it 
before calling to os.execv, then the virtualenv has the correct sys.executable.

--

___
Python tracker 

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



[issue31660] sys.executable different in os.execv'd python3.6 virtualenv session in python2 vs python3

2017-10-02 Thread Stephen Moore

Stephen Moore  added the comment:

It appears the problem doesn't appear when using python3 -m venv.

Also it seems __PYVENV_LAUNCHER__ is set to the virtualenv's python except when 
it's a python3.6 virtualenv and we os.execv from python3.6, where it's set the 
system python.

Should I be making an issue with the virtualenv project?

--

___
Python tracker 

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



[issue31415] Add -X option to show import time

2017-10-02 Thread Łukasz Langa

Łukasz Langa  added the comment:

Related: https://bugs.python.org/issue31574

--
nosy: +lukasz.langa

___
Python tracker 

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



[issue22729] concurrent.futures `wait` and `as_completed` depend on private api

2017-10-02 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

any thoughts on this Antoine?

--
nosy: +gregory.p.smith, pitrou
title: `wait` and `as_completed` depend on private api -> concurrent.futures 
`wait` and `as_completed` depend on private api

___
Python tracker 

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



[issue31478] assertion failure in random.seed() in case the seed argument has a bad __abs__() method

2017-10-02 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


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



[issue31478] assertion failure in random.seed() in case the seed argument has a bad __abs__() method

2017-10-02 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset 13da1a60f13e173f65bb0da5ab325641d5bb99ec by Serhiy Storchaka 
(Oren Milman) in branch '2.7':
[2.7] bpo-31478: Prevent unwanted behavior in _random.Random.seed() in case the 
arg has a bad __abs__() method (GH-3596) (#3845)
https://github.com/python/cpython/commit/13da1a60f13e173f65bb0da5ab325641d5bb99ec


--

___
Python tracker 

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



[issue31667] Wrong links in the gettext.NullTranslations class

2017-10-02 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Good catch linkid! PR 3860 fixes these and several other gettext related links.

--
nosy: +serhiy.storchaka
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



[issue31667] Wrong links in the gettext.NullTranslations class

2017-10-02 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue31665] Edit "Setting [windows] environmental variables"

2017-10-02 Thread Eryk Sun

Eryk Sun  added the comment:

AFAIK, the "Advanced system settings" dialog has always required administrator 
access. To modify the environment for just the current user, in the control 
panel there's "User Accounts" => "Change my environment variables".

--
nosy: +eryksun

___
Python tracker 

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



[issue31667] Wrong links in the gettext.NullTranslations class

2017-10-02 Thread linkid

New submission from linkid :

In gettext.NullTranslations class doc [0], links to gettext and ngettext 
methods are not consistent.

[0] https://docs.python.org/3/library/gettext.html#the-nulltranslations-class

--
assignee: docs@python
components: Documentation
messages: 303563
nosy: docs@python, linkid
priority: normal
severity: normal
status: open
title: Wrong links in the gettext.NullTranslations class
type: enhancement
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



[issue31589] Links for French documentation pdf is broken

2017-10-02 Thread Julien Palard

Julien Palard  added the comment:

Problem looks like the utf8x package is not friend with tableofcontent:

- 
https://tex.stackexchange.com/questions/240801/utf8x-character-fails-in-the-table-of-contents-every-second-time-i-compile
- 
https://tex.stackexchange.com/questions/164458/pleaseinsertintopreamble-in-toc-and-header

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue31666] Pandas_datareader Error Message - ModuleNotFoundError: No module named 'pandas_datareader' with module in folder

2017-10-02 Thread Scott Tucholka

Change by Scott Tucholka :


--
components: Library (Lib), Windows
nosy: Scott Tucholka, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Pandas_datareader Error Message - ModuleNotFoundError: No module named 
'pandas_datareader' with module in folder
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



[issue31325] req_rate is a namedtuple type rather than instance

2017-10-02 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

There is no rule that something had to be a tuple at some point in its history 
before becoming a named tuple.  This use seems perfectly reasonable to me.

--

___
Python tracker 

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



[issue31665] Edit "Setting [windows] environmental variables"

2017-10-02 Thread Terry J. Reedy

New submission from Terry J. Reedy :

Python Setup and Usage, 3.3.1. Excursus: Setting environment variables
https://docs.python.org/3/using/windows.html#excursus-setting-environment-variables

The word 'excursus' is so rare and archaic that this is my first encounter with 
it.  Could we drop it?

The last paragraph starts with "To permanently modify the default environment 
variables, click Start and search for ‘edit environment variables’,".  This 
part is fine on Windows 10 as it brings up "Edit the system environment 
variables" and "Edit environmental variables for your account".  Both take one 
to an Environmental variables dialog.  The former requires than one be or 
become an admin user (via UAC dialog). 

The paragraph continues "or open System properties, Advanced system settings 
and click the Environment Variables button. In this dialog, you can add or 
modify User and System variables. To change System variables, you need 
non-restricted access to your machine (i.e. Administrator rights)."

On Windows 10, at least, this is confusing or wrong.  Control Panel has 
'System' linked to the System dialog.  This has 'Advanced systems settings' 
linked to System Properties, but one only get there by being or becoming (via 
UAC) an admin user.  This has the  Environmental Properties button mentioned 
above.  It opens Environmental Variables for the admin user you are or are 
acting as.  This route cannot change EVs for non-admin users.  I have the 
impression that this has changed since Win 7.

--
assignee: docs@python
components: Documentation, Windows
messages: 303560
nosy: docs@python, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Edit "Setting [windows] environmental variables"
type: behavior
versions: 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



[issue31630] math.tan has poor accuracy near pi/2 on OpenBSD

2017-10-02 Thread Tim Peters

Tim Peters  added the comment:

Thanks for tanny-openbsd.txt, Serhiy!  OpenBSD didn't get anywhere close to the 
best answer on any of those 201 inputs.  I was hoping we could, e.g., test 
something a little more removed from pi/2 - but even its best cases in this 
range are hundreds of millions of ulps off :-(

--

___
Python tracker 

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



[issue31630] math.tan has poor accuracy near pi/2 on OpenBSD

2017-10-02 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


Added file: https://bugs.python.org/file47184/tanny-openbsd.txt

___
Python tracker 

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



[issue31271] an assertion failure in io.TextIOWrapper.write

2017-10-02 Thread Oren Milman

Oren Milman  added the comment:

sure

--

___
Python tracker 

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



[issue31567] Inconsistent documentation around decorators

2017-10-02 Thread Éric Araujo

Éric Araujo  added the comment:

> What does @ mean here? If there's some meaning, the next question is, why doc 
> for staticmethod()
> (and classmethod() in the same page) does not have it?

@ means that the function is meant to be used as a decorator (the markup looks 
like the actual code).

staticmethod and classmethod are older than the decorator syntax, which is 
older than the special sphinx markup for decorators (they used to just use the 
function markup).

For unittest.mock.patch, its result can be used as a decorator or as a context 
manager, so the current markup (no @) makes sense.

If you want to update staticmethod and classmethod to use the decorator markup, 
please send a pull request!  (more info in the devguide)

--
nosy: +merwok

___
Python tracker 

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



[issue21983] segfault in ctypes.cast

2017-10-02 Thread Oren Milman

Change by Oren Milman :


--
versions: +Python 2.7, Python 3.4

___
Python tracker 

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



[issue21983] segfault in ctypes.cast

2017-10-02 Thread Oren Milman

Change by Oren Milman :


--
versions: +Python 3.7 -Python 2.7, Python 3.4

___
Python tracker 

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



[issue21983] segfault in ctypes.cast

2017-10-02 Thread Oren Milman

Change by Oren Milman :


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

___
Python tracker 

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



[issue31630] math.tan has poor accuracy near pi/2 on OpenBSD

2017-10-02 Thread Tim Peters

Tim Peters  added the comment:

If someone opens a bug report with OpenBSD, or just for us to get more info, it 
could be useful to have a larger universe of troublesome tan inputs to stare 
at.  So the attached tanny.py supplies them, testing all inputs within 100 ulps 
of math.pi/2 (or change N=100 to whatever you like).

There are no failures on my 64-bit Win10 3.6.1.

The "correct" answers are computed by using mpmath.tan() set to 200 mantissa 
bits, then rounding back to 53 bits.  These all match the results from my 
dirt-dumb decimal tan() rounded back, but it's better to trust a widely-used 
package.

Of course mpmath needs to be installed ("pip install mpmath" works fine):

http://mpmath.org/

Nothing else is needed (while mpmath will exploit gmpy if it's installed, by 
default it sticks to pure Python code).

--
Added file: https://bugs.python.org/file47183/tanny.py

___
Python tracker 

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



[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-10-02 Thread Stefan Krah

Stefan Krah  added the comment:

I think the configure check should be this (sets HAVE_LIBUUID in pyconfig.h):

diff --git a/configure.ac b/configure.ac
index 41bd9effbf..90d53c1b7d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2657,6 +2657,7 @@ AC_MSG_RESULT($SHLIBS)
 AC_CHECK_LIB(sendfile, sendfile)
 AC_CHECK_LIB(dl, dlopen)   # Dynamic linking for SunOS/Solaris and SYSV
 AC_CHECK_LIB(dld, shl_load)# Dynamic linking for HP-UX
+AC_CHECK_LIB(uuid, uuid_generate_time_safe)
 
 # only check for sem_init if thread support is requested
 if test "$with_threads" = "yes" -o -z "$with_threads"; then

--
nosy: +skrah

___
Python tracker 

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



[issue31663] pyautogui.typewrite() method doesn't work as expected.

2017-10-02 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

This tracker is for issues about improving future cpython releases on 
python.org.  Questions about using current python go to other forums, such as 
python-list.  You can also use python-list via the news.gmane.org newsgroup 
mirror gmane.comp.python.general.

If you ask your question elsewhere, you must give much more information.  What 
is pyautogui.typewrite?  It is not part of the Python stdlib.  What does 
'interchanged my mouse click options (on windows OS)' mean?  What did you do in 
IDLE, in some detail.  What did you see and where?

--
components:  -IDLE, Windows
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue31325] req_rate is a namedtuple type rather than instance

2017-10-02 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

This is a normal use of named tuples for adding access by name to tuple 
results. But req_rate never was a tuple. Nobody used rr[0].

--

___
Python tracker 

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



[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-10-02 Thread Ned Deily

Ned Deily  added the comment:

I agree with Barry's comment on PR 3855: "I'd rather see a configure check for 
the existence of uuid_generate_time_safe() rather than hard coding it to 
platforms !APPLE for two reasons. 1) If macOS ever adds this API in some future 
release, this ifndef will be incorrect, and 2) if some other platform comes 
along that doesn't have this API, it will still use the incorrect function."  
It's exactly for situations like this that autoconf tests exist; we should not 
be hardwiring assumptions about the lack of particular platform APIs.

--
nosy: +ned.deily

___
Python tracker 

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



[issue31660] sys.executable different in os.execv'd python3.6 virtualenv session in python2 vs python3

2017-10-02 Thread Ned Deily

Ned Deily  added the comment:

I suspect what is being seen here is essentially a duplicate of Issue31363. On 
macOS framework builds, a python launcher executable is used 
(Mac/Tools/pythonw.c) to exec the real Python interpreter binary and the 
launcher uses the __PYVENV_LAUNCHER__ environment variable to be able to handle 
symlinks (work initially implemented in Issue15307).

--
nosy: +vinay.sajip

___
Python tracker 

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



[issue31325] req_rate is a namedtuple type rather than instance

2017-10-02 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

> What is a reason of making req_rate a named tuple?

I don't know the original reason but it seems like a normal use of named tuples 
to make the data more self-describing to help with debugging and also to 
support field access by name, rr.requests or rr.seconds is clearer than rr[0] 
or rr[1].

--

___
Python tracker 

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



[issue31662] trivial typos in Tools/msi/uploadrelease.bat

2017-10-02 Thread Steve Dower

Steve Dower  added the comment:


New changeset d6201cb0e865dad116ffe46e5ea3d02e8eeb42c1 by Steve Dower (Miss 
Islington (bot)) in branch '3.6':
[3.6] bpo-31662: Fix typos in uploadrelease.bat script (#3858)
https://github.com/python/cpython/commit/d6201cb0e865dad116ffe46e5ea3d02e8eeb42c1


--

___
Python tracker 

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



[issue31662] trivial typos in Tools/msi/uploadrelease.bat

2017-10-02 Thread Steve Dower

Change by Steve Dower :


--
stage: backport needed -> 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



[issue31271] an assertion failure in io.TextIOWrapper.write

2017-10-02 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Oren, do you mind to create a backport to 2.7? miss-islington can not handle it.

--
stage: patch review -> backport needed

___
Python tracker 

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



[issue31663] pyautogui.typewrite() method doesn't work as expected.

2017-10-02 Thread Steve Dower

Change by Steve Dower :


--
nosy:  -steve.dower

___
Python tracker 

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



[issue31663] pyautogui.typewrite() method doesn't work as expected.

2017-10-02 Thread Steve Dower

Change by Steve Dower :


--
assignee:  -> terry.reedy
components: +IDLE
nosy: +terry.reedy

___
Python tracker 

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



[issue31662] trivial typos in Tools/msi/uploadrelease.bat

2017-10-02 Thread Roundup Robot

Change by Roundup Robot :


--
pull_requests: +3838

___
Python tracker 

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



[issue31662] trivial typos in Tools/msi/uploadrelease.bat

2017-10-02 Thread Steve Dower

Change by Steve Dower :


--
assignee:  -> steve.dower
resolution:  -> fixed
stage: patch review -> backport needed
versions:  -Python 3.5

___
Python tracker 

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



[issue31662] trivial typos in Tools/msi/uploadrelease.bat

2017-10-02 Thread Steve Dower

Steve Dower  added the comment:


New changeset efb560eee28b6b2418e1231573ca62574d6dc07b by Steve Dower (Anselm 
Kruis) in branch 'master':
bpo-31662: Fix typos in uploadrelease.bat script
https://github.com/python/cpython/commit/efb560eee28b6b2418e1231573ca62574d6dc07b


--

___
Python tracker 

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



[issue31662] trivial typos in Tools/msi/uploadrelease.bat

2017-10-02 Thread Steve Dower

Steve Dower  added the comment:

Thanks. It is indeed trivial, so I'll merge and backport it.

--

___
Python tracker 

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



[issue31664] Add support of new crypt methods

2017-10-02 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

I concur. Initially I implemented all three methods, then removed they except 
Blowfish, and then re-added they back just for showing they to security experts.

--

___
Python tracker 

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



[issue31510] test_many_processes() of test_multiprocessing_spawn failed on x86-64 Sierra 3.x

2017-10-02 Thread STINNER Victor

Change by STINNER Victor :


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



[issue31510] test_many_processes() of test_multiprocessing_spawn failed on x86-64 Sierra 3.x

2017-10-02 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset e6cfdefa0c2f5bda177e49b228c2c7528f7c239c by Victor Stinner in 
branch 'master':
bpo-31510: Fix multiprocessing test_many_processes() on macOS (#3857)
https://github.com/python/cpython/commit/e6cfdefa0c2f5bda177e49b228c2c7528f7c239c


--

___
Python tracker 

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



[issue31516] current_thread() becomes "dummy" thread during shutdown

2017-10-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I have now pushed the fix to master and 3.6.  Hopefully this won't break 
anyone's code...

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



[issue31516] current_thread() becomes "dummy" thread during shutdown

2017-10-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:


New changeset ac6245a31f9a757db0520722c592cb7fdcb55eb0 by Antoine Pitrou (Miss 
Islington (bot)) in branch '3.6':
[3.6] bpo-31516: current_thread() should not return a dummy thread at shutdown 
(GH-3673) (#3856)
https://github.com/python/cpython/commit/ac6245a31f9a757db0520722c592cb7fdcb55eb0


--

___
Python tracker 

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



[issue29832] Don't refer to getsockaddrarg in error messages

2017-10-02 Thread Oren Milman

Oren Milman  added the comment:

Should i remove the code that i wasn't able to test from the PR, and
leave such changes to someone that is able to test it?

(of course, if there is some way i can do it using a VM, please point
that out, and i would try to set up this VM.)

--

___
Python tracker 

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



[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-10-02 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset 4337a0d9955f0855ba38ef30feec3858d304abf0 by Victor Stinner in 
branch 'master':
bpo-11063: Fix _uuid module on macOS (#3855)
https://github.com/python/cpython/commit/4337a0d9955f0855ba38ef30feec3858d304abf0


--

___
Python tracker 

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



[issue31510] test_many_processes() of test_multiprocessing_spawn failed on x86-64 Sierra 3.x

2017-10-02 Thread STINNER Victor

STINNER Victor  added the comment:

Antoine: "It seems other people have similar issues: 
https://github.com/libuv/libuv/issues/1226 Perhaps we need to relax the test on 
OSX :-/"

Oh thanks for the confirmation. I proposed a patch to accept -SIGKILL on macOS: 
PR 3857.

--

___
Python tracker 

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



[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-10-02 Thread STINNER Victor

STINNER Victor  added the comment:

I proposed PR 3855 to add macOS support to _uuid (and fix the compilation 
error).

--

___
Python tracker 

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



[issue31510] test_many_processes() of test_multiprocessing_spawn failed on x86-64 Sierra 3.x

2017-10-02 Thread STINNER Victor

Change by STINNER Victor :


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

___
Python tracker 

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



[issue31516] current_thread() becomes "dummy" thread during shutdown

2017-10-02 Thread Roundup Robot

Change by Roundup Robot :


--
pull_requests: +3836

___
Python tracker 

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



[issue31516] current_thread() becomes "dummy" thread during shutdown

2017-10-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:


New changeset 1023dbbcb7f05e76053486ae7ef7f73b4cdc5398 by Antoine Pitrou in 
branch 'master':
bpo-31516: current_thread() should not return a dummy thread at shutdown (#3673)
https://github.com/python/cpython/commit/1023dbbcb7f05e76053486ae7ef7f73b4cdc5398


--

___
Python tracker 

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



[issue31510] test_many_processes() of test_multiprocessing_spawn failed on x86-64 Sierra 3.x

2017-10-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

It seems other people have similar issues:
https://github.com/libuv/libuv/issues/1226

Perhaps we need to relax the test on OSX :-/

--

___
Python tracker 

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



[issue31510] test_many_processes() of test_multiprocessing_spawn failed on x86-64 Sierra 3.x

2017-10-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> It looks like a weak synchronization.

It is.  I don't remember exactly why I had to add this, I can't reproduce any 
issue without it anymore...

> the signal is sent before Python registered signal handlers?

Python signal handlers are not relevant here, we're sending SIGTERM which kills 
the process.

--

___
Python tracker 

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



[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-10-02 Thread STINNER Victor

Change by STINNER Victor :


--
pull_requests: +3835
stage: resolved -> patch review

___
Python tracker 

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



[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-10-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

pkg-config is a Linux-ism.  But Linux already works fine...

$ uname 
Darwin
$ pkg-config
-bash: pkg-config: command not found

--

___
Python tracker 

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



[issue31660] sys.executable different in os.execv'd python3.6 virtualenv session in python2 vs python3

2017-10-02 Thread Barry A. Warsaw

Change by Barry A. Warsaw :


--
nosy: +barry

___
Python tracker 

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



[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-10-02 Thread STINNER Victor

STINNER Victor  added the comment:

> Though I don't know how to reuse the find_file() logic in configure...

Maybe we could use pkg-config instead?

haypo@selma$ pkg-config uuid --cflags
-I/usr/include/uuid 
haypo@selma$ pkg-config uuid --libs
-luuid

--

___
Python tracker 

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



[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-10-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Though I don't know how to reuse the find_file() logic in configure...

--

___
Python tracker 

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



[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-10-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Would it possible to check if uuid_generate_time_safe() is available, maybe 
> in configure?

That's probably possible.

--

___
Python tracker 

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



[issue31660] sys.executable different in os.execv'd python3.6 virtualenv session in python2 vs python3

2017-10-02 Thread R. David Murray

R. David Murray  added the comment:

virtualenv is not part of the standard library.  What happens if you use venv 
instead?

--
nosy: +r.david.murray

___
Python tracker 

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



[issue31661] Issues with request rate in robotparser

2017-10-02 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Oh, I missed this. My report is based on the same comment on 
news.ycombinator.com.

--

___
Python tracker 

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



[issue31325] req_rate is a namedtuple type rather than instance

2017-10-02 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

What is a reason of making req_rate a named tuple?

--

___
Python tracker 

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



[issue31325] req_rate is a namedtuple type rather than instance

2017-10-02 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue31664] Add support of new crypt methods

2017-10-02 Thread Christian Heimes

Christian Heimes  added the comment:

-1 on DES and NT Hash

These are very old, very bad algorithms and should no longer be used. We are in 
the 21th century.

--

___
Python tracker 

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



[issue31661] Issues with request rate in robotparser

2017-10-02 Thread Berker Peksag

Berker Peksag  added the comment:

Thanks for the report. Your analysis is correct and this is a duplicate of 
issue 31325. I'll take care of the PR 3259.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> req_rate is a namedtuple type rather than instance

___
Python tracker 

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



[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-10-02 Thread STINNER Victor

STINNER Victor  added the comment:

> It's expected if uuid_generate_time_safe() isn't available on your platform.  
> But test_uuid still passes?

I would prefer to avoid compilation errors on a popular platforms like macOS. 
Would it possible to check if uuid_generate_time_safe() is available, maybe in 
configure? Or we can "simply" skip _uuid compilation on macOS?

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



[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-10-02 Thread STINNER Victor

STINNER Victor  added the comment:

Thanks Cornelius Diekmann for your fix ;-)

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



[issue16487] Allow ssl certificates to be specified from memory rather than files.

2017-10-02 Thread STINNER Victor

Change by STINNER Victor :


--
components:  -Library (Lib)
nosy:  -haypo

___
Python tracker 

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



[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-10-02 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset 20cbc1d29facead32c2da06c81a09af0e057015c by Victor Stinner in 
branch '2.7':
bpo-31158: Fix nondeterministic read in test_pty (#3808) (#3853)
https://github.com/python/cpython/commit/20cbc1d29facead32c2da06c81a09af0e057015c


--

___
Python tracker 

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



[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-10-02 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset 66fb5ef3bb9e36187a0e5052dfd99899447df671 by Victor Stinner (Miss 
Islington (bot)) in branch '3.6':
[3.6] bpo-31158: Fix nondeterministic read in test_pty (GH-3808) (GH-3852)
https://github.com/python/cpython/commit/66fb5ef3bb9e36187a0e5052dfd99899447df671


--

___
Python tracker 

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



[issue31655] SimpleNamespace accepts non-string keyword names

2017-10-02 Thread STINNER Victor

STINNER Victor  added the comment:

Please reject non-string keys. I don't see any good reason to use non-string, 
and it's painful to support such CPython implementation details in other Python 
implementations.

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



[issue31659] ssl module should not use textwrap for wrapping PEM format.

2017-10-02 Thread Christian Heimes

Change by Christian Heimes :


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

___
Python tracker 

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



[issue31664] Add support of new crypt methods

2017-10-02 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
components: +Library (Lib)
nosy: +christian.heimes, dstufft, gregory.p.smith, jafo
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



[issue28027] Remove Lib/plat-*/* files

2017-10-02 Thread STINNER Victor

STINNER Victor  added the comment:

Thank you Zachary for this removal ;-)

--

___
Python tracker 

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



[issue31664] Add support of new crypt methods

2017-10-02 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-10-02 Thread STINNER Victor

Change by STINNER Victor :


--
pull_requests: +3833

___
Python tracker 

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



[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-10-02 Thread STINNER Victor

STINNER Victor  added the comment:

> I prefer Cornelius’s current proposal (rev 4f8137b)

Ok, fine. I merged his PR 3852. I created backports to 2.7 and 3.6.

--
versions: +Python 2.7, Python 3.6

___
Python tracker 

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



[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-10-02 Thread Roundup Robot

Change by Roundup Robot :


--
pull_requests: +3832

___
Python tracker 

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



[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-10-02 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset e6f62f69f07892b993910ff03c9db3ffa5cb9ca5 by Victor Stinner 
(Cornelius Diekmann) in branch 'master':
bpo-31158: Fix nondeterministic read in test_pty (#3808)
https://github.com/python/cpython/commit/e6f62f69f07892b993910ff03c9db3ffa5cb9ca5


--

___
Python tracker 

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



[issue30576] http.server should support HTTP compression (gzip)

2017-10-02 Thread STINNER Victor

Change by STINNER Victor :


--
nosy:  -haypo

___
Python tracker 

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



[issue29041] Reference leaks on Windows

2017-10-02 Thread STINNER Victor

STINNER Victor  added the comment:

> Victor has cleaned these up, and we now have a buildbot running refleak 
> checks on Windows every day (as long as it's not hung :)

\o/ Hopefully I was alone ;-) 
https://haypo.github.io/contrib-cpython-2017q2-part2.html

--

___
Python tracker 

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



[issue31664] Add support of new crypt methods

2017-10-02 Thread Serhiy Storchaka

New submission from Serhiy Storchaka :

Proposed PR adds support of three new methods in the crypt module.

1. Blowfish. It is considered as strong as SSH512 for crypt() purpose. There 
are several variants of this method: '2', '2a', '2b' and '2y'. '2y' looks the 
same as '2b', other variants have different flaws. All four are supported on 
FreeBSD. '2b' is the only method available on OpenBSD, hence this change also 
fixes crypt on OpenBSD (see issue25287). Blowfish is not supported in glibc, 
but it is added in some Linux distributions (not in Ubuntu). The most strong of 
the available variants is chosen.

2. Extended DES. In contrary to traditional default algorithm it uses salt 
longer than 2 characters. It is supported on FreeBSD.

3. NT-Hash. It doesn't use salt and is compatible with Microsoft's NT scheme. 
It is supported on FreeBSD.

mksalt() now takes the log_rounds argument for Blowfish. I'm not sure this is 
the best solution. And what should be a default value?

--
messages: 303516
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Add support of new crypt methods

___
Python tracker 

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



[issue31663] pyautogui.typewrite() method doesn't work as expected.

2017-10-02 Thread Basanna Badami

New submission from Basanna Badami :

Tried to run pyautogui.typewrite('Hello World') On IDLE terminal to type 'Hello 
World' string to an open notepad(say). As, i've interchanged my mouse click 
options(on windows OS), instead of 'Hello World' string being print to to the 
open notepad, i could see a right click on it.

The method pyautogui.typewrite() doesn't function as per mouse options settings 
on my machine.

--
components: Windows
messages: 303515
nosy: basanna007, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: pyautogui.typewrite() method doesn't work as expected.
type: behavior
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



[issue16487] Allow ssl certificates to be specified from memory rather than files.

2017-10-02 Thread Jan-Philip Gehrcke

Jan-Philip Gehrcke  added the comment:

Hey Antoine, Christian, Senthil!

I have invested quite a bit more time to double-check my responses to the 
questions asked so far, clarified where appropriate, and updated the pull 
request on GitHub after manually resolving the merge conflicts that accumulated 
over time.

I would very much appreciate to get another round of feedback. Can we somehow 
expedite this? I am available for pushing this further, so that maybe we can 
still land this in 3.7 after we missed 3.6 last year.

Based on the diff this change _appears_ to be risky but I would like to stress 
again that I approached this issue pretty conservatively. I tried to make this 
a conceptually backwards-compatible change by keeping the old code path intact 
(the old tests pass, too, but this is not the best criterion here).

Cheers and thanks!

Jan-Philip

--

___
Python tracker 

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



[issue31662] trivial typos in Tools/msi/uploadrelease.bat

2017-10-02 Thread Anselm Kruis

Change by Anselm Kruis :


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

___
Python tracker 

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



[issue31662] trivial typos in Tools/msi/uploadrelease.bat

2017-10-02 Thread Anselm Kruis

New submission from Anselm Kruis :

There are 3 trivial typos in Tools/msi/uploadrelease.bat: "godo" instead of 
"goto" in lines 25 to 28.

--
components: Build
messages: 303513
nosy: anselm.kruis, steve.dower
priority: normal
severity: normal
status: open
title: trivial typos in Tools/msi/uploadrelease.bat
type: behavior
versions: 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



[issue31659] ssl module should not use textwrap for wrapping PEM format.

2017-10-02 Thread INADA Naoki

Change by INADA Naoki :


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



[issue31659] ssl module should not use textwrap for wrapping PEM format.

2017-10-02 Thread INADA Naoki

INADA Naoki  added the comment:


New changeset b75a228af8c0553aef44e4e03763af90fbc8737f by INADA Naoki in branch 
'master':
bpo-31659: Use simple slicing to format PEM cert (GH-3849)
https://github.com/python/cpython/commit/b75a228af8c0553aef44e4e03763af90fbc8737f


--

___
Python tracker 

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



[issue31622] Make threading.get_ident() return an opaque type

2017-10-02 Thread Nick Coghlan

Nick Coghlan  added the comment:

Note that it would be entirely possible to leave the Python level thread IDs 
alone, but change the way they were used internally to keep the thread ID 
distinct from the operating system level thread handle.

That would limit the adjustment to signal.pthread_kill() and other APIs that 
wanted to resolve the integer ID back to an OS level handle.

--

___
Python tracker 

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



[issue31661] Issues with request rate in robotparser

2017-10-02 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

For the performance of namedtuple type creation see issue28638 and 
https://mail.python.org/pipermail/python-dev/2017-July/148592.html. For 
difference between types and instance see 
https://docs.python.org/3/tutorial/classes.html.

--

___
Python tracker 

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



[issue31661] Issues with request rate in robotparser

2017-10-02 Thread Nikolay Bogoychev

Nikolay Bogoychev  added the comment:

Hey Serhiy,

The use of namedtuple was requested specifically at a review, I didn't 
implement it like this initially: https://bugs.python.org/review/16099/#ps6205

I wasn't aware of the performance implications. Could you please explain to me 
the type vs instance in terms of performance (or point me to a resource, a 
quick googling didn't yield anything? How was I supposed to have coded it 
properly?

Cheers,

Nick

--

___
Python tracker 

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



[issue31661] Issues with request rate in robotparser

2017-10-02 Thread Serhiy Storchaka

New submission from Serhiy Storchaka :

There are issues in implementing support of request rate in robotparser.

req_rate = collections.namedtuple('req_rate',
  'requests seconds')
entry.req_rate = req_rate
entry.req_rate.requests = int(numbers[0])
entry.req_rate.seconds = int(numbers[1])

First, a new namedtuple type is created for every entry. This is slow even with 
recent namedtuple optimizations, and is much slower in 3.6. This wastes a 
memory, since new type is created for every entry. This is definitely wrong, 
since req_rate is set to a namedtuple type instead of namedtuple instance. And 
there is a question why a namedtuple is used here at all. Other classes in this 
module are not namedtuples.

--
components: Library (Lib)
messages: 303508
nosy: XapaJIaMnu, berker.peksag, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Issues with request rate in robotparser
type: behavior
versions: 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