Re: [Tutor] Having Issues with CMD and the 'python' command

2008-12-15 Thread bob gailer
ariables Click Edit. Add ;C:\python26 -- Bob Gailer Chapel Hill NC 919-636-4239 -- http://mail.python.org/mailman/listinfo/python-list

Re: Automation

2013-11-03 Thread bob gailer
no direct relationship to Python. Does this have anything to do with statistics? Quantum theory? Telephony? P = Pluto, V = Venus, S = Saturn? Help us understand - then we *might* be able to help you. -- Bob Gailer 919-636-4239 Chapel Hill NC -- https://mail.python.org/mailman/listinfo/python-list

Re: Automation

2013-11-03 Thread bob gailer
that aproximate with this result, and then return the vector position. Oh ... will you please explain in good English and a lot more detail. I can only begin to guess from that what you want. Guessing wastes all our time. -- Bob Gailer 919-636-4239 Chapel Hill NC -- https://mail.python.org/mailman

Re: Automation

2013-11-03 Thread bob gailer
Let's remember that it is the job of the OP to explain his problem so we can offer solutions. -- Bob Gailer 919-636-4239 Chapel Hill NC -- https://mail.python.org/mailman/listinfo/python-list

Re: Help me with this code PLEASE

2013-11-05 Thread bob gailer
existing keys (slow!) -- Bob Gailer 919-636-4239 Chapel Hill NC -- https://mail.python.org/mailman/listinfo/python-list

Re: To whoever hacked into my Database

2013-11-07 Thread bob gailer
This is getting udderly ridiculous. Let's leave veal enough a loin. BTW what did the termite say when he entered the tavern? -- Bob Gailer 919-636-4239 Chapel Hill NC -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating a function for a directory

2013-11-11 Thread bob gailer
, 'w') out_file.write(indata) out_file.close() in_file.close() Also don't get in the habit of reassigning built-in functions e;g; file. firstdev(test) -- Bob Gailer 919-636-4239 Chapel Hill NC -- https://mail.python.org/mailman/listinfo/python-list

Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread bob gailer
flame war. Thanks for hearing me. -- Bob Gailer 919-636-4239 Chapel Hill NC -- https://mail.python.org/mailman/listinfo/python-list

Re: Invalid syntax with print Hello World

2013-11-14 Thread bob gailer
On 11/14/2013 10:05 AM, johannes.gun...@gmail.com wrote: Am Donnerstag, 12. März 2009 07:57:11 UTC+1 schrieb Henrik Bechmann: obviously total mewbiew: My first program in Python Windows print Hello World I assume you are running Python 3 in which case you need print(Hello World) -- Bob

Re: python programming help

2013-12-08 Thread bob gailer
On 12/8/2013 12:59 PM, rafaella...@gmail.com wrote: i have a dictionary with names and ages for each name. I want to write a function that takes in an age and returns the names of all the people who are that age. please help Welcome to the python list. Thanks for posting a question. If you

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-09 Thread bob gailer
On 12/9/2013 7:23 AM, Oscar Benjamin wrote: [snip] I'm interested to know if anyone can share experience of a similar situation or can point to any case studies about this. Taking the opposite perspective from Gene: I think Python is great as an intro to computing and programming. Give a

Re: Is there any advantage to using a main() in python scripts?

2013-12-11 Thread bob gailer
On 12/11/2013 4:55 AM, JL wrote: What is the advantage to using a main()? In addition to what's been said I add: It separates all the global activities: defining of functions and classes, importing modules, etc. from the doing the actual task of the program. It also ensures that the

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-11 Thread bob gailer
On 12/11/2013 3:43 AM, Chris Angelico wrote: When you tell a story, it's important to engage the reader from the start...explain This is how to print Hello World to the console and worry about what exactly the console is (and how redirection affects it) Highly agree. I was once given FORTRAN

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-12 Thread bob gailer
On 12/11/2013 9:07 PM, Larry Martell wrote: Nope. Long before that I was working on computers that didn't boot when you powered them up, You had to manually key in a bootstrap program from the front panel switches. PDP8? RIM loader, BIN loader? --

Re: Need help with file object

2013-12-13 Thread bob gailer
On 12/12/2013 11:29 PM, Unix SA wrote: ... With above prog I am getting error TypeError: coercing to Unicode: need sting or buffer, file found In future please copy and paste the entire traceback. It appears that you typed in just one line of it. In this case the line raising the exception

Re: Newbie question. Are those different objects ?

2013-12-20 Thread bob gailer
On 12/20/2013 10:16 AM, dec...@msn.com wrote: print type y That line will give you a syntax error. -- https://mail.python.org/mailman/listinfo/python-list

Re: Variables in a loop, Newby question

2013-12-24 Thread bob gailer
On 12/24/2013 11:07 AM, vanommen.rob...@gmail.com wrote: Hello, for the first time I'm trying te create a little Python program. (on a raspberri Pi) I don't understand the handling of variables in a loop with Python. Lets say i want something like this. x = 1 while x 10 var x = x

Re: Idle Problems

2013-12-30 Thread bob gailer
On 12/30/2013 1:43 PM, rpuc...@cox.net wrote: Hi I just joined this list and have a question.I have python 3.3.3 and running it on a windows 7 computer.Python has been running good until recently.I can bring up python shell,but when I go to run a recently loaded program,the code comes up

Re: Python example source code

2014-01-12 Thread bob gailer
On 1/12/2014 9:37 AM, ngangsia akumbo wrote: where can i find example source code by topic? There are several Python tutorials on the internet. They have good code examples. Most modules also have module-specific examples. There are also some web sites that may address your needs. I will

Re: Compiling main script into .pyc

2014-01-16 Thread bob gailer
On 1/16/2014 8:01 PM, Sam wrote: One thing I observe about python byte-code compiling is that the main script does not gets compiled into .pyc. Only imported modules are compiled into .pyc. May I know how can I compile the main script into .pyc? Duh? Just import it! --

Re: problem with sqlite3: cannot use in a SQL query with (?)

2014-01-22 Thread bob gailer
On 1/22/2014 9:32 PM, lgabiot wrote: Hello, I'm building an application using a simple sqlite3 database. At some point, I need to select rows (more precisely some fields in rows) that have the following property: their field max_level (an INT), should not exceed a value stored in a variable

Re: problem with sqlite3: cannot use in a SQL query with (?)

2014-01-22 Thread bob gailer
On 1/22/2014 9:32 PM, lgabiot wrote: Hello, I'm building an application using a simple sqlite3 database. At some point, I need to select rows (more precisely some fields in rows) that have the following property: their field max_level (an INT), should not exceed a value stored in a variable

Re: Can post a code but afraid of plagiarism

2014-01-24 Thread bob gailer
I had offered to provide some off-line tutoring. My reaction is exactly what you are saying - he needs to learn the basics. The code he sent me (after much asking to see some code) was buggy, and a lot of it were the various suggestions we all made. I feel for indar. He is in over his head. I

Re: Need Help with Programming Science Project

2014-01-24 Thread bob gailer
On 1/24/2014 5:05 AM, theguy wrote: I have a science project that involves designing a program which can examine a bit of text with the author's name given, then figure out who the author is if another piece of example text without the name is given. I so far have three different authors in

Re: Python to be replaced by the new language called Cookie !

2014-04-01 Thread bob gailer
On 4/1/2014 4:20 AM, Skybuck Flying wrote: April Fools =D If you thought spaghetti code was bad, ... in December, 1973 R. Lawrence Clark proposed a new programming construct: COME FROM. See https://www.fortran.com/come_from.html What can we do in this new age of GOTOless programming do to

Re: module and namespace

2014-04-19 Thread bob gailer
On 4/16/2014 6:38 AM, Egon Frerich wrote: If I use the interpreter I get: Python 3.3.5 (default, Apr 12 2014, 23:34:20) [GCC 4.6.3] on linux Type help, copyright, credits or license for more information. import mptt print(mptt) module 'mptt' from './mptt/__init__.py' But if I import mptt in

Re: Basic help

2014-05-21 Thread bob gailer
On 5/21/2014 3:31 AM, Pat Fourie wrote: Good Day Bob, Many thanks for your response. ur welcome. Some guidelines: Post in plain text (rather than formatted with colors etc.) reply to the list so we all get a chance to read your responses. As mentioned I am new to Python, I apologise for

Re: [Tutor] Arguments from the command line

2010-09-06 Thread bob gailer
name ['C:\\hg.py', 'commit', 'This is a commit name'] -- Bob Gailer 919-636-4239 Chapel Hill NC -- http://mail.python.org/mailman/listinfo/python-list

Re: My backwards logic

2014-09-05 Thread Bob Gailer
Bob gailer On Sep 5, 2014 12:51 PM, Seymore4Head Seymore4Head@hotmail.invalid wrote: I'm still doing practice problems. I haven't heard from the library on any of the books I have requested. http://www.practicepython.org/exercise/2014/04/16/11-check-primality-functions.html

Re: [Python-Help] how does the % work?

2013-03-22 Thread bob gailer
' and 'tuple' -- Bob Gailer 919-636-4239 Chapel Hill NC -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Help] help to code...

2013-05-02 Thread bob gailer
On 5/2/2013 9:50 AM, leonardo selmi wrote: Please in future post plain text. -- http://mail.python.org/mailman/listinfo/python-list

[issue2103] __x should be _x in documentation of property()

2008-02-13 Thread bob gailer
New submission from bob gailer: Library Reference 2.1 under property(): class C(object): def __init__(self): self.__x = None __x should be _x -- components: Documentation messages: 62368 nosy: bgailer severity: normal status: open title: __x should be _x in documentation

[issue2103] __x should be _x in documentation of property()

2008-02-13 Thread bob gailer
bob gailer added the comment: I tried to search for a prior report with no success. How should I have done tha __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2103 __ ___ Python

[issue5145] struct.calcsize('cd') returns 16 instead of 9

2009-02-03 Thread bob gailer
bob gailer bgai...@gmail.com added the comment: Someone pointed out that one must consider alignment. I had overlooked that. It makes sense that a d is double-word aligned. Perhaps the documentation should mention alignment. ___ Python tracker rep

[issue5145] struct.calcsize('cd') returns 16 instead of 9

2009-02-03 Thread bob gailer
New submission from bob gailer bgai...@gmail.com: struct.calcsize('cd') returns 16 instead of 9 struct.calcsize('dc') returns 9 as expected -- components: Extension Modules messages: 81085 nosy: bgailer severity: normal status: open title: struct.calcsize('cd') returns 16 instead of 9

[issue1376292] Write user's version of RefGuide

2008-04-24 Thread bob gailer
bob gailer [EMAIL PROTECTED] added the comment: I find a Reference Manual and a Library Reference. I presume you are referring to the Reference Manual. True? I might be interested in helping create the shorter friendlier guide. I suggest we create some guidelines or specifications

[issue1376292] Write user's version of

2008-04-24 Thread bob gailer
bob gailer [EMAIL PROTECTED] added the comment: My new email address is bgailer at gmail dot com (not google dot com). Please update your address book, and change the above into the form [EMAIL PROTECTED] The old address will expire at the end of 2008. Bob Gailer in Chapel Hill NC

[issue1376292] Write user's version of

2008-04-24 Thread bob gailer
bob gailer [EMAIL PROTECTED] added the comment: My new email address is bgailer at gmail dot com (not google dot com). Please update your address book, and change the above into the form [EMAIL PROTECTED] The old address will expire at the end of 2008. Bob Gailer in Chapel Hill NC. Added file

[issue1376292] Write user's version of

2008-04-24 Thread bob gailer
bob gailer [EMAIL PROTECTED] added the comment: My new email address is bgailer at gmail dot com (not google dot com). Please update your address book, and change the above into the form [EMAIL PROTECTED] The old address will expire at the end of 2008. Bob Gailer in Chapel Hill NC. Added file

[issue1376292] Write user's version of

2008-04-24 Thread bob gailer
bob gailer [EMAIL PROTECTED] added the comment: My new email address is bgailer at gmail dot com (not google dot com). Please update your address book, and change the above into the form [EMAIL PROTECTED] The old address will expire at the end of 2008. Bob Gailer in Chapel Hill NC. Added file

[issue1376292] Write user's version of

2008-04-24 Thread bob gailer
bob gailer [EMAIL PROTECTED] added the comment: My new email address is bgailer at gmail dot com (not google dot com). Please update your address book, and change the above into the form [EMAIL PROTECTED] The old address will expire at the end of 2008. Bob Gailer in Chapel Hill NC. Added file

[issue1376292] Write user's version of

2008-04-24 Thread bob gailer
bob gailer [EMAIL PROTECTED] added the comment: My new email address is bgailer at gmail dot com (not google dot com). Please update your address book, and change the above into the form [EMAIL PROTECTED] The old address will expire at the end of 2008. Bob Gailer in Chapel Hill NC. Added file

[issue1376292] Write user's version of

2008-04-24 Thread bob gailer
bob gailer [EMAIL PROTECTED] added the comment: My new email address is bgailer at gmail dot com (not google dot com). Please update your address book, and change the above into the form [EMAIL PROTECTED] The old address will expire at the end of 2008. Bob Gailer in Chapel Hill NC. Added file

[issue1376292] Write user's version of

2008-04-24 Thread bob gailer
bob gailer [EMAIL PROTECTED] added the comment: My new email address is bgailer at gmail dot com (not google dot com). Please update your address book, and change the above into the form [EMAIL PROTECTED] The old address will expire at the end of 2008. Bob Gailer in Chapel Hill NC. Added file

[issue1376292] Write user's version of

2008-04-24 Thread bob gailer
bob gailer [EMAIL PROTECTED] added the comment: My new email address is bgailer at gmail dot com (not google dot com). Please update your address book, and change the above into the form [EMAIL PROTECTED] The old address will expire at the end of 2008. Bob Gailer in Chapel Hill NC. Added file

[issue1376292] Write user's version of

2008-04-24 Thread bob gailer
bob gailer [EMAIL PROTECTED] added the comment: My new email address is bgailer at gmail dot com (not google dot com). Please update your address book, and change the above into the form [EMAIL PROTECTED] The old address will expire at the end of 2008. Bob Gailer in Chapel Hill NC. Added file

[issue1376292] Write user's version of

2008-04-24 Thread bob gailer
bob gailer [EMAIL PROTECTED] added the comment: My new email address is bgailer at gmail dot com (not google dot com). Please update your address book, and change the above into the form [EMAIL PROTECTED] The old address will expire at the end of 2008. Bob Gailer in Chapel Hill NC. Added file

[issue1376292] Write user's version of

2008-04-24 Thread bob gailer
bob gailer [EMAIL PROTECTED] added the comment: My new email address is bgailer at gmail dot com (not google dot com). Please update your address book, and change the above into the form [EMAIL PROTECTED] The old address will expire at the end of 2008. Bob Gailer in Chapel Hill NC. Added file

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread bob gailer
bob gailer added the comment: On 3/27/2013 9:48 AM, anatoly techtonik wrote: anatoly techtonik added the comment: Example: l = locals() z = dict(a=5, b=3) lc = dict(l) zc = dict(z) print(lc == l) print(zc == z) Gives: False True Expected

[issue5296] Use of term sequence in Reference 6.3 Assignment Statements

2009-02-17 Thread bob gailer
New submission from bob gailer bgai...@gmail.com: Currently reads, in part, If the target list is a comma-separated list of targets: The object must be a sequence ... Change a sequence to an iterable. Also consider removing references to versions earlier than 1.5. -- assignee

[issue21279] str.translate documentation incomplete

2014-04-16 Thread bob gailer
New submission from bob gailer: Documentation for str.translate only mentions a dictionary for the translation table. Actually any iterable can be used, as long as its elements are integer, None or str. Recommend wording: str.translate(translation_table) Return a copy of the s where all

[issue21352] improve indexing

2014-04-25 Thread bob gailer
New submission from bob gailer: Inconsistencies / confusion with documentation Index Tab. Example (line numbers added for comments that follow): 1 max 2 built-in function 3 max (datetime.date attribute) 4 (datetime.datetime attribute) 5 (datetime.time attribute) 6 max() built

Re: help(string) commands not working on pyton 3.5

2015-10-15 Thread Bob Gailer
Please show us exactly what you tried and exactly what the results were. For example: >>> help() Syntax error... On Oct 15, 2015 7:34 AM, "Prasad Joshi" wrote: > Hi, > > > > I have installed the “Windows x86-64 executable installer >

Re: Python best practices

2016-01-16 Thread Bob Gailer
On Jan 15, 2016 8:20 PM, wrote: > > Are there any good resources on python best practices? e.g., articles What programming experience do you have? I'm thinking of languages. Here are a few of my guidelines - most not Python specific: Keep logic and data separate.

why does windows command prompt not recognize "python"?

2016-01-17 Thread bob gailer
On Jan 17, 2016 9:13 AM, "Hmood Js" > wrote: > > cmd won't recognize python at all I've checked several times , and I don't understand what's wrong Better to ask this at help or tutor @ Python.org. I am sending this to help, with a new

Re: argparse

2016-03-11 Thread Bob Gailer
On Mar 11, 2016 6:20 PM, "Fillmore" wrote: > > > Playing with ArgumentParser. I can't find a way to override the -h and --help options so that it provides my custom help message. > > -h, --help show this help message and exit > > Here is what I am trying: >

Re: need help With understanding

2016-03-22 Thread Bob Gailer
On Mar 21, 2016 5:40 PM, "Peter Pearson" wrote: > > On Mon, 21 Mar 2016 11:18:57 +, mohamed mohamud wrote: > > hey im new at Learning Python, and i have an issue which i would like > > som help With. > > > > i have currently installed Python, and im Reading this

Re: Python to do CDC on XML files

2016-03-23 Thread Bob Gailer
On Mar 23, 2016 4:20 PM, "Bruce Kirk" wrote: > > Does anyone know of any existing projects on how to generate a change data capture on 2 very large xml files. > > The xml structures are the same, it is the data within the files that may differ. > It should not be too

Re: Exclude every nth element from list?

2016-03-26 Thread Bob Gailer
On Mar 26, 2016 12:50 PM, "beliavsky--- via Python-list" < python-list@python.org> wrote: > > I can use x[::n] to select every nth element of a list. Is there a one-liner to get a list that excludes every nth element? [y for (i,y) in enumerate(x) if i % n] --

Re: help with program

2016-03-27 Thread Bob Gailer
The problem with putting input at the end of a program is: if the program raises an exception you won't see it. -- https://mail.python.org/mailman/listinfo/python-list

Re:

2016-03-01 Thread Bob Gailer
On Mar 1, 2016 9:11 AM, "Shamanov" wrote: > > I can't work with Python I'm sorry to hear that. If you want some help you will have to give us more information. -- 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: 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: 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? --

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

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.

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

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

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

  1   2   >