[Python-Dev] Summary of Python tracker Issues

2018-03-16 Thread Python tracker

ACTIVITY SUMMARY (2018-03-09 - 2018-03-16)
Python tracker at https://bugs.python.org/

To view or respond to any of the issues listed below, click on the issue.
Do NOT respond to this message.

Issues counts and deltas:
  open6525 ( +9)
  closed 38312 (+41)
  total  44837 (+50)

Open issues with patches: 2546 


Issues opened (44)
==

#27645: Supporting native backup facility of SQLite
https://bugs.python.org/issue27645  reopened by berker.peksag

#33014: Clarify str.isidentifier docstring; fix keyword.iskeyword docs
https://bugs.python.org/issue33014  reopened by terry.reedy

#33037: Skip sending/receiving after SSL transport closing
https://bugs.python.org/issue33037  opened by asvetlov

#33038: GzipFile doesn't always ignore None as filename
https://bugs.python.org/issue33038  opened by da

#33039: int() and math.trunc don't accept objects that only define __i
https://bugs.python.org/issue33039  opened by ncoghlan

#33041: Issues with "async for"
https://bugs.python.org/issue33041  opened by serhiy.storchaka

#33042: New 3.7 startup sequence crashes PyInstaller
https://bugs.python.org/issue33042  opened by htgoebel

#33043: Add a 'Contributing to Docs' link at the bottom of docs.python
https://bugs.python.org/issue33043  opened by willingc

#33044: pdb from base class, get inside a method of derived class
https://bugs.python.org/issue33044  opened by ishanSrt

#33046: IDLE option to strip trailing whitespace automatically on save
https://bugs.python.org/issue33046  opened by rhettinger

#33047: "RuntimeError: dictionary changed size during iteration" using
https://bugs.python.org/issue33047  opened by Delgan

#33048: macOS job broken on Travis CI
https://bugs.python.org/issue33048  opened by pitrou

#33049: itertools.count() confusingly mentions zip() and sequence numb
https://bugs.python.org/issue33049  opened by trey

#33050: Centralized documentation of assumptions made by C code
https://bugs.python.org/issue33050  opened by tvanslyke

#33051: IDLE: Create new tab for editor options in configdialog
https://bugs.python.org/issue33051  opened by csabella

#33052: Sporadic segmentation fault in test_datetime
https://bugs.python.org/issue33052  opened by pitrou

#33053: Running a module with `-m` will add empty directory to sys.pat
https://bugs.python.org/issue33053  opened by ztane

#33054: unittest blocks when testing function using multiprocessing.Po
https://bugs.python.org/issue33054  opened by Kenneth Chik

#33055: bytes does not implement __bytes__()
https://bugs.python.org/issue33055  opened by FHTMitchell

#33057: logging.Manager.logRecordFactory is never used
https://bugs.python.org/issue33057  opened by feinsteinben

#33058: Enhance Python's Memory Instrumentation with COUNT_ALLOCS
https://bugs.python.org/issue33058  opened by elizondo93

#33059: netrc module validates file mode only for /home/user/.netrc
https://bugs.python.org/issue33059  opened by akoeltringer

#33061: NoReturn missing from __all__ in typing.py
https://bugs.python.org/issue33061  opened by Allen Tracht

#33062: ssl_renegotiate() doesn't seem to be exposed
https://bugs.python.org/issue33062  opened by vitaly.krug

#33063: failed to build _ctypes: undefined reference to `ffi_closure_F
https://bugs.python.org/issue33063  opened by siming85

#33065: IDLE debugger: problem importing user created module
https://bugs.python.org/issue33065  opened by jcdlr

#33066: raise an exception from multiple positions break the traceback
https://bugs.python.org/issue33066  opened by hubo1016

#33067: http.client no longer sends HTTP request in one TCP package
https://bugs.python.org/issue33067  opened by christian.heimes

#33069: Maintainer information discarded when writing PKG-INFO
https://bugs.python.org/issue33069  opened by p-ganssle

#33070: Add platform triplet for RISC-V
https://bugs.python.org/issue33070  opened by schwab

#33071: Document that PyPI no longer requires 'register'
https://bugs.python.org/issue33071  opened by p-ganssle

#33073: Add as_integer_ratio() to int() objects
https://bugs.python.org/issue33073  opened by rhettinger

#33074: dbm corrupts index on macOS (_dbm module)
https://bugs.python.org/issue33074  opened by nneonneo

#33076: Trying to cleanly terminate a threaded Queue at exit of progra
https://bugs.python.org/issue33076  opened by Delgan

#33077: typing: Unexpected result with value of instance of class inhe
https://bugs.python.org/issue33077  opened by Евгений Махмудов

#33078: Queue with maxsize can lead to deadlocks
https://bugs.python.org/issue33078  opened by tomMoral

#33079: subprocess: document the interaction between subprocess.Popen 
https://bugs.python.org/issue33079  opened by sloonz

#33080: regen-importlib is causing build races against other regen-all
https://bugs.python.org/issue33080  opened by Alexander Kanavin

#33081: multiprocessing Queue leaks a file descriptor associated with 
https://bugs.python.org/issue33081  opened by Henrique Andrade

#33082: mu

[Python-Dev] ttk.Treeview.insert() does not allow to insert item with iid=0

2018-03-16 Thread Игорь Яковченко
Hello,

I found a possible bug with ttk.Treeview widget.
I'm working on program that uses tkinter UI. I use ttk.Treeview to display
some objects and I want to use integer iid of items.
For example, I insert a row with treeview.insert(... iid=0, ...). But I
encountered a problem when I try to get this item from treeview by iid when
iid =0.
There is no item with such iid. This item has autogenerated iid just like
it's not specified.
I investigated problem and found that in ttk.py, Treeview.insert(...
iid=None, ...) in method's body has a check:
if iid:
res = self.tk.call(self._w, "insert", parent, index,
"-id", iid, *opts)
else:
res = self.tk.call(self._w, "insert", parent, index, *opts)
It means that if iid is "True" then use it else autogenerate it.
Maybe there should be "if iid is not None", not "if iid"? Or there are some
reasons to do check this way?

Igor Yakovchenko


Без
вирусов. www.avast.ru

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] ttk.Treeview.insert() does not allow to insert item with iid=0

2018-03-16 Thread Terry Reedy

On 3/16/2018 6:54 AM, Игорь Яковченко wrote:

This might fit python-list better, and may become a bugs.python.org 
issue, but I will answer now, having just investigated.



I found a possible bug with ttk.Treeview widget.


See below.

I'm working on program that uses tkinter UI. I use ttk.Treeview to 
display some objects and I want to use integer iid of items.


For tk, the underlying graphics framework, iids are strings.  "If iid is 
specified, it is used as the item identifier", from the Treeview doc, 
oversimplifies.  When iid is specified, the iid used internally and 
returned by Treeview() is a string based on the value passed.  1 becomes 
'1', 1.0 becomes '1.0', (1,2,3) and [1,2,3] both become '1 2 3' (this is 
consistent in tkinter), and int becomes "".  Since the 
transformation is the same when referencing an item, as with 
tv.index(iid), one can usually ignore it.  But it shows up if one prints 
a return value (as I did to discover the above), or tries to compare it 
with the original objects, or tries to use two different objects with 
the same tk string as iids.



For example, I insert a row with treeview.insert(... iid=0, ...).
But I 
encountered a problem when I try to get this item from treeview by iid 
when iid =0.


Other things being equal, I agree that one should be able to pass 0 and 
0.0 along with all other ints and floats. In the meanwhile, you could 
pass '0' and retrieve with either '0' or 0.  To not special-case 0, 
always pass iid=int(row).


There is no item with such iid. This item has autogenerated iid just 
like it's not specified.
I investigated problem and found that in ttk.py, Treeview.insert(... 
iid=None, ...) in method's body has a check:

         if iid:
             res = self.tk.call(self._w, "insert", parent, index,
                 "-id", iid, *opts)
         else:
             res = self.tk.call(self._w, "insert", parent, index, *opts)
It means that if iid is "True" then use it else autogenerate it.
Maybe there should be "if iid is not None", not "if iid"? Or there are 
some reasons to do check this way?


It might be that accepting '' as an iid would be a problem.
Our current tkinter expert, Serhiy Storchaka, should know.  If so, "if 
iid in (None, '')" would be needed.


--
Terry Jan Reedy


___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] ttk.Treeview.insert() does not allow to insert item with iid=0

2018-03-16 Thread MRAB

On 2018-03-16 20:22, Terry Reedy wrote:

On 3/16/2018 6:54 AM, Игорь Яковченко wrote:

[snip]

There is no item with such iid. This item has autogenerated iid just 
like it's not specified.
I investigated problem and found that in ttk.py, Treeview.insert(... 
iid=None, ...) in method's body has a check:

         if iid:
             res = self.tk.call(self._w, "insert", parent, index,
                 "-id", iid, *opts)
         else:
             res = self.tk.call(self._w, "insert", parent, index, *opts)
It means that if iid is "True" then use it else autogenerate it.
Maybe there should be "if iid is not None", not "if iid"? Or there are 
some reasons to do check this way?


It might be that accepting '' as an iid would be a problem.
Our current tkinter expert, Serhiy Storchaka, should know.  If so, "if
iid in (None, '')" would be needed.


The root of the tree has the iid ''.
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com