Re: python 3.9.5

2021-05-31 Thread boB Stepp
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: How to debug python + curses? [was: RE: Applying winpdb_reborn]

2021-06-01 Thread boB Stepp
rses 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: ht

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

2021-06-23 Thread boB Stepp
guments to install from the Microsoft > Store, or disable this shortcut from Settings > Manage App Execution > Aliases. Unless you checked the checkbox to add Python to your path in the installer then this is normal. To check your version, instead type: PS C:\Users\boB> py --version Pyth

Re: The sqlite3 timestamp conversion between unixepoch and localtime

2021-09-03 Thread Bob Martin
On 2 Sep 2021 at 20:25:27, Alan Gauld wrote: > On 02/09/2021 20:11, MRAB wrote: > >>> In one of them (I can't recall which is which) they change on the 4th >>> weekend of October/March in the other they change on the last weekend. >>> >>> >> In the EU (and UK) it's the last Sunday in March/October

Re: walrus with a twist :+

2021-10-29 Thread Bob Martin
On 28 Oct 2021 at 18:52:26, "Avi Gross" wrote: > > Ages ago, IBM used a different encoding than ASCII called EBCDIC (Extended > Binary Coded Decimal Interchange Code ) which let them use all 8 bits and > thus add additional symbols. =B1 =A6 =AC IBM started using EBCDIC with System 360 and it is

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

2021-12-21 Thread boB Stepp
? I use kitty 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. --

keep getting a syntax error on the very first program I am running

2022-01-14 Thread Bob Griffin
I am running this program and keep getting this error. Is this normal? Invalid syntax. Perhaps you forgot a comma? Also the t in tags is highlighted. I even tried different versions of Python also. Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 19:10:37) [MSC v.1929

Re: Raw Data from Website

2016-08-24 Thread Bob Martin
in 764257 20160823 081439 Steven D'Aprano wrote: >On Tuesday 23 August 2016 10:28, adam.j.k...@gmail.com wrote: > >> Hi, >> >> I am hoping someone is able to help me. >> >> Is there a way to pull as much raw data from a website as possible. The >> webpage that I am looking for is as follows: >> >

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

2016-09-25 Thread boB Stepp
use a tutorial approach, but it is a massive text that tries to cover everything in the core language with selected examination of parts of the standard library. HTH! -- boB -- https://mail.python.org/mailman/listinfo/python-list

Re: Lawrence D'Oliveiro

2016-09-30 Thread Bob Martin
in 765690 20160930 181552 Ethan Furman wrote: >Lawrence D'Oliveiro is banned from Python List until the new year. > >If his posts show up somewhere else (e.g. Usenet), please ignore them. If you >must respond to him p >lease trim out his text so the rest of us don't have to deal with him. > >--

Re: Lawrence D'Oliveiro

2016-10-02 Thread Bob Martin
in 765736 20161001 072941 Paul Rubin wrote: >Chris Angelico writes: >>> Why can't you block "PEDOFILO"? >> I've no idea who you're talking about > >That's the weird Italian spam that the newsgroup has been getting for a >while. I've been wondering for a while if anyone knows what the story >is,

Re: Generator comprehension - list None

2016-10-18 Thread Bob Gailer
On Oct 18, 2016 7:45 AM, "Sayth Renshaw" wrote: > > I was solving a problem to create a generator comprehension with 'Got ' and a number for each in range 10. > > This I did however I also get a list of None. I don't understand where none comes from. Can you please clarify? > > a = (print("Got {0}

Re: Obtain javascript result

2016-10-21 Thread Bob Gailer
On Oct 21, 2016 9:30 AM, wrote: > > Hello NG. > > I'm new in Python for fun. > > I have a html page (I load it by BeautifulSoap) that contain > also this javascript code: > ... > > $(document).ready(function() { > matchdetails_init('rLu2Xsdi', '1x2'); > }); > > ... > Please, can You me t

Re: Obtain javascript result

2016-10-21 Thread bob gailer
On 10/21/2016 11:07 AM, epro...@gmail.com wrote: Yes, the page is http://www.betexplorer.com/next/soccer/ and You have to open any match You want. This pop-up new windows with match detail and odds (if present). I try to extract home team, away team, results, and bet365's bookmaker odds. I ca

Re: Obtain javascript result

2016-10-22 Thread Bob Gailer
On Oct 22, 2016 12:45 AM, wrote: > > Many Thanks to everybody. You're welcome. It's fun to help in a challenging problem. Please let us know what solution(s), if any, you have adopted, what problems, if any, you've encountered, what Python version and operating system. -- https://mail.python.org

Re: Python Dice Game/Need help with my script/looping!

2016-11-03 Thread Bob Gailer
On Nov 3, 2016 11:30 AM, "Constantin Sorin" wrote: > > Hello,I recently started to make a dice game in python.Everything was nice and beautiful,until now.My problem is that when I try to play and I win or lost or it's equal next time it will continue only with that. > Exemple: > Enter name >> Sori

Re: data interpolation

2016-11-03 Thread Bob Gailer
On Nov 3, 2016 6:10 AM, "Heli" wrote: > > Hi, > > I have a question about data interpolation using python. I have a big ascii file containg data in the following format and around 200M points. > > id, xcoordinate, ycoordinate, zcoordinate > > then I have a second file containing data in the follow

Re: Call a shell command from Python

2016-11-05 Thread Bob Martin
in 767198 20161104 142132 Thomas 'PointedEars' Lahn wrote: >Ben Finney wrote: > >> Note that ‘sudo’ is specifically designed to be invoked interactively, > >Nonsense. > >> seeking to verify that the current user has credentials to run the >> command. > >NOPASSWD is not the default in sudoers(5

Re: Guido? Where are you?

2016-11-21 Thread Bob Martin
in 767657 20161121 041134 Thomas 'PointedEars' Lahn wrote: >Tristan B. Kildaire wrote: > >> Is Guido active on this newsgroup. > >That is not even a question. > >> Sorry for the off-topic ness. > >There is no excuse for (such) stupidity. Stop posting then. > >

Re: calling a program from Python batch file

2016-12-07 Thread Bob Gailer
On Dec 7, 2016 11:40 AM, "Karim Farokhnia" wrote: > > Hi there, > > I am writing a batch file in Python. The batch file, in part, calls a program named "oq-console.bat" to run. Then once the program comes up (it looks like windows CMD), I need the batch file to type some commands to make it run (j

Re: SIP install error on windows

2016-12-12 Thread Bob Gailer
On Dec 12, 2016 2:30 PM, "Xristos Xristoou" wrote: > > > hello i want to install sip on windows bit using python > 32 bit. > i download sip from this link https://www.riverbankcomputing.com > i try to install from cmd line : > > C:\WINDOWS\system32>cd C:\Users\username\Desktop\sip-4.17 > > C:\Use

Re: python list index - an easy question

2016-12-17 Thread boB Stepp
y [2,3,4,5]? > What you are asking about is "slicing". x[1:5] returns everything between index 1 through, but NOT including, index 5. See https://docs.python.org/3/tutorial/introduction.html#strings which will give examples using strings. A bit later the tutorial addresses sl

Re: Clickable hyperlinks

2017-01-03 Thread boB Stepp
put everything inside quotes. Also, you are missing a matching paren. Thus: py3: print("[Example](http://www.example.com)") [Example](http://www.example.com) As to whether anything will be "clickable" or not, what has already been said about different types of terminal

Re: Clickable hyperlinks

2017-01-06 Thread boB Stepp
put everything inside quotes. Also, you are missing a matching paren. Thus: py3: print("[Example](http://www.example.com)") [Example](http://www.example.com) As to whether anything will be "clickable" or not, what has already been said about different types of terminal

Re: Doubt with matrix

2017-01-12 Thread Bob Gailer
Always Post the entire traceback. That will show us the line of code that raised the error, as well as the sequence of function calls involved. On Jan 12, 2017 11:10 AM, "José Manuel Suárez Sierra" < josemsuarezsie...@gmail.com> wrote: > Hello, I want to go over matrix indexs with this code: > d

Re: How coding in Python is bad for you

2017-01-23 Thread Bob Martin
in 770207 20170124 005601 Chris Angelico wrote: >REXX has even less structure than Python - it doesn't even have >functions, just labels, so you can actually have two functions that >share a common tail. And yes, you can abuse that horrendously to >create unreadable code. Is REXX a bad language b

Re: How coding in Python is bad for you

2017-01-24 Thread Bob Martin
in 770220 20170124 070853 Chris Angelico wrote: >On Tue, Jan 24, 2017 at 6:00 PM, Bob Martin wrote: >> in 770207 20170124 005601 Chris Angelico wrote: >> >>>REXX has even less structure than Python - it doesn't even have >>>functions, just labels, so yo

The argparse docs don't say who's responsible for closing FileType objects

2017-01-25 Thread Bob Kline
The subject line pretty much says it all. Should the programmer close the file? If the programmer does that, and the user has asked that the file object be hooked up to standard in (or standard out) what will happen? If the programmer doesn't close it, does it get closed cleanly in the face of a

Re: Need reviews for my book on introductory python

2017-01-26 Thread bob gailer
On 1/25/2017 9:25 PM, Sandeep Nagar wrote: Hi, A few month ago I wrote a book on introductory python based on my experinces while teaching python to Bachelor students of engineering. It is now available in e-book and paperback format at Amazon. https://www.amazon.com/dp/1520153686 The book i

Re: Need reviews for my book on introductory python

2017-01-27 Thread bob gailer
On 1/26/2017 8:05 PM, Sandeep Nagar wrote: Hi As I mentioned, a scaled down version is available for free at bookmuft.Com which can be used to judge in this case. Maybe I am blind, but I don't see any mention of bookmuft.Co. Regards On Jan 27, 2017 05:02, "bob gailer&quo

Re: Need reviews for my book on introductory python

2017-01-27 Thread bob gailer
On 1/25/2017 9:25 PM, Sandeep Nagar wrote: Hi, A few month ago I wrote a book on introductory python based on my experinces while teaching python to Bachelor students of engineering. It is now available in e-book and paperback format at Amazon. https://www.amazon.com/dp/1520153686 The book i

Re: RE: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Bob Martin
in 770457 20170131 011814 "Joseph L. Casale" wrote: >> C# hardly seems any better than Java to me as far as a language goes. > >Which sounds pretty good to me, they are both high performance, mature >and rich languages. > >> Being forced into working with classes even when they are not >> appropri

Re: psychocomputational analysis toolkit in Python?

2018-03-08 Thread Bob Gailer
On Mar 8, 2018 10:08 AM, "Etienne Robillard" wrote: > > Thanks for sharing this link. MNE looks pretty cool. :-) > > I'm mostly interested in mapping specific cortical pathways to brain-to-brain interfaces implicated in the ultrasonic neuromodulation of behavior. > > Would it be possible to emulat

Re: number of loops

2018-03-15 Thread Bob Gailer
On Mar 15, 2018 9:30 AM, wrote: > > I would like to have this offer 6 guesses, but instead it gives one guess and prints the if statement/output 6 timesany ideas where I went wrong? I suggest you conduct a walk-through. That means pointing using a pencil or a mouse pointer at each statement a

Re: Issue with python365.chm on window 7

2018-04-23 Thread Bob Martin
in 793268 20180423 223830 "Brian Gibbemeyer" wrote: >From: Brian Gibbemeyer/Detroit/IBM >To: python-list@python.org, d...@python.org >Date: 04/23/2018 03:35 PM >Subject:Issue with python365.chm on window 7 > > >Not sure which email this should go to. > >But I downloaded .chm versio

Re: Meaning of abbreviated terms

2018-05-10 Thread Bob Martin
in 793605 20180511 044309 T Berger wrote: >On Saturday, May 5, 2018 at 6:45:46 PM UTC-4, MRAB wrote: >> On 2018-05-05 17:57, T Berger wrote: >> > What does the "p" in "plist" stand for? >> > Is there a python glossary that spells out the meanings of abbreviated >> > terms? >> > >> "plist" is "pro

Re: Meaning of abbreviated terms

2018-05-11 Thread Bob Martin
in 793617 20180511 072806 Steven D'Aprano wrote: >On Fri, 11 May 2018 07:20:36 +0000, Bob Martin wrote: > >> in 793605 20180511 044309 T Berger wrote: >>>On Saturday, May 5, 2018 at 6:45:46 PM UTC-4, MRAB wrote: >>>> On 2018-05-05 17:57, T Berger wrote: >

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

2018-05-24 Thread boB Stepp
tinue") are only meaningful inside for or while loops. You do not have one of these inside your function. See https://docs.python.org/3/reference/simple_stmts.html#break -- boB -- https://mail.python.org/mailman/listinfo/python-list

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
nd – command used to show the image I have not had occasion to use PIL, but perhaps this command parameter can be used to do what you want? If not then perhaps you can write your own function to load your image into your favorite image viewer. -- boB -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I list only the methods I define in a class?

2018-05-31 Thread bob gailer
On 5/31/2018 3:49 PM, bruceg113...@gmail.com wrote: > How do I list only the methods I define in a class? Here's a class with some method, defined in various ways: >>> class x(): ... a=3 ... def f():pass ... g = lambda: None ... >>> l=[v for v in x.__dict__.items()]; print(l) [('a',

Re: add me

2018-06-04 Thread Bob Gailer
On Jun 3, 2018 10:12 AM, wrote: > > i am saran. i want to learn python programming. Welcome. In future please use the python tutor email list - it is there to provide guidance. Go to the python. Org website - look for tutorials. That's the best place to start. -- https://mail.python.org/mailman/

Re: your mail

2018-06-10 Thread Bob Gailer
On Jun 10, 2018 12:44 PM, "Karsten Hilbert" wrote: > > On Sun, Jun 10, 2018 at 06:58:17PM +0530, sagar daya wrote: > > > Couldn't install any module from pip > > Plz help??? The only help I can give at this point is to suggest that you tell us what you tried and how it failed. Please copy and pas

Re: syntax difference

2018-06-23 Thread boB Stepp
n of things you like in one of your languages.), and if you manage to persuade the community of its usefulness, then write up a PEP about it? Just saying ... ~(:>)) -- boB -- https://mail.python.org/mailman/listinfo/python-list

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-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 lis

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 fea

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 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
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: Getting posts to sort chronologically in tree view

2018-07-04 Thread boB Stepp
ve, Cameron, etc. hang out in the Tutor list, too, and provide tons of help to Python learners. 2) Some of your questions have not been directly Python-related. You will probably find better and quicker answers if you search out the forums dedicated to those more specialized areas. -- boB -- h

Re: Kindness

2018-07-13 Thread boB Stepp
strives for, and, perhaps, even make room for those curmudgeonly, old uncles that keep popping in for unexpected visits? -- boB -- https://mail.python.org/mailman/listinfo/python-list

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Bob Martin
in 796624 20180714 064331 Gregory Ewing wrote: >Larry Martell wrote: >> And while we're talking about the Dutch, why is the country called >> Holland, but then also The Netherlands, but the people are Dutch? > >And Germany is called Deutchland? The real question is why do English speakers refer t

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

2018-07-15 Thread boB Stepp
searching for the exact error message and see what answers might already be out there? If you provide these things, or, better, search and find the answer yourself, I'm sure someone will be happy to assist. Good luck! -- boB -- https://mail.python.org/mailman/listinfo/python-list

Re: Python MySQL Guide

2018-08-10 Thread Bob Gailer
Thank you for this offer. My reaction is I don't like having to scroll through one very long page to find what I'm looking for. Might you consider breaking it up into a number of smaller pages and giving an index as the main page? On Aug 9, 2018 5:18 PM, wrote: > Refer this complete guide on wor

Re: Python in endless loop

2018-09-17 Thread Bob Gailer
On Sep 17, 2018 9:31 AM, "YnIk" wrote: > > Dear Python, > Hello. This is an email concerning about my Python program(3.7.0). It keeps printing out stuff that’s too fast to read. If I try to write code, it just keeps on going. I have tried Ctrl+C, but even that’s not working. I searched through all

Re: Experiences with a programming exercise

2018-09-17 Thread Bob Gailer
On Sep 15, 2018 1:50 PM, "Alister via Python-list" wrote: > > On Sat, 15 Sep 2018 17:08:57 +, Stefan Ram wrote: > > > I gave two different functions: > > > > def triangle(): > > for i in range( 3 ): > > forward( 99 ); left( 360/3 ) > > > > def rectangle() > > for i in range( 4

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-02 Thread Bob Gailer
On Oct 2, 2018 4:59 PM, "Musatov" wrote: > > Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1. > DATA > > 31, 71, 73, 137, 211, 311, 419, 421, 647, 877, 1117, 1487, 1979, 2447, 3079, 3547, 4027, 7307, 7309, 12211, 14243, 18911, 18913, 23557, 25439, 28729, 36683, 37831, 46853, 50

Re: Creating dice game : NEED HELP ON CHECKING ELEMENTS IN A LIST

2018-10-06 Thread bob gailer
# your program is quite complicated. classes are overkill. A simpler solution is: import random for i in range(5):     roll = random.randint(1,6)     if roll not in (1,5):     print('you can roll again')     break else:     print("you have all 1's and 5's in your result'") # comments on 

Re: snakify issues

2018-10-13 Thread bob gailer
between me and the Site Maintainer Here is the latest: On 9/28/2018 1:02 PM, Vitaly Pavlenko wrote: Hi Bob, Thanks for your email. I’d be very happy if you could describe what sort of issues were you running into. I drafted a rather lengthy reply which I sent to you on October 1. I have not re

Re: Python Enhancement Proposal for List methods

2018-10-22 Thread Bob Gailer
Many of the features of python were added not out of need but rather for convenience. If need were the only criteria we could immediately get rid of comprehensions, since they can be written as a series of for loops, the same can be said for many other newer features. Python is all about making t

Re: Accessing clipboard through software built on Python

2018-10-27 Thread Bob Gailer
On Oct 27, 2018 9:20 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 s

Re: zenity substitution

2018-10-28 Thread Bob Gailer
un on all three OS-es > (Linux, Windows, MacOS). > > The scripts in questions make extensive use of Linux "zenity" > dialogs. > > Is there an equivalent facility in Python 3? If so, what is it? Look up zenity in Wikipeda. Scroll down to cross-platform script. Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: int.to_bytes() for a single byte

2018-11-06 Thread bob gailer
on which provides a more logical interface to this straightforward task? Take a look at the struct module. Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: Windows file associations fix

2018-11-09 Thread boB Stepp
relevant or not for Windows 7, but during the past week my phone's Google news feed had an article about a recent Windows *10* update breaking file associations. Might a recent Windows *7* update have done the same? -- boB -- https://mail.python.org/mailman/listinfo/python-list

Re: Error in installing "pyperclip" module

2018-11-10 Thread boB Stepp
d be the Python Tutor mailing list. Subscription information can be found at https://mail.python.org/mailman/listinfo/tutor However, people on the this main list are quite friendly and helpful to newbies as well. In fact many here actively monitor and help out on the Tutor list. -- boB -- https://ma

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 tha

Re: help install numpy and scipy in window 7 and 3.5.0 shell

2016-04-15 Thread Bob Gailer
On Apr 15, 2016 10:40 AM, wrote: > > Hi all, > > I have downloaded the numpy-1.11.01 and scipy-0.17.0 but after running setup files over IDLE in numpy and scipy, it still can not get through. Can someone give me a hand? or you can provide the installation instruction for both. Can you be more spe

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Bob Martin
in 758117 20160416 053809 Steven D'Aprano wrote: >Until now, PEP 8 has recommended that multi-line expressions should break >*after* infix operators: > > >result = (this_value * >some_value + >another_value - >excess_value or >default_value >) > > >After a mercifully short discussion on the Python

Re: Installation problem

2016-04-16 Thread boB Stepp
4 bit.) seems appropriate. Usually I can solve my own problems much quicker this way than waiting on someone to respond on this (or other) mailing lists! BTW, if you are a beginner learning Python you might want to subscribe to the Python Tutor list as it is designed for those of us who are lea

Re: Immediate Requirement: use the Python Job Board for recruitment (was:

2016-04-26 Thread Bob Martin
in 758723 20160427 000706 Ben Finney wrote: >sourav524.itsci...@gmail.com writes: > >> Hello Associates, >> Please go through the below job description and let me know your >> interest. > >Hello recruiters, > >Please don't use Python discussion forums for recruiting. Instead, use >the Python Job B

Re: Python path and append

2016-04-29 Thread boB Stepp
ional approach? -- boB -- https://mail.python.org/mailman/listinfo/python-list

Re: How to fill in abbreviation in one column based on state name in another column?

2016-04-30 Thread Bob Gailer
1) Your code seems to be missing a lot. 2) it's better to post a small sample of the dictionary rather than the whole thing. 3) remove the comments that don't seem to say anything useful. 4) tell us what problems you are having -- https://mail.python.org/mailman/listinfo/python-list

Re: Python3 html scraper that supports javascript

2016-05-01 Thread Bob Gailer
On May 1, 2016 10:20 AM, wrote: > > Hi, > > can you please recommend to me a python3 library that I can use for scrapping JS I'm not sure what you mean by that. The tool I use is Splinter. Install it using pip. that works on windows as well as linux? -- https://mail.python.org/mailman/listinfo/py

Re: Conditionals And Control Flows

2016-05-04 Thread Bob Gailer
On May 4, 2016 10:45 AM, "Cai Gengyang" wrote: > > I am trying to understand the boolean operator "and" in Python. It is supposed to return "True" when the expression on both sides of "and" are true > > For instance, > > 1 < 3 and 10 < 20 is True --- (because both statements are true) > 1 < 5 and

Re: Fw: Question about issue with opening Python

2016-05-13 Thread Bob Gailer
On May 13, 2016 9:22 AM, "christopher.amor...@mail.citytech.cuny.edu" < christopher.amor...@mail.citytech.cuny.edu> wrote: > > > > > > > From: christopher.amor...@mail.citytech.cuny.edu > Sent: Thursday, May 12, 2016 7:35 PM > To: python-list@python.org > Subject: F

Re: for / while else doesn't make sense

2016-05-19 Thread Bob Martin
in 759855 20160519 185500 Jon Ribbens wrote: >On 2016-05-19, Steven D'Aprano wrote: >> On Fri, 20 May 2016 02:31 am, Herkermer Sherwood wrote: >>> Most keywords in Python make linguistic sense, but using "else" in for and >>> while structures is kludgy and misleading. I am under the assumption th

Re: Extract the middle N chars of a string

2016-05-20 Thread boB Stepp
5 py3: mid(s, n) '34567' py3: n = 4 py3: mid(s, n) '3456' py3: s = '123456789' py3: n = 5 py3: mid(s, n) '34567' py3: n = 4 py3: mid(s, n) '4567' py3: s = 'aardvark' py3: n = 5 py3: mid(s, n) 'rdvar' This also returns an e

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

2016-05-24 Thread boB Stepp
e, it might be for diversionary posts to be relabeled in the subject line a bit more diligently, so that one can still keep track of the original subject matter easily, while still enjoying the tangential material. Other than that, I hope that these sorts of discussions continue unabated!

Re: Beginner Question

2016-06-01 Thread boB Stepp
When Python assigns the default argument for the empty list and that lists are *mutable*. Enjoy! -- boB -- https://mail.python.org/mailman/listinfo/python-list

Re: Recommendation for Object-Oriented systems to study

2016-06-02 Thread Bob Martin
in 760378 20160602 131534 Alan Evangelista wrote: >On 06/02/2016 02:44 AM, Lawrence D�Oliveiro wrote: >> On Monday, May 30, 2016 at 7:17:47 AM UTC+12, Alan Evangelista wrote: >>> - Java forces everything to be implemented in OO model (classes) >> After you have spend a few months battering your

Re: value of pi and 22/7

2016-06-18 Thread boB Stepp
rated (Made to agree as well as possible with known standards.). boB -- https://mail.python.org/mailman/listinfo/python-list

Re: Assignment Versus Equality

2016-06-27 Thread Bob Gailer
On Jun 26, 2016 5:29 PM, "Michael Torrie" wrote: > > On 06/26/2016 12:47 PM, Christopher Reimer wrote: > Sounds like fun. Every aspiring programmer should write an interpreter > for some language at least once in his life! In the mid 1970' s I helped maintain an installation of IBM' s APL inter

Re: Need help in python program

2016-07-01 Thread Bob Gailer
On Jul 1, 2016 6:30 AM, "Archana Sonavane" wrote: > > Hello Everyone, > > I am doing python code by using API. > > My first API giving fields - Itemid, clock and value > second API giving fields - Itemid, key, units and delay > > using for loops for both API. > > Could you please tell me how to co

Re: Help with subclasses and classes

2016-07-02 Thread Bob Gailer
On Jul 2, 2016 9:00 PM, wrote: > > When i run the code I get this error : > Traceback (most recent call last): > File "C:/Python25/chapter2", line 18, in > bank=InterestAccount(5,1000,0.5) > NameError: name 'InterestAccount' is not defined > > I can't find the issue, any help? Following is

Re: the best online course

2016-07-10 Thread Bob Martin
in 762247 20160709 223746 Malik Rumi wrote: >I want one of those "knuckle down and learn" classes. But even more than th= >at, I want a class with a real teacher who is available to answer questions= >and explain things. I've done a lot of books and online video, but there's= >usually no help. If

Re: the best online course

2016-07-10 Thread Bob Martin
in 762282 20160711 063300 Steven D'Aprano wrote: >On Monday 11 July 2016 13:07, Rustom Mody wrote: > >> Python is good for black-box – us the ‘batteries included’ without >> worrying >> too much how they are made >> Scheme, assembly language, Turing machines etc are at the other end of the

Re: Just starting to learn Python, and encounter a problem

2016-07-22 Thread Bob Gailer
On Jul 22, 2016 10:00 AM, "Zagyen Leo" wrote: > > yeah, it may be quite simple to you experts, but hard to me. > > In one of exercises from the Tutorial it said: "Write a program that asks the user their name, if they enter your name say "That is a nice name", if they enter "John Cleese" or "Micha

Re: Need help for python on my pc.

2018-11-21 Thread boB Stepp
cannot be set as the default. In some cases, attempting to set application defaults again will succeed. Microsoft is working on a resolution and estimates a solution will be available in late November 2018. -- boB -- https://mail.python.org/mailman/listinfo/python-list

Re: Python-remove duplicate output

2018-11-22 Thread Bob Gailer
; duplicate members are ignored. > > Before you start the for loop, create a set: > > names = set() > > Instead of `print name`, you add the name to the set: > > names.add(name) > > Note that if name already exists, because members of a set are unique, > the name is (at least conceptually) ignored. > > Once the for loop is completed, you print the remaining names. > > print names (Python 2) > or > print(names) (Python 3) It is actually sufficient to just say print)names) since that works equally well in 2 or 3. Bob -- https://mail.python.org/mailman/listinfo/python-list

Re: can you please help me in opening the python programming.

2018-11-23 Thread Bob Gailer
We would be glad to help. I can't tell from your question what kind of help you need so please give us more information. Have you tried to install python? If so has the installation succeeded? What do you mean by "open the programming"? What have you tried? What do you expect to see? -- https

Re: Install

2018-11-23 Thread Bob Gailer
OK. On Nov 23, 2018 8:08 AM, "Salomon Chavarin" wrote: > > > Sent from Mail for Windows 10 > > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.or

Re: Intitalize values for a class

2018-11-23 Thread Bob Gailer
On Nov 23, 2018 8:42 AM, "Ganesh Pal" wrote: > > Hello team, > > I am a python 2.7 user on Linux. I will need feedback on the below program > as I'm new to oops . What kind of feedback do you want? > > #!/usr/bin/python > > > class System(object): > > '''Doc - Inside Class ''' > > def __init

Re: Intitalize values for a class

2018-11-23 Thread Bob Gailer
e learn how to write effective questions. You can Google that and find several good resources. Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: help me in a program in python to implement Railway Reservation System using file handling technique.

2018-11-25 Thread Bob Gailer
On Nov 24, 2018 1:35 AM, wrote: > > hello all, > please hepl me in the above program. What do you mean by "the above program"? I don't see any. python to implement Railway Reservation System using file handling technique. > > System should perform below operations. > a. Reserve a ticket for a p

Re: PEP 572 -- Assignment Expressions

2018-11-27 Thread bob gailer
in 1969 in the fortran iv compiler for the GE 415 computer. Love at first sight. -- Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: What Python books to you recommend to beginners?

2018-12-02 Thread boB Stepp
greatest Python 3 features, but the book's entire focus is teaching OOP in a Python 3 context. -- boB -- https://mail.python.org/mailman/listinfo/python-list

Re:

2018-12-11 Thread Bob Gailer
at does not make sense to me. Could you show us exactly what this request looks like? > the app(which is Python)couldn't find where the files were located. Again please show us the messages you got. It is best if possible to copy and paste this information into your reply Bob Gailer --

Re: ttk present but not found for import

2019-01-19 Thread boB Stepp
gt; [GCC 5.5.0] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import tkinter > >>> import ttk > Traceback (most recent call last): >File "", line 1, in > Modul

Re: Exercize to understand from three numbers which is more high

2019-01-25 Thread Bob Gailer
ve given any answer to the problem until you had an opportunity to research it more thoroughly. We don't learn by being given answers. Also in the future use tu...@python.org as that's the proper place for this kind of question. Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I get a python program to work on my phone?

2019-01-29 Thread Bob Gailer
on program on the websocketd website that shows how to do the server side of websockets communication. Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   >