RE: How to install Python package from source on Windows

2017-05-14 Thread Deborah Swanson
Chris Angelico wrote on Sunday, May 14, 2017 11:30 PM > > On Mon, May 15, 2017 at 4:28 PM, Deborah Swanson > wrote: > > > > Again, maybe I should go back to Python 2 for this. > > Won't help. The same problems will exist. > > ChrisA > Good to know. Maybe I just won't be able to try recordcla

RE: How to install Python package from source on Windows

2017-05-14 Thread Deborah Swanson
eryk sun wrote on Sunday, May 14, 2017 9:27 PM > > On Mon, May 15, 2017 at 4:19 AM, Deborah Swanson > wrote: > > Unfortunately I don't have Visual Studio 2015+ installed > and I can't > > install it on Windows XP SP2 (plus I really don't want to). > Probably I > > should have mentioned that,

Re: How to install Python package from source on Windows

2017-05-14 Thread Chris Angelico
On Mon, May 15, 2017 at 4:28 PM, Deborah Swanson wrote: > > Again, maybe I should go back to Python 2 for this. Won't help. The same problems will exist. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: How to install Python package from source on Windows

2017-05-14 Thread Chris Angelico
On Mon, May 15, 2017 at 4:14 PM, Deborah Swanson wrote: > Looks like lack of Visual C++ tripped me up again. > > Strange how Python code can't install with purely Python code. I don't > plan to have Visual anything on Linux either. > > It might be possible to do something with > > lib\recordclass\

RE: How to install Python package from source on Windows

2017-05-14 Thread Deborah Swanson
eryk sun wrote, on Sunday, May 14, 2017 9:27 PM > > On Mon, May 15, 2017 at 4:19 AM, Deborah Swanson > wrote: > > Unfortunately I don't have Visual Studio 2015+ installed > and I can't > > install it on Windows XP SP2 (plus I really don't want to). > Probably I > > should have mentioned that

RE: How to install Python package from source on Windows

2017-05-14 Thread Deborah Swanson
Chris Angelico wrote, on Sunday, May 14, 2017 9:56 PM > > On Mon, May 15, 2017 at 2:26 PM, eryk sun wrote: > > On Mon, May 15, 2017 at 4:19 AM, Deborah Swanson > > wrote: > >> Unfortunately I don't have Visual Studio 2015+ installed > and I can't > >> install it on Windows XP SP2 (plus I re

Re: How to install Python package from source on Windows

2017-05-14 Thread Chris Angelico
On Mon, May 15, 2017 at 2:26 PM, eryk sun wrote: > On Mon, May 15, 2017 at 4:19 AM, Deborah Swanson > wrote: >> Unfortunately I don't have Visual Studio 2015+ installed and I can't >> install it on Windows XP SP2 (plus I really don't want to). Probably I >> should have mentioned that, but I didn'

Re: How to install Python package from source on Windows

2017-05-14 Thread eryk sun
On Mon, May 15, 2017 at 4:19 AM, Deborah Swanson wrote: > Unfortunately I don't have Visual Studio 2015+ installed and I can't > install it on Windows XP SP2 (plus I really don't want to). Probably I > should have mentioned that, but I didn't know I'd need to build C/C++. 3.5+ doesn't work in XP,

RE: How to install Python package from source on Windows

2017-05-14 Thread Deborah Swanson
eryk sun wrote, on Sunday, May 14, 2017 7:15 PM > > On Sun, May 14, 2017 at 8:46 PM, Deborah Swanson > wrote: > > I want to install the recordclass package: > > https://pypi.python.org/pypi/recordclass > > > > But they've only released wheel files for two platforms, macosx and > > win_amd64, n

OT footers (was Rosetta: )

2017-05-14 Thread Rustom Mody
On Monday, May 15, 2017 at 1:23:41 AM UTC+5:30, breamerboy wrote: > On Sunday, May 14, 2017 at 2:44:33 AM UTC+1, Steve D'Aprano wrote: > > On Sun, 14 May 2017 07:03 am, Jan van den Broek wrote: > > > > > On 2017-05-13, Robert L. < wrote: > > > > > > [Schnipp] > > > > > >> def build_permutations

Re: How to install Python package from source on Windows

2017-05-14 Thread eryk sun
On Sun, May 14, 2017 at 8:46 PM, Deborah Swanson wrote: > I want to install the recordclass package: > https://pypi.python.org/pypi/recordclass > > But they've only released wheel files for two platforms, macosx and > win_amd64, neither of which will install on my system. I need win_x86 or > intel

Re: Survey: improving the Python std lib docs

2017-05-14 Thread jeanbigboute
On Saturday, May 13, 2017 at 3:39:52 PM UTC-7, Terry Reedy wrote: > On 5/13/2017 1:23 PM, jeanbigbo...@gmail.com wrote: > > > Thank you for bringing up this important topic. As an occasional Python > > user, I find that Python documentation is all over the usability map - some > > great, some d

How to install Python package from source on Windows

2017-05-14 Thread Deborah Swanson
I want to install the recordclass package: https://pypi.python.org/pypi/recordclass But they've only released wheel files for two platforms, macosx and win_amd64, neither of which will install on my system. I need win_x86 or intel_x86, which they don't provide. The only alternative to pip insta

Overriding methods on a per instance basis

2017-05-14 Thread Steve D'Aprano
It is common to add an attribute to a class, then over-ride it in the instance: class Document: pagesize = "A4" def __init__(self, pagesize): self.pagesize = pagesize A little-known fact, not appreciated by users of less powerful OOP languages: Python supports per-instance cust

Re: help with an error msg please

2017-05-14 Thread Charles T. Smith
On Sun, 14 May 2017 15:30:52 +0200, Pavol Lisy wrote: > On 5/14/17, Charles T. Smith wrote: >> I'm stumped by this: ... > Did you create getopt.py in your working directory? If so then try to > rename it. > > PL. That was it! Not in my working directory, but in the directory where the test p

Re: help with an error msg please

2017-05-14 Thread Pavol Lisy
On 5/14/17, Pavol Lisy wrote: > On 5/14/17, Charles T. Smith wrote: >> I'm stumped by this: > >> $ PYTHONPATH= python except >> Traceback (most recent call last): >> File "except", line 7, in >> except getopt.error, msg: >> AttributeError: 'module' object has no attribute 'error' >> >> >>

Re: help with an error msg please

2017-05-14 Thread Pavol Lisy
On 5/14/17, Charles T. Smith wrote: > I'm stumped by this: > $ PYTHONPATH= python except > Traceback (most recent call last): > File "except", line 7, in > except getopt.error, msg: > AttributeError: 'module' object has no attribute 'error' > > > The program is: > > $ cat except > #!/usr

Re: help with an error msg please

2017-05-14 Thread Lutz Horn
> $ PYTHONPATH= python except > Traceback (most recent call last): > File "except", line 7, in > except getopt.error, msg: > AttributeError: 'module' object has no attribute 'error' > > > The program is: > > $ cat except > #!/usr/bin/env python > > import getopt > > try: > opts, a

help with an error msg please

2017-05-14 Thread Charles T. Smith
I'm stumped by this: $ PYTHONPATH= python except Traceback (most recent call last): File "except", line 7, in except getopt.error, msg: AttributeError: 'module' object has no attribute 'error' The program is: $ cat except #!/usr/bin/env python import getopt try: opts, args = get