Re: Pickling issue.

2020-12-21 Thread Bob Gailer
On Mon, Dec 21, 2020, 3:03 PM Vincent Vande Vyvre < vincent.vande.vy...@telenet.be> wrote: > Hi, > > I've an object that I want to serialise with pickle. > When I reload the object the attributes of this object are correctly > fixed except one of these. > > This attribute (value) define a simple

Re: Library for text substitutions with calculations?

2020-12-15 Thread Bob Gailer
text substitution I > would > > like to be able to do some calculations: > > > > $value+1 - If value is 16 this would insert 17 in the text. I would also > > like to subtract. > > val = 2 print(f'{val+3}') 5 Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: Unable to download

2020-12-09 Thread Bob Gailer
gt; download it. Please help. What OS are you using? Exactly what did you do to download? Exactly what did the error.message say? Bob Gailer > -- https://mail.python.org/mailman/listinfo/python-list

Re: try/except in loop

2020-11-27 Thread Bob Gailer
he loop I think continues, throws the error again, and that > second throw is not caught. > It would appear that get items is a generator which uses the token exactly once when it is first started; subsequent calls to the generator all use the same token. You need to test the token; if it fails, obtain a new one, then start the loop. Bob Gailer > -- https://mail.python.org/mailman/listinfo/python-list

Re: How to start using python

2020-11-13 Thread Bob Gailer
I am not feeling well these days. It is sometimes difficult for me to respond to others the way I would like to. This is a long reply; in my humble opinion is important to read all of it 1-whenever you respond to an email from one of us please include the help list what you can do by reply-all

Re: How to start using python

2020-11-12 Thread Bob Gailer
python. You also might try from a terminal or command prompt typing py, which should start up a python Interactive session. You should see>>> type 2 + 3 hit enter you should see a new line displaying five. Let us know how it goes and we'll give you a hand from there. Bob Gailer -- https:

Re: How can I make this more complex?

2020-11-09 Thread Bob Gailer
On Nov 9, 2020 5:59 PM, "Quentin Bock" wrote: > > grade = input("Enter your grade: ") > if grade >= 90: > print("You got an A ") > if grade >= 80: > print("You got a B ") > if grade >= 70: > print("You got a C") > if grade >= 60: > print("You got a D ") > if grade >= 50: >

Re: Module import question

2020-08-09 Thread Bob Gailer
On Aug 9, 2020 11:41 AM, "Mats Wichmann" wrote: > > On 8/9/20 12:51 AM, Gabor Urban wrote: > > Hi guys, > > > > I have a quite simple question but I could not find the correct answer. > > > > I have twoo modules A and B. A imports B. If I import A in a script, Will > > be B imported

Re: python installation help

2020-07-10 Thread Bob Gailer
u're trying to install, What you tried, Results you got that you weren't expecting. Don't attach screenshots as they probably won't come through. Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Curses Programming HowTo -reviewers?

2020-06-16 Thread Bob Gailer
> If anyone feels keen please reply and I'll forward a copy. I'm interested please forward me a copy. Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: Can't run program

2020-05-19 Thread Bob Gailer
rror messages you got, or whatever "still having problems" means. I'm pretty sure this list does not take attachments, so you either need to copy and paste what you might have typed and any results from that, or put images in a place like pastebin and give us the link. Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: Not able use installed modules

2020-05-09 Thread Bob Gailer
en using python for many many years and have been repeatedly frustrated with pip. Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: Error 0x80070643

2020-04-29 Thread Bob Gailer
one on the list gets to see your response. Also let us know where you got the installer from and exactly what you did to try to install from it. Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: Getting the dependencies of a function from a library

2020-04-20 Thread Bob Gailer
as to whether or not this is a turing complete problem. If you succeed in coming up with a sample input and output then how about trying to write a program to process that input to get that output. Post those results to this list and we'll see what we can do to help you. Bob gailer On Apr 20, 2020

Re: Issues regarding the download

2020-04-18 Thread Bob Gailer
does not accept attachments so you will have to copy and paste any text you want to share with us. Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: Fwd: Troubling running my Python

2020-04-08 Thread bob gailer
3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: Fwd: Troubling running my Python

2020-04-08 Thread bob gailer
to have 'repaired' itself when I ran the setup again but the interpreter still won't run. Is there a reason for this? Do you require a screenshot? Which operating system are you using? Exactly what do you do to "run the intepreter"? Copy and paste your actions and any messages. Bob Gailer

Re: Please Help! Absolute Novice - New Job, have this task.

2020-03-18 Thread bob gailer
ually doing something that will take a little time. Also it is not a good idea to duplicate code, so I would put those 2 lines in a function and call that function from 2 places. Am I going in the right direction? Am I missing something? class Application(): def run(): import sys

Re: Python download for windows

2020-03-09 Thread Bob Gailer
:> You talk only about downloading - and the link you gave leads to the download page as a whole, so we can't guess the OS you - or your daughter - use. the subject line explicitly states "download for Windows" Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: Python download for windows

2020-03-09 Thread Bob Gailer
On Mar 9, 2020 5:22 AM, "Hilary Ilsley" wrote: > > Hello > > We have been asked to download python so our daughter can complete her homework, only once we have down loaded it keeps going to "set up" and even after completing "modify" or "repair" it goes back to set up. You're getting that

Re: Need Help Urgently

2020-02-26 Thread Bob Gailer
to write the program for you then one of us will be glad to act as a paid consultant and do that for you. Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: no explanation towards not installing my application//

2020-02-03 Thread Bob Gailer
rogram? Exactly what did you do to try to open python? Exactly what results did you get? Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re:

2020-01-17 Thread Bob Gailer
end me > that software direct link Try this link: Windows x86-64 executable installer <https://www.python.org/ftp/python/3.8.1/python-3.8.1-amd64.exe> Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: Implementing CURL command using libcurl in C/C++

2019-12-13 Thread Bob Gailer
This list is for Python, not C/C++. On Dec 13, 2019 3:50 AM, "Karthik Sharma" wrote: > The `CURL` command that I am using is shown below. > > curl -F 'file=@/home/karthik/Workspace/downloadfile.out' > http://127.0.0.1:5000/file-upload --verbose > > The response from the server is shown

Re: Looking for python pentest scripts

2019-11-10 Thread Bob Gailer
Try Googling python pentesting. That will give you some relevant links. On Nov 10, 2019 6:40 AM, "nixuser" wrote: > Hello, > > can someone tell about good resource for python related pentesting > scripts? > any extensive list? > > Thanks > -- >

Re: How execute at least two python files at once when imported?

2019-11-05 Thread Bob Gailer
On Nov 5, 2019 1:35 PM, "Spencer Du" wrote: > > Hi > > I want to execute at least two python files at once when imported but I dont know how to do this. Currently I can only import each file one after another but what i want is each file to be imported at the same time. Can you help me write the

Re: List comprehension strangeness

2019-07-22 Thread Bob Gailer
The length of the list produced by the comprehension also give you good information. -- https://mail.python.org/mailman/listinfo/python-list

Re: List comprehension strangeness

2019-07-22 Thread Bob Gailer
The function IMHO must be returning a generator. I would look for a problem in the generator code. -- https://mail.python.org/mailman/listinfo/python-list

Re: Do I need a parser?

2019-06-29 Thread bob gailer
I might be able to help. I'd need to understand a bit more about the configuration and scripting languages. Do you have any reference material? Or some way to look up the titration device on the internet? -- Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

[issue37430] range is not a built-in function

2019-06-27 Thread bob gailer
bob gailer added the comment: Thanks for explaining. Indeed range appears in __builtins__. It is a surprise to type range and get in response. sum otoh gives . The distinction between function, type and class seems muddy. When I enter "range" in the index box in the windows doc

[issue37430] range is not a built-in function

2019-06-27 Thread bob gailer
New submission from bob gailer : In section 8.3 The for statement there is a reference to range as a built-in function. That was true in python 2. Now range is a built-in type. -- assignee: docs@python components: Documentation messages: 346745 nosy: bgailer, docs@python priority

Re: Python running issues

2019-04-19 Thread Bob Gailer
please copy everything from the command you entered through the end of the error message. Then paste that into a reply email. Also let us know what your operating system is. Be sure to reply all so a copy goes to the list. Bob Gailer On Apr 19, 2019 6:56 PM, "Kiranpreet Kaur" wro

Re: How to store scores of a race's players

2019-03-26 Thread Bob Gailer
Please do not use a mangled return email address. It causes us a lot of pain when we fail to read your address to fix it and get the message bounced back. The only reason I'm even bothering to resend it is because I put a lot of work into it.: > On > Mar 26, 2019 6:55 AM, "^Bart" wrote: > > > >

Re: How to store scores of a race's players

2019-03-26 Thread Bob Gailer
On Mar 26, 2019 6:55 AM, "^Bart" wrote: > > Hello! > > I need to store scores of three players for more than a race, after every race the user will read "Is the competition finished?", if the competition if finished the user will see the winner who got higest score: > Thank you for reaching out

Re: ajax with pyside webview

2019-02-19 Thread Bob Gailer
I assume you are referring to QT webview. "ajax via jquery does not work." Can you be more specific? what is the evidence that it's not working? It sounds like you've got a server running on your Local Host. What does the server tell you about its side of that Ajax request? --

Re: Im trying to replicate the youtube video Creating my own customized celebrities with AI.

2019-02-10 Thread Bob Gailer
prompt type pip install packagename. I suggest you switch from l...@python.org to h...@python.org. Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: OT - need help with PHP

2019-02-02 Thread Bob Gailer
Thank you. I will get back to you on that shortly. Bob -- https://mail.python.org/mailman/listinfo/python-list

Re: OT - need help with PHP

2019-02-01 Thread bob gailer
ly reached for a reasonable length recording. Trying to use the POST ability that allows me to specify the file by path fails at the vendor side. Apology for long post, but I don't know what to omit. Again any help is welcome. -- Bob Gailer --- This email has been checked for viruses by Avast

OT - need help with PHP

2019-02-01 Thread Bob Gailer
this to urllib. request have failed. I can't even figure out how to sign up for a PHP email list. Help with either of the above would be welcome. 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 the websocketd website that shows how to do the server side of websockets communication. Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

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:

2018-12-11 Thread Bob Gailer
es 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 -- https://ma

Re: PEP 572 -- Assignment Expressions

2018-11-27 Thread bob gailer
969 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: 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

Re: Intitalize values for a class

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

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

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

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

Re: Python-remove duplicate output

2018-11-22 Thread Bob Gailer
On Nov 22, 2018 8:50 AM, wrote: > > On Thursday, November 22, 2018 at 12:10:28 AM UTC+1, drvuc...@gmail.com wrote: > > How to remove duplicate lines and store output into one ine > > > >reservations = ec.describe_instances().get('Reservations', []) > > > >for reservation in reservations:

Re: int.to_bytes() for a single byte

2018-11-06 Thread bob gailer
vides 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: zenity substitution

2018-10-28 Thread Bob Gailer
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: 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

Re: Python Enhancement Proposal for List methods

2018-10-23 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

Re: snakify issues

2018-10-13 Thread bob gailer
on missing from tracebacks - no way to interrupt an infinite loop. My worst fear is that the list was overwhelming or seen as trivia or nit-pickingl. I have had other publishers refuse to talk to me after I had pointed out legitimate concerns. I don't understand that, but it happens. Bob Gaile

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: 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,

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

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

[issue34364] problem with traceback for syntax error in f-string

2018-08-08 Thread bob gailer
New submission from bob gailer : Inconsistent tracebacks. Note that the traceback for bug.py does not reference the module file and line number. # bug.py def f():   f'''   {d e}''' a=b import bug Traceback (most recent call last):   File "", line 1     (d e)    ^ S

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

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

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

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

Re: Fwd: Syntax error

2018-02-03 Thread bob gailer
On 2/3/2018 2:40 PM, Terry Reedy wrote: On 2/3/2018 2:10 PM, Kevin Doney wrote: Hi. *pip3 install --upgrade tensorflow-gpu* When I try the above command I get SyntaxError: invalid syntax Please help. This group helps those who help the group -- by asking questions with sufficient

adding elif to for

2017-12-19 Thread bob gailer
Has any thought been given to adding elif to the for statement? for x in foo:     if y: break elif a==b:     something else:     something else as a shortcut to: for x in foo:     if y: break else:     if a==b:     something else:     something else bob gailer -- https://mail.python.org

Re: General Purpose Pipeline library?

2017-11-20 Thread Bob Gailer
On Nov 20, 2017 10:50 AM, "Jason" wrote: > > a pipeline can be described as a sequence of functions that are applied to an input with each subsequent function getting the output of the preceding function: > > out = f6(f5(f4(f3(f2(f1(in)) > > However this isn't very

Re: "comprehend" into a single value

2017-10-07 Thread bob gailer
On 10/7/2017 11:17 PM, Nathan Hilterbrand wrote: dict= {10: ['a',1,'c'], 20: ['d',2,'f']} p = sum([dict[i][1] for i in dict]) Something like that? Ah, but that's 2 lines. sum(val[1] for val in  {10: ['a',1,'c'], 20: ['d',2,'f']}.values()) On Sat, Oct 7, 2017 at 11:07 PM, Andrew Z

Re: detaching comprehensions

2017-09-08 Thread bob gailer
", a spread operator is required! |>>> k =( i for i in range( 3, 5 )) |>>> [ *k ] |[3, 4] "taken from"?? k is a generator object. Clear? Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading the documentation

2017-08-24 Thread bob gailer
On 8/24/2017 3:24 PM, Stefan Ram wrote: This is a transcript: from math import floor floor( "2.3" ) Traceback (most recent call last): File "", line 1, in TypeError: must be real number, not str help(floor) Help on built-in function floor in module math: floor(...) floor(x)

Re: Reading the documentation

2017-08-24 Thread bob gailer
On 8/24/2017 3:54 PM, Nathan Ernst wrote: You passed a string to "math.floor", not anything resembling a numeric type. Try using an actual float, int or Decimal: It would seem you did not understand the OP's question. It was not "why did I get this traceback." He showed the traceback as

Re:

2017-08-19 Thread Bob Gailer
Unfortunately the images did not come through, since this is a text-only email list. I suggest you put your images on an online resource such as Photobucket and post the links in your email. Unfortunately your description of the problem is not very precise. Obviously the images would help. Terms

Re: Application Error

2017-08-15 Thread Bob Gailer
On Aug 15, 2017 9:50 AM, "Alhassan Tom Alfa" wrote: > > Dear Sir, > > I just downloaded Python Exactly what did you download? Where did you download it from? There are 32 bit versions and 64-bit versions. Did you download the one corresponding to your computer? Normally

Re: instructor solution manual for MODERN OPERATING SYSTEMS 2nd ed A.S.TANENBAUM

2017-08-10 Thread Bob Gailer
On Aug 10, 2017 7:15 AM, wrote: > > > > solutions manual to MODERN OPERATING SYSTEMS 3rd ed A.S.TANENBAUM > > > can you plz provide it for me.. This mailing list is for the Python programming language, not for operating systems. It is possible that someone else on this

Re: Planning a Python Course for Beginners

2017-08-08 Thread Bob Gailer
On Aug 8, 2017 10:20 AM, "Stefan Ram" wrote: > > I am planning a Python course. > > I started by writing the course akin to courses I gave > in other languages, that means, the course starts roughly > with these topics: > > - number and string literals > - types

Re: Code for addition

2017-08-04 Thread Bob Gailer
On Aug 4, 2017 5:27 PM, "Ode Idoko via Python-list" wrote: > > Can anyone help with the python code that can add 101, 102, 103...2033 please? We are here to help but we don't have crystal balls to interpret your request. The best thing you can do is show us what attempts

Re: Bug or intended behavior?

2017-06-15 Thread bob gailer
Sending this to docs in hopes of improving documentation of % formatting and operator precedence. Perhaps add "see 6:16 Operator precedence." On 6/3/2017 5:59 PM, Sean DiZazzo wrote: On Friday, June 2, 2017 at 10:46:03 AM UTC-7, bob gailer wrote: On 6/2/2017 1:28 PM, Jussi Piitula

Re: python certification

2017-06-08 Thread Bob Gailer
On Jun 8, 2017 7:58 AM, "Gonzalo V" wrote: > > hi, > good day. > where can i get a python certification? I'm not sure there is such a thing. Try Googling. > thanks! > -- > https://mail.python.org/mailman/listinfo/python-list --

Re: Bug or intended behavior?

2017-06-02 Thread bob gailer
only one conversion specifier - that avoids the problem you encountered and makes it easy to add more values when you add more conversion specifiers. print "foo %s" % (1-2,) Bob Gailer -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax error in first-time user script

2017-03-24 Thread Bob Gailer
On Mar 24, 2017 4:53 AM, "john polo" wrote: > > Greetings, > I am attempting to learn Python. I have no programming background. I'm on a computer with Windows 7. I checked the PATH in System Variables and Python and Python\Scripts are in the path. I have a book, Python for

Re: Who are the "spacists"?

2017-03-18 Thread Bob Gailer
On Mar 17, 2017 9:23 PM, "Mikhail V" wrote: > > So Python supports both spaces and tabs for indentation. > > I just wonder, why not forbid spaces in the beginning of lines? > How would one come to the idea to use spaces for indentation at all? One problem for me with tabs:

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

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" <bgai

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

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

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

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

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

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

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

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

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'); > }); > > ... >

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

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

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,

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

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

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:

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

  1   2   >