[issue42153] doc: library imaplib a url not available

2020-11-14 Thread Yash Shete


Yash Shete  added the comment:

Then I shall remove the archive link

--

___
Python tracker 

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



[issue42316] Walrus Operator in list index

2020-11-14 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +22182
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23291

___
Python tracker 

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



[issue42153] doc: library imaplib a url not available

2020-11-14 Thread Georg Brandl


Georg Brandl  added the comment:

It doesn't make sense to include the archive link, the documentation it refers 
to is available in the GitHub repository under docs/.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue42153] doc: library imaplib a url not available

2020-11-14 Thread Yash Shete


Yash Shete  added the comment:

Sorry my Bad your version is Good you can submit your PR,If any problem May I 
submit it please

--

___
Python tracker 

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



[issue42153] doc: library imaplib a url not available

2020-11-14 Thread Yash Shete


Yash Shete  added the comment:

As Documentaion of imaplib we should provide information of imap itself

--

___
Python tracker 

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



[issue42153] doc: library imaplib a url not available

2020-11-14 Thread Yash Shete


Yash Shete  added the comment:

The link provided gives UW IMAP Server Documentation not In general 
Documentation Of IMAP

--

___
Python tracker 

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



[issue42153] doc: library imaplib a url not available

2020-11-14 Thread Hitansh K Doshi


Hitansh K Doshi  added the comment:

I made changes to rst file and added link that I got from university of 
Washington do check it. Let me know if any changes, you find it proper. I will 
submit my PR.
changes in shown in image

--
Added file: https://bugs.python.org/file49599/python doc1.png

___
Python tracker 

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



[issue42343] threading.local documentation should be on the net...

2020-11-14 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Would you like to make a PR to fix it?

--
keywords: +newcomer friendly
nosy: +rhettinger

___
Python tracker 

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



[issue42302] [Turtle] Add clockwise and anticlockwise method as alias to right and left

2020-11-14 Thread Ravi Chityala


Change by Ravi Chityala :


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



[issue32958] socket module calls with long host names can fail with idna codec error

2020-11-14 Thread --


Change by -- :


--
nosy: +midopa

___
Python tracker 

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



[issue42359] tutorial: list is a class

2020-11-14 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I think the current wording is fine.  After the type/class unification we tend 
to use the words "type" and "class" almost interchangeably.  For builtins, we 
still tend to say type though.

The language itself tends to mix the terms as well:

>>> class A:
   pass

>>> type(A)

>>> type(list)


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



[issue42359] tutorial: list is a class

2020-11-14 Thread Andy Harrington


New submission from Andy Harrington :

Documentation in Tutorial section 9.3.3 seems to be stuck in Python 2:

"In Python, the term method is not unique to class instances: other object 
types can have methods as well. For example, list objects have methods called 
append, insert, remove, sort, and so on."

In Python 3 built-in types are derived from Object, so list is now a class, 
right?

--
assignee: docs@python
components: Documentation
messages: 380997
nosy: andyharrington, docs@python
priority: normal
severity: normal
status: open
title: tutorial:  list is a class
versions: Python 3.9

___
Python tracker 

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



[issue42353] Proposal: re.prefixmatch method (alias for re.match)

2020-11-14 Thread Matthew Suozzo


Matthew Suozzo  added the comment:

> It just won't work unless you add explicit ".*" or ".*?" at the start of the 
> pattern

But think of when regexes are used for validating input. Getting it to "just 
work" may be over-permissive validation that only actually checks the beginning 
of the input. They're one missed test case away from a crash or, worse, a 
security issue.

This proposed name change would help make the function behavior obvious at the 
callsite. In the validator example, calling "prefixmatch" would stand out as 
wrong to even the most oblivious, documentation-averse user.

> My point is that re.match is a common bug when people really want re.search.

While I think better distinguishing the interfaces is a nice-to-have for 
usability, I think it has more absolute benefit to correctness. Again, 
confusion around the semantics of "match" were the motivation for adding 
"fullmatch" in the first place but that change only went so far to address the 
problem: It's still too easy to misuse the existing "match" interface and it's 
not realistic to remove it from the language. A new name would eliminate this 
class of error at a very low cost.

--
nosy: +matthew.suozzo

___
Python tracker 

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



[issue42328] ttk style.map function incorrectly handles the default state for element options.

2020-11-14 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Verified
Traceback (most recent call last):
  File "F:\Python\a\tem4.py", line 5, in 
style.map('Custom.TNotebook.Tab', **style.map('TNotebook.Tab'))
  File "C:\Program Files\Python310\lib\tkinter\ttk.py", line 403, in map
self.tk.call(self._name, "map", style, *_format_mapdict(kw)),
  File "C:\Program Files\Python310\lib\tkinter\ttk.py", line 111, in 
_format_mapdict
_format_optvalue(_mapdict_values(value), script)))
  File "C:\Program Files\Python310\lib\tkinter\ttk.py", line 85, in 
_mapdict_values
state[0] # raise IndexError if empty
IndexError: list index out of range
>>> 

PS. Pat, please don't indent code that someone might reasonably copy and paste 
to run.

--

___
Python tracker 

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



[issue42330] Add browsh in the webbrowser module

2020-11-14 Thread Terry J. Reedy


Change by Terry J. Reedy :


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



[issue42328] ttk style.map function incorrectly handles the default state for element options.

2020-11-14 Thread Pat Thoyts


Pat Thoyts  added the comment:

So if you look at the clamTheme.tcl file you can see the definition of the map 
for the TNotebook.Tab style looks like the following:

ttk::style map TNotebook.Tab \
  -padding [list selected {6 4 6 2}] \
  -background [list selected $colors(-frame) {} $colors(-darker)] \
  -lightcolor [list selected $colors(-lighter) {} $colors(-dark)] \
  ;

The vista theme uses these too on Windows.

So calling this from script we can see the resulting empty elements in tcl:

% ttk::style map TNotebook.Tab
-lightcolor {selected #eeebe7 {} #cfcdc8} -padding {selected {6 4 6 2}} 
-background {selected #dcdad5 {} #bab5ab}

As I put in the bug, this gets mistranslated in python with the value for that 
state map element getting put into the first element.

The simplest demonstration is that the following raises an exception:

import tkinter as tk
import tkinter.ttk as ttk
style = ttk.Style()
style.theme_use('clam')
style.map('Custom.TNotebook.Tab', **style.map('TNotebook.Tab'))

--

___
Python tracker 

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



[issue42358] Python 3.9.0 unable to detect ax_cv_c_float_words_bigendian value on nigendan system

2020-11-14 Thread Christian Heimes


Christian Heimes  added the comment:

> I suspect that the little endian systems will
> be no great concern as the bulk of Python devs seem to have never
> seen anything else other than little endian systems running Red Hat.

We don't fancy this kind of passive-aggressive and accusatory communication 
style. Instead we prefer constructive collaboration without personal attacks.

For your information our buildbot infrastructure perform regular testing on a 
lot of hardware platforms, distributions, and compilers including PPC64 and 
s390x big endian machines.

Please attach your config.log and provide more information about your platform, 
compiler, and hardware.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue42178] failed pickle hangs python on exit in CMD.exe only

2020-11-14 Thread Teugea Ioan-Teodor


Change by Teugea Ioan-Teodor :


--
keywords: +patch
nosy: +John-Ted
nosy_count: 6.0 -> 7.0
pull_requests: +22181
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23290

___
Python tracker 

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



[issue42328] ttk style.map function incorrectly handles the default state for element options.

2020-11-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Sorry, I did not understand how did you get an empty state? Could you please 
provide complete reproducible example?

--

___
Python tracker 

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



[issue39411] pyclbr rewrite using AST

2020-11-14 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


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



[issue42293] Installation of pyinstaller in Windows fails with utf8 error

2020-11-14 Thread Paul Moore


Paul Moore  added the comment:

I've raised https://github.com/pypa/pip/issues/9135 for this.

--

___
Python tracker 

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



[issue42339] official embedded Python fails to import certain modules

2020-11-14 Thread Jelle Geerts


Jelle Geerts  added the comment:

> Mixed-language output is awkward. A common _Py_FormatMessage function could 
> be added in 3.10 that tries getting an error message in English before trying 
> to get it in the user's default language.

I agree that in general mixed-language can be odd. But I guess you could also 
argue it's useful that Python doesn't add another layer of complexity, and 
simply uses the system's own FormatMessage() function, also because developers 
are already used to seeing such messages in other applications as well. Just 
playing devil's advocate here.

At the same time, I feel it would be helpful to users if there would, in this 
specific case, be a more helpful message as well (alongside the same error that 
is already shown), something that points more directly in the direction of the 
solution.

> The documentation of the embeddable package [1] could highlight the need for 
> KB2533623. Currently it's directly mentioned only in "What's New in Python 
> 3.8" [2].

That would be helpful.

--

___
Python tracker 

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



[issue42339] official embedded Python fails to import certain modules

2020-11-14 Thread Eryk Sun


Eryk Sun  added the comment:

> maybe there's a list of updates (or FAQ) to which you 
> want to add KB3063858?

The documentation of the embeddable package [1] could highlight the need for 
KB2533623. Currently it's directly mentioned only in "What's New in Python 3.8" 
[2].

> ImportError: DLL load failed while importing _lzma: 
> De parameter is onjuist.

Mixed-language output is awkward. A common _Py_FormatMessage function could be 
added in 3.10 that tries getting an error message in English before trying to 
get it in the user's default language.

---

[1] https://docs.python.org/3/using/windows.html#the-embeddable-package
[2] https://docs.python.org/3.8/whatsnew/3.8.html#changes-in-the-python-api

--
nosy: +eryksun

___
Python tracker 

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



[issue42358] Python 3.9.0 unable to detect ax_cv_c_float_words_bigendian value on nigendan system

2020-11-14 Thread Dennis Clarke


Dennis Clarke  added the comment:

I gave up on trying to compile this code with C99. Trying C11 and 
hope that blows up in different places.

--

___
Python tracker 

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



[issue42358] Python 3.9.0 unable to detect ax_cv_c_float_words_bigendian value on nigendan system

2020-11-14 Thread Dennis Clarke


New submission from Dennis Clarke :

Seems related to issue42173 where the idea on the table was, simply to
drop Solaris support and to quote Mr Stinner to "let the code slowly
die".  Regardless of this sort of neglect there are people who do try
to use Python on big endian risc systems such as Solaris or Debian Linux
in fact. Wherein a trivial configure reveals : 

alpha$ ../Python-3.9.0/configure --prefix=/opt/bw \
> --enable-shared --disable-optimizations \
> --enable-loadable-sqlite-extensions \
> --enable-ipv6 --with-pydebug --without-dtrace \
> --with-openssl=/opt/bw --with-ssl-default-suites=openssl \
> --without-gcc
configure: WARNING: unrecognized options: --without-gcc
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking for python3.9... no
checking for python3... python3
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... "sunos5"
checking for gcc... /opt/developerstudio12.6/bin/cc -std=iso9899:2011 -m64 
-xarch=sparc -g -errfmt=error -errshort=full -xstrconst -xildoff -xmemalign=8s 
-xnolibmil -xcode=pic32 -xregs=no%appl -xlibmieee -mc -ftrap=%none 
-xbuiltin=%none -xunroll=1 -xs -xdebugformat=dwarf -errtags=yes -errwarn=%none 
-erroff=%none -L/opt/bw/lib -R/opt/bw/lib
checking whether the C compiler works... yes
.
.
.
checking for __fpu_control... no
checking for __fpu_control in -lieee... no
checking for --with-libm=STRING... default LIBM="-lm"
checking for --with-libc=STRING... default LIBC=""
checking for x64 gcc inline assembler... no
checking whether float word ordering is bigendian... unknown
configure: error: 

Unknown float word ordering. You need to manually preset
ax_cv_c_float_words_bigendian=no (or yes) according to your system.

So it seems that the m4/ax_c_float_words_bigendian.m4 needs to be
manually hacked or the configure script itself is at fault. 

I will give this a try on big endian IBM Power and also IBM Power9
ppc64le as well as FreeBSD running in RISC-V rv64imafdc little endian
and see what happens. I suspect that the little endian systems will
be no great concern as the bulk of Python devs seem to have never
seen anything else other than little endian systems running Red Hat.

To hack around this floating point endian test with blunt force :

alpha$ 
alpha$ diff -u configure.orig configure
--- configure.orig  Mon Oct  5 15:07:58 2020
+++ configure   Sat Nov 14 19:37:13 2020
@@ -14425,7 +14425,7 @@
 else
 
 
-ax_cv_c_float_words_bigendian=unknown
+ax_cv_c_float_words_bigendian=yes
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -14442,9 +14442,9 @@
 fi
 if $GREP seesnoon conftest.$ac_objext >/dev/null ; then
   if test "$ax_cv_c_float_words_bigendian" = unknown; then
-ax_cv_c_float_words_bigendian=no
+ax_cv_c_float_words_bigendian=yes
   else
-ax_cv_c_float_words_bigendian=unknown
+ax_cv_c_float_words_bigendian=yes
   fi
 fi
 
alpha$ 
alpha$ diff -u m4/ax_c_float_words_bigendian.m4.orig 
m4/ax_c_float_words_bigendian.m4
--- m4/ax_c_float_words_bigendian.m4.orig   Mon Oct  5 15:07:58 2020
+++ m4/ax_c_float_words_bigendian.m4Sat Nov 14 19:35:44 2020
@@ -42,7 +42,7 @@
   [AC_CACHE_CHECK(whether float word ordering is bigendian,
   ax_cv_c_float_words_bigendian, [
 
-ax_cv_c_float_words_bigendian=unknown
+ax_cv_c_float_words_bigendian=yes
 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
 
 double d = 
9090423496703681033747047890550501147621169273561563201479712084405348886581669527372346909785805625751702019124748742951693213050356065000232756451757077848023672452514052012137173920149654013264010999420565776568942592.0;
@@ -54,9 +54,9 @@
 fi
 if $GREP seesnoon conftest.$ac_objext >/dev/null ; then
   if test "$ax_cv_c_float_words_bigendian" = unknown; then
-ax_cv_c_float_words_bigendian=no
+ax_cv_c_float_words_bigendian=yes
   else
-ax_cv_c_float_words_bigendian=unknown
+ax_cv_c_float_words_bigendian=yes
   fi
 fi
 
alpha$ 

This is a hack of course and it gets past the endian test sickness. 

Shortly thereafter the compile fails due to a trivial C99 code 
problem : 

/opt/developerstudio12.6/bin/cc -std=iso9899:2011 -m64 -xarch=sparc -g 
-errfmt=error -errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil 
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -ftrap=%none -xbuiltin=%none 
-xunroll=1 -xs -xdebugformat=dwarf -errtags=yes -errwarn=%none -erroff=%none 
-L/opt/bw/lib -R/opt/bw/lib -c  -O -std=iso9899:2011 -m64 -xarch=sparc -g 
-errfmt=error -errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil 
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -ftrap=%none -xbuiltin=%none 
-xunroll=1 -xs -xdebugformat=dwarf -errtags=yes -errwarn=%none -erroff=%none 
-L/opt/bw/lib -R/opt/bw/lib -D_REENTRANT -std=iso9899:2011 -m64 -xarch=sparc -g 
-errfmt=error -errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil 
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -ftrap=%none -xbuiltin=%none 

[issue42330] Add browsh in the webbrowser module

2020-11-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I concur with Terry.

Actually, registering the browser is not necessary for using it. Set the 
environment variable BROWSER and use your favorite browser. The following 
example uses curl (which is not registered as in the webbrowser module) as a 
browser:

BROWSER=curl python3 -m webbrowser -n http://example.org

The registry in the webbrowser module is used for the case if you use Python on 
some non-mainstream platform which does not have OS-level infrastructure for 
running default browser or settings are empty. I.e. it is not Windows or macOS 
and does not support OpenDesktop and Posix specifications, and BROWSER is not 
set. If you have such marginal system and use marginal browser on it, it is 
worth to spend some time for setting BROWSER or configuring www-browser, 
x-www-browser, xdg-open, etc.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue42293] Installation of pyinstaller in Windows fails with utf8 error

2020-11-14 Thread giomach


giomach  added the comment:

I'm not sure whose responsibility it is to take this to the "pip tracker", but 
as a newcomer to the python environment I know nothing about that process, so 
it would be appreciated if some of the other people here would be kind enough 
to do this.

--

___
Python tracker 

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



[issue42330] Add browsh in the webbrowser module

2020-11-14 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
nosy: +python-dev
nosy_count: 2.0 -> 3.0
pull_requests: +22180
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23289

___
Python tracker 

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



[issue42353] Proposal: re.prefixmatch method (alias for re.match)

2020-11-14 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

My point is that re.match is a common bug when people really want re.search.

re.prefixmatch makes it explicit and non-confusing and thus unlikely to be used 
wrong or misunderstood when read or reviewed.

The term "match" when talking about regular expressions is not normally meant 
to imply any anchoring as anchors can be expressed within the regex.  Python is 
relatively unique in bothering to have different methods for a prefix match and 
an anywhere match.  (We'd have been better off without a match method entirely, 
only having search - too late now)

--

___
Python tracker 

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



[issue41712] REDoS in purge

2020-11-14 Thread Yash Shete


Change by Yash Shete :


--
pull_requests: +22179
pull_request: https://github.com/python/cpython/pull/23287

___
Python tracker 

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



[issue42153] doc: library imaplib a url not available

2020-11-14 Thread Yash Shete

Yash Shete  added the comment:

Should I change the link to new one (not University of Washington’s IMAP 
Information Center) as it contains so much information about IMAP4.
I could not find any link from University of Washington, So I suggest changing 
the link all together. I have a link in mind
I can open a PR If you agree.

--
nosy: +Pixmew

___
Python tracker 

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



[issue42153] doc: library imaplib a url not available

2020-11-14 Thread Hitansh K Doshi


Hitansh K Doshi  added the comment:

I contacted them I got to know that the project is discontinued since 2008 and 
the resources are no more maintained.
they have provided with an github repo and an archive file link 

This is the exact reply:
Unfortunately, both UW IMAP and Pine/Alpine development was discontinued back 
in 2008 and removed from University systems in 2018. A community copy still 
exists at https://github.com/uw-imap/imap but UW provides no support or 
resources for it anymore.  It looks like some of the information may still be 
available via the Wayback Machine 
https://web.archive.org/web/20080323102305/https://www.washington.edu/imap/  

Mark Crispin, the lead developer at UW, started a fork of it called Panda IMAP 
when he was laid off in 2008, but he has unfortunately passed away and that no 
longer seems to be maintained.

what would you like me to do next ?

--

___
Python tracker 

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



[issue42357] Wrong Availability for signal.SIGCHLD

2020-11-14 Thread Maiyun Zhang


New submission from Maiyun Zhang :

The availability for `signal.SIGCHLD` is not correct. This seems to be present 
since Python 3.7

--
assignee: docs@python
components: Documentation
messages: 380981
nosy: docs@python, myzhang1029
priority: normal
severity: normal
status: open
title: Wrong Availability for signal.SIGCHLD
versions: Python 3.10

___
Python tracker 

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



[issue42357] Wrong Availability for signal.SIGCHLD

2020-11-14 Thread Maiyun Zhang


Change by Maiyun Zhang :


--
keywords: +patch
pull_requests: +22177
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23285

___
Python tracker 

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



[issue42356] Dict inline manipulations

2020-11-14 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think you should bring this up on the python-ideas mailing list if you'd like 
to see it discussed. It will likely also require a PEP, similar to PEP 584.

--
nosy: +eric.smith

___
Python tracker 

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



[issue42351] Setup.py: UnicodeDecodeError in grep_headers_for

2020-11-14 Thread E. Paine


Change by E. Paine :


--
status: open -> closed

___
Python tracker 

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



[issue42351] Setup.py: UnicodeDecodeError in grep_headers_for

2020-11-14 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Thanks for testing!

--
resolution:  -> fixed
stage: patch review -> resolved

___
Python tracker 

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



[issue42351] Setup.py: UnicodeDecodeError in grep_headers_for

2020-11-14 Thread Ronald Oussoren


Ronald Oussoren  added the comment:


New changeset 7a27c7ed4b2b45bb9ea27d3f5c4f423495d6e939 by Ronald Oussoren in 
branch 'master':
bpo-42351: Avoid error when opening header with non-UTF8 encoding (GH-23279)
https://github.com/python/cpython/commit/7a27c7ed4b2b45bb9ea27d3f5c4f423495d6e939


--

___
Python tracker 

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



[issue37205] time.perf_counter() is not system-wide on Windows, in disagreement with documentation

2020-11-14 Thread STINNER Victor


STINNER Victor  added the comment:

I wrote PR 23284 to make time.perf_counter() on Windows and time.monotonic() on 
macOS system-wide (remove the offset computed at startup). I also suggested the 
usage of the _ns() variant functions in the documentation.

--

___
Python tracker 

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



[issue37205] time.perf_counter() is not system-wide on Windows, in disagreement with documentation

2020-11-14 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +22176
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23284

___
Python tracker 

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



[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-14 Thread Nick Coghlan


Change by Nick Coghlan :


--
nosy: +ncoghlan

___
Python tracker 

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



[issue41832] PyType_FromSpec() should accept tp_doc=NULL

2020-11-14 Thread Petr Viktorin


Petr Viktorin  added the comment:


New changeset 2b39da49974bda523c5c1a8777bbe30dbafdcd12 by Hai Shi in branch 
'master':
bpo-41832: Restore note about NULL in PyType_Slot.pfunc (GH-23243)
https://github.com/python/cpython/commit/2b39da49974bda523c5c1a8777bbe30dbafdcd12


--

___
Python tracker 

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



[issue42353] Proposal: re.prefixmatch method (alias for re.match)

2020-11-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I seen a code which uses re.search() with anchor ^ instead of re.match(), but I 
never seen a code which uses re.match() instead of re.search(). It just won't 
work unless you add explicit ".*" or ".*?" at the start of the pattern, and it 
is a clear indication that re.match() matches the start of the string.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue42354] Tuple unpacking with * causes SyntaxError in with ... as ...

2020-11-14 Thread Batuhan Taskaya


Batuhan Taskaya  added the comment:

Already fixed with GH-22612

--
nosy: +BTaskaya
resolution:  -> duplicate
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



[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-14 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +22175
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/23281

___
Python tracker 

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



[issue42339] official embedded Python fails to import certain modules

2020-11-14 Thread Jelle Geerts


Jelle Geerts  added the comment:

Problem still occurs with newer KB3118401 installed (instead of KB2999226).

But good news:

Installing update KB3063858 (or the older KB2533623) resolves the issue.

That update adds the new kernel32.dll functions SetDefaultDllDirectories, 
AddDllDirectory, and RemoveDllDirectory.

That explains why the issue didn't occur with (embedded) Python 3.7, since 
Python started using those functions since 3.8 if I recall correctly.

So, this issue can be considered solved. But...

Thinking along here, maybe there's a list of updates (or FAQ) to which you want 
to add KB3063858?

(Note of course it only affects Windows 7 users that use the embedded Python 
3.8, and it doesn't affect 3.7 users and 3.9 doesn't support Windows 7.)

Or, maybe even add a bit of logic that detects when Python fails to load one of 
the _.pyd PE images (like _socket.pyd) and show a simple warning that tells 
users to check said FAQ? Or maybe that's asking too much.

Just some thoughts.

--

___
Python tracker 

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



[issue42356] Dict inline manipulations

2020-11-14 Thread Tomek H


New submission from Tomek H :

With Python3.9 there is a great feature for merging `dict`s:
{1: 'a'} | {2: 'b'} => {1: 'a', 2: 'b'}


It would be very handy to filter out a dict with a similar fashion (for example 
& operator with a list/tuple/frozenset of keys you want to get back):
{1: 'a', 2: 'b', 3: 'c'} & [1, 3, 4] == {1: 'a', 3: 'c'}
{1: 'a', 2: 'b', 3: 'c'} & {1, 3, 4} == {1: 'a', 3: 'c'}


Also, omitting specified keys (for example - operator with a 
list/tuple/frozenset of keys you want to suppress):
{1: 'a', 2: 'b', 3: 'c'} - [3, 4] == {1: 'a', 2: 'b'}
{1: 'a', 2: 'b', 3: 'c'} - {3, 4} == {1: 'a', 2: 'b'}


Regards!

--
components: Interpreter Core
messages: 380972
nosy: tomek.hlawiczka
priority: normal
severity: normal
status: open
title: Dict inline manipulations
type: enhancement
versions: Python 3.10

___
Python tracker 

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



[issue17852] Built-in module _io can lose data from buffered files in reference cycles

2020-11-14 Thread Nikolaus Rath


Change by Nikolaus Rath :


--
nosy:  -nikratio

___
Python tracker 

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



[issue41100] Build failure on macOS 11 (beta)

2020-11-14 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
pull_requests: +22174
pull_request: https://github.com/python/cpython/pull/23280

___
Python tracker 

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



[issue42351] Setup.py: UnicodeDecodeError in grep_headers_for

2020-11-14 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I've created PR. Could you please check if that fixes the problem?

--

___
Python tracker 

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



[issue42351] Setup.py: UnicodeDecodeError in grep_headers_for

2020-11-14 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
keywords: +patch
pull_requests: +22173
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23279

___
Python tracker 

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



[issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child

2020-11-14 Thread Charles-François Natali

Change by Charles-François Natali :


--
nosy:  -neologix

___
Python tracker 

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



[issue17852] Built-in module _io can lose data from buffered files in reference cycles

2020-11-14 Thread Charles-François Natali

Change by Charles-François Natali :


--
nosy:  -neologix

___
Python tracker 

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



[issue42316] Walrus Operator in list index

2020-11-14 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

PEP 572 does not saw much of anything about when parens are needed.  Nor does 
the low priority itself.  Looking through the grammar of expressions, an 
assignment_expression is also a starred_expression, a positional_item (in 
calls), and the first part of a comprehension. It is not itself an plain 
expression unless and until wrapped in parentheses.  Subscription requires an 
expression list, which may be a single expression.

To put it another way: an expression is an assignment expression but an 
assignment expression with a "name :=" prefix is not an expression, so parens 
are required anywhere an expression is required.  That includes subscripts, 
slicings, displays, call items other than positional items, comprehension parts 
other than the initial expression (maybe, check), parts of conditional 
expressions (maybe, check), and lambda expression bodies.  After checking, I 
would like a sentence added to the doc before the 'go see the PEP' bit.

This has nothing to do with asyncio.

--
assignee:  -> docs@python
components: +Documentation, Interpreter Core -asyncio
nosy: +docs@python, terry.reedy -asvetlov, yselivanov
versions: +Python 3.10 -Python 3.8

___
Python tracker 

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



[issue42355] symtable: get_namespace doesn't check whether if there are multiple namespaces or no namespaces at all

2020-11-14 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


--
keywords: +patch
pull_requests: +22172
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23278

___
Python tracker 

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



[issue42355] symtable: get_namespace doesn't check whether if there are multiple namespaces or no namespaces at all

2020-11-14 Thread Batuhan Taskaya


New submission from Batuhan Taskaya :

>>> table = symtable.symtable("A = 1", "", "exec")
>>> table.lookup("A")

>>> table.lookup("A").get_namespace()
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/local/lib/python3.10/symtable.py", line 312, in get_namespace
raise ValueError("name is bound to multiple namespaces")
ValueError: name is bound to multiple namespaces
>>> table.lookup("A").get_namespaces()
()

--
assignee: BTaskaya
components: Library (Lib)
messages: 380969
nosy: BTaskaya, benjamin.peterson
priority: normal
severity: normal
status: open
title: symtable: get_namespace doesn't check whether if there are multiple 
namespaces or no namespaces at all
versions: Python 3.10

___
Python tracker 

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



[issue42293] Installation of pyinstaller in Windows fails with utf8 error

2020-11-14 Thread Paul Moore


Paul Moore  added the comment:

Erik is correct, this is a pip bug. Please raise an issue on the pip tracker 
linking to this issue and we can fix it.

--

___
Python tracker 

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



[issue42328] ttk style.map function incorrectly handles the default state for element options.

2020-11-14 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

You have 2 user names, both nosy.  You logged in with the lower-case name, 
hence the Author listing above.  However, your CLA was registered with your 
uppercase (older?) login name.  (If this is not what you intended, please write 
ewa at ython.org and explain.) Hence your name (login name) is not followed by 
the CLA * marker.  This was a bit confusing until I decyphered the situaiton.

--

___
Python tracker 

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



[issue42330] Add browsh in the webbrowser module

2020-11-14 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

We do not add just any old or new browser to webrowser's predefined list.  (And 
there are likely some that should be dropped.)  The last addition was the 
Chrome group in 3.3.  Neither Microsoft Explorer or Edge are listed.  I believe 
the former was considered to be covered sufficient well by 'windows-default'.

On Windows and Mac, one can use any browser by making it the default.  It is 
also possible for any browser to make itself easily usable from Python by 
adding a module that registers the browser controller class on import.  You 
should suggest this to the browsh dev and see if *they* care.

Looking further, there are about 10 browsers with measured usage listed in 
https://en.wikipedia.org/wiki/Web_browser that are not on the webbrowser list.  
There are more at https://en.wikipedia.org/wiki/List_of_web_browsers, including 
 Browsh appears on neither list.  It does appear on 
https://en.wikipedia.org/wiki/Text-based_web_browser.  But it seems too obscure 
to deserve being added.  So I think this request should be rejected.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue42351] Setup.py: UnicodeDecodeError in grep_headers_for

2020-11-14 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

That's annoying. A quick workaround is to patch setup.py:get_headers_for and 
add "encoding='latin1'" to the arguments of open.

I'll look into a better fix later this weekend.

--

___
Python tracker 

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



[issue42353] Proposal: re.prefixmatch method (alias for re.match)

2020-11-14 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
components: +Regular Expressions
nosy: +ezio.melotti, mrabarnett

___
Python tracker 

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



[issue42334] Subclassing int and complex with keyword arguments weird

2020-11-14 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

When reporting a failure please copy and paste the exception and message and 
when non-trivial, the traceback.   In this case:  "TypeError: 'test' is an 
invalid keyword argument for complex()".  The difference between int and 
complex versus float is that the former have keyword arguments, so they check 
for invalid keyword arguments, whereas float take no keyword arguments, so it 
does not check for validity and, for subclasses, passes them on.

--
nosy: +terry.reedy
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



[issue33074] dbm corrupts index on macOS (_dbm module)

2020-11-14 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This is a duplicate of #30388

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> ndbm can't iterate through values on OS X

___
Python tracker 

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



[issue30388] ndbm can't iterate through values on OS X

2020-11-14 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

See also #33074

--

___
Python tracker 

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



[issue42354] Tuple unpacking with * causes SyntaxError in with ... as ...

2020-11-14 Thread Ken Jin


Ken Jin  added the comment:

This is a duplicate of issue bpo-41979, which was already fixed in this merged 
PR https://github.com/python/cpython/pull/22611 and backported to 3.9.

The example code does not error on the latest 3.10. I'm guessing that the 
bugfix will come in 3.9.1 since the fix wasn't able to make it into 3.9.0.

--
nosy: +kj

___
Python tracker 

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



[issue42335] Python Crashes Exception code 0xc0000374 ntdll.dll

2020-11-14 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

When python as delivered crashes running pure non-ctype Python code, we usually 
consider it a bug to be fixed.  As soon as one pokes around with ctypes or 
imports 3rd party binaries, the crash is usually due to a user or 3rd par.  So 
this probably should be closed as 'not a (cpython) bug' or '3rd party', at 
least until the crash can be duplicated run pure python.  I am leaving it open 
for now in case someone checks the zip.

You might get more help posting on python-list with an import list or zip 
requirements.txt.  Some other user might know something about intermittent 
crashes in one of the packages.

--
components: +Extension Modules, Windows -Interpreter Core, Library (Lib)
nosy: +paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware

___
Python tracker 

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