[issue33839] IDLE tooltips.py: refactor and add docstrings and tests

2018-06-18 Thread Tal Einat


Tal Einat  added the comment:

> What do you think of changing 'ToolTip' to 'Tooltip'?

+1, I'll change it.

> TclError from widget.destroy suggests that we *might* be able to cleanup 
> better.

The try/except clauses which are hard to test are used since the order in which 
widgets are destroyed can vary, and I don't know how to properly check whether 
a widget still exists (so that e.g. unbinding events won't throw an exception).

For the on-hover tooltip, events are registered on the "anchor" widget.  ISTM 
these events should be unregistered when the tooltip is destroyed, hence I 
added that to __del__.  Any suggestions for a better cleanup mechanism?

>> The TclError exceptions are reproduced by the htest in tooltip.py.
> With the code as is?  Or if the try-except is removed?
Without the try/except.

> I [...] would like the popups to respond keyboard (Tab) focus changes as well 
> as mouse movement focus changes.

Looking at the Tk docs, it seems this will require binding properly to the 
FocusIn and oFocusOut events.  This is indeed a separate mechanism.  It should 
be straightforward when bound to a simple widget such as a button.  The Calltip 
class will need to override this since it already implements an appropriate 
alternative.

--

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-18 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks @prawin for the confirmation. There is a mailing list discussion at 
https://groups.google.com/forum/#!topic/python-ideas/Ny1RN9wY0cI and it seems 
this is related to Thai language locale. Feel free to add in if you have any 
more input on if it's reproducible in maybe other machines of Thai locale or so 
on. There is a PR that adds alias along with other missing items but I will 
wait for others to chime in to see if there is a better solution to fix this.

Thanks.

--

___
Python tracker 

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



[issue33855] IDLE: Minimally test every non-startup module.

2018-06-18 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +7389
stage: test needed -> patch review

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-18 Thread Prawin Phichitnitikorn


Prawin Phichitnitikorn  added the comment:

Sorry for late Reply,

But for me I'm resolve by adding 

# cp874 codec
'874': 'cp874',

to alias.py file

--

___
Python tracker 

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



[issue33855] IDLE: Minimally test every non-startup module.

2018-06-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Spinoffs:
 change rstrip.RstripExtension to Rstrip
 change stackviewer.StackBrowser to accept exception

--
stage: patch review -> test needed

___
Python tracker 

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



[issue33872] doc Add list access time to list definition

2018-06-18 Thread Xiang Zhang


Xiang Zhang  added the comment:

I concur with INADA. I don't prefer to add such implementation choice in 
definition. As for glossary, it may be unnecessary either but since it's 
already there, I don't think it needs to be removed.

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue33894] tempfile.tempdir cannot be unset

2018-06-18 Thread Eric V. Smith


Eric V. Smith  added the comment:

I like philiprowlands' version:

- If tempdir is unset or None at any call to
+ If tempdir is None (the default) at any call to

Care to produce a PR?

--
versions: +Python 2.7, 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



[issue33894] tempfile.tempdir cannot be unset

2018-06-18 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

What about:

"If tempdir is unset or None (the default value has not been modified) ..." 

?

--
nosy: +pablogsal

___
Python tracker 

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



[issue33898] pathlib issues with Windows device paths

2018-06-18 Thread Eryk Sun


New submission from Eryk Sun :

For \\?\ extended device paths, pathlib removes the trailing slash for the root 
directory if the device isn't UNC or a logical (A-Z) drive.

Correct:

>>> str(Path('//?/UNC/'))
'?\\UNC\\'

>>> str(Path('//?/Z:/'))
'?\\Z:\\'

Incorrect:

>>> str(Path('//?/BootPartition/'))
'?\\BootPartition'

>>> str(Path('//?/Volume{}/'))
'?\\Volume{}'

>>> str(Path('//?/Global/Z:/'))
'?\\Global\\Z:'

It keeps the trailing slash for some \\.\ paths, but not all.

Correct:

>>> str(Path('//./BootPartition/'))
'.\\BootPartition\\'

Incorrect:

>>> str(Path('//./Global/Z:/'))
'.\\Global\\Z:'

It adds a root directory to \\.\ device paths where none was specified. 

Incorrect:

>>> str(Path('//./nul'))
'.\\nul\\'

>>> str(Path('//./PhysicalDrive0'))
'.\\PhysicalDrive0\\'

>>> str(Path('//./C:'))
'.\\C:\\'

".\\C:" refers to the volume device, whereas ".\\C:\\" is the root 
directory in the file system.

pathlib should parse \\?\ and \\.\ device paths the same way with respect to 
the drive and root. The difference in practice is only how Windows does (\\.\) 
or does not (\\?\) canonicalize the path. 

Additionally, pathlib fails to identify the drive correctly in these cases.

Incorrect:

>>> Path('//?/Global/Z:/').drive
'?\\'

>>> Path('//?/BootPartition/Temp').drive
'?\\'

Except for "UNC" and "Global" paths, the drive should be the first component 
after the local-device prefix. The "UNC" device also includes subsequent server 
and share components, if any. For the reserved "Global" symlink, it should look 
to the next component. For example, r'\\?\Global\UNC\server\share' is a drive. 

There's also the "GlobalRoot" symlink (or "Global\\GlobalRoot" to be pedantic), 
but that can't be handled generically.

--
components: Library (Lib), Windows
messages: 319921
nosy: eryksun, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: test needed
status: open
title: pathlib issues with Windows device paths
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



[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-06-18 Thread STINNER Victor


STINNER Victor  added the comment:

Related issue: bpo-31237.

--

___
Python tracker 

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



[issue33896] filecmp.cmp returns True on files that differ

2018-06-18 Thread Dean Morin


Dean Morin  added the comment:

Fair enough, how about just making it clearer in the documentation? Currently 
you need to look at the source code to see what would be required for a 
signature clash to occur. Maybe something like:

Note that the [os.stat()](https://docs.python.org/3/library/os.html#os.stat) 
signatures only consider 
[st_mode](https://docs.python.org/3/library/os.html#os.stat_result.st_mode), 
[st_size](https://docs.python.org/3/library/os.html#os.stat_result.st_size), 
and 
[st_mtime](https://docs.python.org/3/library/os.html#os.stat_result.st_mtime). 
In some circumstances it's possible for differing files to be considered equal 
when _shallow_ is `True`.

--

___
Python tracker 

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



[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-06-18 Thread STINNER Victor


STINNER Victor  added the comment:

> 1) Skip whole test_gdb when optimizations are used (who debugs with them 
> anyway?)

It's already done, no? But the title issue is "-mcet -fcf-protection
-O0" and -O0 disables optimizations.

--

___
Python tracker 

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



[issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found

2018-06-18 Thread miss-islington


miss-islington  added the comment:


New changeset 8c19a44b63033e9c70e9b552476baecb6e3e9451 by Miss Islington (bot) 
in branch '3.6':
bpo-33663: Convert content length to string before putting to header (GH-7754)
https://github.com/python/cpython/commit/8c19a44b63033e9c70e9b552476baecb6e3e9451


--

___
Python tracker 

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



[issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found

2018-06-18 Thread miss-islington


miss-islington  added the comment:


New changeset 53d1e9fad316e1404535157fe21cab8919f707c9 by Miss Islington (bot) 
in branch '3.7':
bpo-33663: Convert content length to string before putting to header (GH-7754)
https://github.com/python/cpython/commit/53d1e9fad316e1404535157fe21cab8919f707c9


--
nosy: +miss-islington

___
Python tracker 

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



[issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found

2018-06-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7388

___
Python tracker 

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



[issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found

2018-06-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7387

___
Python tracker 

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



[issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found

2018-06-18 Thread Steve Dower


Steve Dower  added the comment:


New changeset b36b0a3765bcacb4dcdbf12060e9e99711855da8 by Steve Dower 
(ValeriyaSinevich) in branch 'master':
bpo-33663: Convert content length to string before putting to header (GH-7754)
https://github.com/python/cpython/commit/b36b0a3765bcacb4dcdbf12060e9e99711855da8


--

___
Python tracker 

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



[issue28710] Sphinx incompatible markup in the standard library docstrings

2018-06-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I agree with David.  I would like the ugly markup changed independent of how 
Sphinx treats it.  I was thinking of changing the title to "Change obsolete tex 
markup in stdlib docstrings".  The intent of `word' was for people to see 
balanced quotes, which in ascii text means 'word'.

--

___
Python tracker 

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



[issue33896] filecmp.cmp returns True on files that differ

2018-06-18 Thread R. David Murray


R. David Murray  added the comment:

For your problem, just don't use the default shallow setting :)

--

___
Python tracker 

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



[issue33896] filecmp.cmp returns True on files that differ

2018-06-18 Thread R. David Murray


R. David Murray  added the comment:

I understand your concern, but this is working as designed and documented.  
Using st_ino would mean you would return true if and only if it was the *same* 
file.  That is not the intent.  See issue 27396 for some background discussion.

--
nosy: +r.david.murray
resolution:  -> rejected
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



[issue33897] Add a restart option to logging.basicConfig()

2018-06-18 Thread Raymond Hettinger


New submission from Raymond Hettinger :

Once a logger or basicConfig() has been called, later calls to basicConfig() 
are silent ignored.  The makes it very difficult to experiment with or teach 
the various options at the interactive prompt or in a Jupyter notebook.

What we have:

>>> import logging
>>> logging.warning('Too much data')
WARNING:root:Too much data
>>> logging.info('Volume is at 80%')
>>> logging.basicConfig(level=logging.INFO)
>>> logging.info('Volume is at 80%')
>>> # Note, no output was created

What we need:

>>> import logging
>>> logging.warning('Too much data')
WARNING:root:Too much data
>>> logging.info('Volume is at 80%')
>>> logging.basicConfig(level=logging.INFO, restart=True)
>>> logging.info('Volume is at 80%')
INFO:rootVolume is at 80%

--
assignee: vinay.sajip
components: Library (Lib)
messages: 319911
nosy: rhettinger, vinay.sajip
priority: normal
severity: normal
status: open
title: Add a restart option to logging.basicConfig()
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



[issue28710] Sphinx incompatible markup in the standard library docstrings

2018-06-18 Thread R. David Murray


R. David Murray  added the comment:

I would still like to see the legacy tex markup removed from the docstrings, so 
I think closing this issue is not appropriate, but it's not a big enough deal 
that I'll push for it if Raymond wants to keep it closed.

--

___
Python tracker 

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



[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-06-18 Thread Charalampos Stratakis


Charalampos Stratakis  added the comment:

I'd say there are use cases where gdb will be used with optimizations 
especially in downstream distribution.

--

___
Python tracker 

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



[issue28710] Sphinx incompatible markup in the standard library docstrings

2018-06-18 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Marking this as closed.  Though well-intentioned, the suggestion is predicated 
on a misperception of the role of Sphinx for CPython and existing PEP 
recommendations on docstring practices.

--
nosy: +rhettinger
resolution:  -> not a bug
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



[issue28710] Sphinx incompatible markup in the standard library docstrings

2018-06-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

RestructuredText, DocUtils, and Sphinx were developed independently, by people 
other than the pydev/cpython group.  (The proposal to include DocUtils in the 
stdlib was rejected.)  We converted to .rst for the Python documentation 
sources files about a decade ago.  Sphinx turns them into the .html files you 
can see online.  RestructuredText markup can now also be used in PEP, 
news/changelog, and What's New sources.  These are things that most people only 
view online or in other processed forms, not in source form.

On the other hand, stdlib docstrings are mostly viewed unprocessed in .py 
sources or as output from help() in text consoles or text widgets.  So markup 
in stdlib docstrings would impact everyone, not just core developers.

--

___
Python tracker 

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



[issue33895] LoadLibraryExW called with GIL held can cause deadlock

2018-06-18 Thread Tony Roberts


Tony Roberts  added the comment:

Sure, I'll get that done in the next couple of days.

--

___
Python tracker 

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



[issue33895] LoadLibraryExW called with GIL held can cause deadlock

2018-06-18 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

Do you want to submit a PR for this?  You can take a look at our developer's 
guide if you're new to contributing to Python:
https://devguide.python.org/

--
nosy: +pitrou
stage:  -> needs patch
type:  -> behavior
versions:  -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



[issue28710] Sphinx incompatible markup in the standard library docstrings

2018-06-18 Thread Patrick Lehmann


Patrick Lehmann  added the comment:

Having single quotes in docstrings is also ok for Sphinx documentation.

Btw. ReStructured text (docutils) was invented to document Python sources, why 
is it not used by Python?

--

___
Python tracker 

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



[issue33896] filecmp.cmp returns True on files that differ

2018-06-18 Thread Dean Morin


New submission from Dean Morin :

By default `filecmp.cmp()` has `shallow=True` which can produce some surprising 
behavior.

In the docs it states:

> If shallow is true, files with identical os.stat() signatures are taken to be 
> equal.

However the "signature" only considers the file mode, file size, and file 
modification time, which is not sufficient. `cmp()` will return `True` (files 
are equal) in some circumstances for files that actually differ. Depending on 
the underlying file system, the same python script will return `True` or 
`False` when `cmp()` is called on the exact same files. I'll add the 
long-winded details at the bottom.

To fix, I believe `st.st_ino` should be included in `_sig` 
(https://github.com/python/cpython/blob/3.7/Lib/filecmp.py#L68).

I'm in the middle of a move, but I can make a PR in the next couple weeks if 
this seems like a reasonable fix and no one else gets around to it.

The long version is that we're migrating some existing reports to a new data 
source. The goal is to produce identical csv files from both data sources. I 
have a python script that pulls down both csv files and uses `cmp()` to compare 
them. 

On my machine, the script correctly discovers the differences between the two. 
One of the date columns has incorrect dates in the new version.

However on my colleagues machine, the script fails to discover the differences 
and shows that the csv files are identical.

The difference is that on my machine, `os.stat(f).st_mtime` is a timestamp 
which includes fractional seconds (1529108360.1955538), but only includes the 
seconds (1529108360.0) on my colleagues machine. Since only the dates differed 
within the csvs, both files had the same file mode, file size, and both were 
downloaded within the same second.

We got a few more people to see what they got for `st_mtime`. The link could be 
the file system used. We're all using macs, but for those of us using an APFS 
Volume disk, `st_mtime` returns a timestamp which includes fractional seconds, 
and for those of us using a Logical Volume Mac OS Extended disk, it returns a 
timestamp which only includes the seconds (1529108360.0).

When comparing os.stat() between the two differing csv files, the only 
difference (other than fractional seconds for various timestamps) was `st_ino` 
which is why I believe it should be included in `_sig()`.

--
components: Library (Lib)
messages: 319904
nosy: Dean Morin
priority: normal
severity: normal
status: open
title: filecmp.cmp returns True on files that differ
type: behavior
versions: Python 2.7, 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



[issue33301] Add __contains__ to pathlib

2018-06-18 Thread Andrew Berger


Andrew Berger  added the comment:

I can make these changes. Would probably add a .exists method to PurePath, 
using the _normal_accessor.stats staticmethod, then call that in __contains__

--
nosy: +aberger5b

___
Python tracker 

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



[issue28710] Sphinx incompatible markup in the standard library docstrings

2018-06-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Oh, you are right. I didn't write much English TeX, and used other types 
of quotes.

I'm sure that I seen `such quotation' in non-TeX files, but maybe my 
memory fools me. In any case using this writing here is likely an 
artifact of copying from a TeX documentation.

--

___
Python tracker 

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



[issue28710] Sphinx incompatible markup in the standard library docstrings

2018-06-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

> AFAIK `name' is common writing of quotes in English texts

I don't remember ever seeing it before.  It looks like a typo to me, and I am 
sure it will to most readers.  I think it should be corrected as if it were a 
typo.

--

___
Python tracker 

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



[issue33893] Linux terminal shortcuts support in python shell

2018-06-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Thanks. I have presumed that Linux consoles are also line oriented, but 
hesitated to say so without really knowing so.

--

___
Python tracker 

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



[issue28710] Sphinx incompatible markup in the standard library docstrings

2018-06-18 Thread R. David Murray


R. David Murray  added the comment:

No, it is (somewhat) unique to tex.  If you write `word' tex would turn that 
into a pair of opposing quotes in the typeset document, as opposed to 'word' 
(the convention in regular text/emails/posts/etc) where you'd just see ascii 
quotes.  tex would render 'word' as a closing quote both before and after word, 
which looks weird in typeset text.

There's no bug here; as you say we aren't interested in making the docstrings 
parseable as restructured text (at least, I'm not).  For me, this is about 
getting rid of the now-odd-looking tex leftovers and making the ascii styling 
consistent with the bulk of our docstrings.

It's not a big deal, though.

--

___
Python tracker 

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



[issue28710] Sphinx incompatible markup in the standard library docstrings

2018-06-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

What is the problem? Docstrings are not written in the reStructuredText format 
in general. If Sphinx complains about docstrings in the stlib, don't run Sphinx 
for the stdlib files or report a Sphinx bug. Even if remove all `x', docstrings 
still will not be valid reStructuredText. For example the last three lines will 
be joined in a single paragraph for the docstring in msg319848.

`name' does not have special meaning in (La)TeX. AFAIK `name' is common writing 
of quotes in English texts. It predates reStructuredText and was widely used in 
Usenet and mailing lists (as two spaces after sentence-ending punctuation, 
double hyphen for a dash, _n_a_m_e_ to simulate underscoring, etc). It is just 
a part of old computer-typing culture (or may be even pre-computer).

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue33866] Stop using OrderedDict in enum

2018-06-18 Thread INADA Naoki


New submission from INADA Naoki :


New changeset e57f91a0f0d5700ec466c9dd0fd2d2b5323a5e76 by INADA Naoki in branch 
'master':
bpo-33866: enum: Stop using OrderedDict (GH-7698)
https://github.com/python/cpython/commit/e57f91a0f0d5700ec466c9dd0fd2d2b5323a5e76


--

___
Python tracker 

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



[issue33894] tempfile.tempdir cannot be unset

2018-06-18 Thread Philip Rowlands


Philip Rowlands  added the comment:

How about

- If tempdir is unset or None at any call to
+ If tempdir is None (the default) at any call to

This avoids headaches over the meaning of "unset", and accurately reflects the 
code at:
https://github.com/python/cpython/blob/3.6/Lib/tempfile.py#L289

--

___
Python tracker 

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



[issue23660] Turtle left/right inverted when using different coordinates orientation

2018-06-18 Thread Carol Willing


Carol Willing  added the comment:

Reopened at the request of the original submitter.

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



[issue28710] Sphinx incompatible markup in the standard library docstrings

2018-06-18 Thread R. David Murray


R. David Murray  added the comment:

By the way, in case anyone is curious, I'm pretty sure that markup is left over 
from the days when tex/latex was what docs were *written* in.

--

___
Python tracker 

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



[issue28710] Sphinx incompatible markup in the standard library docstrings

2018-06-18 Thread R. David Murray


R. David Murray  added the comment:

Right, my opinion is that we shouldn't be putting markup in docstrings.  They 
are (from our point of view) pure text.

I don't know if discussion on python-dev is warranted, it seems like a fairly 
uncontroversial change, since it brings the docstrings in question into 
compliance with our general practice in the majority of the stdlib.  Unless my 
impression about that is wrong :)

I don't have an opinion on multiple versus single PR for this.

--

___
Python tracker 

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



[issue33830] Error in the output of one example in the httplib docs

2018-06-18 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


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

___
Python tracker 

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



[issue33892] doc Use gender neutral words

2018-06-18 Thread INADA Naoki


INADA Naoki  added the comment:

thanks

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



[issue29750] smtplib doesn't handle unicode passwords

2018-06-18 Thread R. David Murray


R. David Murray  added the comment:

I didn't think to look at the standards for the auth mechanisms, I only looked 
at the smtp standards.  So, if the standard says utf-8, then we should use 
that.  But we should still support bytes passwords so that an application could 
work around issues like the possible ms-exchange one, if they need to.  Those 
could be two separate PRs, though.  In fact, they probably should be.  As a 
standards-compliance issue, we would be within our rules to backport the utf-8 
standards-compliance fix.

--

___
Python tracker 

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



[issue33892] doc Use gender neutral words

2018-06-18 Thread INADA Naoki

INADA Naoki  added the comment:


New changeset 60c888d0eb673272920fa3b33f6e5b176d217dc9 by INADA Naoki (Andrés 
Delfino) in branch '2.7':
bpo-33892: Doc: Use gender neutral words (GH-7770)
https://github.com/python/cpython/commit/60c888d0eb673272920fa3b33f6e5b176d217dc9


--

___
Python tracker 

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



[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-06-18 Thread Marcel Plch


Marcel Plch  added the comment:

The problem is with this function:
static PyObject *
builtin_id(PyModuleDef *self, PyObject *v)
/*[clinic end generated code: output=0aa640785f697f65 input=5a534136419631f4]*/
{
return PyLong_FromVoidPtr(v);
}

It's a one-liner, so the compiler really likes to inline it.

Without the inline optimization, the additional "next" command makes a jump 
into the function.

But when the function is inlined and you set a breakpoint to it, the line is 
just seen as a function from the debugger, that means you already are inside 
and the "next" makes the debugger exit this line, and so the function.

More graphical explanation:
non-inline case:
br
{
next
   return PyLong_FromVoidPtr(v);

inline case:
br
   return PyLong_FromVoidPtr(v);
next
"Some code without access to the func arguments' debug symbols"


I propose two possible solutions:
1) Skip whole test_gdb when optimizations are used (who debugs with them 
anyway?)
2) Conditionalize the "next". (this could be hard as we would need to know when 
the function is inlined)

Also, I have found out that when configured with --with-pydebug and 
--enable-optimizations, tests stop to fail. (the failing bots are configuring 
with --enable-optimizations only)

--

___
Python tracker 

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



[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2018-06-18 Thread Matej Cepl


Change by Matej Cepl :


--
pull_requests: +7385

___
Python tracker 

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



[issue33893] Linux terminal shortcuts support in python shell

2018-06-18 Thread R. David Murray


R. David Murray  added the comment:

zsh lets you edit multiline shell commands as a unit.  If you up-arrow, you get 
all the lines of the block popped up, with the cursor on the last line.  
Further arrow keys will navigate within the multiline text block, with an 
up-arrow from the first line taking you to the next previous shell command, and 
enter within the block will re-execute the entire modified multiline command.  
I haven't used IDLE recently enough to remember how that compares to how IDLE 
works.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2018-06-18 Thread Matej Cepl


Change by Matej Cepl :


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

___
Python tracker 

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



[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-06-18 Thread Xiang Zhang


Xiang Zhang  added the comment:

Thanks for your confirmation, Ma Lin. Also thanks for Wonsup!

--
components: +Unicode -Library (Lib)

___
Python tracker 

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



[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2018-06-18 Thread Matej Cepl


Change by Matej Cepl :


--
nosy: +mcepl

___
Python tracker 

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



[issue15474] Differentiate decorator and decorator factory in docs

2018-06-18 Thread Andrés Delfino

Andrés Delfino  added the comment:

Alright! :D Yes, your help will definitely come in handy, thanks!

--

___
Python tracker 

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



[issue15474] Differentiate decorator and decorator factory in docs

2018-06-18 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr.  added the comment:

I like Éric's terminology; giving a concrete name to the concept makes it a lot 
easier to grasp, and this doesn't require inventing any new component terms.

Andrés, if you'd like to tackle this, that's great!  I'd be happy to for you to 
bounce drafts through me if you like.

--
nosy: +fdrake

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-18 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Confirmation that the patch actually fixes the problem would be nice, but I'd 
still like to understand why Python tries to use an encoding with the name 
"874" as this might lead to a nicer solution to the problem.

BTW. There is some discussion on this issue on the python-ideas mailinglist.

--

___
Python tracker 

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



[issue15474] Differentiate decorator and decorator factory in docs

2018-06-18 Thread Andrés Delfino

Andrés Delfino  added the comment:

If deemed appropriate, I can take the task of writing a HOWTO for 
decorators/decorators factories.

--
nosy: +adelfino

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-18 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I think if we can get a confirmation from @Prawin that adding an alias fixed 
the issue or a minimal test case then it will be helpful. The minimal I can 
come up with is as below :  

import codecs

# Fails without alias being added other cases like 1252 pass because of alias

assert codecs.encode('a', '874') == codecs.encode('a', 'cp874')

# Below assertion passes after search_function patch though alias is not added 
since I prepend cp in search_function

assert codecs.encode('a', '874') == codecs.encode('a', 'cp874')


Thanks

--

___
Python tracker 

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



[issue33661] urllib may leak sensitive HTTP headers to a third-party web site

2018-06-18 Thread Artem Smotrakov


Artem Smotrakov  added the comment:

If I am not missing something, section 6.4 of RFC 7231 doesn't explicitly 
discuss that all headers should be sent. I wish it did :)

I think that an Authorization header for host A may make sense for host B if 
both A and B use the same database with user credentials. I am not sure that 
modern authentication mechanisms like OAuth rely on this fact (although I need 
to check the specs to make sure).

Sending a Cookie header to a different domain looks like a violation of the 
same-origin policy to me. RFC 6265 says something about it

https://tools.ietf.org/html/rfc6265#section-5.4

curl was recently updated to filter out Authorization headers in case of a 
redirect to another host. Chrome and Firefox don't sent either Authorization or 
Cookie headers while handling a redirect. It doesn't seem to be a disaster for 
them :)

--

___
Python tracker 

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



[issue33871] Possible integer overflow in iov_setup()

2018-06-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Thank you Pablo and Ned!

Seems there is other bug on Mac OS, not related to integer overflow. I am 
working on it.

--
priority: normal -> high

___
Python tracker 

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



[issue33832] doc Add "magic method" entry to Glossary

2018-06-18 Thread Andrés Delfino

Change by Andrés Delfino :


--
title: Make "magic methods" a little more discoverable in the docs -> doc Add 
"magic method" entry to Glossary

___
Python tracker 

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



[issue33876] doc Mention relevant pythonesque implementations

2018-06-18 Thread Andrés Delfino

Change by Andrés Delfino :


--
title: doc Mention the MicroPython implementation in Introduction -> doc 
Mention relevant pythonesque implementations

___
Python tracker 

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



[issue33893] Linux terminal shortcuts support in python shell

2018-06-18 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

Terry asked: 
> I have a question about Linux consoles. [...] Does a Linux console retrieve 
> all 5 at once, as IDLE does?

Not typically. Like the Windows console, Linux consoles are also line-oriented, 
and hitting up-arrow cycles through each line, one at a time.

The bash shell offers a special "operate-and-go-next" command to operate on a 
particular history line and then immediately retrieve the next history line:

http://web.mit.edu/gnu/doc/html/features_7.html

but I think that's about as close as any standard Linux console gets to the 
ability to retrieve multiple lines from history at once.

--
nosy: +steven.daprano

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-18 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I'm not convinced that adding code to search_function is the right solution for 
this. 

BTW. I'm also not sure yet why this error happens, does windows return a 
codepage number as the preferred encoding when the io module looks for one? If 
so, wouldn't it be better to correct the encoding name there (from the codepage 
number to a string with a "cp" prefix)?

--

___
Python tracker 

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



[issue33892] doc Use gender neutral words

2018-06-18 Thread Andrés Delfino

Change by Andrés Delfino :


--
pull_requests: +7383

___
Python tracker 

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



[issue33895] LoadLibraryExW called with GIL held can cause deadlock

2018-06-18 Thread Tony Roberts


New submission from Tony Roberts :

In dynload_win.c LoadLibraryExW is called with the GIL held.

This can cause a deadlock in an uncommon case where the GIL also needs to be 
acquired when another thread is being detached.

Both LoadLibrary and FreeLibrary acquire the Windows loader-lock. If 
FreeLibrary is called on a module that acquires the GIL when detaching, a 
dead-lock occurs when another thread with the GIL held blocks on the 
loader-lock by calling LoadLibrary.

This can happen when Python is embedded in another application via an 
extension, and where that application may create threads that call into that 
extension that results in Python code being called. Because the application is 
creating the thread, the extension that's embedding Python doesn't know when 
the thread will terminate. The first time the extension is called from that 
thread and it needs to run some Python code it has to create a new thread 
state, and when the thread terminates that thread state should be destroyed. In 
other situations the thread state would be destroyed as part of cleaning up the 
thread, but here the extension does not know when the thread terminates and so 
must do it on thread detach in DllMain. Attempting to destroy the thread state 
this way requires acquiring the GIL, which can cause the deadlock described 
above.

The safest way to avoid this deadlock (without potentially leaking thread 
states) would be to release the GIL before calling LoadLibrary.

--
components: Windows
messages: 319876
nosy: Tony Roberts, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: LoadLibraryExW called with GIL held can cause deadlock
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue33892] doc Use gender neutral words

2018-06-18 Thread Andrés Delfino

Andrés Delfino  added the comment:

Yes, of course!

--
title: doc Add a couple of "or she/her" -> doc Use gender neutral words

___
Python tracker 

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



[issue33855] IDLE: Minimally test every non-startup module.

2018-06-18 Thread miss-islington


miss-islington  added the comment:


New changeset 740f1cb20a8ae6e7f6daa14f2e240664643ce757 by Miss Islington (bot) 
in branch '3.7':
bpo-33855: More edits and new minimal tests for IDLE (GH-7761)
https://github.com/python/cpython/commit/740f1cb20a8ae6e7f6daa14f2e240664643ce757


--

___
Python tracker 

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



[issue33855] IDLE: Minimally test every non-startup module.

2018-06-18 Thread miss-islington


miss-islington  added the comment:


New changeset 684bc3d67797f2b5ca9368fe7ecc1c3093d7b694 by Miss Islington (bot) 
in branch '3.6':
bpo-33855: More edits and new minimal tests for IDLE (GH-7761)
https://github.com/python/cpython/commit/684bc3d67797f2b5ca9368fe7ecc1c3093d7b694


--

___
Python tracker 

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



[issue33894] tempfile.tempdir cannot be unset

2018-06-18 Thread Eric V. Smith


Eric V. Smith  added the comment:

"If tempdir is unset or None" means "If tempdir has not been assigned to, or if 
it has been assigned the value None". "Unset" doesn't mean "delete from the 
module".

I agree the documentation wording could be improved.

--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python, eric.smith
type: crash -> behavior

___
Python tracker 

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



[issue33855] IDLE: Minimally test every non-startup module.

2018-06-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7382

___
Python tracker 

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



[issue33855] IDLE: Minimally test every non-startup module.

2018-06-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7381

___
Python tracker 

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



[issue33855] IDLE: Minimally test every non-startup module.

2018-06-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset ea3dc8029ab6a0f1ee6a8a72f1612dea74892e08 by Terry Jan Reedy in 
branch 'master':
bpo-33855: More edits and new minimal tests for IDLE (GH-7761)
https://github.com/python/cpython/commit/ea3dc8029ab6a0f1ee6a8a72f1612dea74892e08


--

___
Python tracker 

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



[issue33893] Linux terminal shortcuts support in python shell

2018-06-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

These issues are not as simple as you think.  But anyway, clearing the shell in 
#6143.

Shell is a modified editor.  Currently, the arrows move the cursor around just 
as in the editor.  For multiline statements, this is essential, and even for 
single-line statements, not as useless as some claim.  Single-line command 
consoles can get away with changing the meaning of Up and Down.  This is 
discussed in #2704, and what I said above is explained more in msg243140 of May 
2015.

I have a question about Linux consoles.  Windows Command Prompt is strictly a 
command *line* console.  It sees

>>> def fib(n):
...if n >= 2:
...return fib(n-2) + fib(n-1)
...else:
...return n

as 5 commands.  Its history mechanism retrieves a line at a time.  Does a Linux 
console retrieve all 5 at once, as IDLE does?

--
resolution:  -> duplicate
stage: test 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



[issue33893] Linux terminal shortcuts support in python shell

2018-06-18 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
superseder:  -> IDLE: Patch to make PyShell behave more like a Terminal 
interface

___
Python tracker 

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



[issue6143] IDLE - an extension to clear the shell window

2018-06-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The way to clear an editor window at least on Windows is ^A (select all) and 
delete, which can be any of BS (backspace) or DEL or ^X (Cut).  The latter 
'moves to the clipboard.  In Shell, select all selects everything, but ^X 
enters '^x', the other 2 do their normal thing.  All three unselect without 
deleting.

My first inclination is to have any or all of these work by ignoring IDLE's 
protection mechanism, which is different from tk's no-write mode.  After 
deleting, the prompts needs to be re-written.  I understand that Cut would need 
to expand squeezed blocks to the clipboard.

--

___
Python tracker 

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



[issue33876] doc Mention the MicroPython implementation in Introduction

2018-06-18 Thread Petr Viktorin


Petr Viktorin  added the comment:

> I didn't add Cython because it's not clear to me if it's useful for creating 
> extension modules in a pythonesque language, or if it's also useful by it's 
> own.

Cython only makes extensions for CPython, and uses CPython's runtime. But it 
does have its own syntax, which is quite useful in the number-crunching domain.

I think it should be left out, but then, so should VPython which seems like 
it's a module usable by either the CPython or RapydScript interpreters.

--
nosy: +petr.viktorin

___
Python tracker 

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



[issue33894] tempfile.tempdir cannot be unset

2018-06-18 Thread Philip Rowlands


New submission from Philip Rowlands :

Quoting https://docs.python.org/3/library/tempfile.html
"""
tempfile.tempdir
When set to a value other than None, this variable defines the default value 
for the dir argument to the functions defined in this module.

If tempdir is unset or None at any call to any of the above functions except 
gettempprefix() it is initialized following the algorithm described in 
gettempdir().
"""

"If tempdir is unset ..." is not true:

$ python3 -c 'import tempfile; del tempfile.tempdir; t = tempfile.mkdtemp()'
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.2/tempfile.py", line 298, in mkdtemp
dir = gettempdir()
  File "/usr/lib/python3.2/tempfile.py", line 238, in gettempdir
if tempdir is None:
NameError: global name 'tempdir' is not defined

No strong preference whether the docs change to match the implementation, or 
vice-versa.

--
messages: 319867
nosy: philiprowlands
priority: normal
severity: normal
status: open
title: tempfile.tempdir cannot be unset
type: crash

___
Python tracker 

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



[issue33893] Linux terminal shortcuts support in python shell

2018-06-18 Thread sebastin


sebastin  added the comment:

I meant this on Python IDLE across all platforms.
basic necessary enhancements for seamless use of IDLE should atleast have below 
feature supported.

clear(used in MAC/LINUX TERMINAL) or cls(used in WINDOWS CMD PROMPT) - clear 
the PYTHON IDLE screen.

up arrow - for the search history.

If this enhancements is in progress/open state then its good, if rejected this 
be reconsidered ?

--

___
Python tracker 

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



[issue29750] smtplib doesn't handle unicode passwords

2018-06-18 Thread Tal Einat


Tal Einat  added the comment:

>From reading the aforementioned discussion on Thunderbird's issue tracker, 
>ISTM that encoding with UTF-8 is the way to go.

--

___
Python tracker 

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



[issue29750] smtplib doesn't handle unicode passwords

2018-06-18 Thread Tal Einat


Tal Einat  added the comment:

There's also some discussion there (from 3 years ago) of possibly needing to 
fall back to ISO-8859-1 to work with MS Exchange, despite the standards saying 
UTF-8 should be used.  It's unclear to me whether that's actually the case.

--

___
Python tracker 

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



[issue29750] smtplib doesn't handle unicode passwords

2018-06-18 Thread Tal Einat


Tal Einat  added the comment:

This specifically seems relevant:

> In order for Thunderbird to be standards-compliant-enough to interoperate 
> with standards-compliant servers, it should use UTF-8 for the SASL PLAIN 
> mechanism regardless of the underlying protocol (IMAP, POP and SMTP). That 
> includes the POP3 "AUTH PLAIN" command and the SMTP "AUTH PLAIN" command.

--

___
Python tracker 

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



[issue29750] smtplib doesn't handle unicode passwords

2018-06-18 Thread Tal Einat


Tal Einat  added the comment:

I found the Thunderbirg bugzilla issues where they appear to have dealt 
precisely with this issue (for a variety of protocols, including SMTP):

https://bugzilla.mozilla.org/show_bug.cgi?id=312593

--

___
Python tracker 

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