Re: Books for Python 3.7

2019-07-12 Thread sjmsoft
On Friday, July 12, 2019 at 11:37:08 AM UTC-3, mok...@gmail.com wrote: > Can anyone help me. > New to Python. > Installed version 3.7 > I purchased the "Python for Dummies" book But this book was written for an > older version of Python. > All the examples and samples don't work with version 3.7 >

Re: What is your experience porting Python 2.7.x scripts to Python 3.x?

2019-01-27 Thread sjmsoft
After chickening out a couple of times over the past few years, about eight months ago we migrated our small code base from 2.7.14 to 3.6.5. Some notes: On 2.7 we spent a couple of years coding with 3.x in mind, using import from __future__ and coding to Python 3 standards wherever possible. T

Re: Issue with python365.chm on window 7

2018-04-24 Thread sjmsoft
On Monday, April 23, 2018 at 7:38:04 PM UTC-3, Terry Reedy wrote: > I installed python.org 64-bit 3.6.5 on Win 10 with the .exe installer. > I run it by clicking on Python 3.6 => Python 3.6 Manuals in the Win10 > version of what was Start Menu. The icon is a notebook page with > question mark.

Re: on = style

2017-10-10 Thread sjmsoft
Being an old-timer, I was brought up on languages like COBOL, where programmers love to line up MOVE, COMPUTE and some other statements. I still do that when I write COBOL, as it is expected by other programmers and somehow just seems right. But I resist the urge in Python and never do it. Pr

Re: SimpleHTTPServer and CgiHTTPServer in practice

2017-03-16 Thread sjmsoft
For a couple of years we've used SimpleHTTPServer to serve pages to internal users at low volumes, and we find it to be reliable and trivial to set up. We have not subjected it to a rigorous security assessment. HTH, Steve J. Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: os.rename on Windows

2016-03-23 Thread sjmsoft
Python 2.7.11 on Windows 7 Enterprise (64-bit machine, 32-bit Python) and two Windows Server 2012 R2 (64-bit machines, both 32-bit and 64-bit Pythons): 183 17 WindowsError(183, 'Cannot create a file when that file already exists') HTH, Steve -- https://mail.python.org/mailman/listinfo/python-

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread sjmsoft
This strikes me as very good advice. Thanks for being so far-sighted. And let's hope that Python 4 has fewer incompatibilities (none would good) than Python 3! Cheers, Steve J. Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: Printing to printer, windows 7

2015-02-17 Thread sjmsoft
On Monday, February 16, 2015 at 10:08:33 PM UTC-4, ken.h...@gmail.com wrote: > Would seem to be a simple problem. I just want to print to my printer > instead of the console using Python 2.7, Windows 7. Hours of looking through > FAQ's and Google haven't yielded a solution. Any suggestions app

Re: Idiomatic backtracking in Python

2015-01-27 Thread sjmsoft
On Sunday, January 25, 2015 at 4:15:58 PM UTC-4, Johannes Bauer wrote: > Hi folks, > > I have a problem at hand that needs code for backtracking as a solution. > And I have no problem coding it, but I can't get rid of the feeling that > I'm always solving backtracking problems in a non-Pythonic >

Re: Most gratuitous comments

2014-12-04 Thread sjmsoft
Many years ago I, too, had a couple of CS profs who forced us to include too many (usually innocuous) comments in our Fortran and PL/1 code. Perhaps they were trying to counter the natural programmer tendency of not commenting at all? Forty years of programming later (yikes!), I try to use comm

Re: [OFF-TOPIC] It is true that is impossible write in binary code, the lowest level of programming that you can write is in hex code?

2014-11-04 Thread sjmsoft
Grant's statements are correct and his advice is sound. I would not waste my time writing machine code, even as a hobby (and not even if your other hobbies include juggling chain saws). It's too time-consuming, tedious, bug-prone, and eyeglass-prescription-enhancing. Programming in assembly la

Re: Python under the sea and in space

2014-05-08 Thread sjmsoft
On Wednesday, May 7, 2014 9:34:14 PM UTC-3, Steven D'Aprano wrote: > I'm afraid I don't know what "eight miles high" in the figurative sense > means. I was referring to the Byrd's song "Eight Miles High"--purportedly a drug song. -- SJM -- https://mail.python.org/mailman/listinfo/python-list

Re: Python under the sea and in space

2014-05-07 Thread sjmsoft
I don't suppose "eight miles high" in the figurative sense counts? Cheers, Steve J. Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there no end to Python?

2006-03-17 Thread sjmsoft
John Salerno wrote: > But isn't Python sort of known for the opposite, i.e. 'one simple way', > or something to that effect? The Python language is clear and concise and so I don't think takes long to learn. But there's so many libraries and packages available that I'll probably never use more th

Re: Python Book

2005-11-14 Thread sjmsoft
David Rasmussen wrote: > What is the best book for Python newbies (seasoned programmer in other > languages)? > > /David A couple of years ago I was in the same boat you're in now. I learned from _Python in a Nutshell_ by Alex Martelli and still use it as my main reference. (It only covers up to

Re: Want to learn a language - is Python right?

2005-06-21 Thread sjmsoft
Aziz McTang wrote: > What I'm looking for is more to learn one good, comprehensive > programming language well than several approximately on an ad hoc > basis. What I also failed to mention is the desire to develop my > presently limited computer skills a lot further. I've programmed in perhaps 20