[issue34547] Wsgiref server does not handle closed connections gracefully

2018-10-27 Thread Petter S


Change by Petter S :


--
pull_requests: +9475

___
Python tracker 

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



[issue35082] Mock.__dir__ lists deleted attributes

2018-10-27 Thread Mario Corchero


New submission from Mario Corchero :

Calling dir on unittest.mock.Mock will return deleted attributes.

This is a result of the way del is implemented in Mock, which just sets a 
sentinel in the child mocks, so an AttributeError is raised if the attribute is 
later accessed.

We can just check for such sentinel in the __dir__ method and not return those.

--
components: Library (Lib)
messages: 328647
nosy: mariocj89
priority: low
severity: normal
status: open
title: Mock.__dir__ lists deleted attributes
type: enhancement
versions: Python 3.8

___
Python tracker 

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



[issue35082] Mock.__dir__ lists deleted attributes

2018-10-27 Thread Mario Corchero


Change by Mario Corchero :


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

___
Python tracker 

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



[issue34279] RFC: issue a warning in regrtest when no tests have been executed?

2018-10-27 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue34624] -W option and PYTHONWARNINGS env variable does not accept module regexes

2018-10-27 Thread Ned Batchelder


Ned Batchelder  added the comment:

Another option is to make clear in the docs that the command line does not 
accept regular expressions, but only literal module names, and raise an error 
if a non-importable name (for example with asterisks in it) is specified.

And while we are here: the docs show "error:::mymodule[.*]" which doesn't even 
make sense as a regex!

--
nosy: +nedbat

___
Python tracker 

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



[issue33236] MagicMock().__iter__.return_value is different from MagicMock().__iter__()

2018-10-27 Thread Mario Corchero


Mario Corchero  added the comment:

iter is initialized by using side_effects, not return_value.

The statement "According to the documentation .return_value should be identical 
to the object returned when calling the mock" works only when it return_value 
has been used to define the behaviour of the mock.

Example:

```
>>> m = MagicMock(side_effect=lambda: 1)
>>> m()
1
>>> m.return_value

>>> m() is m.return_value
False
```

--
nosy: +mariocj89

___
Python tracker 

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



[issue34624] -W option and PYTHONWARNINGS env variable does not accept module regexes

2018-10-27 Thread Thomas Gläßle

Thomas Gläßle  added the comment:

Hi, thanks for the consideration!

Is there any reason to introduce different behaviour than with filterwarnings 
here? This increases the number of things to remember - and except for the dot 
regex syntax doesn't interfere with module names, so there is no big drawback 
here either.

More importantly, my main use case for filterwarnings would be to select/ignore 
warnings based on module *or package* name. With the current interpretation as 
exact module name, you have to list all submodules in advance, which is quite 
inhibiting.

I have fixed the `[.*]` bogus example in the PR.

Best, Thomas

--

___
Python tracker 

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



[issue35064] COUNT_ALLOCS build export inc_count() and dec_count() functions which don't have a "Py_" prefix

2018-10-27 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue35082] Mock.__dir__ lists deleted attributes

2018-10-27 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +michael.foord

___
Python tracker 

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



[issue35047] Better error messages in unittest.mock

2018-10-27 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +michael.foord

___
Python tracker 

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



[issue35078] Refactor code in calendar.py module

2018-10-27 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

We don't usually do pure refactoring changes.

--
nosy: +serhiy.storchaka
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue33236] MagicMock().__iter__.return_value is different from MagicMock().__iter__()

2018-10-27 Thread Michael Foord


Michael Foord  added the comment:

This isn't a bug. This is the intended behaviour, otherwise MagicMock objects 
would error out on iteration.

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



[issue35078] Refactor code in calendar.py module

2018-10-27 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Serhiy, this adds a change where month's name CSS class is now customizable in 
LocaleHTMLCalendar. It's currently hard-coded as "month" though HTMLCalendar is 
customizable. I suggested method reuse since LocaleHTMLCalendar from 
HTMLCalendar that would fix this instead of duplicating the code. I think this 
can be reopened.

--

___
Python tracker 

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



[issue35078] Refactor code in calendar.py module

2018-10-27 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Sorry, I was fooled by misleading titles and news entry. Please change them.

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

___
Python tracker 

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



[issue35078] Allow customization of CSS class name of a month in calendar module

2018-10-27 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

No problem, I have left a PR comment [0] to add the actual enhancement in the 
NEWS entry so that it's visible. The original issue title was "Allow 
customization of css class name of a month in calendar module" and @thatiparthy 
changed the issue title and PR to "Refactor code in calendar.py module" maybe 
due to my solution causing little confusion.

@thatiparthy I am changing the issue title to "Allow customization of CSS class 
name of a month in calendar module"

[0] https://github.com/python/cpython/pull/10137#pullrequestreview-169047050

Thanks

--
title: Refactor code in calendar.py module -> Allow customization of CSS class 
name of a month in calendar module
type:  -> enhancement

___
Python tracker 

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



[issue35078] Allow customization of CSS class name of a month in calendar module

2018-10-27 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +rhettinger

___
Python tracker 

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



[issue34510] add HTTPConnection.settimeout()

2018-10-27 Thread Karthikeyan Singaravelan


New submission from Karthikeyan Singaravelan :

I think this is useful since it also sets conn.timeout so that both 
conn.sock.gettimeout() and conn.timeout return same value with this helper and 
don't cause confusion like using conn.socket.settimeout() that updates socket 
but not conn.timeout.

--
nosy: +xtreak

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-10-27 Thread Tal Einat


Tal Einat  added the comment:

There is also a middle ground: Keep .write() as it is *and* have .dump() 
preserve the order in which the parameters were supplied in the constructor.  
They could both use a common *internal* method with a flag to select the 
desired ordering.

--

___
Python tracker 

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



[issue35083] Fix documentation for __instancecheck__

2018-10-27 Thread Joy Diamond


New submission from Joy Diamond :

This is a request to fix the documentation for __instancecheck__.

Please add the following:

"""
(Note that any object `x` is always considered to be an instance of
`type(x)`, and this cannot be overridden.)
"""

Consider the following program:

class M(type):
def __instancecheck__(m, t):
print('instancecheck(%s, %s)' % (m, t))
return False#   LIE!

Test = M('Test', ((object,)), {})

something = Test()

print('Does *NOT* call __instancecheck__:')
print('isinstance(something, Test): %s' % isinstance(something, Test))

print()
print('Does call __instancecheck__:')
print('isinstance(0, Test): %s' % isinstance(0, Test))

Under python 2, python 3, and pypy, in all cases, the first examples does *NOT* 
call __instancecheck__.

You can see the optimization here:

https://github.com/python/cpython/blob/master/Objects/abstract.c#L2397-L2405

Which reads:

int
PyObject_IsInstance(PyObject *inst, PyObject *cls)
{
_Py_IDENTIFIER(__instancecheck__);
PyObject *checker;

/* Quick test for an exact match */
if (Py_TYPE(inst) == (PyTypeObject *)cls)
return 1;

I'm fine with the optimization -- I am not suggesting to get rid of it.

I just want the documentation to match the actual implementation.

The following documentation needs to be fixed:

https://docs.python.org/2/reference/datamodel.html
https://docs.python.org/3/reference/datamodel.html
https://www.python.org/dev/peps/pep-3119/

It took me half an hour to figure out why my version of __instancecheck__ was 
not working, as I tried to test it using the super simple code above ...

One of the best things about python is how accurate and consistent the 
documentation is.

This request is to keep these high standards.

--
assignee: docs@python
components: Documentation
messages: 328658
nosy: docs@python, joydiamond
priority: normal
severity: normal
status: open
title: Fix documentation for __instancecheck__
type: enhancement
versions: Python 2.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



[issue34160] ElementTree not preserving attribute order

2018-10-27 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Okay, lets just remove sorting.

The method for creating XML file in the minidom module also sorts attributes. 
It should be changed as well.

XMLGenerator in xml.sax.saxutils doesn't sort attributes.

--

___
Python tracker 

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



[issue35067] Use vswhere instead of _distutils_findvs

2018-10-27 Thread Steve Dower


Steve Dower  added the comment:


New changeset 53125a53f483db0af76249b6af6efcdc200eb421 by Steve Dower in branch 
'master':
bpo-35067: Remove _distutils_findvs and use vswhere.exe instead. (GH-10095)
https://github.com/python/cpython/commit/53125a53f483db0af76249b6af6efcdc200eb421


--

___
Python tracker 

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



[issue35067] Use vswhere instead of _distutils_findvs

2018-10-27 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9479

___
Python tracker 

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



[issue35067] Use vswhere instead of _distutils_findvs

2018-10-27 Thread miss-islington


miss-islington  added the comment:


New changeset e2cf819539c836b670bf2ea4dd3c72ee39e084f1 by Miss Islington (bot) 
in branch '3.7':
bpo-35067: Remove _distutils_findvs and use vswhere.exe instead. (GH-10095)
https://github.com/python/cpython/commit/e2cf819539c836b670bf2ea4dd3c72ee39e084f1


--
nosy: +miss-islington

___
Python tracker 

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



[issue33944] Deprecate and remove pth files

2018-10-27 Thread Anthony Sottile


Change by Anthony Sottile :


--
nosy: +Anthony Sottile

___
Python tracker 

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



[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-10-27 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Serhiy, if you now think that we should try to fix _tkinter to actually support 
non-thread tcl builds, please review the two PRs on this issue.

--

___
Python tracker 

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



[issue6717] Some problem with recursion handling

2018-10-27 Thread Lion Kimbro


Lion Kimbro  added the comment:

I confirm that dragbug.py (2009-08-17!) is failing for me, almost ten years 
later.  I'm using Python 3.6.1/win32 on Windows 10.

This is really disappointing, because I have students who I'm teaching Python 
to via turtle, and I like to show them Python working.

I have found a workaround which -- if this bug won't be fixed -- I propose 
mentioning in the documentation.

The work-around is something like this:

g = {"X": 0, "Y": 0}

def goto_later(x, y): g["X"] = x; g["Y"] = y

def ontick():
goto(g["X"], g["Y"])
ontimer(ontick, 10)

ondrag(goto_later)
ontimer(ontick, 10)

That way, there is no opening for recursion within the handler for the ondrag 
event.

--
nosy: +LionKimbro
versions: +Python 3.6 -Python 3.2, Python 3.3

___
Python tracker 

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



[issue35067] Use vswhere instead of _distutils_findvs

2018-10-27 Thread Steve Dower


Change by Steve Dower :


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



[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-10-27 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +9480

___
Python tracker 

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



[issue35084] binascii.Error: Incorrect padding

2018-10-27 Thread TestUser


New submission from TestUser :

The below "test.code1" is not base64 encoded. Though, it is a good file.

t:~$ python3 -m base64 -d test.code1
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
  File "/usr/lib/python3.6/base64.py", line 602, in 
main()
  File "/usr/lib/python3.6/base64.py", line 586, in main
func(f, sys.stdout.buffer)
  File "/usr/lib/python3.6/base64.py", line 512, in decode
s = binascii.a2b_base64(line)
binascii.Error: Incorrect padding

--
components: Library (Lib)
messages: 328664
nosy: Tester
priority: normal
severity: normal
status: open
title: binascii.Error: Incorrect padding
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



[issue34751] Hash collisions for tuples

2018-10-27 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset aeb1be5868623c9cd9cf6d7de3015a43fb005815 by Raymond Hettinger 
(jdemeyer) in branch 'master':
bpo-34751: improved hash function for tuples (GH-9471)
https://github.com/python/cpython/commit/aeb1be5868623c9cd9cf6d7de3015a43fb005815


--

___
Python tracker 

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



[issue34751] Hash collisions for tuples

2018-10-27 Thread Raymond Hettinger


Change by Raymond Hettinger :


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



[issue35085] FileNotFoundError: [Errno 2] No such file or directory:

2018-10-27 Thread TestUser


New submission from TestUser :

Seems the base64 module has issues with bad file(s). This does not seems to 
generate a Crash Report.

t:~$ python3 -m base64 -d "12s345a2"
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
  File "/usr/lib/python3.6/base64.py", line 602, in 
main()
  File "/usr/lib/python3.6/base64.py", line 585, in main
with open(args[0], 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '12s345a2'

test@TestNut:~$ python3 -m base64 -d /test.txt
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
  File "/usr/lib/python3.6/base64.py", line 602, in 
main()
  File "/usr/lib/python3.6/base64.py", line 585, in main
with open(args[0], 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/test.txt'

--
components: Library (Lib)
messages: 328666
nosy: Tester
priority: normal
severity: normal
status: open
title: FileNotFoundError: [Errno 2] No such file or directory:
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



[issue14856] argparse: creating an already defined subparsers does not raises an exception

2018-10-27 Thread Braden Groom


Change by Braden Groom :


--
pull_requests: +9481
stage:  -> patch review

___
Python tracker 

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



[issue14856] argparse: creating an already defined subparsers does not raises an exception

2018-10-27 Thread Braden Groom


Change by Braden Groom :


--
pull_requests: +9481, 9482
stage:  -> patch review

___
Python tracker 

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



[issue14856] argparse: creating an already defined subparsers does not raises an exception

2018-10-27 Thread Braden Groom


Change by Braden Groom :


--
pull_requests: +9481, 9482, 9483
stage:  -> patch review

___
Python tracker 

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



[issue14856] argparse: creating an already defined subparsers does not raises an exception

2018-10-27 Thread Braden Groom


Braden Groom  added the comment:

https://github.com/python/cpython/pull/10159

--
nosy: +bradengroom

___
Python tracker 

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



[issue35085] FileNotFoundError: [Errno 2] No such file or directory:

2018-10-27 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

What do you mean, a crash report?

You get a traceback telling you the problem: the file is missing. What 
behaviour did you expect if you try to decode a non-existent file?

Perhaps you meant to write:

python3 -m base64 -t "12s345a2"

I don't think this is a bug, I think it is working correctly. If you cannot 
explain why it is a bug, we'll close this bug report.

--
nosy: +steven.daprano

___
Python tracker 

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



[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-27 Thread Daniel Lovell


New submission from Daniel Lovell :

In the documentation for tkinter, "A Simple Hello World Program" Application 
class does not hold onto the master Tk() instance as a class attribute. This is 
a good practice, and newcomers to tkinter would likely have trouble closing the 
window without this since root will almost never be in the global namespace.

The original example:

"

import tkinter as tk

class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.pack()
self.create_widgets()

def create_widgets(self):
self.hi_there = tk.Button(self)
self.hi_there["text"] = "Hello World\n(click me)"
self.hi_there["command"] = self.say_hi
self.hi_there.pack(side="top")

self.quit = tk.Button(self, text="QUIT", fg="red",
  command=root.destroy)
self.quit.pack(side="bottom")

def say_hi(self):
print("hi there, everyone!")

root = tk.Tk()
app = Application(master=root)
app.mainloop()



The proposed fix:


import tkinter as tk

class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.master = master
self.pack()
self.create_widgets()

def create_widgets(self):
self.hi_there = tk.Button(self)
self.hi_there["text"] = "Hello World\n(click me)"
self.hi_there["command"] = self.say_hi
self.hi_there.pack(side="top")

self.quit = tk.Button(self, text="QUIT", fg="red",
  command=self.master.destroy)
self.quit.pack(side="bottom")

def say_hi(self):
print("hi there, everyone!")

def main():
root = tk.Tk()
app = Application(master=root)
app.mainloop()

if __name__ == "__main__":
main()



--
components: Tkinter
files: tkinter_hello_world_issue.png
messages: 328669
nosy: NuclearLemon
priority: normal
severity: normal
status: open
title: tkinter docs: errors in A Simple Hello World Program
type: enhancement
versions: Python 3.7, Python 3.8
Added file: https://bugs.python.org/file47894/tkinter_hello_world_issue.png

___
Python tracker 

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



[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-27 Thread Daniel Lovell


Change by Daniel Lovell :


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

___
Python tracker 

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



[issue35087] IDLE: update idlelib help files for current doc build

2018-10-27 Thread Terry J. Reedy


New submission from Terry J. Reedy :

https://docs.python.org/3.6/library/idle.html starts with '25.5 IDLE'.
https://docs.python.org/3.7/library/idle.html starts with 'IDLE'.
The chapter and sections numbers are gone.

The current idlelib/help.html was copied (and stripped) from a 
Doc/build/library/idle.html built from the current Doc/library/idle.rst with 
Sphinx 1.7.4.  It was merged 2018 June 10.  See #33610.  Headers have 
chapter-section numbers.  (The chapter number is detected on the first line and 
removed from all headers before display.) 

When I changed idle.rst on a branch of master and rebuilt the docs with 1.7.4, 
there were over 100 warnings about an unknown doctest directive 'skipif'.  When 
I upgraded to Sphinx 1.8.1, the warnings disappeared, and so did the 
chapter-section numbers.  So it appears that the 3.7+ docs are meant to be 
built, and 3.7+ online docs are being built, with the newer Sphinx.  I am not 
sure of whether the loss of numbers is intentional and permanent, but for the 
present, I will use the 1.8 versions of idle.html and the derived help.html.  
idlelib/help.html is currently the same for all of 3.6 to 3.8, so one diff can 
be merged and back-ported.

help.py is also the same for all 3 versions.  But the loss of numbers breaks 
it.  The upcoming patch will also fix this (but not immediately delete the code 
that handles numbers.  For the moment, I will replace the numbers in the Table 
of Contents with indents.

--
assignee: terry.reedy
components: IDLE
messages: 328670
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE: update idlelib help files for current doc build
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue35087] IDLE: update idlelib help files for current doc build

2018-10-27 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +9485
stage: needs patch -> patch review

___
Python tracker 

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



[issue34160] ElementTree not preserving attribute order

2018-10-27 Thread Raymond Hettinger


Change by Raymond Hettinger :


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

___
Python tracker 

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



[issue35088] Update idlelib.help.copy_string docstring

2018-10-27 Thread Terry J. Reedy


New submission from Terry J. Reedy :

The current docstring still refers to hg and forward merging.

--
assignee: terry.reedy
components: IDLE
messages: 328671
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Update idlelib.help.copy_string docstring
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue35088] Update idlelib.help.copy_string docstring

2018-10-27 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +9487
stage: needs patch -> patch review

___
Python tracker 

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



[issue35087] IDLE: update idlelib help files for current doc build

2018-10-27 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset db40cb50eb823b8ef9040b1c9bf31a7475d94d39 by Terry Jan Reedy in 
branch 'master':
bpo-35087: Update idlelib help files for the current doc build. (GH-10162)
https://github.com/python/cpython/commit/db40cb50eb823b8ef9040b1c9bf31a7475d94d39


--

___
Python tracker 

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



[issue35087] IDLE: update idlelib help files for current doc build

2018-10-27 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9488

___
Python tracker 

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



[issue35087] IDLE: update idlelib help files for current doc build

2018-10-27 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9489

___
Python tracker 

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



[issue35088] Update idlelib.help.copy_string docstring

2018-10-27 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9490

___
Python tracker 

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



[issue35088] Update idlelib.help.copy_string docstring

2018-10-27 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 2b555fc1f07bee8b066a6d7da727e516f37e8e34 by Terry Jan Reedy in 
branch 'master':
bpo-35088: Update idlelib.help.copy_string docstring (#10164)
https://github.com/python/cpython/commit/2b555fc1f07bee8b066a6d7da727e516f37e8e34


--

___
Python tracker 

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



[issue35088] Update idlelib.help.copy_string docstring

2018-10-27 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9491

___
Python tracker 

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



[issue35084] binascii.Error: Incorrect padding

2018-10-27 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the report. Can you please attach the file test.code1? Your original 
report says "test.code1" is not base64 encoded and -d takes a file that is 
base64 encoded and decodes it. Can you please be more descriptive about what 
you are expecting?

--
nosy: +xtreak

___
Python tracker 

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



[issue35087] IDLE: update idlelib help files for current doc build

2018-10-27 Thread miss-islington


miss-islington  added the comment:


New changeset 2d3b7a99635b10873fdd6da01dcb7cfb33837633 by Miss Islington (bot) 
in branch '3.7':
bpo-35087: Update idlelib help files for the current doc build. (GH-10162)
https://github.com/python/cpython/commit/2d3b7a99635b10873fdd6da01dcb7cfb33837633


--
nosy: +miss-islington

___
Python tracker 

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



[issue35087] IDLE: update idlelib help files for current doc build

2018-10-27 Thread miss-islington


miss-islington  added the comment:


New changeset 09953141b9eb4c42fdf366d084f4f328ddbc0dc8 by Miss Islington (bot) 
in branch '3.6':
bpo-35087: Update idlelib help files for the current doc build. (GH-10162)
https://github.com/python/cpython/commit/09953141b9eb4c42fdf366d084f4f328ddbc0dc8


--

___
Python tracker 

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



[issue35085] FileNotFoundError: [Errno 2] No such file or directory:

2018-10-27 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I can see one another related report issue35084. As @steven.daprano said this 
is an expected traceback and it's working correctly. -d expects a valid base64 
encoded file and supplying a non-existent file or file with invalid encoding is 
supposed to throw a traceback.

--
nosy: +xtreak

___
Python tracker 

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



[issue35088] Update idlelib.help.copy_string docstring

2018-10-27 Thread miss-islington


miss-islington  added the comment:


New changeset 593af34e643220f40880e5dd0a8092a9ece70747 by Miss Islington (bot) 
in branch '3.7':
bpo-35088: Update idlelib.help.copy_string docstring (GH-10164)
https://github.com/python/cpython/commit/593af34e643220f40880e5dd0a8092a9ece70747


--
nosy: +miss-islington

___
Python tracker 

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



[issue35088] Update idlelib.help.copy_string docstring

2018-10-27 Thread miss-islington


miss-islington  added the comment:


New changeset 0e6329db493d4bef6aa35ae613c3c6a8453066a5 by Miss Islington (bot) 
in branch '3.6':
bpo-35088: Update idlelib.help.copy_string docstring (GH-10164)
https://github.com/python/cpython/commit/0e6329db493d4bef6aa35ae613c3c6a8453066a5


--

___
Python tracker 

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



[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-27 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the report. So the current example in the docs works fine since root 
is in global namespace. But this seems to be a sensible change to use 
self.master which references root instead of relying on root to be global 
though I don't know we should restructure the example to use main(). I am 
adding Serhiy for review.

--
nosy: +serhiy.storchaka, xtreak

___
Python tracker 

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