[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 5b62b35e6fcba488da2f809965a5f349a4170b02 by terryjreedy in branch 
'master':
bpo-30870: IDLE -- fix logic error in eae2537. (#2660)
https://github.com/python/cpython/commit/5b62b35e6fcba488da2f809965a5f349a4170b02


--

___
Python tracker 

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



[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I believe I read somewhere (SO?) that root.withdraw sometimes affects the 
effectiveness of event_generate.  I will try de-iconifying for just this.

--

___
Python tracker 

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



[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:

My manual test procedure was faulty.  Without a unit test, I should have asked 
for another person to verify.

--

___
Python tracker 

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



[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2725

___
Python tracker 

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



[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I don't know how to make the testing code working.

--

___
Python tracker 

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



[issue30881] IDLE: add docstrings to browser.py

2017-07-10 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
stage:  -> patch review

___
Python tracker 

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



[issue30714] test_ssl fails with openssl 1.1.0f

2017-07-10 Thread Gregory P. Smith

Gregory P. Smith added the comment:

I updated to PGO buildbot from Debian 8 "jessie" to Debian 9 "stretch" which 
revealed the failures.

--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2017-07-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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



[issue30879] os.listdir(bytes) gives a list of bytes, but os.listdir(buffer) gives a list of unicodes

2017-07-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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



[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2017-07-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 44eb51e6fcf45f3c2bf21c16e18c4da48a23d2d3 by Serhiy Storchaka in 
branch '3.5':
[3.5] bpo-22207: Add checks for possible integer overflows in unicodeobject.c. 
(GH-2623) (#2659)
https://github.com/python/cpython/commit/44eb51e6fcf45f3c2bf21c16e18c4da48a23d2d3


--

___
Python tracker 

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



[issue30879] os.listdir(bytes) gives a list of bytes, but os.listdir(buffer) gives a list of unicodes

2017-07-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 7527c32f5fedc3260d767900f1014495c0a1b7a5 by Serhiy Storchaka in 
branch '3.5':
[3.5] bpo-30879: os.listdir() and os.scandir() now emit bytes names when 
(GH-2634) (#2657)
https://github.com/python/cpython/commit/7527c32f5fedc3260d767900f1014495c0a1b7a5


--

___
Python tracker 

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



[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2017-07-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 82a907560011c7b784badccc78082cef70ea7128 by Serhiy Storchaka in 
branch '3.6':
[3.6] bpo-22207: Add checks for possible integer overflows in unicodeobject.c. 
(GH-2623) (#2658)
https://github.com/python/cpython/commit/82a907560011c7b784badccc78082cef70ea7128


--

___
Python tracker 

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



[issue30879] os.listdir(bytes) gives a list of bytes, but os.listdir(buffer) gives a list of unicodes

2017-07-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset ecfe4f678bfb0e3c19c90fd7db79c5f3c76023e4 by Serhiy Storchaka in 
branch '3.6':
[3.6] bpo-30879: os.listdir() and os.scandir() now emit bytes names when 
(GH-2634) (#2656)
https://github.com/python/cpython/commit/ecfe4f678bfb0e3c19c90fd7db79c5f3c76023e4


--

___
Python tracker 

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



[issue27364] Deprecate invalid escape sequences in str/bytes

2017-07-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yes, this was the intention. One of often errors is using "\n" in non-raw 
docstrings. This change doesn't prevent this error, but increases chances of 
catching it when there are other backslashes in the docstring.

--

___
Python tracker 

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



[issue27364] Deprecate invalid escape sequences in str/bytes

2017-07-10 Thread Guido van Rossum

Guido van Rossum added the comment:

Yes.

--

___
Python tracker 

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



[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2017-07-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2724

___
Python tracker 

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



[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2017-07-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2723

___
Python tracker 

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



[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2017-07-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 64e461be09e23705ecbab43a8b01722186641f71 by Serhiy Storchaka in 
branch 'master':
bpo-22207: Add checks for possible integer overflows in unicodeobject.c. (#2623)
https://github.com/python/cpython/commit/64e461be09e23705ecbab43a8b01722186641f71


--

___
Python tracker 

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



[issue30879] os.listdir(bytes) gives a list of bytes, but os.listdir(buffer) gives a list of unicodes

2017-07-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2722

___
Python tracker 

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



[issue30879] os.listdir(bytes) gives a list of bytes, but os.listdir(buffer) gives a list of unicodes

2017-07-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2721

___
Python tracker 

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



[issue27364] Deprecate invalid escape sequences in str/bytes

2017-07-10 Thread Jason R. Coombs

Jason R. Coombs added the comment:

One consequence of this change is that now any string that has a backslash 
needs to be escaped or raw, leading to changes like this on 
(https://github.com/cherrypy/cherrypy/pull/1610/commits/1d8c03ea8c5fe90f29bbea267300b97c78391c24#diff-be33a4f55d59dfc70fc6452482f3a7a4)
 where the diagram in the docstring is the culprit. An escaped backslash is not 
viable in this case, so a raw string is required.

This particular example strikes me as counter-intuitive, though maybe I just 
need to adjust my intuition.

Was the intention for a docstring like above to use raw strings?

--
nosy: +jason.coombs

___
Python tracker 

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



[issue30879] os.listdir(bytes) gives a list of bytes, but os.listdir(buffer) gives a list of unicodes

2017-07-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 1180e5a51871fa53ca6892e83fd2e69dc2600447 by Serhiy Storchaka in 
branch 'master':
bpo-30879: os.listdir() and os.scandir() now emit bytes names when (#2634)
https://github.com/python/cpython/commit/1180e5a51871fa53ca6892e83fd2e69dc2600447


--

___
Python tracker 

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



[issue30897] Add a is_mount() to pathlib

2017-07-10 Thread Cooper Lees

Cooper Lees added the comment:

Mocked up a concept PR. Will try teach myself how to test + see if I need to 
add Windows support etc.
https://github.com/cooperlees/cpython/commit/master

--

___
Python tracker 

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



[issue30890] IDLE: Input method error in comment with Korean language

2017-07-10 Thread DelTos

DelTos added the comment:

Or it may be a problem that only happens on my PC.

--

___
Python tracker 

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



[issue30890] IDLE: Input method error in comment with Korean language

2017-07-10 Thread DelTos

DelTos added the comment:

It doesn't occur when I'm typing comments with numbers or English. It only 
occurs in Korean comments.
Plus, I changed the font and another problem has occured. The letters are 
printed in vertically.(Attached file) It seems there is a problem only in the 
Korean language.
I gave up typing comments with Korean and changed it into English.

--
Added file: http://bugs.python.org/file47004/comparison.png

___
Python tracker 

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



[issue30890] IDLE: Input method error in comment with Korean language

2017-07-10 Thread Louie Lu

Changes by Louie Lu :


--
title: Comment error in Korean language -> IDLE: Input method error in comment 
with Korean language

___
Python tracker 

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



[issue30890] Comment error in Korean language

2017-07-10 Thread Louie Lu

Louie Lu added the comment:

I'm using Arch Linux with HIME input method, and using 3.7a0 Python. But I 
can't reproduce your problem in Korean input.

Could you provide how to type in the sentence in your picture? (Roman or the 
stroke maybe) and your environment?

thanks.

--
nosy: +louielu

___
Python tracker 

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



[issue30890] Comment error in Korean language

2017-07-10 Thread Louie Lu

Changes by Louie Lu :


--
type: crash -> behavior

___
Python tracker 

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



[issue30897] Add a is_mount() to pathlib

2017-07-10 Thread Cooper Lees

Changes by Cooper Lees :


--
title: Add a ismount() to pathlib -> Add a is_mount() to pathlib

___
Python tracker 

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



[issue30890] Comment error in Korean language

2017-07-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:

File loads normally for me. What happens when you load it as is?

If you need to type something, can you produce effect with entering numbers 
with keypad, without using any special Korean entry method that I would not 
have?  If so, give exact directions and since we both have win10, I will try.

--

___
Python tracker 

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



Re: What's with all of the Case Solution and Test Bank nonsense posts?

2017-07-10 Thread Michael Torrie
On 07/10/2017 02:06 PM, Pete Forman wrote:
>> What's the meaning of "https news service" then? If it's netnews, it's
>> NNTP, not HTTP. If it just happens to be a web app that carries
>> information from a newsgroup, then that's not a news service, it's a
>> web forum, and there's no such thing as a generic web forum API.
> 
> RFC 4642 (updated by RFC 8143) describes the use of TLS with NNTP. It
> enhances the connection between NNTP client and server, primarily with
> encryption but optionally with other benefits.

Again, that is not HTTPS. Don't confuse port number with protocol!

As Chris says, Google Groups is essentially a web forum that happens to
mirror Usenet content.  It's not a news service itself (no NNTP), not an
NNTP server.  So if GG is causing users problems, the solution is to
ditch it and use something better, like a standalone NNTP client and a
real Usenet server.  Or python-list via email.

I wish there was a decent (free) API that everyone used for web forums
that would let me use a decent, threaded news reader to browse forums.
I once wrote a forum scraper using BeautifulSoup that downloaded posts,
along with graphics and made them into MIME messages served over NNTP
(using Twisted) to my NNTP client.  So much information is lost in web
forums (there's no threading in web forums) that it didn't work out that
well.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue30890] Comment error in Korean language

2017-07-10 Thread DelTos

DelTos added the comment:

I attched simple main.py file.
TK version is 8.6.6 and OS is Windows 10.

--
Added file: http://bugs.python.org/file47003/main.py

___
Python tracker 

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



[issue30897] Add a ismount() to pathlib

2017-07-10 Thread Cooper Lees

New submission from Cooper Lees:

It would be nice to have pathlib.Path objects to have a ismount() function to 
return a bool if it is a POSIX mount point, similar to `os.path.ismount(path)`

--
components: Library (Lib)
messages: 298104
nosy: cooperlees
priority: normal
severity: normal
status: open
title: Add a ismount() to pathlib
type: enhancement
versions: Python 3.7

___
Python tracker 

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



[issue30890] Comment error in Korean language

2017-07-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I can seen that the last char is not colored correctly, but not that it is 
small.  The white pixels seems to comprise a character that is about as big as 
the others.  But I don't know Hangul chars.

What version of Tk (see Help => About IDLE), and what OS?

Please upload your main.py so I can load it into my IDLE on Win10.

--

___
Python tracker 

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



[issue30890] Comment error in Korean language

2017-07-10 Thread DelTos

DelTos added the comment:

It was my mistake. I tested it on IDLE 3.6.

--

___
Python tracker 

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



[issue30890] Comment error in Korean language

2017-07-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Did you actually test on 3.7?  If you did, and got different results, then this 
is not an IDLE issue, as it is unchanged in 3.7.

This might be a tcl/tk issue rather than IDLE issue.

--

___
Python tracker 

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



[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2017-07-10 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +2720

___
Python tracker 

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



[issue30896] BytesWarning in re module when compiling certain bytes patterns

2017-07-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your report Jelle, but this was fixed in issue30605.

--
resolution:  -> out of date
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



[issue30803] Truth value of sets not properly documented

2017-07-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Responding here to Peter's PR comment.  Peter opened this issue with the claim 
that the doc failed a specific test case-- document the truth value of set().  
Since mappings are (or can be viewed as) a specialized type of set, I always 
considered that the empty mapping line implicitly covered sets.  But I 
acknowledge that this is not clear for everyone.  The simplest fix to make the 
test pass would be: "any unordered collection, for example, set(), {}".  This 
should also cover frozenset and a possible frozendict.

Raymond noted that 'user-defined' in the last bullet point is wrong (it implies 
that built-in functions are different) and should be deleted.  He then combined 
the corrected rule for false with the default rule in the next sentence to 
produce a succinct statement of the actual rule.  (In CPython, 'default' is 
literally true. Class 'object' has neither __bool__ nor __len__; ditto for all 
subclasses that do not add one.)

With a minor change, I like this statement and agree that it should be moved 
above the examples.  But I think the bullet points should be reduced to just 3, 
rewritten, and single spaced, but not smashed into running text.  I suggest 
replacing everything between the first sentence (ending with 'below.') and the 
last two (beginning with 'Operations') with:

"By default, an object is considered true unless its class defines either a 
__bool__ method that returns False or __len__ method that returns zero, when 
called with the object.  Here are most of the built-in objects considered false.

* constants defined to be false: None and False.
* numeric 0 of any type: 0, 0.0, Decimal(0), Fractions(0, 1)
* empty sequences and collections: '', (), [], {}, set(), range(0)
"

Before writing the above, I checked that an instance attribute __bool__ = 
lambda: False is not consulted by bool().

--

___
Python tracker 

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



Re: Compiling Python 3.6.1 on macOS 10.12.5

2017-07-10 Thread INADA Naoki
>  Killed: 9

It looks like not segmentation fault.
Maybe, RAM shortage?
INADA Naoki  


On Mon, Jul 10, 2017 at 10:24 PM, Nigel Palmer  wrote:
> Hi
>
> I am trying to compile Python 3.6.1  on macOS 10.12.5 with xcode 8.8.3 using 
> the instructions at 
> https://docs.python.org/devguide/setup.html#build-dependencies but I am 
> getting the error
>
> ./python.exe -E -S -m sysconfig --generate-posix-vars ;\
> if test $? -ne 0 ; then \
> echo "generate-posix-vars failed" ; \
> rm -f ./pybuilddir.txt ; \
> exit 1 ; \
> fi
> /bin/sh: line 1: 96973 Killed: 9   ./python.exe -E -S -m 
> sysconfig --generate-posix-vars
> generate-posix-vars failed
> make: *** [pybuilddir.txt] Error 1
>
> When I manually run that command using dbll I get:
>
> lldb ./python.exe -- -E -S -m sysconfig --generate-posix-vars
> (lldb) target create "./python.exe"
> Current executable set to './python.exe' (x86_64).
> (lldb) settings set -- target.run-args  "-E" "-S" "-m" "sysconfig" 
> "--generate-posix-vars"
> (lldb) r
> Process 96978 launched: './python.exe' (x86_64)
> Could not find platform dependent libraries 
> Consider setting $PYTHONHOME to [:]
> Process 96978 exited with status = 0 (0x)
> (lldb)
>
>
> The commands I ran to configure and build python are:
> brew install openssl xz
> CPPFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix 
> openssl)/lib" ./configure --prefix=`pwd`/../build
> make
>
> Any ideas on what I am doing wrong?
>
> Many Thanks
> Nigel
> --
> https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue30893] Expose importlib._bootstrap._ModuleLockManager in importlib.machinery

2017-07-10 Thread Nick Coghlan

Nick Coghlan added the comment:

Based on https://github.com/python/cpython/pull/2646/files#r126574323, I'm 
actually thinking along different lines: I'm starting to think we should move 
the current sys.modules to sys._modules, and make sys.modules a synchronised 
wrapper that does the following for all get/set/delete operations:

  # Acquires the global import lock
  # Acquires the relevant module lock
  # Releases the global import lock
  # Mutates sys._modules
  # Releases the module lock

That said, I'm not sure that would be sufficient to give the desired level of 
atomicity, so exposing ModuleLockManager may actually be a better approach.

--

___
Python tracker 

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



[issue30895] Decimal arithmetic sum error

2017-07-10 Thread Steven D'Aprano

Steven D'Aprano added the comment:

Also, for the future, please do not post screen shots of text. Copy and Paste 
the text from the console. Thank you.

--
nosy: +steven.daprano

___
Python tracker 

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



[issue30894] Python 3.6.1 String Literal Error Not Going to sys.stderr

2017-07-10 Thread Steven D'Aprano

Steven D'Aprano added the comment:

Before Python runs your code, it compiles it to byte-code. A SyntaxError means 
that the code cannot be compiled, and so it does not run.

So the SyntaxError is raised *before* any of the code runs, and standard error 
is not re-directed. This is expected behaviour, not a bug. You cannot catch 
compile-time errors at run-time.

--
nosy: +steven.daprano
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



[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-10 Thread Cheryl Sabella

Changes by Cheryl Sabella :


--
pull_requests: +2719

___
Python tracker 

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



[issue12910] urrlib.quote quotes too many chars, e.g., '()'

2017-07-10 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
stage:  -> patch review
versions:  -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue30896] BytesWarning in re module when compiling certain bytes patterns

2017-07-10 Thread Jelle Zijlstra

New submission from Jelle Zijlstra:

This code in sre_parse (line 738 and down):

warnings.warn(
'Flags not at the start of the expression %s%s' 
% (
source.string[:20],  # truncate long regexes
' (truncated)' if len(source.string) > 20 
else '',
),
DeprecationWarning, stacklevel=7
)


triggers a BytesWarning if you do `_line_re = re.compile(br'^(.*?)$(?m)')`.

The fix should be simple; I can try to get a PR in over the next few days.

--
components: Library (Lib)
messages: 298095
nosy: Jelle Zijlstra, ezio.melotti, serhiy.storchaka
priority: normal
severity: normal
status: open
title: BytesWarning in re module when compiling certain bytes patterns
versions: Python 3.6

___
Python tracker 

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



[issue30895] Decimal arithmetic sum error

2017-07-10 Thread Zachary Ware

Zachary Ware added the comment:

https://docs.python.org/3/tutorial/floatingpoint.html

--
nosy: +zach.ware
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



[issue30895] Decimal arithmetic sum error

2017-07-10 Thread Yelson Chevarrias Huaman

Changes by Yelson Chevarrias Huaman :


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



[issue30895] Decimal arithmetic sum error

2017-07-10 Thread Yelson Chevarrias Huaman

Changes by Yelson Chevarrias Huaman :


--
type: performance -> behavior

___
Python tracker 

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



[issue30895] Decimal arithmetic sum error

2017-07-10 Thread Yelson Chevarrias Huaman

New submission from Yelson Chevarrias Huaman:

Decimal arithmetic sum error

--
components: Interpreter Core
files: csm.png
messages: 298093
nosy: Yelson Chevarrias Huaman
priority: normal
severity: normal
status: open
title: Decimal arithmetic sum error
type: performance
versions: Python 2.7, Python 3.5
Added file: http://bugs.python.org/file47002/csm.png

___
Python tracker 

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



[issue30883] test_urllib2net failed on s390x Debian 3.6: ftp.debian.org error, too many connections from your internet address

2017-07-10 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +berker.peksag
stage:  -> needs patch
type:  -> behavior
versions: +Python 3.7

___
Python tracker 

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



ANN: A new version (0.4.1) of python-gnupg has been released.

2017-07-10 Thread Vinay Sajip via Python-list
A new version of the Python module which wraps GnuPG has been released.

What Changed?
=
This is an enhancement and bug-fix release, and all users are encouraged to 
upgrade.
See the project website [1] for more information.

Brief summary:

* Updated message handling logic to no longer raise exceptions when a message 
isn't
  recognised. Thanks to Daniel Kahn Gillmor for the patch.
* Always use always use --fixed-list-mode, --batch and --with-colons. Thanks to 
Daniel
  Kahn Gillmor for the patch.
* Improved scan_keys() handling on GnuPG >= 2.1. Thanks to Daniel Kahn Gillmor 
for the
  patch.
* Improved test behaviour with GnuPG >= 2.1. Failures when deleting test 
directory trees
  are now ignored. Thanks to Daniel Kahn Gillmor for the patch.
* Added close_file keyword argument to verify_file to allow the file closing to 
be made
  optional. Current behaviour is maintained - close_file=False can be passed to 
skip
  closing the file being verified.
* Added the extra_args keyword parameter to allow custom arguments to be passed 
to the
  gpg executable.
* Instances of the GPG class now have an additional on_data attribute, which 
defaults to
  None. It can be set to a callable which will be called with a single argument 
- a binary
  chunk of data received from the gpg executable. The callable can do whatever 
it likes
  with the chunks passed to it - e.g. write them to a separate stream. The 
callable should
  not raise any exceptions (unless it wants the current operation to fail).

This release [2] has been signed with my code signing key:

Vinay Sajip (CODE SIGNING KEY) 
Fingerprint: CA74 9061 914E AC13 8E66 EADB 9147 B477 339A 9B86

What Does It Do?

The gnupg module allows Python programs to make use of the
functionality provided by the Gnu Privacy Guard (abbreviated GPG or
GnuPG). Using this module, Python programs can encrypt and decrypt
data, digitally sign documents and verify digital signatures, manage
(generate, list and delete) encryption keys, using proven Public Key
Infrastructure (PKI) encryption technology based on OpenPGP.

This module is expected to be used with Python versions >= 2.4, as it
makes use of the subprocess module which appeared in that version of
Python. This module is a newer version derived from earlier work by
Andrew Kuchling, Richard Jones and Steve Traugott.

A test suite using unittest is included with the source distribution.

Simple usage:

>>> import gnupg
>>> gpg = gnupg.GPG(gnupghome='/path/to/keyring/directory')
>>> gpg.list_keys()

[{
...
'fingerprint': 'F819EE7705497D73E3CCEE65197D5DAC68F1AAB2',
'keyid': '197D5DAC68F1AAB2',
'length': '1024',
'type': 'pub',
'uids': ['', 'Gary Gross (A test user) ']},
{
...
'fingerprint': '37F24DD4B918CC264D4F31D60C5FEFA7A921FC4A',
'keyid': '0C5FEFA7A921FC4A',
'length': '1024',
...
'uids': ['', 'Danny Davis (A test user) ']}]
>>> encrypted = gpg.encrypt("Hello, world!", ['0C5FEFA7A921FC4A'])
>>> str(encrypted)

'-BEGIN PGP MESSAGE-\nVersion: GnuPG v1.4.9 (GNU/Linux)\n
\nhQIOA/6NHMDTXUwcEAf
.
-END PGP MESSAGE-\n'
>>> decrypted = gpg.decrypt(str(encrypted), passphrase='secret')
>>> str(decrypted)

'Hello, world!'
>>> signed = gpg.sign("Goodbye, world!", passphrase='secret')
>>> verified = gpg.verify(str(signed))
>>> print "Verified" if verified else "Not verified"

'Verified'

As always, your feedback is most welcome (especially bug reports [3],
patches and suggestions for improvement, or any other points via the
mailing list/discussion group [4]).

Please refer to the documentation [5] for more information.

Enjoy!

Cheers

Vinay Sajip
Red Dove Consultants Ltd.

[1] https://bitbucket.org/vinay.sajip/python-gnupg
[2] https://pypi.python.org/pypi/python-gnupg/0.4.1
[3] https://bitbucket.org/vinay.sajip/python-gnupg/issues
[4] https://groups.google.com/forum/#!forum/python-gnupg
[5] https://gnupg.readthedocs.io/en/latest/ 
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue24776] IDLE: Improve config dialog font change user interface

2017-07-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Make this the master issue for improving the font tab user interface by 
improving components and rearranging them.  With basic tests done, I am moving 
this up in priority.

Related issues currently open.
#30870 (dependency) made Up/Down change font selection; unit test needed.
#27755 replaces IDLE's custom DynOptionMenu with ttk.Combobox.  Comboboxes 
allow key entry of a value and the arrow toggles. See msg298091 for comparison 
and evaluation for font page.
#13802 (dependency) is about the improving the sample display.
#17642 is about font resizing by hot key and wheel in editor.
#20917 is about the font change notification system.

Additional changes for this issue or new related issues.

* Selecting a font by name (as well as a font size by number) can be done with 
an entry box with a validator linked to the listbox.  If a ttk Combobox can be 
locked open, I would try that.  See #27755.  For a demo of another alternative, 
run the tk fontchooser.

import tkinter
root = tkinter.Tk()
root.tk.call('tk', 'fontchooser', 'show')

For IDLE, I like some parts, not others.  I view it as an alternate mockup for 
ideas to build on.

* Mark's mockup removes "Base Editor Font".  If an editor window can have its 
font individually resized, then the settings on the font page define just that. 
 'Font Size' would then have to be 'Starting [or Default] Font Size'. 

* Font size a slider?  I am not convinced.  It would have to be vertical to go 
up to 40.  (I added larger sizes by request for classroom projector use.)  On 
the other hand, it would allow any size in the given range.  A spinbox that 
could be spun by mousewheel would also and stay compact.  Or use a ttk Combobox.

* See #13802 for discussion of sample display.

* Indent.  I don't understand "cries out to be moved (usually when people are 
intending to increase their font size)."  But I think it take too much space 
and should be shrunk to a spin box or drop box.  Reduced to a single line, I am 
thinking of moving it to the General tab, or perhaps a new Editor tab.  It does 
not particularly belong with font selection.

* Factor the Font page, with associated Variables and their tracers, other 
attributes, and methods, into a FontPage class.

--
dependencies: +IDLE Prefernces/Fonts: use multiple alphabets in examples, IDLE: 
configdialog/fonts: change font when select by key up/down, Retire 
DynOptionMenu with a ttk Combobox
priority: low -> normal
title: Improve Fonts/Tabs UX for IDLE -> IDLE: Improve config dialog font 
change user interface
versions: +Python 3.7 -Python 3.5

___
Python tracker 

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



[issue27755] Retire DynOptionMenu with a ttk Combobox

2017-07-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I did more experiments with DOM (DynamicOptionMenu) and Combobox (CB).  This 
was partly to evaluate CB as replacement for DOM for font size; partly to 
consider CB for the font list.   At least by default, both start closed.  Font 
list should start open. CB has an Entry area, DOM does not.  They get focus by 
clicking.  Both open with Down or click on Down button.  DOM also opens on Up, 
not essential. CB adds scrollbar if needed.  DOM?  Needed for font list.  Up 
and Down move the selection highlight but do not select.  Selection by click 
and  close the box and generate <>  This is unlike 
Listbox where moving highlight generates <>.  #30870 fixed code 
so that Up and Down, in addition to click, caused sample change.  I want to 
keep this for font choice and add it for size choice.  For CB, click on Down 
button closes without changing selection.  For DOM, it does not, a deficiency.

--

___
Python tracker 

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



[issue30714] test_ssl fails with openssl 1.1.0f

2017-07-10 Thread STINNER Victor

STINNER Victor added the comment:

The test now fails on AMD64 Debian PGO 3.x:

http://buildbot.python.org/all/builders/AMD64%20Debian%20PGO%203.x/builds/985/steps/test/logs/stdio

FAIL: test_alpn_protocols (test.test_ssl.ThreadedTests)

--

___
Python tracker 

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



[issue30886] multiprocessing.Queue.join_thread() does nothing if created and use in the same process

2017-07-10 Thread STINNER Victor

STINNER Victor added the comment:

I'm not sure that the bug is fully fixed, I still saw a warning on:
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/561/

This build tested the commit aa8d0a24694bea05061f1920ec3f944a9e6799d5 which is 
more recent than commit 3b69d911c57ef591ac0c0f47a66dbcad8337f33a.

test_handle_called_with_mp_queue (test.test_logging.QueueListenerTest) ...

Warning -- threading_cleanup() failed to cleanup -1 threads after 5 sec (count: 
0, dangling: 1)

ok

--

___
Python tracker 

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



[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2017-07-10 Thread STINNER Victor

STINNER Victor added the comment:

Backporting the fix ot Python 3.5 doesn't seem trivial, 3.5 lacks many changes.

--

___
Python tracker 

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



[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2017-07-10 Thread STINNER Victor

STINNER Victor added the comment:


New changeset fe6e686c27ce3a3ecdf03803cff7e230dee5530d by Victor Stinner in 
branch '3.6':
bpo-30891: Fix importlib _find_and_load() race condition (#2646) (#2651)
https://github.com/python/cpython/commit/fe6e686c27ce3a3ecdf03803cff7e230dee5530d


--

___
Python tracker 

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



[issue27099] IDLE: turn builting extensions into regular modules

2017-07-10 Thread Charles Wohlganger

Changes by Charles Wohlganger :


--
pull_requests: +2718

___
Python tracker 

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



[issue30892] _elementtree: assertion error if stdlib copy module is overriden

2017-07-10 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 7f567e7472dd6c3d066eec1c204301df251484b5 by Victor Stinner in 
branch '3.5':
bpo-30892: Fix _elementtree module initialization (#2647) (#2650)
https://github.com/python/cpython/commit/7f567e7472dd6c3d066eec1c204301df251484b5


--

___
Python tracker 

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



[issue30892] _elementtree: assertion error if stdlib copy module is overriden

2017-07-10 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 044e156426825acac8b6c6d1ce14d5b7bcb20bc9 by Victor Stinner in 
branch '3.6':
bpo-30892: Fix _elementtree module initialization (#2647) (#2649)
https://github.com/python/cpython/commit/044e156426825acac8b6c6d1ce14d5b7bcb20bc9


--

___
Python tracker 

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



Compiling Python 3.6.1 on macOS 10.12.5

2017-07-10 Thread Nigel Palmer
Hi

I am trying to compile Python 3.6.1  on macOS 10.12.5 with xcode 8.8.3 using 
the instructions at 
https://docs.python.org/devguide/setup.html#build-dependencies but I am getting 
the error

./python.exe -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
/bin/sh: line 1: 96973 Killed: 9   ./python.exe -E -S -m sysconfig 
--generate-posix-vars
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1

When I manually run that command using dbll I get:

lldb ./python.exe -- -E -S -m sysconfig --generate-posix-vars
(lldb) target create "./python.exe"
Current executable set to './python.exe' (x86_64).
(lldb) settings set -- target.run-args  "-E" "-S" "-m" "sysconfig" 
"--generate-posix-vars"
(lldb) r
Process 96978 launched: './python.exe' (x86_64)
Could not find platform dependent libraries 
Consider setting $PYTHONHOME to [:]
Process 96978 exited with status = 0 (0x)
(lldb)


The commands I ran to configure and build python are:
brew install openssl xz
CPPFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix 
openssl)/lib" ./configure --prefix=`pwd`/../build
make

Any ideas on what I am doing wrong?

Many Thanks
Nigel
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue29854] Segfault when readline history is more then 2 * history size

2017-07-10 Thread Berker Peksag

Berker Peksag added the comment:

Ok, I think we can finally close this one :) Thank you, everyone!

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



[issue30894] Python 3.6.1 String Literal Error Not Going to sys.stderr

2017-07-10 Thread George Gillan

New submission from George Gillan:

Python 3.6.1 String Literal Error Not Going to sys.stderr

Using Windows 7 and Python 3.6.1. Attempting to redirect sys.stderr to a file. 
The application will be deployed via .pyw file instead of .py so the GUI 
application runs without a console window.

Is this fixable or 'as-is' due to the nature of the way the interpreter scans 
the code?

The following code worked as intended.

#!/usr/bin/env python3.6 
errfile = 'test_err.txt'

import sys
errorlog = open(errfile, 'w')
sys.stderr = errorlog

1/0

The code above produced a file called test_err.txt with the following contents:

Traceback (most recent call last):
  File "C:\Users\George\Coding\Python\test\mintest.py", line 8, in 
1/0
ZeroDivisionError: division by zero


The following code did not work as intended.

#!/usr/bin/env python3.6 
errfile = 'test_err.txt'

import sys
errorlog = open(errfile, 'w')
sys.stderr = errorlog

print("test)

The code above did not create the file test_err.txt with the error going to the 
console window instead.


Copy-paste from the Windows console.

The successful test (first) showed nothing in the console window; the error was 
logged to the file as noted above. The unsuccessful test (second) did not 
create the file, instead the error was sent to the console.

C:\Users\George\Coding\Python\test>mintest

C:\Users\George\Coding\Python\test>mintest
  File "C:\Users\George\Coding\Python\test\mintest.py", line 8
print("test)
   ^
SyntaxError: EOL while scanning string literal

C:\Users\George\Coding\Python\test>

PS: This is my first bug/issue submission here. Please coach me as needed if I 
messed it up.

--
components: Interpreter Core
files: Python361_bug.txt
messages: 298083
nosy: George Gillan
priority: normal
severity: normal
status: open
title: Python 3.6.1 String Literal Error Not Going to sys.stderr
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file47001/Python361_bug.txt

___
Python tracker 

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



[issue29854] Segfault when readline history is more then 2 * history size

2017-07-10 Thread Berker Peksag

Berker Peksag added the comment:


New changeset bfa4fe4f39dd8b5ce1a0b649cedd36857859081a by Berker Peksag (Nir 
Soffer) in branch '2.7':
[2.7] bpo-29854: Fix segfault in call_readline() (GH-728)
https://github.com/python/cpython/commit/bfa4fe4f39dd8b5ce1a0b649cedd36857859081a


--

___
Python tracker 

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



[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2017-07-10 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2717

___
Python tracker 

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



[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2017-07-10 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 4f9a446f3fb42f800e73cd9414dd1eccb3ca4fa7 by Victor Stinner in 
branch 'master':
bpo-30891: Fix importlib _find_and_load() race condition (#2646)
https://github.com/python/cpython/commit/4f9a446f3fb42f800e73cd9414dd1eccb3ca4fa7


--

___
Python tracker 

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



[issue30892] _elementtree: assertion error if stdlib copy module is overriden

2017-07-10 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2716

___
Python tracker 

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



[issue30892] _elementtree: assertion error if stdlib copy module is overriden

2017-07-10 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2715

___
Python tracker 

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



[issue30892] _elementtree: assertion error if stdlib copy module is overriden

2017-07-10 Thread STINNER Victor

STINNER Victor added the comment:


New changeset b136f11f3a51f9282ae992bac68f170ca5563b55 by Victor Stinner in 
branch 'master':
bpo-30892: Fix _elementtree module initialization (#2647)
https://github.com/python/cpython/commit/b136f11f3a51f9282ae992bac68f170ca5563b55


--

___
Python tracker 

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



Re: What's with all of the Case Solution and Test Bank nonsense posts?

2017-07-10 Thread Pete Forman
Chris Angelico  writes:

> On Tue, Jul 11, 2017 at 4:12 AM, Michael Torrie  wrote:
>> On 07/10/2017 11:05 AM, Paul Rubin wrote:
>>> Michael Torrie  writes:
> can you get a newsreader to work with a https news service?
 No.  A newsreader works with NNTP protocol.
>>>
>>> Traditionally NNTP over SSL was done on port 563. Some feeds now
>>> also provide it on 443 to get around client-side firewall hassles.
>>
>> Yes but that's not via https.
>
> What's the meaning of "https news service" then? If it's netnews, it's
> NNTP, not HTTP. If it just happens to be a web app that carries
> information from a newsgroup, then that's not a news service, it's a
> web forum, and there's no such thing as a generic web forum API.

RFC 4642 (updated by RFC 8143) describes the use of TLS with NNTP. It
enhances the connection between NNTP client and server, primarily with
encryption but optionally with other benefits.

Of course it does nothing to improve the content of Usenet.

-- 
Pete Forman
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue20917] Idle: Enhance font change notification system

2017-07-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I believe I saw somewhere that the 'somehow' in the opening post is looping 
through the windows listed under the Window tab.

This issue was inspired by #17642, which allows hotkeys (^-, ^+) and wheel to 
change font size in editor window.  If the size change only applies to the 
current window, then only the CodeContext for that window should be notified.  
If CodeContext becomes a feature rather than extension, #27099, then code 
editor windows could know they have a code context and notify it when they get 
notified.  That will not help external extensions.

--

___
Python tracker 

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



[issue30851] IDLE: configdialog -- fix tkinter Variables

2017-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
dependencies:  -IDLE: configdialog - add tests for ConfigDialog GUI.
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue30893] Expose importlib._bootstrap._ModuleLockManager in importlib.machinery

2017-07-10 Thread Brett Cannon

Changes by Brett Cannon :


--
nosy: +eric.snow, ncoghlan

___
Python tracker 

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



[issue30851] IDLE: configdialog -- fix tkinter Variables

2017-07-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 8e3f73e5499a5bc575a5e7ad4ee0f16b1aaae829 by terryjreedy in branch 
'3.6':
[3.6] bpo-30851: IDLE: Remove unused tk variables in configdialog. (GH-2626) 
(#2648)
https://github.com/python/cpython/commit/8e3f73e5499a5bc575a5e7ad4ee0f16b1aaae829


--

___
Python tracker 

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



[issue30893] Expose importlib._bootstrap._ModuleLockManager in importlib.machinery

2017-07-10 Thread Brett Cannon

Changes by Brett Cannon :


--
dependencies: +importlib: _find_and_load() race condition on sys.modules[name] 
check

___
Python tracker 

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



[issue30893] Expose importlib._bootstrap._ModuleLockManager in importlib.machinery

2017-07-10 Thread Brett Cannon

New submission from Brett Cannon:

Based on all the work currently going into fixing the locking situation for 
imports, it's probably a good idea to expose it publicly so others can use it.

--
components: Library (Lib)
messages: 298077
nosy: brett.cannon
priority: normal
severity: normal
status: open
title: Expose importlib._bootstrap._ModuleLockManager in importlib.machinery
type: enhancement

___
Python tracker 

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



Re: What's with all of the Case Solution and Test Bank nonsense posts?

2017-07-10 Thread Chris Angelico
On Tue, Jul 11, 2017 at 4:12 AM, Michael Torrie  wrote:
> On 07/10/2017 11:05 AM, Paul Rubin wrote:
>> Michael Torrie  writes:
 can you get a newsreader to work with a https news service?
>>> No.  A newsreader works with NNTP protocol.
>>
>> Traditionally NNTP over SSL was done on port 563.  Some feeds now also
>> provide it on 443 to get around client-side firewall hassles.
>
> Yes but that's not via https.

What's the meaning of "https news service" then? If it's netnews, it's
NNTP, not HTTP. If it just happens to be a web app that carries
information from a newsgroup, then that's not a news service, it's a
web forum, and there's no such thing as a generic web forum API.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

It isn't my. It was added by Guilherme in r69050.

I'll take a look at code tomorrow.

--

___
Python tracker 

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



[issue30780] IDLE: configdialog - add tests for ConfigDialog GUI.

2017-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
dependencies: +IDLE: configdialog/fonts: change font when select by key up/down

___
Python tracker 

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



Re: What's with all of the Case Solution and Test Bank nonsense posts?

2017-07-10 Thread Michael Torrie
On 07/10/2017 11:05 AM, Paul Rubin wrote:
> Michael Torrie  writes:
>>> can you get a newsreader to work with a https news service?
>> No.  A newsreader works with NNTP protocol.
> 
> Traditionally NNTP over SSL was done on port 563.  Some feeds now also
> provide it on 443 to get around client-side firewall hassles.

Yes but that's not via https.

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Serhiy, I tried tkinter.test.support.simulate_mouse_click to test this patch 
but it seems not to work.  Code at end of previous message. Any idea on how to 
fix?

--
nosy: +serhiy.storchaka
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



[issue30851] IDLE: configdialog -- fix tkinter Variables

2017-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2714

___
Python tracker 

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



[issue30851] IDLE: configdialog -- fix tkinter Variables

2017-07-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset aa8d0a24694bea05061f1920ec3f944a9e6799d5 by terryjreedy 
(csabella) in branch 'master':
bpo-30851: IDLE: Remove unused tk variables in configdialog. (#2626)
https://github.com/python/cpython/commit/aa8d0a24694bea05061f1920ec3f944a9e6799d5


--

___
Python tracker 

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



Re: What's with all of the Case Solution and Test Bank nonsense posts?

2017-07-10 Thread Paul Rubin
Michael Torrie  writes:
>> can you get a newsreader to work with a https news service?
> No.  A newsreader works with NNTP protocol.

Traditionally NNTP over SSL was done on port 563.  Some feeds now also
provide it on 443 to get around client-side firewall hassles.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What's with all of the Case Solution and Test Bank nonsense posts?

2017-07-10 Thread pyotr filipivich
timetowal...@gmail.com on Sun, 9 Jul 2017 16:39:44 -0700 (PDT) typed
in comp.lang.python  the following:
>I use https://groups.google.com/forum/#!forum/comp.lang.python to look over 
>message posts.
>
>What's with all of the Case Solution and Test Bank nonsense posts?
>Is is possible to have these posts filtered out?

Kill files are your friend.

marking all from 
author: allcasesoluti...@gmail.com
"Read" works for me.  you could delete them.

Unfortunately, how to get Google Groups to behave properly is
another story entire.
-- 
pyotr filipivich
Next month's Panel: Graft - Boon or blessing?
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue30892] _elementtree: assertion error if stdlib copy module is overriden

2017-07-10 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2713

___
Python tracker 

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



[issue30892] _elementtree: assertion error if stdlib copy module is overriden

2017-07-10 Thread STINNER Victor

New submission from STINNER Victor:

The _elementtree fails with an assertion error if the stdlib copy module is 
overriden by the user.

haypo@selma$ mkdir copy/
haypo@selma$ touch copy/__init__.py
haypo@selma$ ./python -c 'import _elementtree'
python: Objects/abstract.c:153: PyObject_GetItem: Assertion `(item != NULL) ^ 
(PyErr_Occurred() != NULL)' failed.
Aborted (core dumped)

--
messages: 298073
nosy: haypo
priority: normal
severity: normal
status: open
title: _elementtree: assertion error if stdlib copy module is overriden
versions: Python 3.7

___
Python tracker 

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



[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-07-10 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
stage:  -> patch review

___
Python tracker 

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



[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2017-07-10 Thread STINNER Victor

Changes by STINNER Victor :


--
title: Sometimes, test_concurrency() of test_import fails with AttributeError: 
module 'package' has no attribute 'submodule' on AMD64 Windows8.1 Refleaks 3.6 
-> importlib: _find_and_load() race condition on sys.modules[name] check
versions: +Python 3.5, Python 3.6

___
Python tracker 

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



Re: What's with all of the Case Solution and Test Bank nonsense posts?

2017-07-10 Thread Jon Ribbens
On 2017-07-10, John Black  wrote:
> In article , 
> jon+use...@unequivocal.eu says...
>> On 2017-07-10, John Black  wrote:
>> > While you're at it, throw these rules in and the group will appear very 
>> > clean and on topic.
>> >
>> > Subject contains "PEDOFILO"
>> > Or
>> > Subject contains "MAI"
>> > Or
>> > Subject contains "SEGRETO"
>> [snip >100 lines of rules]
>> 
>> Or just "subject does not contain any lower-case letters".
>
> That is probably ok, but I was worried some legit posts would get caught 
> in that.

I don't think that rule would block too many reasonable posts. On the
other hand, I also block everything from Google Groups, and, as of
recently, everything from netfront.net, so I don't actually worry too
much about false positives in this group, given it contains so much
trash.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Test 0 and false since false is 0

2017-07-10 Thread Grant Edwards
On 2017-07-09, Paul D. DeRocco  wrote:
>> From: Sayth Renshaw
>> 
>> I have been reading this solution 
>> > >>> after = sorted(before, key=lambda x: x == 0 and type(x) == int)
>> 
>> it is really good, however I don't understand it enough to 
>> reimplement something like that myself yet.
>> 
>> Though I can that lambda tests for 0 that is equal to an int 
>> why does sorted put them to the end?
>
> Because the expression "x == 0 and type(x) == int" has a value of either
> False or True, and it sorts all the False values before the True values,
> leaving the order within those sets unchanged.
>
> That said, "x is 0" is even simpler.

And wrong.

Two equivalent integer objects _might_ be the same object, but that's
not guaranteed.  It's an _implementation_detail_ of CPython that small
integers are cached:

  >>> x =  0
  >>> x is 0
  True

But larger integers aren't:

  >>> a =  123412341234
  >>> a is 123412341234
  False

The first example could have returned False and been correct.

-- 
Grant Edwards   grant.b.edwardsYow! TONY RANDALL!  Is YOUR
  at   life a PATIO of FUN??
  gmail.com

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue30891] Sometimes, test_concurrency() of test_import fails with AttributeError: module 'package' has no attribute 'submodule' on AMD64 Windows8.1 Refleaks 3.6

2017-07-10 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2712

___
Python tracker 

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



ezdxf type of spline

2017-07-10 Thread amka1791
Hi,

Can someone says please to me which kind are the splines of the ezdxf python 
module ? Is it bezier curves ?

Thanks,

dylan

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue30891] Sometimes, test_concurrency() of test_import fails with AttributeError: module 'package' has no attribute 'submodule' on AMD64 Windows8.1 Refleaks 3.6

2017-07-10 Thread Nick Coghlan

Nick Coghlan added the comment:

I'm about to head to bed so I'll get back to this discussion tomorrow, but in 
the meantime: Victor, maybe it would make sense to reformulate your reproducer 
as a monkeypatch for _find_and_load_unlocked() that injects the 10 ms sleep 
from the test case if it finds _frozen_importlib in sys.modules?

That is, temporarily replacing it with something like:

orig_find_and_load_unlocked = _frozen_importlib._find_and_load_unlocked
def _slow_find_and_load_unlocked(name, import_):
time.sleep(0.010)
return orig_find_and_load_unlocked(name, import_)

That way, we'd hopefully be able to reproduce the failure independently of the 
slower buildbot.

--

___
Python tracker 

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



Re: What's with all of the Case Solution and Test Bank nonsense posts?

2017-07-10 Thread John Black
In article , 
jon+use...@unequivocal.eu says...
> 
> On 2017-07-10, John Black  wrote:
> > While you're at it, throw these rules in and the group will appear very 
> > clean and on topic.
> >
> > Subject contains "PEDOFILO"
> > Or
> > Subject contains "MAI"
> > Or
> > Subject contains "SEGRETO"
> [snip >100 lines of rules]
> 
> Or just "subject does not contain any lower-case letters".

That is probably ok, but I was worried some legit posts would get caught 
in that.

John Black
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue30891] Sometimes, test_concurrency() of test_import fails with AttributeError: module 'package' has no attribute 'submodule' on AMD64 Windows8.1 Refleaks 3.6

2017-07-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Victor tested test_concurrency on 3.5, and it is failed on slow Windows VM. 
Therefore the bug exists on 3.5 and is not related to recent changes.

--

___
Python tracker 

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



[issue30891] Sometimes, test_concurrency() of test_import fails with AttributeError: module 'package' has no attribute 'submodule' on AMD64 Windows8.1 Refleaks 3.6

2017-07-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2711

___
Python tracker 

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



[issue30890] Comment error in Korean language

2017-07-10 Thread DelTos

Changes by DelTos :


--
versions: +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



[issue30891] Sometimes, test_concurrency() of test_import fails with AttributeError: module 'package' has no attribute 'submodule' on AMD64 Windows8.1 Refleaks 3.6

2017-07-10 Thread STINNER Victor

STINNER Victor added the comment:

Using attached importlib_sleep.patch, you can *see* the race condition with:

diff --git a/Lib/test/test_import/data/package/__init__.py 
b/Lib/test/test_import/data/package/__init__.py
index a4f2bc3..f07eb11 100644
--- a/Lib/test/test_import/data/package/__init__.py
+++ b/Lib/test/test_import/data/package/__init__.py
@@ -1,2 +1,3 @@
 import package.submodule
+print("package: id=%#x" % id(package))
 package.submodule


Example of output:
---
haypo@selma$ ./python -m test -m test_concurrency -v test_import
package: id=0x7fb497400d58
package: id=0x7fb49744d458
test test_import failed -- (...)
---

Lib/test/test_import/data/package/__init__.py is run twice instead of being run 
once. A lock is missing somewhere on the package module.

--

___
Python tracker 

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



  1   2   >