[issue32786] Didnot work strftime() when hangeul in format sting

2018-02-07 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: This is not an Argument Clinic problem. -- components: +Library (Lib) -Argument Clinic ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[RELEASED] Python 3.4.8 and Python 3.5.5 are now available

2018-02-05 Thread Larry Hastings
On behalf of the Python development community, I'm happy to announce the availability of Python 3.4.8 and Python 3.5.5. Both Python 3.4 and 3.5 are in "security fixes only" mode.  Both versions only accept security fixes, not conventional bug fixes, and both releases are source-only. You

[RELEASED] Python 3.4.8 and Python 3.5.5 are now available

2018-02-04 Thread Larry Hastings
On behalf of the Python development community, I'm happy to announce the availability of Python 3.4.8 and Python 3.5.5. Both Python 3.4 and 3.5 are in "security fixes only" mode.  Both versions only accept security fixes, not conventional bug fixes, and both releases are source-only. You

[issue32620] [3.5] Travis CI fails on Python 3.5 with "pyenv: version `3.5' not installed"

2018-02-04 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: I wanted it in 3.4 too, it was breaking CI. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: +Python 3.4 ___ P

[issue32620] [3.5] Travis CI fails on Python 3.5 with "pyenv: version `3.5' not installed"

2018-02-04 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: New changeset 71b94e30b1d63c789908482b3b808cc613e57267 by larryhastings in branch '3.4': [3.4] [3.5] bpo-32620: Remove failing pyenv call from CI config (GH-5274) (#5533) https://github.com/python/cpython/

[issue32620] [3.5] Travis CI fails on Python 3.5 with "pyenv: version `3.5' not installed"

2018-02-04 Thread Larry Hastings
Change by Larry Hastings <la...@hastings.org>: -- pull_requests: +5360 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32620> ___

[issue32072] Issues with binary plists

2018-01-31 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: Thank you for the fix! I just wish I knew what plists were ;-) -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

Re: Where has the practice of sending screen shots as source code come from?

2018-01-28 Thread Larry Martell
On Sun, Jan 28, 2018 at 10:04 AM, Steven D'Aprano wrote: > I'm seeing this annoying practice more and more often. Even for trivial > pieces of text, a few lines, people post screenshots instead of copying > the code. > > Where has this meme come from? It

[issue32697] Guarantee that Python preserves the order of kwonly parameters

2018-01-28 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: Thanks for the quick turnaround reviews! Today we've all collectively made Python a better programming language. -- resolution: -> fixed stage: patch review -> resolved status: op

[issue32697] Guarantee that Python preserves the order of kwonly parameters

2018-01-28 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: New changeset f36ba12809d5db1b76464d8f1f04dad8d685ec78 by larryhastings in branch 'master': bpo-32697: Definition order of kwonly params is now guaranteed preserved. (#5391) https://github.com/python/cpython/

[issue32697] Guarantee that Python preserves the order of kwonly parameters

2018-01-28 Thread Larry Hastings
Change by Larry Hastings <la...@hastings.org>: -- keywords: +patch pull_requests: +5226 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32697] Guarantee that Python preserves the order of kwonly parameters

2018-01-28 Thread Larry Hastings
New submission from Larry Hastings <la...@hastings.org>: Following on from the "Can Python guarantee the order of keyword-only parameters?", here's a patch to enforce that guarantee. It adds documentation that makes the guarantee, and adds tests that make at least a

Re: error from Popen only when run from cron

2018-01-27 Thread Larry Martell
On Sat, Jan 27, 2018 at 11:09 AM, Chris Angelico <ros...@gmail.com> wrote: > On Sun, Jan 28, 2018 at 2:58 AM, Larry Martell <larry.mart...@gmail.com> > wrote: >> I have a script that does this: >> >> subprocess.Popen(['service', 'some_service', 'status'

error from Popen only when run from cron

2018-01-27 Thread Larry Martell
I have a script that does this: subprocess.Popen(['service', 'some_service', 'status'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) When I run it from the command line it works fine. When I run it from cron I get: subprocess.Popen(['service', 'some_service', 'status'],

[issue31000] Test failure in resource module on ZFS

2018-01-23 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: I'm using ZFS on 64-bit Linux. I did see a Github issue / commit that claims to address this. I'm using a reasonably recent ZoL build, that should have that commit, and I still see the behavior. I actually experimented with it a

[RELEASED] Python 3.4.8rc1 and Python 3.5.5rc1 are now available

2018-01-23 Thread Larry Hastings
On behalf of the Python development community, I'm pleased to announce the availability of Python 3.4.8rc1 and Python 3.5.5rc1. Both Python 3.4 and 3.5 are in "security fixes only" mode. Both versions only accept security fixes, not conventional bug fixes, and both releases are source-only.

[RELEASED] Python 3.4.8rc1 and Python 3.5.5rc1 are now available

2018-01-23 Thread Larry Hastings
On behalf of the Python development community, I'm pleased to announce the availability of Python 3.4.8rc1 and Python 3.5.5rc1. Both Python 3.4 and 3.5 are in "security fixes only" mode. Both versions only accept security fixes, not conventional bug fixes, and both releases are source-only.

[issue32072] Issues with binary plists

2018-01-23 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: New changeset 43f014d3f12468edf61046f0612edc7660042fd5 by larryhastings (Serhiy Storchaka) in branch '3.5': [3.5] bpo-32072: Fix issues with binary plists. (GH-4455) (#4656) https://github.com/python/cpython/

[issue32551] Zipfile & directory execution in 3.5.4 also adds the parent directory to sys.path

2018-01-23 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: New changeset 891c91d8d38848377a9f475242507510873eb9c3 by larryhastings (Nick Coghlan) in branch '3.5': [3.5] bpo-32551: Consistently configure sys.path[0] (#5197) https://github.com/python/cpython/

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2018-01-23 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: New changeset 891c91d8d38848377a9f475242507510873eb9c3 by larryhastings (Nick Coghlan) in branch '3.5': [3.5] bpo-32551: Consistently configure sys.path[0] (#5197) https://github.com/python/cpython/

[issue32563] -Werror=declaration-after-statement expat build failure on Python 3.5

2018-01-23 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: New changeset 57fa0ab8911a70d91e5b60b8dc91f1085442a9e7 by larryhastings (Nick Coghlan) in branch '3.5': [3.5] bpo-32563: Get expat to compile under C89 (#5201) https://github.com/python/cpython/

[issue32620] [3.5] Travis CI fails on Python 3.5 with "pyenv: version `3.5' not installed"

2018-01-23 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: New changeset 4a4c2743133e195cc3725b78a895d85d69e50089 by larryhastings (Nick Coghlan) in branch '3.5': [3.5] bpo-32620: Remove failing pyenv call from CI config (#5274) https://github.com/python/cpython/

[issue32266] test_pathlib fails if current path has junctions

2018-01-22 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: Python 3.4 and 3.5 are in "security fixes only" mode. This is a minor bugfix, so it's too late to accept it into 3.4 and 3.5. ------ nosy: +larry versions: -Python 3.4, Python 3.5 __

[issue32072] Issues with binary plists

2018-01-22 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: New changeset c59731d92dc73111d224876f1caa064097aad786 by larryhastings (Serhiy Storchaka) in branch '3.4': [3.4] bpo-32072: Fix issues with binary plists. (GH-4455) (#4658) https://github.com/python/cpython/

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-01-22 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: So if I understand correctly: the default value of the "repr" parameter is True. Decision matrix: does dataclass insert a __repr__ into the class? +-- row: argument passed in to decorator's repr parameter |

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-01-21 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: Do all the parameters to the decorator take a default value of "None", so that you can differentiate between explicit True, explicit False, and did-not-specify? Is this the complete list of these dunder-method-ge

[issue32551] Zipfile & directory execution in 3.5.4 also adds the parent directory to sys.path

2018-01-19 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: If you're certain it isn't a security bug, then please downgrade it from release blocker. I might permit a fix for it in 3.5.5 anyway, depending on how small it is, because nobody likes regre

Re: documentation on read.encode

2018-01-18 Thread Larry Martell
On Thu, Jan 18, 2018 at 12:47 AM, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote: > On Wed, 17 Jan 2018 16:54:37 -0500, Larry Martell wrote: > >> The code that was receiving the >> PNG was not reading and writing the file as binary. Strangely

Re: documentation on read.encode

2018-01-17 Thread Larry Martell
On Tue, Jan 16, 2018 at 3:58 PM, MRAB <pyt...@mrabarnett.plus.com> wrote: > On 2018-01-16 19:52, Larry Martell wrote: >> >> On Tue, Jan 16, 2018 at 2:35 PM, Gene Heskett <ghesk...@shentel.net> >> wrote: >>> >>> On Tuesday 16 January 2018 14:19:38

Re: documentation on read.encode

2018-01-16 Thread Larry Martell
On Tue, Jan 16, 2018 at 3:17 PM, Ned Batchelder <n...@nedbatchelder.com> wrote: > On 1/16/18 2:19 PM, Larry Martell wrote: >> >> On Tue, Jan 16, 2018 at 12:00 PM, Larry Martell <larry.mart...@gmail.com> >> wrote: >>> >>> Looking for 2.7 docs

Re: documentation on read.encode

2018-01-16 Thread Larry Martell
On Tue, Jan 16, 2018 at 2:35 PM, Gene Heskett <ghesk...@shentel.net> wrote: > On Tuesday 16 January 2018 14:19:38 Larry Martell wrote: > >> On Tue, Jan 16, 2018 at 12:00 PM, Larry Martell > <larry.mart...@gmail.com> wrote: >> > Looking for 2.7 docs on re

Re: documentation on read.encode

2018-01-16 Thread Larry Martell
On Tue, Jan 16, 2018 at 12:00 PM, Larry Martell <larry.mart...@gmail.com> wrote: > Looking for 2.7 docs on read.encode - googling did not turn up anything. > > Specifically, looking for the supported options for base64, and how to > specify them, e.g. Base64.NO_WRAP So I just re

documentation on read.encode

2018-01-16 Thread Larry Martell
Looking for 2.7 docs on read.encode - googling did not turn up anything. Specifically, looking for the supported options for base64, and how to specify them, e.g. Base64.NO_WRAP -- https://mail.python.org/mailman/listinfo/python-list

[issue32551] 3.5.4 has a regression that was fixed in 3.6.1rc1

2018-01-14 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: As a reminder: I'm currently scheduled to tag Python 3.5.5rc1 on January 21st, 2018, aka about six days from now. -- ___ Python tracker <rep...@bugs.python.org> <https://

Re: Simple graphic library for beginners

2018-01-10 Thread Larry Martell
On Wed, Jan 10, 2018 at 7:42 AM Jan Erik Moström wrote: > I'm looking for a really easy to use graphic library. The target users > are teachers who have never programmed before and is taking a first (and > possible last) programming course. > > I would like to have the

Re: has sourceforge exposed the dirty little secret ?

2018-01-05 Thread Larry Martell
On Fri, Jan 5, 2018 at 11:27 AM, Kim of K. wrote: > > "Background > > We feel that the world still produces way too much software that is > frankly substandard. The reasons for this are pretty simple: software > producers do not pay enough attention [...]" > > > quote from

[issue32455] PyCompile_OpcodeStackEffect() and dis.stack_effect() are not particularly useful

2018-01-03 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: > 1. This will actually simplify the code for calculating the stack size. Simplify whose code, the caller or the callee? It seems like it's simplifying the life of the callee (PyCompile_OpcodeStackEffectEx) at the expense of

[issue32455] PyCompile_OpcodeStackEffect() and dis.stack_effect() are not particularly useful

2018-01-03 Thread Larry Hastings
Change by Larry Hastings <la...@hastings.org>: -- nosy: +vstinner ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32455> ___ _

[issue32455] PyCompile_OpcodeStackEffect() and dis.stack_effect() are not particularly useful

2018-01-03 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: The rationale: without this information, it is impossible for anybody else to write a bytecode compiler / assembler, because when you create a code object you have to specify its stack depth. I used this information for my &q

Re: Python Learning

2017-12-21 Thread Larry Martell
On Mon, Dec 18, 2017 at 3:22 PM, Marko Rauhamaa <ma...@pacujo.net> wrote: > > Larry Martell <larry.mart...@gmail.com>: > > > On Mon, Dec 18, 2017 at 11:33 AM, Marko Rauhamaa <ma...@pacujo.net> wrote: > >> However, one great way to stand out is a portfol

[issue32397] textwrap output may change if you wrap a paragraph twice

2017-12-21 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: FWIW, the test program produces this output: -- original: ' . ' wrapped: ' .\n' wrapped twice: ' . ' Traceback

[issue32397] textwrap output may change if you wrap a paragraph twice

2017-12-21 Thread Larry Hastings
New submission from Larry Hastings <la...@hastings.org>: If you word-wrap a paragraph twice with textwrap, you may get different results. Specifically, you *will* get different results when: * the original text has a line that is too long by one character, * the last word on th

Re: Python Learning

2017-12-18 Thread Larry Martell
On Mon, Dec 18, 2017 at 4:52 PM, Gene Heskett <ghesk...@shentel.net> wrote: > On Monday 18 December 2017 16:05:10 Rob Gaddi wrote: > >> On 12/18/2017 08:45 AM, Larry Martell wrote: >> > On Mon, Dec 18, 2017 at 11:33 AM, Marko Rauhamaa <ma...@pacujo.net> >

Re: Python Learning

2017-12-18 Thread Larry Martell
On Mon, Dec 18, 2017 at 4:05 PM, Rob Gaddi <rgaddi@highlandtechnology.invalid> wrote: > On 12/18/2017 08:45 AM, Larry Martell wrote: >> >> On Mon, Dec 18, 2017 at 11:33 AM, Marko Rauhamaa <ma...@pacujo.net> wrote: >>> >>> However, one great way t

Re: Python Learning

2017-12-18 Thread Larry Martell
On Mon, Dec 18, 2017 at 12:05 PM, Chris Angelico <ros...@gmail.com> wrote: > On Tue, Dec 19, 2017 at 3:45 AM, Larry Martell <larry.mart...@gmail.com> > wrote: >> On Mon, Dec 18, 2017 at 11:33 AM, Marko Rauhamaa <ma...@pacujo.net> wrote: >>> However, on

Re: Python Learning

2017-12-18 Thread Larry Martell
On Mon, Dec 18, 2017 at 11:33 AM, Marko Rauhamaa wrote: > However, one great way to stand out is a portfolio of GitHub projects. > Several people have gotten an offer largely based on those (after they > aced the technical interviews). For example, we just hired someone who >

Re: Python Learning

2017-12-18 Thread Larry Martell
On Mon, Dec 18, 2017 at 9:09 AM, Rhodri James wrote: > On 18/12/17 13:28, Marko Rauhamaa wrote: >> >> However, I have been doing quite a bit of hiring, quite successfully, I >> might add. I am not prejudiced one way or another. Your résumé doesn't >> count. Your education

Re: Python Learning

2017-12-17 Thread Larry Martell
On Sun, Dec 17, 2017 at 4:18 PM, Chris Angelico wrote: > On Mon, Dec 18, 2017 at 6:51 AM, Bill wrote: >> The point is that it takes a certain amount of what is referred to as >> "mathematical maturity" (not mathematical knowledge) to digest a book >>

Re: scipy

2017-12-11 Thread Larry Martell
On Sat, Dec 9, 2017 at 11:43 AM, Thomas Jollans <t...@tjol.eu> wrote: > > On 08/12/17 23:57, Larry Martell wrote: > > Trying to install scipy on ubuntu-trusty-64 running Python 2.7.6. > > I STRONGLY recommend moving to Python 3 if you can. The scientific > python eco

[issue32245] OSError: raw write() returned invalid length on latest Win 10 Consoles

2017-12-09 Thread Larry Hastings
Change by Larry Hastings <la...@hastings.org>: -- nosy: -larry ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32245> ___ __

[issue32245] OSError: raw write() returned invalid length on latest Win 10 Consoles

2017-12-09 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: To confirm what Steve said: we no longer accept bug fixes for Python 3.5 (or 3.4). We only accept security fixes for 3.5 (and 3.4). -- ___ Python tracker <rep...@bugs.python.or

scipy

2017-12-08 Thread Larry Martell
Trying to install scipy on ubuntu-trusty-64 running Python 2.7.6. It's failing with: $ sudo pip install scipy Downloading/unpacking scipy Downloading scipy-1.0.0.tar.gz (15.2MB): 15.2MB downloaded Running setup.py (path:/tmp/pip_build_root/scipy/setup.py) egg_info for package scipy

[issue29572] Upgrade installers to OpenSSL 1.0.2k

2017-12-08 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: New changeset 092db6c3cb049052fbfca15efc85ad68093676e7 by larryhastings (Victor Stinner) in branch '3.4': bpo-29572: Update Windows build to OpenSSL 1.0.2k (GH-443) (#3445) https://github.com/python/cpython/

[issue30657] [security] CVE-2017-1000158: Unsafe arithmetic in PyString_DecodeEscape

2017-12-08 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: Merged into 3.4 and 3.5. Thanks for the patches! Since I see 2.7 has already had the fix committed, and these are the only three versions affected, I'm marking as closed / resolved / fixed. -- resolution: -> fixed sta

[issue30657] [security] CVE-2017-1000158: Unsafe arithmetic in PyString_DecodeEscape

2017-12-08 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: New changeset 6c004b40f9d51872d848981ef1a18bb08c2dfc42 by larryhastings (Miro Hrončok) in branch '3.4': bpo-30657: Fix CVE-2017-1000158 (#4758) https://github.com/python/cpython/commit/6c004b40f9d51872d848981ef1a18bb08c

[issue30657] [security] CVE-2017-1000158: Unsafe arithmetic in PyString_DecodeEscape

2017-12-08 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: New changeset fd8614c5c5466a14a945db5b059c10c0fb8f76d9 by larryhastings (Miro Hrončok) in branch '3.5': bpo-30657: Fix CVE-2017-1000158 (#4664) https://github.com/python/cpython/commit/fd8614c5c5466a14a945db5b059c10c0fb

Re: SystemError: error return without exception set

2017-12-07 Thread Larry Martell
On Thu, Dec 7, 2017 at 10:36 AM, Natalie Leung wrote: > I am trying to use Python to communicate and send commands in MSC Marc. A > part of the code looks something like this: > > from py_mentat import* > > directory = '[specified the file path to my model]' >

Re: zlib OverflowError: 'size does not fit in an int'

2017-12-04 Thread Larry Martell
On Mon, Dec 4, 2017 at 7:36 PM, Thomas Jollans <t...@tjol.eu> wrote: > On 05/12/17 01:21, Larry Martell wrote: >> On Mon, Dec 4, 2017 at 7:15 PM, Chris Angelico <ros...@gmail.com> wrote: >>> On Tue, Dec 5, 2017 at 10:46 AM, Larry Martell <larry.mart...@gmail.co

Re: zlib OverflowError: 'size does not fit in an int'

2017-12-04 Thread Larry Martell
On Mon, Dec 4, 2017 at 7:15 PM, Chris Angelico <ros...@gmail.com> wrote: > On Tue, Dec 5, 2017 at 10:46 AM, Larry Martell <larry.mart...@gmail.com> > wrote: >> Trying to zip a large file is failing with OverflowError: 'size does >> not fit in an int'. Goog

zlib OverflowError: 'size does not fit in an int'

2017-12-04 Thread Larry Martell
Trying to zip a large file is failing with OverflowError: 'size does not fit in an int'. Googling I found this: https://bugs.python.org/issue23306 and this: https://hg.python.org/cpython/rev/2192edcfea02 which seems to make me think this was fixed this was fixed on Jul 23 2016. I am running

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

2017-11-29 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: New changeset 8b11e8de7aedacfbbcc8c780f3c4097396f1d1a3 by larryhastings (Victor Stinner) in branch '3.4': [3.4] bpo-31170: Fix inclusion of expat in Windows build projects (#3785) https://github.com/python/cpython/

[issue30657] [security] CVE-2017-1000158: Unsafe arithmetic in PyString_DecodeEscape

2017-11-29 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: Resetting to "needs patch", because we still need PRs for 3.4 and 3.5 (please!). -- stage: resolved -> needs patch ___ Python tracker <rep...@bugs.python.org> <https:

[issue30657] Unsafe arithmetic in PyString_DecodeEscape

2017-11-23 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: I would welcome a backport of this for 3.5 and even 3.4 (if it's vulnerable, which it probably is). -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32016] Python 3.6.3 venv FAILURE

2017-11-13 Thread Larry Chen
New submission from Larry Chen <larry.c...@microsemi.com>: Upgraded from 3.6.1 to 3.6.3; but got an error when trying to create my virtual environment. [larrchen@rslab239 Larry]$ /opt/python3.6.3/bin/python3.6 -m venv /u/larrchen/work2/SAN/Users/Larry/rslab239_myENV_363 Error: Command

[issue31626] Writing in freed memory in _PyMem_DebugRawRealloc() after shrinking a memory block

2017-10-31 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: > Most, if not all, calls to _PyMem_DebugRawRealloc() are protected by > the GIL. If there is a single thread using the memory block, > I think that it's perfectly fine to write after it's deallocated. I don't quite follow

[issue27172] Undeprecate inspect.getfullargspec()

2017-10-09 Thread Larry Hastings
Larry Hastings <la...@hastings.org> added the comment: Wait, what is all this nonsense? inspect.getfullargspec is Python 3 only. It was added to support keyword-only parameters. Python 2 doesn't *have* keyword-only parameters, so it isn't needed there. Check for yourself: Python 2 d

Re: The "loop and a half"

2017-10-03 Thread Larry Hudson via Python-list
uld be: while True: x = get_num('Number (enter ) to terminate: ') if x == 0: # Or if not x: break print(f'Square = { x**2 }') OR my preference: Use empty input to terminate by making the input and test: x = get_num('Number ( to terminate: ', abrt=True) if x is Non

Re: newb question about @property

2017-10-02 Thread Larry Hudson via Python-list
into any difficulties.  : ) Except perhaps for your sense of time... "I'll try" implies the future, "last night" is the past.:-) :-) (Couldn't resist...) -- -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: Beginners and experts (Batchelder blog post)

2017-09-28 Thread Larry Martell
On Thu, Sep 28, 2017 at 5:08 PM, Chris Angelico wrote: > Yep. Pick anyone on this list that you believe is an expert, and ask > him/her for a story of a long debug session that ended up finding a > tiny problem. I can pretty much guarantee that every expert programmer > will

Re: Beginners and experts (Batchelder blog post)

2017-09-27 Thread Larry Hudson via Python-list
e failed, it suddenly came to the attention of his employer that he didn't know how to program, and now his job was in jeopardy. As I hung up the phone, I mused that his company shouldn't fire him. It was a perfect match: a programmer who couldn't program and a company that couldn't figure out sooner t

Re: Beginners and experts (Batchelder blog post)

2017-09-27 Thread Larry Martell
On Wed, Sep 27, 2017 at 12:41 PM, leam hall wrote: > The question is, what should a person "know" when hiring out as a > programmer? What is 'know" and what should be "known"? Specifically with > Python. Fake it till you make it! --

[issue31095] Checking all tp_dealloc with Py_TPFLAGS_HAVE_GC

2017-09-26 Thread Larry Hastings
Larry Hastings added the comment: New changeset 0fcc03367b31f44c1e1b8d3d2dd940ef1e744326 by larryhastings (INADA Naoki) in branch '3.5': bpo-31095: fix potential crash during GC (GH-2974) (#3196) https://github.com/python/cpython/commit/0fcc03367b31f44c1e1b8d3d2dd940ef1e744326

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

2017-09-26 Thread Larry Hastings
Larry Hastings added the comment: New changeset 44c1b62939a6192776dc9d093546154044cb2ecb by larryhastings (Steve Dower) in branch '3.5': [3.5] bpo-31170: Fix inclusion of expat in Windows build projects. (#3751) https://github.com/python/cpython/commit/44c1b62939a6192776dc9d093546154044cb2ecb

[issue30947] Update embeded copy of libexpat from 2.2.1 to 2.2.3

2017-09-24 Thread Larry Hastings
Larry Hastings added the comment: New changeset f2492bb6aae061aea47e21fc7e56b7ab9bfdf543 by larryhastings (Victor Stinner) in branch '3.5': [3.5][Security] bpo-30947, bpo-31170: Update expat from 2.2.1 to 2.2.4 (#3354) https://github.com/python/cpython/commit

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

2017-09-24 Thread Larry Hastings
Larry Hastings added the comment: New changeset f2492bb6aae061aea47e21fc7e56b7ab9bfdf543 by larryhastings (Victor Stinner) in branch '3.5': [3.5][Security] bpo-30947, bpo-31170: Update expat from 2.2.1 to 2.2.4 (#3354) https://github.com/python/cpython/commit

[issue31568] Configure thinks it finds python3.5 but doesn't

2017-09-24 Thread Larry Hastings
Larry Hastings added the comment: New changeset 70c630a7316f9f6063557786442e3c56502fe8ea by larryhastings (Victor Stinner) in branch '3.5': bpo-31568, Travis CI: Fix python3.5 (#3737) https://github.com/python/cpython/commit/70c630a7316f9f6063557786442e3c56502fe8ea

[issue31570] minor bug in documentataion relating to sending html email

2017-09-24 Thread Larry Myerscough
Changes by Larry Myerscough <hippost...@gmail.com>: -- assignee: -> docs@python components: +Documentation, email nosy: +barry, docs@python, r.david.murray ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue31570] minor bug in documentataion relating to sending html email

2017-09-24 Thread Larry Myerscough
New submission from Larry Myerscough: I believe the documentation page https://docs.python.org/3/library/email.examples.html contains a minor error: href="http://www.yummly.com/recipe/Roasted-Asparagus-Epicurious-203718 ...should be followed by a closing double quote. This is a small d

[issue31568] Configure thinks it finds python3.5 but doesn't

2017-09-24 Thread Larry Hastings
New submission from Larry Hastings: On Python 3.5, the makefile pseudotarget "regen-opcode" now fails if "python3.5" can't be found on the path. What's strange is that the configure script scans to see if it can find "python3.5", and it thinks it can, but th

[issue31568] Configure thinks it finds python3.5 but doesn't

2017-09-24 Thread Larry Hastings
Larry Hastings added the comment: Oh, and, Victor, I tagged you with this because git blame says you're the most person to touch PYTHON_FOR_REGEN in the makefile, checkin ab6b962ef24 . -- ___ Python tracker <rep...@bugs.python.org>

[issue30947] Update embeded copy of libexpat from 2.2.1 to 2.2.3

2017-09-24 Thread Larry Hastings
Larry Hastings added the comment: New changeset 86a713cb0c110b6798ca7f9e630fc511ee0a4028 by larryhastings (Victor Stinner) in branch '3.4': [3.4][Security] bpo-30947, bpo-31170: Update expat from 2.2.1 to 2.2.4 (#3353) https://github.com/python/cpython/commit

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

2017-09-24 Thread Larry Hastings
Larry Hastings added the comment: New changeset 86a713cb0c110b6798ca7f9e630fc511ee0a4028 by larryhastings (Victor Stinner) in branch '3.4': [3.4][Security] bpo-30947, bpo-31170: Update expat from 2.2.1 to 2.2.4 (#3353) https://github.com/python/cpython/commit

Re: Even Older Man Yells At Whippersnappers

2017-09-20 Thread Larry Martell
On Wed, Sep 20, 2017 at 5:09 AM, Gregory Ewing wrote: > > Never mind that fake assembly rubbish, learn a real assembly > language! And hand-assemble it and toggle it into the front > panel switches like I did! 1979, I was working at Bausch and Lomb in Rochester NY.

Re: Even Older Man Yells at Whippersnappers

2017-09-19 Thread Larry Martell
On Tue, Sep 19, 2017 at 1:38 PM, ROGER GRAYDON CHRISTMAN wrote: > I recall giving a quiz to my college students sometime back around > the late nineties which had a little bit of arithmetic involved in the answer. > It's been too long ago to still have the exact details, but I

Re: Old Man Yells At Cloud

2017-09-19 Thread Larry Martell
On Tue, Sep 19, 2017 at 10:30 AM, D'Arcy Cain <da...@vybenetworks.com> wrote: > On 09/19/2017 06:46 AM, Larry Martell wrote: >> >> True story - the other day I was in a store and my total was $10.12. I > > > One time I was at a cash with three or four items which we

Re: Old Man Yells At Cloud

2017-09-19 Thread Larry Martell
On Mon, Sep 18, 2017 at 11:23 PM, Dan Sommers wrote: > How relevant is the "people use calculators to do arithmetic" argument > today? Okay, so I'm old and cynical, but I know [young] people who > don't (can't?) calculate a gratuity without an app or a web page. I use a

Re: rmtree message

2017-09-17 Thread Larry Martell
On Wed, Sep 13, 2017 at 5:39 PM, Sean DiZazzo <sean.diza...@gmail.com> wrote: > On Wednesday, September 13, 2017 at 12:06:20 PM UTC-7, larry@gmail.com > wrote: >> I have a script that creates a tmp dir, create a lot of files in it, >> and when done, does a rmtree

Re: "tkinter"

2017-09-13 Thread Larry Hudson via Python-list
links to hear it directly, or the WAV or AU formats to download the audio clips. -- -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] beginning to code

2017-09-13 Thread Larry Hudson via Python-list
hen it is absolutely necessary — which is rarely! Roger Christman -- -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading the documentation

2017-08-24 Thread Larry Martell
On Thu, Aug 24, 2017 at 11:27 PM, Rustom Mody <rustompm...@gmail.com> wrote: > Chomsky is in the Turing bracket, I wonder where Larry falls wrt CS I have a degree in Software Engineering from Rochester Institute of Technology. I stared programming when I was 16, and I have worked profe

Re: Reading the documentation

2017-08-24 Thread Larry Martell
On Thu, Aug 24, 2017 at 11:08 PM, Rustom Mody <rustompm...@gmail.com> wrote: > On Friday, August 25, 2017 at 8:28:55 AM UTC+5:30, Ian wrote: >> On Aug 24, 2017 8:51 PM, "Larry Martell" wrote: >> >> On Thu, Aug 24, 2017 at 9:21 PM Rustom Mody wrote

Re: Reading the documentation

2017-08-24 Thread Larry Martell
On Thu, Aug 24, 2017 at 9:21 PM Rustom Mody wrote: > Statement 1: Aeroplanes fly > Statement 2: Submarines swim > > > Are these two statements equally acceptable? > > [Inspired by a talk by Noam Chomsky] There should be a corollary of Godwin's law for that idiot. --

[issue31095] Checking all tp_dealloc with Py_TPFLAGS_HAVE_GC

2017-08-22 Thread Larry Hastings
Larry Hastings added the comment: I thought crashing bugs were generally considered security bugs. With a reliable crashing bug exploiting a reasonable module (e.g. not ctypes) you can crash Python instances in hosting services. If those instances are shared with other users (e.g. Google

[issue31095] Checking all tp_dealloc with Py_TPFLAGS_HAVE_GC

2017-08-22 Thread Larry Hastings
Larry Hastings added the comment: Victor, what do you think, does this need a 3.5 backport? I'm inclined to say yes. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

Re: A question on modification of a list via a function invocation

2017-08-17 Thread Larry Hudson via Python-list
On 08/17/2017 12:18 AM, Larry Hudson wrote: On 08/16/2017 03:39 PM, Chris Angelico wrote: On Thu, Aug 17, 2017 at 8:29 AM, Mok-Kong Shen ... Oops, I replied to Chris's post, but it was meant for the OP. I should have replied to Mok-Kong Shen's post instead. My bad. Sorry for the confusion

Re: A question on modification of a list via a function invocation

2017-08-17 Thread Larry Hudson via Python-list
ssary part of learning a new language. Expect it and live with it! I hope this description gives you another viewpoint to consider. Good luck on your journey to becoming a Pythonista! concepts in general terms. The details may be (and probably are) quite different.> -- -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

[issue29169] update zlib to 1.2.11

2017-08-16 Thread Larry Hastings
Larry Hastings added the comment: New changeset d0e61bded5256e775e470e2c0da22367a1a81970 by larryhastings (Victor Stinner) in branch '3.4': bpo-29169: Update zlib to 1.2.11 (#3107) https://github.com/python/cpython/commit/d0e61bded5256e775e470e2c0da22367a1a81970

Re: A question on modification of a list via a function invocation

2017-08-15 Thread Larry Hudson via Python-list
On 08/14/2017 08:25 PM, Larry Hudson wrote: [snip] Here is my attempt to clarify the situation with some ascii graphics. (Well, not ascii, but utf-8 box-drawing characters — I hope they come through ok. And, of curse, it won't display properly with a proportional font.) The left side

Re: cpython version

2017-08-14 Thread Larry Martell
On Sun, Aug 13, 2017 at 10:59 PM, Gilmeh Serda <gilmeh.ser...@nothing.here.invalid> wrote: > On Sat, 12 Aug 2017 10:24:06 -0400, Larry Martell wrote: > >> now I have prospective client that refuses to run linux, even in a VM. >> So I am tying to get my app running on Wi

Re: A question on modification of a list via a function invocation

2017-08-14 Thread Larry Hudson via Python-list
ss ─┬─> [3, 6, 9] alist ─┘ - alist = [30, 60, 90]ss ───> [3, 6, 9] alist ───> [30, 60, 90] - return ss ───> [3, 6, 9]

<    1   2   3   4   5   6   7   8   9   10   >