[issue30449] Improve __slots__ datamodel documentation

2017-05-25 Thread Raymond Hettinger

Raymond Hettinger added the comment:


New changeset 2b44e302ec3079363c4d5c875677945953705c58 by Raymond Hettinger 
(Aaron Hall, MBA) in branch 'master':
bpo-30449 Terse slots (#1819)
https://github.com/python/cpython/commit/2b44e302ec3079363c4d5c875677945953705c58


--

___
Python tracker 

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



[issue17942] IDLE Debugger: Improve GUI

2017-05-25 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
stage: needs patch -> patch review
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue30310] tkFont.py assumes that all font families are encoded as ascii in Python 2.7

2017-05-25 Thread Serhiy Storchaka

Changes 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



[issue30310] tkFont.py assumes that all font families are encoded as ascii in Python 2.7

2017-05-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 96f502059717a692ca3abd968b26c5ea2918ad3a by Serhiy Storchaka in 
branch '2.7':
[2.7] bpo-30310: tkFont now supports unicode options (e.g. font family). (#1567)
https://github.com/python/cpython/commit/96f502059717a692ca3abd968b26c5ea2918ad3a


--

___
Python tracker 

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



[issue30463] Add __slots__ to ABC convenience class

2017-05-25 Thread Aaron Hall

Changes by Aaron Hall :


--
pull_requests: +1908

___
Python tracker 

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



[issue14111] IDLE Debugger should handle interrupts

2017-05-25 Thread Louie Lu

Louie Lu added the comment:

The patch is upload to PR 1821, if Roger get a GitHub account and linked to 
b.p.o, we can rebase the first commit and change the author in commit message 
to Roger's account information.

--

___
Python tracker 

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



[issue14111] IDLE Debugger should handle interrupts

2017-05-25 Thread Louie Lu

Changes by Louie Lu :


--
pull_requests: +1907

___
Python tracker 

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



[issue30439] Expose the subinterpreters C-API in the stdlib.

2017-05-25 Thread Nick Coghlan

Nick Coghlan added the comment:

A naming suggestion: let's leave the `interpreters` & `_interpreters` names 
free for a possible future PEP to make this a public API with a fallback 
multiprocessing backed implementation for implementations that don't have 
native subinterpreter support.

Then for this "testing and experimentation only" API, we'd go with 
"_subinterpreters" to match the name typically used to refer to the CPython 
feature.

--
nosy: +ncoghlan

___
Python tracker 

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



[issue30478] Python 2.7 crashes in Linux environment

2017-05-25 Thread Nick Coghlan

Nick Coghlan added the comment:

Hi HuyK, thanks for the issue report, and in particular the pointers to the key 
external libraries the script uses.

It seems ftd2xx relies on ctypes to wrap an external library, which means that 
this report falls under the general policy of "triggering a segfault with 
ctypes is assumed to be a bug in the usage of ctypes, rather than a bug in 
ctypes itself". 

If you'd like to investigate further before filing a bug report with the ftd2xx 
authors, you may want to try out the Python 2.7 backport of Python 3's 
faulthandler library: https://faulthandler.readthedocs.io/

That should be able to give you a Python traceback at the point where the 
segfault occurs, rather than trying to reverse engineer that information from 
the core dump.

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



[issue30478] Python 2.7 crashes in Linux environment

2017-05-25 Thread HuyK

HuyK added the comment:

Hi Louie Lu,

You will need a touch-screen device running corresponding firmware in order to 
run the python application. FYI, I tried to run only weather data fetching or 
only COM port communication but the crash did not happen. It happens when I run 
both tasks.
Anyway, I attach the python script for your reference.
First, I got the issue with 2.7.9. And after updating to 2.7.13, I still get 
the crash issue

Thanks,
HuyK

--
Added file: http://bugs.python.org/file46904/weather_station.py

___
Python tracker 

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



[issue30420] Clarify kwarg handing for subprocess convenience APIs

2017-05-25 Thread Nick Coghlan

Nick Coghlan added the comment:

The just merged PR covers the "list `cwd` in the nominal signatures for 
`run()`, `call()`, `check_call()`, and `check_output()`" part of the proposal.

The rest of the proposed fixes are still pending a patch (and keeping in mind 
Martin's caveat on minimising duplication between the "Frequently Used 
Arguments" section and the full Popen documentation)

--

___
Python tracker 

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



[issue30478] Python 2.7 crashes in Linux environment

2017-05-25 Thread Louie Lu

Louie Lu added the comment:

Hi Huyk, which version of Python does the error message generated?

Also, could you try to provide a minimum reproduce python script and upload it? 
it will be more easy to debug this problem if we can reproduce this.

--
nosy: +louielu

___
Python tracker 

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



[issue30471] "as" keyword in comprehensions

2017-05-25 Thread Raymond Hettinger

Raymond Hettinger added the comment:

As Brett says, the place to propose this is on python-ideas.  

I'm going to mark it here as closed/rejected because it will likely have to go 
through a lengthy process (possibly including a PEP) before having a chance of 
being accepted.  Please don't take this as discouragement.  It is just that the 
tracker is the wrong forum for the conversation to start.

On the plus side, the idea does seem like a nice convenience.  On the minus 
side, we really like that inconveniences serve as a nudge to not put too much 
inside a list comprehension and use a regular for-loop instead.  Also, Guido in 
the past has resisted similar suggestions for making assignments inside a 
while-loop conditional expression ("while (f.read(10) as block) != '': ...).

--
nosy: +rhettinger
resolution:  -> rejected
stage:  -> resolved
status: open -> closed
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



[issue30420] Clarify kwarg handing for subprocess convenience APIs

2017-05-25 Thread Nick Coghlan

Nick Coghlan added the comment:


New changeset 368cf1d20630498ca7939069a05d744fabb570aa by Nick Coghlan (Alex 
Gaynor) in branch 'master':
bpo-30420: List cwd parameter in subprocess convenience APIs (GH-1685)
https://github.com/python/cpython/commit/368cf1d20630498ca7939069a05d744fabb570aa


--

___
Python tracker 

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



[issue30477] tuple.index error message improvement

2017-05-25 Thread Raymond Hettinger

Raymond Hettinger added the comment:

> Is it a performance worry?

It really depends on what people are doing with their down.  If indexing 
potentially missing values is common, there will be a performance impact.  

Also, the cost of a __repr__ varies wildly depending on the data (i.e. a 
collections.Counter instance has an expensive __repr__, decimal objects have 
computations to runs as well).

>From a user point of view, a repr might be helpful or it might be 
>disasterously lengthy (a webpage, a giant bytearray, a long list of tuples).

Personally, I would rather not do this PR which seems to have the view that the 
exception is an error condition as opposed to being a normal way to terminate a 
series of index() calls.

--
nosy: +rhettinger

___
Python tracker 

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



[issue30449] Improve __slots__ datamodel documentation

2017-05-25 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Overall this looks good.  Please do fix the one review comment.

--

___
Python tracker 

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



[issue30449] Improve __slots__ datamodel documentation

2017-05-25 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee: docs@python -> rhettinger

___
Python tracker 

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



[issue30478] Python 2.7 crashes in Linux environment

2017-05-25 Thread HuyK

New submission from HuyK:

Hi all,

I have a python script to run  as a Weather Station application. The python 
script runs on Raspberry Pi 3 board. It gets weather data from OpenWeatherMap 
website and sends result to a remote touch-screen device via COM port to display

It uses two main libraries to handle the task:
https://pypi.python.org/pypi/ftd2xx
https://github.com/csparpa/pyowm

I got the python script just exits without any error after sometimes. Checking 
the return code with the command "echo $?" in Pi's console window and got 139 
which means a Segmentation Fault

We tried to generate coredump system when the python script crashes and we got 
this:
"Core was generated by 'python weather_station.py'
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0005b614 in complex_subtype_from_string (type=0x746150, v=0x72616843) at 
../Objects/complexobject.c:1075"

I tried to update to Python 2.7.13 but the crashes still happens.

My question is if the segmentation fault related to complexobject.c has been 
reported and fixed?

Best regards,
HuyK

--
components: Interpreter Core
files: python_crashes.png
messages: 294520
nosy: HuyK
priority: normal
severity: normal
status: open
title: Python 2.7 crashes in Linux environment
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file46903/python_crashes.png

___
Python tracker 

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



[issue30477] tuple.index error message improvement

2017-05-25 Thread Joe Jevnik

Joe Jevnik added the comment:

As a more meta question: I have noticed that many error messages in the stdlib 
use PyErr_SetString, or choose to use the type name instead of the repr of the 
object. Is there a reason for this? I normally try to fill the error message 
with as much context as possible to make debugging easier. Is it a performance 
worry?

--

___
Python tracker 

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



[issue30477] tuple.index error message improvement

2017-05-25 Thread Joe Jevnik

Joe Jevnik added the comment:

I agree, "%R in tuple" is enough information for me. This would also remove the 
need to manually repr the object.

--
type: enhancement -> 

___
Python tracker 

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



[issue30477] tuple.index error message improvement

2017-05-25 Thread Brett Cannon

Brett Cannon added the comment:

I'm wondering if including the whole "tuple.index(%R)" part is still necessary? 
The traceback will tell you what method you called, so wouldn't "%R not in 
tuple" be enough?

--
components: +Interpreter Core
type:  -> enhancement

___
Python tracker 

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



[issue30477] tuple.index error message improvement

2017-05-25 Thread Joe Jevnik

New submission from Joe Jevnik:

The old error of tuple.index(x): x not in tuple seemed very confusing to me. It 
was also harder to quickly understand what the program was doing wrong. This 
saves people a second pass through the program under the debugger because they 
can just see what the invalid value was.

The reason I am explicitly calling repr instead of using %R is that I didn't 
want to call repr twice if I didn't need to. If people think that is fine the 
format can just be tuple.index(%R): %R not in tuple instead.

--
messages: 294516
nosy: brett.cannon, ll
priority: normal
pull_requests: 1906
severity: normal
status: open
title: tuple.index error message improvement
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



[issue30449] Improve __slots__ datamodel documentation

2017-05-25 Thread Aaron Hall

Aaron Hall added the comment:

I created a new PR based on rhettinger's feedback (which on consideration was 
quite correct) with a fresh branch from master. 

Terseness is retained, and I think this revision makes the documentation more 
correct and complete. The rewording makes the behavior more clear (IMHO).

No example code is needed for this revision, so I didn't give any, but one or 
two class definitions might be desirable.

Feedback is quite welcome!

--

___
Python tracker 

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



[issue30449] Improve __slots__ datamodel documentation

2017-05-25 Thread Aaron Hall

Changes by Aaron Hall :


--
pull_requests: +1905

___
Python tracker 

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



[issue30471] "as" keyword in comprehensions

2017-05-25 Thread Brett Cannon

Brett Cannon added the comment:

The best place to propose this is on the python-ideas mailing list. My 
suspicion, though, is people will say it's not worth the new syntax as you can 
also undo your comprehensions as normal code and simply assign to a variable 
name directly.

--
nosy: +brett.cannon

___
Python tracker 

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



[issue30476] Add _GenerateCRCTable() to zipfile.py to pre-compute CRC Table

2017-05-25 Thread Shubha Ramani

New submission from Shubha Ramani:

It is wasteful to generate the CRC Table every time, via _crctable = 
list(map(_gen_crc, range(256))). Better to have a pre-computed table.

I will submit the patch which incorporates this feature along with 
micro-benchmark results. Related issue:

http://bugs.python.org/issue30467

http://bugs.python.org/issue30468

--
messages: 294513
nosy: serhiy.storchaka, shubhar
priority: normal
severity: normal
status: open
title: Add   _GenerateCRCTable() to zipfile.py to pre-compute CRC Table
type: performance
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



[issue30448] test_subprocess creates a core dump on FreeBSD

2017-05-25 Thread Eric Snow

Eric Snow added the comment:

At this point I'm not convinced the failure is due to my recent changes.  
Regardless, I do agree with you about detecting hard crashes.

--

___
Python tracker 

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



[issue30459] PyList_SET_ITEM could be safer

2017-05-25 Thread Espie Marc

Espie Marc added the comment:

it's still 100% safe as a macro since each parameter is not used more than 
once. only the return type is an issue.

--

___
Python tracker 

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



[issue30413] Add fnmatch.filterfalse function

2017-05-25 Thread Brett Cannon

Brett Cannon added the comment:

I don't think os.normcase() calling os.fspath() needs to be a worry. 
Pragmatically it's just getting a str/bytes from an object that knows how to 
return a str/bytes for a path. IOW it's no different than 
os.normcase(str(path)) and so embedding the call such that it's not a flat-out 
no-op shouldn't be a general concern.

--

___
Python tracker 

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



[issue30475] Docs for PyDict_GetItemWithError() should say it returns a borrowed reference.

2017-05-25 Thread Eric Snow

Changes by Eric Snow :


--
pull_requests: +1904

___
Python tracker 

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



[issue30460] file opened for updating cannot write after read

2017-05-25 Thread Jeremy Kloth

Jeremy Kloth added the comment:

It seems to me that it is a quite simple fix:

--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -1110,7 +1110,7 @@ file_read(PyFileObject *f, PyObject *args)
-clearerr(f->f_fp);
+if (ferror(f->f_fp)) clearerr(f->f_fp);

which is exactly what the empty read case does above this.

This fixes my error, and produces no changes to the test suite.

I guess it could be wrapped in an #ifdef MS_WINDOWS, just it case, but that 
seems unnecessary as the previous code does not.

--

___
Python tracker 

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



[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-05-25 Thread Jeremy Kloth

Jeremy Kloth added the comment:

Updated PR.  It seems that in my testing back and forth, some build artifacts 
were affecting my outcomes.  That's what I get for cutting corners...

Per Zach's comment, I've changed to VS project files to use the prepare_ssl.py 
include directories (include{suffix} vs inc{suffix}).  This simplifies 
build_ssl.py further.

I have, however, left the "fix_buildinf()" code in place since it requires an 
update to the checked-in external OpenSSL before it can be removed.

--

___
Python tracker 

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



[issue30459] PyList_SET_ITEM could be safer

2017-05-25 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I prefer to leave this as macro rather than assuming the compiler will heed the 
inline hint.

--

___
Python tracker 

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



[issue30475] Docs for PyDict_GetItemWithError() should say it returns a borrowed reference.

2017-05-25 Thread Eric Snow

Changes by Eric Snow :


--
assignee:  -> eric.snow
components: +Documentation
stage:  -> needs patch
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



[issue30475] Docs for PyDict_GetItemWithError() should say it returns a borrowed reference.

2017-05-25 Thread Eric Snow

New submission from Eric Snow:

Per Object/dictobject.c, PyDict_GetItemWithError() returns a borrowed 
reference.  However, the documentation does not say so.  That should be fixed.

--
messages: 294506
nosy: eric.snow
priority: normal
severity: normal
status: open
title: Docs for PyDict_GetItemWithError() should say it returns a borrowed 
reference.

___
Python tracker 

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



[issue30468] Propagate zipfile.py pypy issue #905 patch to CPython 3.7

2017-05-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I'm not the initial author of zipfile. That initial code for decrypting  was 
added in issue698833.

I like your idea about replacing the generating code with the precomputed 
table. Please open a separate issue for this.

--

___
Python tracker 

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



[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-05-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

In 3.6 _PyStack_UnpackDict() returns just args if there are no keyword 
arguments. But if args is NULL, the result of _PyStack_UnpackDict() is treated 
as error.

Thank you for the reproducer Louie!

--
assignee:  -> haypo
components: +Interpreter Core
nosy: +serhiy.storchaka
priority: normal -> critical
stage:  -> needs patch

___
Python tracker 

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



[issue30468] Propagate zipfile.py pypy issue #905 patch to CPython 3.7

2017-05-25 Thread Alecsandru Patrascu

Alecsandru Patrascu added the comment:

Serhiy, I am curious why did you have chosen to compute the CRC32 table 
everytime? It is standard (the generator polynomial does not change) and always 
will output the same values. And it is also less computational intensive to 
loading a precomputed array vs calculating it each time a zip archive is 
extracted.

--
nosy: +alecsandru.patrascu

___
Python tracker 

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



[issue30459] PyList_SET_ITEM could be safer

2017-05-25 Thread Stefan Krah

Stefan Krah added the comment:

I guess since it's documented, it would be ok to change for 3.7.  BTW, we also 
allow "static inline" now in headers, so perhaps we could make it a function.

--
nosy: +skrah

___
Python tracker 

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



[issue30439] Expose the subinterpreters C-API in the stdlib.

2017-05-25 Thread Eric Snow

Eric Snow added the comment:

proposed: https://mail.python.org/pipermail/python-ideas/2017-May/045765.html

--

___
Python tracker 

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



[issue30178] Indent methods and attributes of MimeTypes class

2017-05-25 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

Thanks Jim and Stéphane.

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



[issue30459] PyList_SET_ITEM could be safer

2017-05-25 Thread Espie Marc

Espie Marc added the comment:

Note that the API is fully documented for returning void... not anything else.

"No basis" right. We're taling 1 pieces of software. a lot of what is 
actually used in the world.

I'm very surprised, considering python has routinely done "spring cleanup" by 
breaking fairly old apis.
 
If this breaks, people will fix their code, seriously.

In most places, we would rather have undocumented, unportable code, break 
*cleanly*, rather than rely on a fuzzy behavior that could possibly change at 
any moment, and that was never documented as doing anything.


Or is there some kind of mystique that, because this is low-level C 
implementation, somehow, python programmers are not going to be able to cope 
with the internals ?

--

___
Python tracker 

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



[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-25 Thread Eric Snow

Changes by Eric Snow :


--
pull_requests: +1903

___
Python tracker 

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



[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-05-25 Thread Osvaldo Santana Neto

Osvaldo Santana Neto added the comment:

New version of patch:

1. Use RLock instead of Lock (Mark & Antoine recomendation)
2. Add lock acquire at `__setitem__` and `__delitem__` as following (Mark & 
Antoine recomendation)
3. Add lock protection in `__repr__` implementation.

I've some questions pending:

1. Is it a good idea to wrap self._data access with lock in __getitem__? (I 
suspect it's not)
2. Is it a good idea to lock protect self.copy() and self.setdefault() (I 
suspect it's not because both uses __iter__ that is already protected)

--
Added file: 
http://bugs.python.org/file46902/fix_os_environ_iter_issue_low_level_thread_lock_2.diff

___
Python tracker 

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



[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-05-25 Thread Louie Lu

Louie Lu added the comment:

This bug is introduce at commit: 37e4ef7b17ce6e98ca725c0a53ae14c313c0e48c, then 
fixed at commit: 998c20962ca3e2e693c1635efe76c0144dde76fc

--

___
Python tracker 

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



[issue30468] Propagate zipfile.py pypy issue #905 patch to CPython 3.7

2017-05-25 Thread Shubha Ramani

Shubha Ramani added the comment:

Serhiy yes what you said makes sense. Thanks for clarifying. Updates 
(benchmarking results) shortly...stay tuned.

--

___
Python tracker 

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



[issue30468] Propagate zipfile.py pypy issue #905 patch to CPython 3.7

2017-05-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I assigned this issue to me as the maintainer of the zipfile module. This means 
that I undertake to examine the results of benchmarking, make the review of the 
proposed patch, and merge it if it improves the performance and doesn't have 
negative side effects. This shouldn't stop you from writing your patch.

Actually there was a reason why the code is written in that way. But maybe that 
reason no longer actual or there are stronger arguments for other ways. It is 
hard to say until I reproduce benchmarking results.

--

___
Python tracker 

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



[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-05-25 Thread Steve Dower

Steve Dower added the comment:

> I don't think we've ever advertised the svn windows deps as a service we 
> provide the community.

Except in the dev guide :) ([after looking] well, linked from the dev guide 
https://github.com/python/cpython/blob/master/PCbuild/readme.txt#L230 )

Maybe we just need to pick a date and publicise it separately. Is this process 
PEP-worthy? Considering the amount of decisions we had to make regarding 
putting code in git, it might be worth writing up how it works in a brief PEP 
and including an EOL for svn.p.o

--

___
Python tracker 

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



[issue30414] multiprocesing.Queue silently ignore messages after exc in _feeder

2017-05-25 Thread Antoine Pitrou

Antoine Pitrou added the comment:

This is committed and pushed, thank you!

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



[issue30414] multiprocesing.Queue silently ignore messages after exc in _feeder

2017-05-25 Thread Antoine Pitrou

Antoine Pitrou added the comment:


New changeset bdd964710deffe8593063dcb63157e5b55a82c61 by Antoine Pitrou in 
branch '2.7':
[2.7] bpo-30414: multiprocessing.Queue._feed do not break from main loop on exc 
(GH-1683) (#1817)
https://github.com/python/cpython/commit/bdd964710deffe8593063dcb63157e5b55a82c61


--

___
Python tracker 

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



[issue30446] Embedded 3.6.1 distribution cannot find _socket module

2017-05-25 Thread Steve Dower

Steve Dower added the comment:

I've been meaning to get to looking at this issue for a couple of days now, 
sorry.

There are two critical pieces here:
* don't delete or move _socket.pyd
* don't delete or move python36._pth (but possibly update it)

The first one should be obvious - I assume you haven't messed that bit up :)

The second one is the "static" way of setting sys.path, as Zach suggests. By 
default, it should include 'python36.zip' and '.', which is the directory 
containing python36._pth and python36.dll. If you move any of these around, 
sys.path will be automatically inferred, which could break things.

Further, if you move/remove python36._pth, the registry and environment will be 
used to locate files rather than only looking in the application directory. 
This may be bad.

One final tip - you can rename python36._pth to your_exe_name._pth if you want, 
and if you are embedding then you can get roughly equivalent behaviour using 
PySys_SetPath.

If none of this works, we'll need you to provide some information about your 
application, especially the code used to initialize the interpreter, import 
socket, and the layout of all the files in your app. (Right now, you're asking 
us to guess basically every detail that is relevant to the bug, hence we're 
replying with "read the docs" and "try everything" rather than a specific fix 
;) )

--

___
Python tracker 

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



[issue30459] PyList_SET_ITEM could be safer

2017-05-25 Thread Raymond Hettinger

Raymond Hettinger added the comment:

> Well, there is not going to be a lot of breakage. This 
> problem is the only instance I've encountered in the 
> full OpenBSD ports tree.

That is no basis for knowing what the entire rest of the world has done with 
done with this API (perhaps valid working code using chained assignments).

--

___
Python tracker 

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



[issue30467] Propagate zipfile.py pypy issue #905 patch to CPython 2.7

2017-05-25 Thread Shubha Ramani

Shubha Ramani added the comment:

Please assign this bug to me.

--

___
Python tracker 

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



[issue30468] Propagate zipfile.py pypy issue #905 patch to CPython 3.7

2017-05-25 Thread Shubha Ramani

Shubha Ramani added the comment:

serhiy sure I will attach proof of the performance bottle-neck on 2.7 and 3.7 
before I submit a patch. Please assign this bug to me.

--

___
Python tracker 

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



[issue30468] Propagate zipfile.py pypy issue #905 patch to CPython 3.7

2017-05-25 Thread Shubha Ramani

Shubha Ramani added the comment:

Please assign this bug to me. I will submit a patch

--

___
Python tracker 

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



[issue30414] multiprocesing.Queue silently ignore messages after exc in _feeder

2017-05-25 Thread Antoine Pitrou

Antoine Pitrou added the comment:


New changeset 89004d761361332314beb08b443bff5b092ec36e by Antoine Pitrou in 
branch '3.5':
[3.5] bpo-30414: multiprocessing.Queue._feed do not break from main loop on exc 
(GH-1683) (#1816)
https://github.com/python/cpython/commit/89004d761361332314beb08b443bff5b092ec36e


--

___
Python tracker 

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



[issue30414] multiprocesing.Queue silently ignore messages after exc in _feeder

2017-05-25 Thread Antoine Pitrou

Antoine Pitrou added the comment:


New changeset 2783cc42629b9445ea848ce36bbf213ef7789271 by Antoine Pitrou in 
branch '3.6':
[3.6] bpo-30414: multiprocessing.Queue._feed do not break from main loop on exc 
(GH-1683) (#1815)
https://github.com/python/cpython/commit/2783cc42629b9445ea848ce36bbf213ef7789271


--

___
Python tracker 

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



[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-05-25 Thread Xiang Zhang

Xiang Zhang added the comment:

Interestingly I could only reproduce the failure on 3.6 but not master.

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue30414] multiprocesing.Queue silently ignore messages after exc in _feeder

2017-05-25 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
pull_requests: +1902

___
Python tracker 

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



[issue14111] IDLE Debugger should handle interrupts

2017-05-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Roger, Python development has moved from hg and out private server to git and 
GitHub.  Patches posted on the tracker must be converted to git pull requests 
(PRs) to be merged, and also for proper review and editing.  Unless you prefer 
to do it yourself, we will.  The only difference is the 'author' field of the 
PR.  Credit in the commit message and news entry remains as it was.

Louie, make a PR for this any time you want to.  I do not expect a quick 
response either way.  The original commit should be the patch as is other than 
necessary updates for 3.7, and identified as Roger's in the commit message.  
Then make your changes in separate commits.

--
assignee:  -> terry.reedy
versions: +Python 3.7 -Python 2.7, 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



[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-05-25 Thread Louie Lu

Louie Lu added the comment:

Another way to reproduce this problem:

>>> import datetime
>>> from collections import defaultdict as dd
>>> d = dd(datetime.datetime.now)
>>> d['foo']
Traceback (most recent call last):
  File "", line 1, in 
SystemError:  returned NULL without setting an error

This problem doesn't appear on Python 2.7, too.

--
nosy: +louielu

___
Python tracker 

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



[issue30414] multiprocesing.Queue silently ignore messages after exc in _feeder

2017-05-25 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
pull_requests: +1901

___
Python tracker 

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



[issue30414] multiprocesing.Queue silently ignore messages after exc in _feeder

2017-05-25 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
pull_requests: +1900

___
Python tracker 

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



[issue30414] multiprocesing.Queue silently ignore messages after exc in _feeder

2017-05-25 Thread Antoine Pitrou

Antoine Pitrou added the comment:


New changeset bc50f03db4f58c869b78e98468e374d7e61f1227 by Antoine Pitrou 
(grzgrzgrz3) in branch 'master':
bpo-30414: multiprocessing.Queue._feed do not break from main loop on exc 
(#1683)
https://github.com/python/cpython/commit/bc50f03db4f58c869b78e98468e374d7e61f1227


--

___
Python tracker 

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



[issue30446] Embedded 3.6.1 distribution cannot find _socket module

2017-05-25 Thread Zachary Ware

Zachary Ware added the comment:

I suspect you'll need to set sys.path (PySys_SetPath, I think, but trust the 
docs more than me).  Try importing sys and printing sys.path to confirm.

--

___
Python tracker 

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



[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-05-25 Thread Zachary Ware

Zachary Ware added the comment:

Ok, sounds good.  The two points you raised on the PR also sound fine, as far 
as I can tell.

--

___
Python tracker 

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



[issue30474] Crash on OS X EXC_BAD_ACCESS (SIGSEGV)

2017-05-25 Thread Ned Deily

Ned Deily added the comment:

According to the crash trace you supplied, the crash happened as a result of a 
call in librdkafka called from the cimpl extension module. As neither of these 
are part of the Python standard library, suggest you contact the project that 
supplies them or possibly Homebrew if you installed them through brew. Good 
luck!

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



[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-05-25 Thread Peter Parente

Peter Parente added the comment:

Much simpler example: 
https://gist.github.com/parente/a4772297459f05e43e12a5820051431b

Wrapping the datetime.datetime.now in a lambda avoids the issue.

--

___
Python tracker 

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



[issue9216] FIPS support for hashlib

2017-05-25 Thread Charalampos Stratakis

Changes by Charalampos Stratakis :


--
nosy: +cstratak

___
Python tracker 

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



[issue9146] Segfault in hashlib in OpenSSL FIPS mode using non-FIPS-compliant hashes, if "ssl" imported before "hashlib"

2017-05-25 Thread Charalampos Stratakis

Changes by Charalampos Stratakis :


--
nosy: +cstratak

___
Python tracker 

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



[issue30474] Crash on OS X EXC_BAD_ACCESS (SIGSEGV)

2017-05-25 Thread Kevin Buchs

Changes by Kevin Buchs :


Added file: http://bugs.python.org/file46901/Kafka-Poll.py

___
Python tracker 

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



[issue30474] Crash on OS X EXC_BAD_ACCESS (SIGSEGV)

2017-05-25 Thread Kevin Buchs

New submission from Kevin Buchs:

I have been getting periodic crashes from a long running python job on Mac OS 
X. There is nothing indicative of a crash from standard output or error. I'm 
not sure if the OS X crash records actually find your way back to you, but I am 
explicitly including mine here. I will try to attach my code after submission 
of this entry. I run this in the background on OS X, with stdout and stderr 
redirected to the same file.

--
components: Interpreter Core, macOS
files: python-crash.txt
messages: 294476
nosy: buchs, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Crash on OS X   EXC_BAD_ACCESS (SIGSEGV)
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file46900/python-crash.txt

___
Python tracker 

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



[issue12857] Expose called function on frame object

2017-05-25 Thread Nick Coghlan

Nick Coghlan added the comment:

Regarding Mark's point about the anonymous scopes created for things like list 
comprehensions, at least in CPython, those are actually full functions with 
generated names like "" (at module level) or "f.." 
(at function level).

>From the point of view of code consuming the frame stack, they'd look pretty 
>similar to a lambda expression, only with a different generated name.

--

___
Python tracker 

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



[issue29943] PySlice_GetIndicesEx change broke ABI in 3.5 and 3.6 branches

2017-05-25 Thread Serhiy Storchaka

Changes 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



[issue29943] PySlice_GetIndicesEx change broke ABI in 3.5 and 3.6 branches

2017-05-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset f43b293f2fee91578e28c7aa566510a0cd6e33cb by Serhiy Storchaka in 
branch '3.6':
[3.6] bpo-29943: Do not replace the function PySlice_GetIndicesEx() with a 
macro (GH-1049) (#1813)
https://github.com/python/cpython/commit/f43b293f2fee91578e28c7aa566510a0cd6e33cb


--

___
Python tracker 

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



[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-05-25 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +haypo

___
Python tracker 

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



[issue26219] implement per-opcode cache in ceval

2017-05-25 Thread Jim Fasarakis-Hilliard

Changes by Jim Fasarakis-Hilliard :


--
nosy: +Jim Fasarakis-Hilliard

___
Python tracker 

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



[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-05-25 Thread Peter Parente

New submission from Peter Parente:

Working on this PR (https://github.com/maxpoint/spylon/pull/49), I encountered 
an unexpected SystemError in Python 3.6 on my Mac and on Travis Linux. 

Exception in thread Thread-4:
Traceback (most recent call last):
  File "/Users/parente/miniconda3/envs/spylon-dev/lib/python3.6/threading.py", 
line 916, in _bootstrap_inner
self.run()
  File "/Users/parente/miniconda3/envs/spylon-dev/lib/python3.6/threading.py", 
line 864, in run
self._target(*self._args, **self._kwargs)
  File "/Users/parente/projects/spylon/spylon/spark/progress.py", line 99, in 
_spark_progress_thread_worker
td = datetime.datetime.now() - start_times[stage_id]
SystemError:  returned NULL without setting an error

The exception only occurs in Python 3.6, not in Python 3.5 or 3.4: 
https://travis-ci.org/maxpoint/spylon/builds/235992988

The defaultdict is both created and used as a local variable in a 
threading.Thread run() function. It's never accessed outside that context 
(https://github.com/maxpoint/spylon/pull/49/commits/2bd47dc32f6129f5f6a4824be1eaed568351df11#diff-1ba10d1cd92a35a380442cb586e310e2R179)

I didn't see a related issue on the tracker here nor did I see anything in the 
3.6 changelog about a behavior change.

--
messages: 294473
nosy: Peter Parente
priority: normal
severity: normal
status: open
title: defaultdict raises SystemError, __missing__ returned NULL in thread
type: crash
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



[issue30459] PyList_SET_ITEM could be safer

2017-05-25 Thread Espie Marc

Espie Marc added the comment:

yep, casting to (void) would be safer indeed. didn't think of that one ;)

--

___
Python tracker 

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



[issue30413] Add fnmatch.filterfalse function

2017-05-25 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +brett.cannon

___
Python tracker 

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



[issue30452] xml.etree sourcecode bug

2017-05-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This error message is not created by xml.etree, it is just propagated from the 
expat library. Open a ticket on the expat library tracker if you want to 
improve the error message.

--
nosy: +serhiy.storchaka
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue29943] PySlice_GetIndicesEx change broke ABI in 3.5 and 3.6 branches

2017-05-25 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1899

___
Python tracker 

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



[issue30472] [Selenium 3.4.2-geckodriver 0.16.1] Python 3.6.1 unable to initialize webdriver with "marionette" set to True

2017-05-25 Thread Debanjan Bhattacharjee

New submission from Debanjan Bhattacharjee:

Python 3.6.1 unable to initialize webdriver (geckodriver) for Selenium with 
"marionette" set to True.

Here is my code block written in PyCharm:

from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
caps = DesiredCapabilities().FIREFOX
caps["marionette"] = True
driver = webdriver.Firefox(capabilities=caps, 
executable_path="C:\\Utility\\BrowserDrivers\\geckodriver.exe")
driver.set_page_load_timeout(30)
driver.get("https://www.facebook.com/;)
driver.maximize_window()
driver.implicitly_wait(20)

The error reads as:
C:\Python\python.exe 
C:/Users/AtechM_03/PycharmProjects/Webinar/SeleniumScripts/MyForthSeleniumScript.py
Traceback (most recent call last):
  File 
"C:/Users/AtechM_03/PycharmProjects/Webinar/SeleniumScripts/MyForthSeleniumScript.py",
 line 7, in 
driver = webdriver.Firefox(capabilities=caps, 
executable_path="C:\\Utility\\BrowserDrivers\\geckodriver.exe")
  File "C:\Python\lib\site-packages\selenium\webdriver\firefox\webdriver.py", 
line 152, in __init__
keep_alive=True)
  File "C:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", 
line 98, in __init__
self.start_session(desired_capabilities, browser_profile)
  File "C:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", 
line 188, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
  File "C:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", 
line 252, in execute
self.error_handler.check_response(response)
  File "C:\Python\lib\site-packages\selenium\webdriver\remote\errorhandler.py", 
line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Unable to find a 
matching set of capabilities

When "marionette" set back to False URL open up perfect.

--
messages: 294470
nosy: debanjan
priority: normal
severity: normal
status: open
title: [Selenium 3.4.2-geckodriver 0.16.1] Python 3.6.1 unable to initialize 
webdriver with "marionette" set to True
type: compile error
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



[issue29104] Left bracket remains in format string result when '\' preceeds it

2017-05-25 Thread Serhiy Storchaka

Changes 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



[issue29104] Left bracket remains in format string result when '\' preceeds it

2017-05-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 89a310264000a613b7f6abd5916946aef09ae7d2 by Serhiy Storchaka in 
branch '3.6':
[3.6] bpo-29104: Fixed parsing backslashes in f-strings. (GH-490) (#1812)
https://github.com/python/cpython/commit/89a310264000a613b7f6abd5916946aef09ae7d2


--

___
Python tracker 

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



[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-05-25 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Perhaps.  But this discussion shows the matter is complicated and we shouldn't 
rely on fragile assumptions about implementation details.  So we need a lock.

--

___
Python tracker 

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



[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-05-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Invoking GC before iterating or after iterating doesn't break the atomicity of 
iterating.

--

___
Python tracker 

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



[issue30468] Propagate zipfile.py pypy issue #905 patch to CPython 3.7

2017-05-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Could you provide a benchmarkin script that demonstrates a performance 
bottleneck?

The patch is against 2.7. Please provide a patch against the master branch.

--

___
Python tracker 

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



[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-25 Thread Ronald Oussoren

Ronald Oussoren added the comment:

FWIW: The bug in osascript is still present in the current 10.12.6 beta (build 
16G8c)

--

___
Python tracker 

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



[issue30447] test_capi.test_subinterps() fails on ARMv7 Ubuntu 3.x

2017-05-25 Thread STINNER Victor

STINNER Victor added the comment:

Thanks for fixing that one Eric.

--

___
Python tracker 

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



[issue12345] Add math.tau

2017-05-25 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests:  -1878

___
Python tracker 

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



[issue25571] Improve the lltrace feature with the Py_Debug mode

2017-05-25 Thread STINNER Victor

STINNER Victor added the comment:

https://bugs.python.org/issue29400

--

___
Python tracker 

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



[issue30467] Propagate zipfile.py pypy issue #905 patch to CPython 2.7

2017-05-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is the same as issue30468. It isn't worth to open separate issues for 
different versions.

--
nosy: +serhiy.storchaka
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Propagate zipfile.py pypy issue #905 patch to CPython 3.7

___
Python tracker 

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



[issue30468] Propagate zipfile.py pypy issue #905 patch to CPython 3.7

2017-05-25 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka
components: +Library (Lib)
nosy: +alanmcintyre, serhiy.storchaka, twouters

___
Python tracker 

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



[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-25 Thread Louie Lu

Louie Lu added the comment:

PR 1811 fix some bug in condition of hide_event, now it will work on three 
different platforms. Terry, it will need your review.

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



[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-05-25 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Every time you create a GC-tracked object, you can invoke the GC. See 
_PyObject_GC_Alloc.

--

___
Python tracker 

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



[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-05-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

But it is destroyed only after iterating.

--

___
Python tracker 

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



[issue29104] Left bracket remains in format string result when '\' preceeds it

2017-05-25 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1898

___
Python tracker 

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



[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-05-25 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> While there are no special code for list(dict), regular iteration over exact 
> dict don't hit the GC.

Doesn't it? Creating a dict iterator creates a GC-tracked object.

--

___
Python tracker 

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



[issue29104] Left bracket remains in format string result when '\' preceeds it

2017-05-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 0cd7a3f196cf34d9bb0a52e61327f7fe289d9750 by Serhiy Storchaka in 
branch 'master':
bpo-29104: Fixed parsing backslashes in f-strings. (#490)
https://github.com/python/cpython/commit/0cd7a3f196cf34d9bb0a52e61327f7fe289d9750


--

___
Python tracker 

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



  1   2   >