Re: Unable to find newly installed Python 3.7.1

2018-11-23 Thread Peter via Python-list
On 23/11/2018 10:51 PM, Edward Popko wrote: Snake people: I'm a Java person and thought to try Python for Windows. I installed Python 3.7.1 (64-bit) hoping for an IDE, documentation and even a sample or two. The python-3.7.1-amd64.exe unpacks and installs fine. Only problem is I cannot find it.

Re: Re: Generators, generator expressions, and loops

2018-11-16 Thread Peter via Python-list
Lovely, succinct answers. On 17/11/2018 2:44 AM, Ian Kelly wrote: On Fri, Nov 16, 2018 at 7:57 AM Steve Keller wrote: I have looked at generators, generator expressions, and iterators and I try to get more familiar with these. 1. How would I loop over all (with no upper bound) integers or al

Re: AES Encryption/Decryption

2018-11-02 Thread Peter via Python-list
On 3/11/2018 1:42 AM, Jeff M wrote: Python newbie here, looking for code samples for encrypting and decrypting functions, using AES. See lots of stuff on the interwebs, but lots of comments back an forth about bugs, or implemented incorrect, etc... I need to encrypt some strings that will be

Re: Accessing clipboard through software built on Python

2018-10-28 Thread Peter via Python-list
On 28/10/2018 12:17 AM, Musatov wrote: I am wondering if Python could be used to write a program that allows: 1. Highlight some text 2. Ctl+HOTKEY1 stores the string of text somewhere as COPIEDTEXT1 3. Highlight another string of text 4. Ctl+HOTKEY1 stores another string of text somewhere as C

Re: Re: PEP 394

2018-10-20 Thread Peter via Python-list
I'd imagine the PEP would stay as active, but changed so that: python2 -> always refers to python v2 python3 -> always refers to python v3 python -> which currently refers to python v2 will change to point to python v3 I don't know when the core team would be considering this. The PEP was las

Re: Re: Python indentation (3 spaces)

2018-10-07 Thread Peter via Python-list
It's also useful to be aware of the standard tabnanny module for "Detection of ambiguous indentation". Very useful for highlighting problems with tabs and spaces. Peter On 8/10/2018 2:32 AM, Terry Reedy wrote: On 10/5/2018 11:30 PM, Ryan Johnson wrote: The point that OP is trying to make is

Re: Debug script under pdb, how to avoid a bunch of errors caused by the exit()?

2018-09-06 Thread Peter via Python-list
I'm on 3.7.0 on Win 10, and get a different result. No traceback. Perhaps it's a bug in 3.4 that was fixed subsequently. C:\test> py -m pdb bugInPDB.py > c:\test\buginpdb.py(1)() -> password = 'bad' (Pdb) tbreak 3 Breakpoint 1 at c:\test\buginpdb.py:3 (Pdb) cont Deleted breakpoint 1 at c:\test\b

Re: Re: CURSES WINDOWS

2018-09-05 Thread Peter via Python-list
I get this: C:\Users\Me> py Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Inte l)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import curses Traceback (most recent call last):   File "", line 1, in   File "C:\Program Files

Unexpected behaviour with DeprecationWarning, Python 3.7 and escape codes

2018-08-23 Thread Peter via Python-list
I understand that Python 3.7 now issues DeprecationWarning for code entered in the interactive shell and also for single-module programs. I see this behaviour with: C:\wrk> python python 3.7.0 (v3.7.0:... import imp __main__:1: DeprecationWarning: the imp module is deprecated... But if I use

Re: Re: Problem with StreamReaderWriter on 3.6.3? SOLVED

2017-10-20 Thread Peter via Python-list
with the buffering and therefore the order of the output of stderr vs stdout. Thanks again. Peter On 20/10/2017 10:19 AM, MRAB wrote: On 2017-10-19 22:46, Peter via Python-list wrote: I came across this code in Google cpplint.py, a Python script for linting C++ code. I was getting funny resu

Problem with StreamReaderWriter on 3.6.3?

2017-10-19 Thread Peter via Python-list
I came across this code in Google cpplint.py, a Python script for linting C++ code. I was getting funny results with Python 3.6.3, but it worked fine under 2.7.13 I've tracked the problem to an issue with StreamReaderWriter; the traceback and error never shows under 3. The _cause_ of the error