[issue30937] csv module examples miss newline='' when opening files

2017-07-15 Thread Ammar Askar

Changes by Ammar Askar :


--
keywords: +easy, patch
stage:  -> patch review
type:  -> enhancement

___
Python tracker 

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



[issue30937] csv module examples miss newline='' when opening files

2017-07-15 Thread Ammar Askar

Changes by Ammar Askar :


--
pull_requests: +2790

___
Python tracker 

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



[issue30936] json module ref leaks detected by test_json

2017-07-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for opening this issue Segev.

Tests added in issue30911 exposed existing leak in 3.5 and 3.6. It was not 
exposed in 3.7 due to different code for sort_keys. But there was a leak when 
sorting keys is failed. I added a new test for this case.

2.7 is not affected because C speedup is not implemented for sort_keys in 2.7.

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

___
Python tracker 

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



[issue30911] Warning in _json.c on platforms where char is unsigned

2017-07-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 3dbe11a1219d148e4a133449a86ac5d157e35d35 by Serhiy Storchaka in 
branch '2.7':
[2.7] bpo-30911: Add tests for bad boolean arguments for accelerated json 
(GH-2690) (#2729)
https://github.com/python/cpython/commit/3dbe11a1219d148e4a133449a86ac5d157e35d35


--

___
Python tracker 

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



[issue30936] json module ref leaks detected by test_json

2017-07-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 45c471c04553d7e4cb5c328ea1ab02d6716f2bab by Serhiy Storchaka in 
branch '3.5':
[3.5] bpo-30936: Fix a reference leak in json when fail to sort keys. 
(GH-2712). (#2728)
https://github.com/python/cpython/commit/45c471c04553d7e4cb5c328ea1ab02d6716f2bab


--

___
Python tracker 

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



[issue30936] json module ref leaks detected by test_json

2017-07-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset a819e5e1e66a1a5f9a7073c8a1ff3c3f304c917b by Serhiy Storchaka in 
branch '3.6':
[3.6] bpo-30936: Fix a reference leak in json when fail to sort keys. 
(GH-2712). (#2727)
https://github.com/python/cpython/commit/a819e5e1e66a1a5f9a7073c8a1ff3c3f304c917b


--

___
Python tracker 

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



[issue30876] SystemError on importing module from unloaded package

2017-07-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 28343e3392ca7b1ec7151f68d4d92c90efb91e50 by Serhiy Storchaka in 
branch '3.6':
[3.6] bpo-30876: Relative import from unloaded package now reimports the 
package (GH-2639) (#2676)
https://github.com/python/cpython/commit/28343e3392ca7b1ec7151f68d4d92c90efb91e50


--

___
Python tracker 

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



[issue30911] Warning in _json.c on platforms where char is unsigned

2017-07-15 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2789

___
Python tracker 

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



[issue30934] Document how to run coverage for repository idlelib files.

2017-07-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I generalized the first part so only the .bat file needs a *nix version.

--

___
Python tracker 

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



[issue30934] Document how to run coverage for repository idlelib files.

2017-07-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 65de1f3672fd0a1e3ec34b654ef5213e15a03e26 by terryjreedy in branch 
'3.6':
[3.6] bpo-30934: Document coverage details for idlelib tests (GH-2711) (#2726)
https://github.com/python/cpython/commit/65de1f3672fd0a1e3ec34b654ef5213e15a03e26


--

___
Python tracker 

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



[issue30936] json module ref leaks detected by test_json

2017-07-15 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2788

___
Python tracker 

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



[issue30936] json module ref leaks detected by test_json

2017-07-15 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2787

___
Python tracker 

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



[issue30936] json module ref leaks detected by test_json

2017-07-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 49f6449ef4b81537c19b82329caaf60596c516c2 by Serhiy Storchaka in 
branch 'master':
bpo-30936: Fix a reference leak in json when fail to sort keys. (#2712)
https://github.com/python/cpython/commit/49f6449ef4b81537c19b82329caaf60596c516c2


--

___
Python tracker 

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



[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2017-07-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> Serhiy, is there one non-controversial pan-slavic way to write 'Cyrillic' in 
> Cyrillic?

No. Even in very close east-slavic languages it is written differently: 
Ukrainian "Кирилиця", Russian "Кириллица", Belarusian "Кірыліца".

--

___
Python tracker 

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



[issue30934] Document how to run coverage for repository idlelib files.

2017-07-15 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2786

___
Python tracker 

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



[issue30934] Document how to run coverage for repository idlelib files.

2017-07-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 95bebb7264afad88f31f7cdc3b28bacde7c46f93 by terryjreedy in branch 
'master':
bpo-30934: Document coverage details for idlelib tests (#2711)
https://github.com/python/cpython/commit/95bebb7264afad88f31f7cdc3b28bacde7c46f93


--

___
Python tracker 

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



[issue9262] IDLE: Revise or replace tabbedpages for multi-editor window.

2017-07-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I changed the title again to reflect the actual discussion.  #25036 (and 
#30784) are about extracting an editor component that can be put on a tab.  
#25032 is about making a top-level with menu that is not tied to a single 
editor.  This issue should stick to tabbed pages.  

It seems that Notebook would be more suited to the config dialog with a fixed 
small number of tabs (now 5, possibly 6).  I will look at Notebook to see if it 
is worth using it for the dialog, so as to match ttk widgets on the tabs. For 
editor windows, this is not a concern.  I will see, though, if there is 
anything worth copying for the main tabbed pages. 

To identify specific issues for designing a custom tabs set, I looked at Marks 
pngs, Firefox, Thunderbird, Notepad++, and TortoiseHg Workbench.

* Tab shape: I seem to remember top rounded corners imitating standard American 
paper file folder tabs.  This appears to have gone out of style. Rectangles are 
in.

* Active versus Dormant: there should be a visually obvious difference. Bonus 
points is one can tell which is which when there are only two tabs.  Typical 
choices are white versus gray or white verson color (such as blue).  The two 
grays in the pngs are too close for me.  Firefox themes can also make the 
difference too small.

* Close button: Usually always present as X.  Background can match tab 
background or not.  Shape of background can be circle or square (possible 
rounded). On Windows, standard is right end of tab.  Is it opposite on Mac? 
Notepad++ omits, I presume to avoid space wastage.  Adding on mouseover is an 
interesting idea; I want to see how it feels in actual use.

* Mouse over tab: Full tab name appears in tool tip.  For editor, this is full 
path for file.  Dormant tabs should change appearance.  The result for the 
'in-between state should look 'in-between' and not somehow look less like 
active.

* Mouse over close: Background changes color, exposing shape if hidden.

* Over-crowding: tabs may start same size or adjust for file name.  Tabs may 
shrink horizontally to a minimum or not.  When tabs collectively do not fit, a 
tab or tabs with < and > appearing seems normal.  Firefox puts them at opposite 
ends of the tab bar.  Notepad++ together to the right.  This is better for 
scanning back and forth.  A dropdown list is an interesting idea, again to be 
tried out.

* Tab context menu: always different from that of the page.  Contents of each 
vary.

* New tab button: Open empty editor file.

Possible enhancement after basic work is done: use the current ttk style to 
style the future tabbedpages widget.

--
title: IDLE: Use tabbed shell and edit windows -> IDLE: Revise or replace 
tabbedpages for multi-editor window.

___
Python tracker 

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



[issue30784] IDLE: separate editor window and text

2017-07-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

This is at least partly a duplicate of #25036, but until I look at the approach 
in that patch, versus what I have been thinking of, I cannot tell if this 
should be closed.

--

___
Python tracker 

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



[issue30939] Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds

2017-07-15 Thread Ned Deily

Ned Deily added the comment:


New changeset 64a9f3d961084819335ea011063eb8cb41733882 by Ned Deily in branch 
'2.7':
bpo-30939: Avoid Sphinx deprecation warning in docs build. (#2721) (#2725)
https://github.com/python/cpython/commit/64a9f3d961084819335ea011063eb8cb41733882


--

___
Python tracker 

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



[issue30939] Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds

2017-07-15 Thread Ned Deily

Changes by Ned Deily :


--
pull_requests: +2785

___
Python tracker 

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



[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2017-07-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I made this issue a dependency of #24776, which is about redoing the whole font 
page.

The fontchooser has good, inappropriate for IDLE, and bad points.  I consider 
it an alternate mockup proposal for the font page.  For this issue: displaying 
each font name in the font is cute, but I am not sure I want to imitate.  I 
address the sample selection below. 

This issue  is about making it evident that IDLE is a BMP unicode editor, not 
just an ASCII editor; and about showing the consequence of font choices on a 
particular OS and machine.  Expanding the static sample with example of the top 
N scripts, with N about 10, will do this.

When I looked at Francis's patch, I thought it deficient in that people would 
not know what chars were being replaced by boxes.  Then I tried the patch and 
none of them were.  At least not on Windows.  Since I opened this, we added 
back the Help button.  Added help text for this tab can list the scripts 
represented in the sample.  If nothing else, I will use this patch, as it 
improves of the status quo.  I should have done this years ago.  An immediate 
improvement would be all chars from a script on one line and some (more?) 
hanji/kanji CJK chars.

#24776 suggests putting the sample beside the font selection box.  The font box 
only needs 75% of the width it has.  With the frame around the sample label 
removed, there may be more width available.  There will certainly be more lines.

Louie, I understand your PR to be a suggestion about pangrams, expressed in 
code, to be 'pulled' into my mind, and possibly into my clone, and not a 
request to merge as is with only Chinese.  Others have noted that submitting 
work-in-progess patches as PRs, rather than as diffs to the tracker, can be 
confusing.  Yet it makes review easy.

In considering the idea, I looked at https://en.wikipedia.org/wiki/Pangram and 
also found http://clagnut.com/blog/2380/, which lists pangrams in multiple 
languages that were once on wiki/List_of_Pangrams.

I am rejecting the idea as is for multiple related reasons.  The sample is 
about scripts, not languages.  Long phrases mean fewer scripts.  Many scripts 
are used for multiple dialects or even languages.  Which one to choose?  An 
innocent or poetic phrase in one language may be less innocent in another 
dialect/language, or if interpreted metaphorically, or one consider possible 
alternate meanings of words.

One thing I would consider is script names written in the script.  This would 
replace an arbitrary sample from the same script and could be done on a 
script-by-script basis.  I believe 'devanagari' in Devanagari should be 
intelligible in all or most north Indian languages that use Devanagari or 
derivatives thereof, and offensive in none.  But I would enquire.

What do others think of this?

Louie, I presume 'hanji' is a single char.  How about using the stroke pangram 
永 (all basic strokes) in a phrase such as 'hanji character 永'?  (I like the 
look of the char as well).

Serhiy, is there one non-controversial pan-slavic way to write 'Cyrillic' in 
Cyrillic?  Or controversy-engendering national variations?

A separate issue could add a button and dropdown multiple selection list to 
print to an output window all or a selection of the 256 blocks of 256 
codepoints in the BMP. This should eliminate any need for a configuration 
option.

> likely most characters would not be rendered correctly with an arbitrary font

A goal of this issue is to let people see such problems where they exist.

The fontchooser sample awful.  Only couple of ascii and script chars and a 
small sample of script that changes with each script.  It has no knowledge of 
default characters.

--
stage: patch review -> needs patch

___
Python tracker 

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



[issue30836] test_c_locale_coercion fails on AIX

2017-07-15 Thread STINNER Victor

STINNER Victor added the comment:

Thanks for the fix :-)

--

___
Python tracker 

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



[issue30936] json module ref leaks detected by test_json

2017-07-15 Thread STINNER Victor

STINNER Victor added the comment:

On Python 3.6, the leaking test is:

test.test_json.test_speedups.TestEncode.test_bad_bool_args

--

___
Python tracker 

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



[issue30939] Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds

2017-07-15 Thread Ned Deily

Changes by Ned Deily :


--
pull_requests: +2784

___
Python tracker 

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



[issue30939] Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds

2017-07-15 Thread Ned Deily

Ned Deily added the comment:


New changeset ada3f31365d0634d0cd8eeacfacd98291e34a8cc by Ned Deily in branch 
'3.5':
bpo-30939: Avoid Sphinx deprecation warning in docs build. (#2721) (#2723)
https://github.com/python/cpython/commit/ada3f31365d0634d0cd8eeacfacd98291e34a8cc


--

___
Python tracker 

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



[issue30939] Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds

2017-07-15 Thread Ned Deily

Changes by Ned Deily :


--
pull_requests: +2783

___
Python tracker 

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



[issue30939] Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds

2017-07-15 Thread Ned Deily

Ned Deily added the comment:


New changeset bbd0f423d2a19c6a4a9cda6914fc60b87e17250b by Ned Deily in branch 
'3.6':
bpo-30939: Avoid Sphinx deprecation warning in docs build. (#2721) (#2722)
https://github.com/python/cpython/commit/bbd0f423d2a19c6a4a9cda6914fc60b87e17250b


--

___
Python tracker 

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



[issue30939] Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds

2017-07-15 Thread Ned Deily

Changes by Ned Deily :


--
pull_requests: +2782

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2017-07-15 Thread Mark Roseman

Mark Roseman added the comment:

The ttk Notebook wouldn't be appropriate as it doesn't scale beyond a small 
(generally fixed) number of tabs, and is missing UI to easily add/delete tabs. 
There's some discussion of this in earlier comments here.

--

___
Python tracker 

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



[issue30939] Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds

2017-07-15 Thread Ned Deily

Ned Deily added the comment:


New changeset 50f58163a69abe2f35e91044d1df165ee7bdbb42 by Ned Deily in branch 
'master':
bpo-30939: Avoid Sphinx deprecation warning in docs build. (#2721)
https://github.com/python/cpython/commit/50f58163a69abe2f35e91044d1df165ee7bdbb42


--

___
Python tracker 

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



[issue30939] Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds

2017-07-15 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +2781

___
Python tracker 

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



[issue30939] Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds

2017-07-15 Thread Ned Deily

Changes by Ned Deily :


--
pull_requests: +2780

___
Python tracker 

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



[issue30939] Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds

2017-07-15 Thread Ned Deily

New submission from Ned Deily:

[..]/sphinx/util/compat.py:40: RemovedInSphinx17Warning: 
sphinx.util.compat.Directive is deprecated and will be removed in Sphinx 1.7, 
please use docutils' instead.
  RemovedInSphinx17Warning)

The solution is to import Directive directly from docutils.  PR to follow for 
master, needs to be cherrypicked to all maintenance branches and, ideally, all 
current security-only branches.

--
assignee: docs@python
components: Documentation
messages: 298401
nosy: brett.cannon, docs@python, larry, ned.deily
priority: normal
severity: normal
stage: patch review
status: open
title: Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in 
docs builds
versions: Python 2.7, Python 3.3, Python 3.4, 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



[issue27413] Add an option to json.tool to bypass non-ASCII characters.

2017-07-15 Thread Daniel Himmelstein

Changes by Daniel Himmelstein :


--
pull_requests: +2779

___
Python tracker 

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



[issue29636] Specifying indent in the json.tool command

2017-07-15 Thread Daniel Himmelstein

Changes by Daniel Himmelstein :


--
pull_requests: +2778

___
Python tracker 

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



[issue28638] Creating namedtuple is too slow to be used in common stdlib (e.g. functools)

2017-07-15 Thread Jelle Zijlstra

Jelle Zijlstra added the comment:

I'm also concerned that the slowness of namedtuple creation is causing people 
to avoid using it. I can see why we wouldn't want a complicated solution like 
using Argument Clinic, but it's not clear to me why Serhiy's approach in 
namedtuple-no-compile.patch was rejected. This approach could provide a speedup 
for all namedtuple instantiations without complicating the implementation. I 
wrote a similar implementation in 
https://github.com/JelleZijlstra/cpython/commit/5634af4ccfd06a2fabc2cc2cfcc9c014caf6f389
 and found that it speeds up namedtuple creation, uses less code, and creates 
only one necessary backwards compatibility break (we no longer have _source).

--
nosy: +Jelle Zijlstra

___
Python tracker 

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



[issue11978] Report correct coverage.py data for tests that invoke subprocesses

2017-07-15 Thread Ned Batchelder

Ned Batchelder added the comment:

Whoever takes this up next: let me know if I can help.

--

___
Python tracker 

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



[issue30938] pdb lacks debugger command to list and show all user-defined variables

2017-07-15 Thread David Rieger

New submission from David Rieger:

IPython's "who" and "whos" command provide a way to list all user-defined 
variables and inspect them, respectively.

At the moment, a way to work around this would be by either using e.g. "pp 
locals()" to list all local variables, this would however also display 
non-user-owned variables which makes the output less readable. 
Another option would be to open an ipython shell inside the pdb shell, this is 
however unintuitive, just to achieve such a simple task.

pdb should offer a "who" command to list the names of all user-owned variables 
and a "whos" command to list all variables including their type and the 
assigned value, as known from ipython.

--
components: Library (Lib)
messages: 298398
nosy: David Rieger
priority: normal
severity: normal
status: open
title: pdb lacks debugger command to list and show all user-defined variables
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



[issue30937] csv module examples miss newline='' when opening files

2017-07-15 Thread Pavel

New submission from Pavel:

At the very beginning the csv module documentation 
(https://docs.python.org/3.7/library/csv.html) advises to open files passing 
newline='' parameter though three examples don't include it:

Here are the examples:

1:
>>> import csv
>>> with open('names.csv') as csvfile:
... reader = csv.DictReader(csvfile)
... for row in reader:
... print(row['first_name'], row['last_name'])
...
Eric Idle
John Cleese

>>> print(row)
OrderedDict([('first_name', 'John'), ('last_name', 'Cleese')])

2:
import csv

with open('names.csv', 'w') as csvfile:
fieldnames = ['first_name', 'last_name']
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)

writer.writeheader()
writer.writerow({'first_name': 'Baked', 'last_name': 'Beans'})
writer.writerow({'first_name': 'Lovely', 'last_name': 'Spam'})
writer.writerow({'first_name': 'Wonderful', 'last_name': 'Spam'})

3:
with open('example.csv') as csvfile:
dialect = csv.Sniffer().sniff(csvfile.read(1024))
csvfile.seek(0)
reader = csv.reader(csvfile, dialect)
# ... process CSV file contents here ...

--
assignee: docs@python
components: Documentation
messages: 298397
nosy: Pavel, docs@python
priority: normal
severity: normal
status: open
title: csv module examples miss newline='' when opening files
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



[issue30836] test_c_locale_coercion fails on AIX

2017-07-15 Thread Nick Coghlan

Nick Coghlan added the comment:

This particular test passed on the custom AIX buildbot prior to merging (other 
tests still have issues on AIX, though, so that buildbot remains red overall).

--
resolution:  -> fixed
stage: needs patch -> 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



[issue30836] test_c_locale_coercion fails on AIX

2017-07-15 Thread Nick Coghlan

Nick Coghlan added the comment:


New changeset f0b6a261bb8cbede42296e0cc70956fb3b9a6cf7 by Nick Coghlan in 
branch 'master':
bpo-30836: fix test_c_locale_coercion on AIX (GH-2713)
https://github.com/python/cpython/commit/f0b6a261bb8cbede42296e0cc70956fb3b9a6cf7


--

___
Python tracker 

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



[issue30836] test_c_locale_coercion fails on AIX

2017-07-15 Thread Nick Coghlan

Changes by Nick Coghlan :


--
pull_requests: +2777

___
Python tracker 

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



[issue30929] AttributeErrors after import in multithreaded environment

2017-07-15 Thread Larry Hastings

Larry Hastings added the comment:

I'm closing this.  It isn't a security issue, so it's not applicable for 3.4.  
3.5 is about to close for bugfixes too, so you'd have to work very... quickly.

If this applies to 3.6, figure out whether or not it's a duplicate of Issue 
#30891.  If it isn't, please create a new issue, and only flag 3.6+.

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



[issue30929] AttributeErrors after import in multithreaded environment

2017-07-15 Thread Evgeny Boytsov

Evgeny Boytsov added the comment:

The same behaviour is reprodusible at ubuntu 16.04 with python 3.5.2. And a 
colleague of mine said that he was able to reproduce the issue with python 3.6.

--

___
Python tracker 

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



[issue30717] str.center() is not unicode aware

2017-07-15 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 
components: +Interpreter Core -SSL, Tests, Tkinter
nosy:  -christian.heimes

___
Python tracker 

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



[issue30936] json module ref leaks detected by test_json

2017-07-15 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
stage:  -> patch review
versions: +Python 2.7, Python 3.7

___
Python tracker 

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



[issue30936] json module ref leaks detected by test_json

2017-07-15 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2776

___
Python tracker 

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



[issue30911] Warning in _json.c on platforms where char is unsigned

2017-07-15 Thread Segev Finer

Segev Finer added the comment:

Created http://bugs.python.org/issue30936

--

___
Python tracker 

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



[issue30936] json module ref leaks detected by test_json

2017-07-15 Thread Segev Finer

New submission from Segev Finer:

>From builtbots:

test_json leaked [4, 4, 4] references, sum=12
test_json leaked [3, 3, 3] memory blocks, sum=9
1 test failed again:
test_json

Probably unearthed by:
https://github.com/python/cpython/pull/2692
https://github.com/python/cpython/pull/2693

--
components: Extension Modules
messages: 298391
nosy: Segev Finer, haypo, serhiy.storchaka
priority: normal
severity: normal
status: open
title: json module ref leaks detected by test_json
type: resource usage
versions: Python 3.5, Python 3.6

___
Python tracker 

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



[issue30911] Warning in _json.c on platforms where char is unsigned

2017-07-15 Thread Segev Finer

Segev Finer added the comment:

Serhiy's change added tests to test_json, so you can say this unearthed ref 
leaks rather than introduced them. Probably needs a separate bpo issue and fix.

--

___
Python tracker 

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



[issue30911] Warning in _json.c on platforms where char is unsigned

2017-07-15 Thread STINNER Victor

STINNER Victor added the comment:

It is possible that the change introduced a reference leak. See for example:
http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%203.5/builds/49

--

___
Python tracker 

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



[issue7727] xmlrpc library returns string which contain null ( \x00 )

2017-07-15 Thread Alex Corcoles

Changes by Alex Corcoles :


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



[issue7727] xmlrpc library returns string which contain null ( \x00 )

2017-07-15 Thread Alex Corcoles

Changes by Alex Corcoles :


--
nosy: +Alex Corcoles

___
Python tracker 

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



[issue22239] asyncio: nested event loop

2017-07-15 Thread Rokas K. (rku)

Rokas K. (rku) added the comment:

I understand rationale for rejection of this issue but i beg to reconsider.

Unlike in traditional coroutines (windows fibers / setjmp|longjmp with stack 
switching) we can not yield from any point of execution. There must be full 
async-await chain preserved. This basically divides code into two islands - 
async and non-async. And there seems to be no way to schedule async call from 
non-async code and get a response. While suggestion to make custom `async def 
contains()` call is a valid one we can not always do that. Consider the case 
when we have to do some networking calls in a function that is invoked by 
non-async library. Naturally it would be simple non-awaited call from which we 
can not call a coroutine and get a response. And since it is a library calling 
into our code we can not easily change it. It might even be completely 
unsuitable change for library in question.

I see two solutions to this problem (if i am missing something please point it 
out):

1. Reentrant loops as suggested in this issue.
2. Allow awaited calls from non-coroutines provided execution is invoked from a 
coroutine somewhere up the call stack.

First one is certainly easier to implement.

--
nosy: +Rokas K. (rku)

___
Python tracker 

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