Re: print('\N{flag: Mauritius}') not supported in py3.9

2021-12-21 Thread boB Stepp
y and copy to and from the clipboard all the time. 1) ctrl+shift+c Copy to clipboard 2) ctrl+shift+v Paste from the clipboard 3) Using mouse to select text automatically copies it to the primary clipboard. 4) Middle-click of mouse to paste from the primary clipboard. -- Wishing you only the

Re: Uninstall and Re-install Python - Windows 10 issues

2021-06-23 Thread boB Stepp
r privileges I can still see it in the Start Menu, but *not* in the settings uninstall programs list. Perhaps you are experiencing something similar? I don't fully understand how Windows implements user privileges and the full details of what an administrator account can and cannot see. Wiser heads than mine will have to chime in and explain as needed. HTH! boB Stepp -- https://mail.python.org/mailman/listinfo/python-list

Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]

2021-06-01 Thread boB Stepp
is available." > > Appears the easiest is to PIP "windows-curses" then track down > piecemeal installs (it is unclear if UniCurses includes PDCurses, or needs > that as a separate install). windows-curses 2.2.0 has been working well for me so far on Win10: https:/

Re: python 3.9.5

2021-05-31 Thread boB Stepp
you with the Python interpreter and the ">>>" prompt for typing in Python commands. Hope this helps! boB Stepp -- https://mail.python.org/mailman/listinfo/python-list

Re: imaplib: is this really so unwieldy?

2021-05-30 Thread boB Stepp
On Sun, May 30, 2021 at 1:04 AM hw wrote: > > On 5/28/21 2:36 AM, boB Stepp wrote: > > > > Just as SMTP is the protocol for sending email, the Internet Message > > Access Protocol (IMAP) specifies how to communicate with an email > > provider’s server to retr

Re: imaplib: is this really so unwieldy?

2021-05-27 Thread boB Stepp
o chapter 16 which discusses email is: https://automatetheboringstuff.com/chapter16/ Hopefully this will prove helpful to the OP. HTH! boB Stepp -- https://mail.python.org/mailman/listinfo/python-list

Re: Turtle module

2021-05-26 Thread boB Stepp
units you are using) and comparing with what is returned you should be able to determine what angular units are currently set. HTH! boB Stepp -- https://mail.python.org/mailman/listinfo/python-list

Re: If you have Python Cookbook, 3rd ed.

2021-05-20 Thread boB Stepp
On Thu, May 20, 2021 at 3:48 PM Terry Reedy wrote: > > On 5/20/2021 1:14 PM, boB Stepp wrote: > > On Thu, May 20, 2021 at 11:43 AM Terry Reedy wrote: > >> > >> can you verify that the Algorithm chapter (near end in 2nd ed.) does > >> *NOT* have an introd

Re: If you have Python Cookbook, 3rd ed.

2021-05-20 Thread boB Stepp
copy chapter 1 is "Data Structures and Algorithms". The only thing comprising an introduction is a brief paragraph that starts the chapter and has no attribution. HTH, boB Stepp -- https://mail.python.org/mailman/listinfo/python-list

Re: New Python implementation

2021-02-16 Thread boB Stepp
, boB Stepp -- https://mail.python.org/mailman/listinfo/python-list

Re: IDE tools to debug in Python?

2021-02-05 Thread boB Stepp
u do know that there is a 100% open source version of Microsoft VS Code with absolutely no tracking? It is VSCodium: https://vscodium.com/ Perhaps it is more along the lines of what you are looking for? -- Wishing you only the best, boB Stepp -- https://mail.python.org/mailman/listinfo/python-list

Re: Application window geometry specifier

2021-01-13 Thread boB Stepp
On Wed, Jan 13, 2021 at 7:28 PM Chris Angelico wrote: > I love how "I think" is allowed to trump decades of usability research. Can you recommend a good reference for someone relatively new to GUI programming that is based on such research? Book or web reference would be fine. Cheers! boB --

Re: Best way to determine user's screensize?

2020-10-30 Thread boB Stepp
ide monitor: I open external beam planning window for patient #1, resize it. Open same for next patient -- must resize once again (...and again, and again, ...). -- Wishing you only the best, boB Stepp -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem

2020-10-01 Thread boB Stepp
e new user into a program where they might actually start doing something useful. The person who does not want such a desktop shortcut can uncheck that default option. -- Wishing you only the best, boB Stepp -- https://mail.python.org/mailman/listinfo/python-list

Re: Issue with Python installation for a beginner Python coder.

2020-07-31 Thread boB Stepp
On Thu, Jul 30, 2020 at 9:24 AM Sarvesh Poddar via Python-list wrote: > I re-installed Python in my Windows system as the earlier one was not able to > import modules... You do not provide much detail to diagnose what your problem(s) is(are). By the "earlier one" is it the same version as the

A Python installation help doc much more friendly to newcomers? [Was Re: help]

2020-07-17 Thread boB Stepp
On Fri, Jul 17, 2020 at 9:48 PM dn via Python-list wrote: > > On 18/07/20 1:53 PM, Castillo, Herbert S wrote: > > I downloaded python not to long ago, and today when I opened Python on > > Windows it gave me a modify setup prompt. I have tried to click on modify , > > repair and even

Re: help

2020-07-17 Thread boB Stepp
On Fri, Jul 17, 2020 at 9:00 PM Castillo, Herbert S wrote: > I downloaded python not to long ago, and today when I opened Python on > Windows it gave me a modify setup prompt. I have tried to click on modify , > repair and even uninstalled and installed it back, but when I try to open >

Re: Help with installation please

2020-05-17 Thread boB Stepp
nal you want. Amen!!! -- Wishing you only the best, boB Stepp -- https://mail.python.org/mailman/listinfo/python-list

Re: Not able use installed modules

2020-05-08 Thread boB Stepp
t, but, as far as I can tell, most instructions that I have encountered for installing Python packages state the installation instructions as "pip install ...", which seems to repeatedly lead to these type of OP questions. Has there ever been given thought to changing these "standard&qu

Re: Helping Windows first time users

2020-04-19 Thread boB Stepp
On Sun, Apr 19, 2020 at 4:30 AM Barry Scott wrote: > > > > > On 18 Apr 2020, at 21:00, boB Stepp wrote: > > > > On Wed, Apr 15, 2020 at 2:04 PM Barry Scott wrote: > >> What are your thoughts on the installer changes and reply text? > > > > I w

Re: What variable type is returned from Open()?

2020-04-18 Thread boB Stepp
On Wed, Apr 15, 2020 at 11:27 AM Chris Angelico wrote: > > On Thu, Apr 16, 2020 at 12:01 AM wrote: > > config_file : file = open(config_file_s, "r") > > > > > > What type of variable should config_file (above) be declared as? > It returns a file-like object. Instead of annotating, just let the

Re: Helping Windows first time users

2020-04-18 Thread boB Stepp
On Wed, Apr 15, 2020 at 2:04 PM Barry Scott wrote: > > I post some suggestion to improve the Python installer for Windows > to better sign post users on the next steps. > > https://mail.python.org/archives/list/python-id...@python.org/message/TKHID7PMKN5TK5QDQ2BL3G45FYAJNYJX/ > > It also seems

Re: about to resolve problem in installation

2020-03-31 Thread boB Stepp
On Tue, Mar 31, 2020 at 12:02 PM Kapuganti Rakesh wrote: > I have already search in my pc but it is showing nothing and later i > searched python and started that app.After some it showing > I am getting confuse over this. pls help me If you press your Windows key (or click on the Windows

Re: How to uninstall Python3.7 in Windows using cmd ?

2020-03-27 Thread boB Stepp
On Fri, Mar 27, 2020 at 1:22 PM deepalee khare wrote: > > Hi, > > How to Uninstall Python3.7.3 using cmd ? i tried using cmd: Msiexec > /uninstall C:\Python37\python.exe But it gives me below error: enter > image description here > > how do i uninstall it ? > You appear to be using a version of

Re: A small quiz

2020-01-24 Thread boB Stepp
On Thu, Jan 23, 2020 at 2:57 AM Z wrote: > > what is PLR? Python Language Reference? https://docs.python.org/3/reference/index.html Or, perhaps, Python Library Reference? https://docs.python.org/3/library/index.html -- boB -- https://mail.python.org/mailman/listinfo/python-list

Re: Python3 - How do I import a class from another file

2019-12-13 Thread boB Stepp
On Wed, Dec 11, 2019 at 6:51 PM Greg Ewing wrote: > > On 12/12/19 3:50 am, R.Wieser wrote: > > I was rather clear about what my used version of Python was-and-is. I have > > no idea why that was ignored. :-( > > I think we've all been talking at cross purposes for a while. > > What I meant to

Re: Friday finking: TDD and EAFP

2019-11-18 Thread boB Stepp
On Mon, Nov 18, 2019 at 3:23 PM Peter J. Holzer wrote: > > I don't know what "proper" TDD is (and even less "proper consideration" > of TDD), but TDD is in my opinion very much rooted in the agile mindset. > And that means frequent iteration and improvement. So I think the > micro-iteration

Re: Friday finking: TDD and EAFP

2019-11-01 Thread boB Stepp
On Fri, Nov 1, 2019 at 12:42 AM DL Neil via Python-list wrote: > > Is the practice of TDD fundamentally, if not philosophically, somewhat > contrary to Python's EAFP approach? > [...] > > In encouraging my mind to think about testing the code, I find myself > searching for edge-cases, and

Re: Python shows error on line 15 that i cant fix

2019-09-21 Thread boB Stepp
On Sat, Sep 21, 2019 at 9:01 PM Michael Torrie wrote: > > On 9/21/19 12:51 PM, Dave Martin wrote: > > You seem to have the expectation that you know more about coding than > > me and that you can insult me without me retaliating. If I were you, > > I would leave this forum and never respond to

Re: Python shows error on line 15 that i cant fix

2019-09-21 Thread boB Stepp
On Sat, Sep 21, 2019 at 1:01 PM Dave Martin wrote: > > On Saturday, September 21, 2019 at 1:33:12 PM UTC-4, Terry Reedy wrote: > > On 9/21/2019 11:53 AM, Dave Martin wrote: [...] > > > #get the combined data and load the fits files > > > > > > fits_filename="Gaia_DR2/gaiadr2_100pc.fits" > > >

Re: Friday Finking: 'main-lines' are best kept short

2019-09-13 Thread boB Stepp
On Thu, Sep 12, 2019 at 10:59 PM DL Neil via Python-list wrote: > Ref: > Mastering Object-oriented Python, S Lott > Copyright © 2014 Packt Publishing Side note: When I looked this up I saw on Amazon that there is a second edition out targeting Python 3.7. It was published June of this year.

Re: Remote/Pair-Programming in-the-cloud

2019-08-02 Thread boB Stepp
On Fri, Aug 2, 2019 at 4:11 AM DL Neil wrote: > > Please recommend a Python-friendly, bandwidth-respectful, (but > effective) system for pair-programming; where the 'pair' are > geographically separate. > At work (not programming related) my department has just started using GoToMeeting. So far

Re: The slash "/" as used in the documentation

2019-02-11 Thread boB Stepp
On Mon, Feb 11, 2019 at 2:34 PM Chris Angelico wrote: > Calling on the D'Aprano Collection of Ancient Pythons for confirmation > here, but I strongly suspect that positional arguments with defaults > go back all the way to 1.x. Has Steve's banishment ended yet? The only postings I have

Re: ttk present but not found for import

2019-01-19 Thread boB Stepp
On Sat, Jan 19, 2019 at 5:02 PM Rich Shepard wrote: > > I've started to learn tkinter as the GUI widget set I'll use from now on. > While ttk-8.6 is installed here (/usr/lib/tk8.6/ttk), I cannot import it: > > $ python3 > Python 3.6.7 (default, Dec 8 2018, 06:22:57) > [GCC 5.5.0] on linux > Type

Re: What Python books to you recommend to beginners?

2018-12-02 Thread boB Stepp
On Sun, Dec 2, 2018 at 1:51 PM songbird wrote: > my goal in learning python was to use it as a way of > picking up OOP concepts in a more concrete way (theory > alone doesn't give me enough hands on the bits i need so > i tend to just do other things instead). > > now that i've used python

Re: Need help for python on my pc.

2018-11-21 Thread boB Stepp
On Wed, Nov 21, 2018 at 12:19 PM Sourav Banik wrote: > > Hello Python team, > I'm using python 3.7(32 bit) for several months on my same laptop (x64 > processor). I worked on some django project very swiftly without any > problem. But for a few days I am facing a serious problem. My python files

Re: Error in installing "pyperclip" module

2018-11-10 Thread boB Stepp
On Sat, Nov 10, 2018 at 11:45 AM Joel Goldstick wrote: > > On Sat, Nov 10, 2018 at 12:29 PM boB Stepp wrote: > > Unfortunately this is a text only mailing list, which disallows > > attachments. > > One maybe small quibble. I don't think it is unfortunate at all that >

Re: Error in installing "pyperclip" module

2018-11-10 Thread boB Stepp
Greetings Hemant! On Sat, Nov 10, 2018 at 10:31 AM Hemant Chauhan wrote: > > Hi team, > I’m having trouble in installing pyperclip module through command line. > I just upgraded to the latest version. > Here’s the SS of command line showing error. Unfortunately this is a text only mailing

Re: Windows file associations fix

2018-11-09 Thread boB Stepp
On Fri, Nov 9, 2018 at 10:02 AM David Raymond wrote: > Currently: Windows 7. Attempting to run a .py file opens up the "Open with" > dialog with a bunch of other programs listed. Clicking browse to manually > select the new python.exe doesn't add it to the list and won't let me do the >

Re: can't install/run pip (Latest version of Python)

2018-07-15 Thread boB Stepp
On Sun, Jul 15, 2018 at 7:34 PM S Lea wrote: > > I can't seem to install the pips, DOS gives me the syntex i invalid, any > thoughts? You provide insufficient information for anyone to be able to help you. 1) Copy and paste the entire traceback into a plain text email, no screen shots please.

Re: Kindness

2018-07-13 Thread boB Stepp
On Fri, Jul 13, 2018 at 7:54 PM Steven D'Aprano wrote: > It's not helped by do-gooders who by their own admission have no idea of > the context sticking their nose in to tell off those who chastise Bart... I'm not sure if I am one of the "do-gooders" or not in your perspective, Steve. I have

Re: Getting posts to sort chronologically in tree view

2018-07-04 Thread boB Stepp
On Tue, Jul 3, 2018 at 10:26 PM T Berger wrote: > I don't think I want to try a mail list. I had subscribed to the > python-list a few weeks ago and then been forced to unsubscribe > because of the flood of irrelevant posts. I use Gmail. It does allow various ways of filtering emails as has

Re: syntax difference

2018-06-25 Thread boB Stepp
On Mon, Jun 25, 2018 at 2:37 AM Mark Lawrence wrote: > > On 24/06/18 00:44, boB Stepp wrote: > > I imagine that the > > transition from version 2 to 3 was not undertaken halfheartedly, but > > only after much thought and discussion since it did break backwards > >

Re: syntax difference

2018-06-25 Thread boB Stepp
From: boB Stepp On Sun, Jun 24, 2018 at 5:21 AM Bart wrote: > > On 24/06/2018 00:44, boB Stepp wrote: > > On Sat, Jun 23, 2018 at 5:35 PM Bart wrote: > > >> I'm not a user... > > > > Then I am truly puzzled, Bart. Why do you even bother to hang out on >

Re: syntax difference

2018-06-25 Thread boB Stepp
From: boB Stepp On Sat, Jun 23, 2018 at 5:35 PM Bart wrote: > > On 23/06/2018 20:52, boB Stepp wrote: > The first programming exercise I ever did involved asking for three > numbers, then determining whether those numbers could form the sides of > a triangle. > > Then [40

Re: syntax difference

2018-06-25 Thread boB Stepp
From: boB Stepp I've finally found time to examine this rather long, rambling thread. On Wed, Jun 20, 2018 at 5:46 AM wrote: > > Yeah, people keep bringing that up when they run out of arguments. > > So, every programmer must always use the most advanced, most esoteric featu

Re: syntax difference

2018-06-24 Thread boB Stepp
On Sun, Jun 24, 2018 at 5:21 AM Bart wrote: > > On 24/06/2018 00:44, boB Stepp wrote: > > On Sat, Jun 23, 2018 at 5:35 PM Bart wrote: > > >> I'm not a user... > > > > Then I am truly puzzled, Bart. Why do you even bother to hang out on > > this list? I

Re: syntax difference

2018-06-23 Thread boB Stepp
On Sat, Jun 23, 2018 at 5:35 PM Bart wrote: > > On 23/06/2018 20:52, boB Stepp wrote: > The first programming exercise I ever did involved asking for three > numbers, then determining whether those numbers could form the sides of > a triangle. > > Then [40 years ago], the

Re: syntax difference

2018-06-23 Thread boB Stepp
I've finally found time to examine this rather long, rambling thread. On Wed, Jun 20, 2018 at 5:46 AM wrote: > > Yeah, people keep bringing that up when they run out of arguments. > > So, every programmer must always use the most advanced, most esoteric > features possible at every opportunity?

Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-25 Thread boB Stepp
On Fri, May 25, 2018 at 6:04 AM, Paul St George wrote: > I am using the Python Imaging Library (PIL), Python 2 and Raspberry Pi 3 B+ > > My code is simply: > > from PIL import Image > > im = Image.open(‘somepic.jpg’) > im.show() # display image > > > But the

Re: why do I get syntax error on if : break

2018-05-24 Thread boB Stepp
On Thu, May 24, 2018 at 9:12 PM, wrote: > here is the code, i keep getting an error, "break outside loop". if it is > false just exit function > > > def d(idx): > if type(idx) != int: > break > > d('k') "break" (and "continue") are only meaningful inside for or

Re: How to make Python run as fast (or faster) than Julia

2018-02-23 Thread boB Stepp
On Fri, Feb 23, 2018 at 1:16 PM, Chris Angelico wrote: > On Sat, Feb 24, 2018 at 6:09 AM, Python wrote: >> On Sat, Feb 24, 2018 at 05:56:25AM +1100, Chris Angelico wrote: >>> No, not satisfied. Everything you've said would still be satisfied if >>> all

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-16 Thread boB Stepp
On Sat, Feb 17, 2018 at 12:54 AM, Chris Angelico <ros...@gmail.com> wrote: > On Sat, Feb 17, 2018 at 5:25 PM, boB Stepp <robertvst...@gmail.com> wrote: >> >> I am curious as to what efforts have been attempted to remove the GIL >> and what tradeoffs resulted an

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-16 Thread boB Stepp
I've just reread everyone's replies and one point you mentioned about the GIL caught my eye ... On Fri, Feb 16, 2018 at 11:16 PM, Chris Angelico wrote: > Asynchronicity and concurrency are hard. Getting your head around a > program that is simultaneously doing two things is

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-16 Thread boB Stepp
On Fri, Feb 16, 2018 at 10:25 PM, Chris Angelico wrote: > > 1) Type safety. > > This is often touted as a necessity for industrial-grade software. It > isn't... Chris, would you mind expanding on this point? What is necessary for industrial-grade, safe, robust software? Do

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-16 Thread boB Stepp
On Fri, Feb 16, 2018 at 10:05 PM, Ben Finney wrote: > He blithely conflates “weakly typed” (Python objects are not weakly, but > very strongly typed) with “dynamically typed” (yes, Python's name > binding is dynamically typed). Those are two, orthognal dimensions to >

Are the critiques in "All the things I hate about Python" valid?

2018-02-16 Thread boB Stepp
This article is written by Nathan Murthy, a staff software engineer at Tesla. The article is found at: https://medium.com/@natemurthy/all-the-things-i-hate-about-python-5c5ff5fda95e Apparently he chose his article title as "click bait". Apparently he does not really hate Python (So he says.).

Re: Python noob having a little trouble with strings

2017-10-26 Thread boB Stepp
On Thu, Oct 26, 2017 at 9:25 PM, wrote: > If s1 = "Welcome students", what is the output when you print the following: > > 1. s4 = 3 * s1 > > 2. s1[3 : 6] > > 3. 'W' in s1 > > 4. S1[-1] > > 5. S1[:-1] > > Any help would be great, thanks! Why not find out for yourself and

Re: Python 2 -> 3, urllib.urlOpen

2017-10-13 Thread boB Stepp
On Fri, Oct 13, 2017 at 5:27 PM, Irv Kalb wrote: > I've looked at the Python 3.6 documentation for urllib, and I see that > certain calls have been changed and others have been eliminated. But my eyes > glaze over trying to figure out what to use instead. > > My question

OT: MPC-HC project ending? [Re: Lies in education [was Re: The "loop and a half"]]

2017-10-11 Thread boB Stepp
On Wed, Oct 11, 2017 at 4:45 PM, Mikhail V wrote: > > PS Off-topic: > I have a related observation regarding popularity of software. > There is such a program "VLC", which is a video player. Some would > think it is sort of best free player, etc. I was also under

Re: The "loop and a half"

2017-10-09 Thread boB Stepp
On Sun, Oct 8, 2017 at 5:36 AM, bartc wrote: > > On 08/10/2017 10:12, Steve D'Aprano wrote: >> >> On Sun, 8 Oct 2017 02:06 am, bartc wrote: >>> I'm getting fed up with this thread now. >> >> >> This thread would be a lot less frustrating if you would enter into it with a >>

Re: first code attempt

2017-08-02 Thread boB Stepp
On Wed, Aug 2, 2017 at 4:36 PM, wrote: > Hello, > I am using the workbook Computer Coding by Jon Woodcock, published by DK > WORKBOOKS, to try to learn computer coding. I only get to pages 10 and 11 > in Robot Programs when round robots appear in squares to manipulate them. >

Re: python in chromebook

2017-07-26 Thread boB Stepp
On Wed, Jul 26, 2017 at 8:03 PM, Byung-Hee HWANG (황병희, 黃炳熙) wrote: > my computer is chromebook. how can i install python in chromebook? > barely i did meet develop mode of chromebook. also i'm new to > python. > > INDEED, i want to make python code on my chromebook. >

Re: Syntax error for simple script

2017-06-27 Thread boB Stepp
On Tue, Jun 27, 2017 at 9:05 AM, Steve D'Aprano wrote: > On Tue, 27 Jun 2017 08:34 am, Erik wrote about the print function error > message: > > py> print x > File "", line 1 > print x > ^ > SyntaxError: Missing parentheses in call to 'print' [snip]

Re: read in a list in a file to list

2017-04-08 Thread boB Stepp
On Sat, Apr 8, 2017 at 3:21 PM, wrote: > On Saturday, April 8, 2017 at 7:32:52 PM UTC+1, john polo wrote: >> Hi, >> >> I am using Python 3.6 on Windows 7. >> >> I have a file called apefile.txt. apefile.txt's contents are: >> >> apes = "Home sapiens", "Pan troglodytes",

Re: print odd numbers of lines from tekst WITHOUT space between lines

2017-02-18 Thread boB Stepp
On Sat, Feb 18, 2017 at 11:38 AM, TTaglo wrote: > i = 1 > f = open ('rosalind_ini5(1).txt') > for line in f.readlines(): > if i % 2 == 0: > print line > i += 1 > > > How do i get output without breaks between the lines? If you use "print line," (Note the

Re: Doubt with files

2017-02-14 Thread boB Stepp
On Tue, Feb 14, 2017 at 11:31 AM, Joaquin Alzola wrote: > >>with open(dirFichero,'r') as reader: > > for line in reader: > > print line >> >>the problem is that shown is : >>{\rtf1\ansi\ansicpg1252\cocoartf1504\cocoasubrtf810 >>{\fonttbl\f0\fswiss\fcharset0

Re: Doubt with files

2017-02-14 Thread boB Stepp
On Tue, Feb 14, 2017 at 11:13 AM, José Manuel Suárez Sierra wrote: > hello, > im trying to read a rtf or txt file with this python script: > > with open(dirFichero,'r') as reader: > for line in reader: > print line > > the problem is that shown is : > >

Re: int vs. float

2017-02-10 Thread boB Stepp
On Sat, Feb 11, 2017 at 1:00 AM, Amit Yaron wrote: > On 10/02/17 21:15, Peter Pearson wrote: >> >> On Fri, 10 Feb 2017 13:59:45 +0200, Amit Yaron >> wrote: >>> >>> On 10/02/17 04:33, adam14711...@gmail.com wrote: My computer programming professor

Re: Clickable hyperlinks

2017-01-06 Thread boB Stepp
On Tue, Jan 3, 2017 at 10:46 PM, Deborah Swanson wrote: > > > I didn't try printing them before, but I just did. Got: > > >>> print([Example](http://www.example.com) > > SyntaxError: invalid syntax (arrow pointing at the colon) As Steve had said, you need to put

Re: Clickable hyperlinks

2017-01-03 Thread boB Stepp
On Tue, Jan 3, 2017 at 10:46 PM, Deborah Swanson wrote: > > > I didn't try printing them before, but I just did. Got: > > >>> print([Example](http://www.example.com) > > SyntaxError: invalid syntax (arrow pointing at the colon) As Steve had said, you need to put

Re: python list index - an easy question

2016-12-17 Thread boB Stepp
On Sat, Dec 17, 2016 at 1:10 PM, John wrote: > > Hi, > >I am new to Python, and I believe it's an easy question. I know R and > Matlab. > > > >>> x=[1,2,3,4,5,6,7] > >>> x[0] > 1 > >>> x[1:5] > [2, 3, 4, 5] > * > > My question is: what does

Re: Is 'learning python 5th edition' a good book to beginner?

2016-09-25 Thread boB Stepp
On Sun, Sep 25, 2016 at 3:50 PM, Lawrence D’Oliveiro wrote: > Judging from the table of contents > , it spends too much time > (i.e. > 0) talking about Python 2. I own this book. The 5th edition covers both Python 3.3

Re: value of pi and 22/7

2016-06-18 Thread boB Stepp
On Sat, Jun 18, 2016 at 12:47 AM, Tim Harig wrote: > > The main problem I have with significant figures is that measurement > accuracy is often not constrained to a decimal system. A scale that can > measure in 1/5 units is more accurate than a scale that can

Re: Beginner Question

2016-06-01 Thread boB Stepp
On Wed, Jun 1, 2016 at 7:55 PM, Marcin Rak wrote: > Hi to all > > I have a beginner question to which I have not found an answer I was able to > understand. Could someone explain why the following program: > > def f(a, L=[]): > L.append(a) > return L > >

Re: META Culture of this place [was Re: for / while else doesn't make sense]

2016-05-24 Thread boB Stepp
On Tue, May 24, 2016 at 11:43 AM, Steven D'Aprano wrote: [...] > ...Python-Dev, etc, all with their own idiosyncrasies. This is ours: we have a > bunch of people here who enjoy extended discussions on computing matters > which are sometimes only tangentially related to

Re: Extract the middle N chars of a string

2016-05-20 Thread boB Stepp
On Wed, May 18, 2016 at 10:47 AM, Steven D'Aprano wrote: > Getting the middle N seems like it ought to be easy: > > s[N//2:-N//2] > > but that is wrong. It's not even the right length! > > py> s = 'aardvark' > py> s[5//2:-5//2] > 'rdv' > > > So after spending a ridiculous

Re: Python path and append

2016-04-29 Thread boB Stepp
On Mon, Apr 25, 2016 at 8:51 PM, Steven D'Aprano wrote: > See here for the *start* of a more professional approach: > > http://code.activestate.com/recipes/579097-safely-and-atomically-write-to-a-file/ What else would I need to know/consider in order to have a *complete*

Re: Installation problem

2016-04-16 Thread boB Stepp
On Sat, Apr 16, 2016 at 2:16 PM, Jurell wrote: > I installed the Python program version 3.5.1 32 bit and the IDE I am going > to use is Wing IDE 101. The problem when I tried installing the python > program was as follows: "The program can`t start because >

Re: Issues with to run python

2016-02-06 Thread boB Stepp
On Sat, Feb 6, 2016 at 2:10 PM, Dánisa Andrea Alejo García wrote: > I am writing to you because I have downloaded Python,I have followed all the > instructions, but for some reason I am unable to use it. This is a very common question of late. If you search the list

Re: Simple tkinter query about creating a tk,StringVar() failure

2016-02-06 Thread boB Stepp
On Sat, Feb 6, 2016 at 6:38 PM, wrote: > Why does this interactive instantiation fail when it seems to work > when run in a script? You have to establish your root window first: Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on

Re: Is vars() the most useless Python built-in ever?

2015-12-01 Thread boB Stepp
On Mon, Nov 30, 2015 at 7:00 PM, Steven D'Aprano wrote: > > Either way, vars() doesn't solve the problem. What problem does it solve? > I'm way out of my depth here (I normally post on Tutor, as Steve knows), but when I looked vars() up in Lutz's "Python Pocket Reference,

Re: failing to run python on my pc

2015-11-19 Thread boB Stepp
On Thu, Nov 19, 2015 at 2:22 PM, Daniel Kasuza wrote: > Dear Sir/Madam > I am student with University of the people and a beginner in programming. > My problem is that l have down loaded python 2.7 but l am failing to muse > it. If l try to to use it, I am getting an

Re: installer user interface glitch ?

2015-11-01 Thread boB Stepp
On Sun, Nov 1, 2015 at 3:48 PM, Laura Creighton wrote: > Actually, adding the XP - do not look here -- > message for several webpages has been on the pydotorg > todo list for more than a week now. > > Not sure why it hasn't happened. > > Thank you for the reminder. I have to

Re: anomaly

2015-05-11 Thread boB Stepp
I am in process learning Python and normally hang out on the Tutor list, but monitor this one hoping to learn what I can. This thread is of interest to me from the standpoint of trying to understand the Python way of doing things. On Sun, May 10, 2015 at 12:28 PM, Gary Herron gher...@digipen.edu

Re: anomaly

2015-05-11 Thread boB Stepp
On Mon, May 11, 2015 at 2:40 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 10/05/2015 20:12, boB Stepp wrote: I'm surprised that this thought has not been added to the Zen Of Python, as I see it as more and more recurrent as I continue my studies. What I would like to comprehend is what

Re: anomaly

2015-05-11 Thread boB Stepp
On Mon, May 11, 2015 at 2:44 AM, Chris Angelico ros...@gmail.com wrote: On Mon, May 11, 2015 at 5:12 AM, boB Stepp robertvst...@gmail.com wrote: Common Python thought:: We're all adults here.If you want to override a builtin within your own namespace, who are we to stop you? I'm

Re: Python Book for a C Programmer?

2012-05-24 Thread boB Stepp
On Thu, May 24, 2012 at 8:28 AM, Javier Novoa C. jsti...@invernalia.homelinux.net wrote: On 2012-05-24, alister alister.w...@ntlworld.com wrote: On Wed, 23 May 2012 16:45:05 -0700, hsaziz wrote: I am trying to join an online class that uses python. I need to brush up on the language quickly.