I think I found 2 undocumented string format codes.

2011-08-24 Thread Bill
My google-fu has failed me in finding info on %h and %l string formatting codes. >>> '%h' %'hello' exceptions.ValueError: incomplete format >>> '%l' %'hello' exceptions.ValueError: incomplete format Does anyone know what doing a "complete format" means? -- http://mail.python.org/mailman/listinf

Re: CodeAcademy Python Tip Calculator

2017-09-10 Thread Bill
Cai Gengyang wrote: So, I’m on section (3. The Tip) … Instructions 1. Set the variable tip to decimal value of 15% on line 5. This was my input: You’re almost there! Assign the tip variable on line 5. meal = 44.50 tax = 6.75 / 100 tip = 15.0 But, when I tried to run the program, I don’t get a

Re: version of Python to install Windows 7 professional 64 bit, intel core i5

2017-09-11 Thread Bill
Zubair Shaikh wrote: What version of Python to install Windows 7 professional 64 bit, intel core i5 You're joking, right? What is your budget? -- https://mail.python.org/mailman/listinfo/python-list

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-13 Thread Bill
Paul Rubin wrote: Ben Finney writes: I've never seen one. who has told you... they are working on a Python 3 code base. Just because they've told me about it doesn't mean I saw it personally. The ones I've seen, including new ones, are Python 2. Some people here use Py3 but I haven't heard (

Re: the core values of the Python "platform"

2017-09-14 Thread Bill
Steven D'Aprano wrote: On Wed, 13 Sep 2017 09:08:41 -0400, Darin Gordon wrote: Bryan Cantrill gave an interesting talk recently at a Node conference about "platform values" [1]. For those of us who don't have the time or inclination to watch a video, or who are unable to, could you summarise t

Re: String to Dictionary conversion in python

2017-09-14 Thread Bill
santosh.yelamar...@gmail.com wrote: Hi, Can anyone help me in the below issue. I need to convert string to dictionary string = " 'msisdn': '7382432382', 'action': 'select', 'sessionId': '123', 'recipient': '7382432382', 'language': 'english'" Can anyone help me with the code I'm new to Pyt

Re: [Tutor] beginning to code

2017-09-19 Thread Bill
Rick Johnson wrote: I think for most languages an intuitive syntax is not important -- C is such a language, Lisp is such a language, Perl is such a language, and there are many more -- but for Python, intuitiveness is very important. I guess it depends on what you mean by "important" ("importan

Re: How do I check all variables returned buy the functions exists

2017-09-20 Thread Bill
n the implementation. It would be interesting to compare the results if you used the optimize option (it's either -o or -O). Bill C:\usr\share\robin\pythonDoc>python -m timeit -s"values=(1,2,None)" "any(v is None for v in values)" 100 loops, best of 3: 0.62 usec p

Re: How do I check all variables returned buy the functions exists

2017-09-20 Thread Bill
Steve D'Aprano wrote: In "any(v is None for v in values)", "any" probably isn't called until its argument is (fully) known. No, its a generator expression, so it provides the values one at a time, as needed. Okay, thank you for setting me straight. I'm only about 2 weeks down this road so

Re: Fwd: Issues with python commands in windows powershell

2017-09-20 Thread Bill
Joey Steward wrote: -- Forwarded message -- From: Joey Steward Date: Tue, Sep 19, 2017 at 10:30 PM Subject: Issues with python commands in windows powershell To: python-list@python.org Hello, I've been having issues using basic python commands in windows powershell. Did you

Re: errors with json.loads

2017-09-20 Thread Bill
try calling json.loads with that as an argument. Share with us what happens! Good luck, Bill john polo wrote: Greetings, I am using IPython 6.1.0 with Python 3.6.2 on a Windows 7 machine. I am not a programmer. I am using a book called Python Data Analytics to try to learn some of Python. I

Re: errors with json.loads

2017-09-20 Thread Bill
john polo wrote: Greetings, I am using IPython 6.1.0 with Python 3.6.2 on a Windows 7 machine. I am not a programmer. I am using a book called Python Data Analytics to try to learn some of Python. I am at a section for reading and writing JSON data. The example JSON file is: Listing 5-13.

Re: errors with json.loads

2017-09-20 Thread Bill
Stefan Ram wrote: Dennis Lee Bieber writes: After removing all the \xa0 bytes and trying to decode it I get... Apparenty an \xa0 byte corresponds to a "non-breaking space". What sort of white space characters are allowed in a json file ( tabs and newlines?)? Just curious. B

Re: errors with json.loads

2017-09-20 Thread Bill
Ned Batchelder wrote: On 9/20/17 8:22 PM, Bill wrote: Apparenty an \xa0 byte corresponds to a "non-breaking space". What sort of white space characters are allowed in a json file ( tabs and newlines?)? Just curious. These things can be looked up. From RFC 7159 (https://tool

Re: [Tutor] beginning to code

2017-09-21 Thread Bill
Stefan Ram wrote: bartc writes: On 20/09/2017 02:31, Bill wrote: it's implementation, I would say that C++ has it all over Python from the point of view of "intuitiveness". It's much easier to tell what's going on, at a glance, in a C++ program. You're being se

Re: [Tutor] beginning to code

2017-09-21 Thread Bill
Stefan Ram wrote: Bill writes: Stefan Ram wrote: bartc writes: On 20/09/2017 02:31, Bill wrote: it's implementation, I would say that C++ has it all over Python from the point of view of "intuitiveness". It's much easier to tell what's going on, at a glance,

Re: [Tutor] beginning to code

2017-09-21 Thread Bill
Stefan Ram wrote: Just as Python's »string[::-1]« appears "obfuscated" to readers who don't know Python. I understand string[::-1] after only studying python for a day or two (I've only been studying it for 2 weeks at this point). A student could study C++ for a semester or more and not e

Re: [Tutor] beginning to code

2017-09-21 Thread Bill
Stefan Ram wrote: Bill writes: I understand string[::-1] after only studying python for a day or two (I've only been studying it for 2 weeks at this point). A student could study C++ for a semester or more and not encounter templates until they studied data structures. So in short, I

Re: [Tutor] beginning to code

2017-09-21 Thread Bill
Stefan Ram wrote: Bill writes: "Essential Reference", and I would say that Python is definitely a bigger, and more complicated language than C++. In some aspects it has simpler syntax. But consider all of the ways that you can pass arguments to a function, for instance. There are

Re: [Tutor] beginning to code

2017-09-22 Thread Bill
Steve D'Aprano wrote: On Fri, 22 Sep 2017 02:57 pm, Bill wrote: I find Python to be more more like Java, with regard to "passing objects by reference". Which is not a surprise, since both Python and Java use the same value passing style: pass by object reference, or pass by

Re: [Tutor] beginning to code

2017-09-22 Thread Bill
Stefan Ram wrote: Bill writes: Stefan Ram wrote: bartc writes: On 20/09/2017 02:31, Bill wrote: it's implementation, I would say that C++ has it all over Python from the point of view of "intuitiveness". It's much easier to tell what's going on, at a glance,

Re: [Tutor] beginning to code

2017-09-22 Thread Bill
Bill wrote: Stefan Ram wrote: Bill writes: Stefan Ram wrote: bartc writes: On 20/09/2017 02:31, Bill wrote: it's implementation, I would say that C++ has it all over Python from the point of view of "intuitiveness". It's much easier to tell what's goin

Re: [Tutor] beginning to code

2017-09-22 Thread Bill
Marko Rauhamaa wrote: Bill : I figure that, internally, an address, a pointer, is being passed by value to implement pass by reference. Why do you say "they are right" above? Are you saying it's not pass by reference? Thank you for your examples. I studied them careful

Re: [Tutor] beginning to code

2017-09-22 Thread Bill
Mark Lawrence wrote: On 22/09/2017 08:01, Bill wrote: Steve D'Aprano wrote: On Fri, 22 Sep 2017 02:57 pm, Bill wrote: I find Python to be more more like Java, with regard to "passing objects by reference". Which is not a surprise, since both Python and Java use the same value

Re: [Tutor] beginning to code

2017-09-22 Thread Bill
Bill wrote: Mark Lawrence wrote: On 22/09/2017 08:01, Bill wrote: Steve D'Aprano wrote: On Fri, 22 Sep 2017 02:57 pm, Bill wrote: I find Python to be more more like Java, with regard to "passing objects by reference". Which is not a surprise, since both Python and Java use

Re: Python Boolean Logic

2017-09-22 Thread Bill
be removed. I am new to Python. Maybe someone here is familiar with an elegant way to get the the value of b directly from the string s? Hmm... It appears that eval() would work (see "Python: Essential Reference", p. 115). I just read about that for the first time last night! I

Re: Python Boolean Logic

2017-09-22 Thread Bill
Bill wrote: Cai Gengyang wrote: Hey guys, I'm testing this on CodeAcademy, but I cant get the program to output a result even after pressing the run button. Just wanted to check if my logic is correct. Thanks alot Your answers appear correct, but you could write Python statements to test

Re: Python Boolean Logic

2017-09-23 Thread Bill
Steve D'Aprano wrote: On Sat, 23 Sep 2017 03:01 pm, Bill wrote: s='(20 - 10) > 15' b=(20 - 10) > 15 print(s, " is ", ("true" if b else "false") ); ## inside parentheses may be removed. I am new to Python. Maybe someone here is fam

Re: search and replace first amount of strings instances with one thing and a second amount of instances with another thing-

2017-09-23 Thread Bill
validationma...@gmail.com wrote: i have a code in python to search and replace what i need though is to replace the first say 10 instances of the number 1 with 2 and the second 10 instances with the number 3. anybody knows how to do that? Do you mean the (integer) number 1 or the character '1'?

Re: search and replace first amount of strings instances with one thing and a second amount of instances with another thing-

2017-09-23 Thread Bill
Bill wrote: validationma...@gmail.com wrote: i have a code in python to search and replace what i need though is to replace the first say 10 instances of the number 1 with 2 and the second 10 instances with the number 3. anybody knows how to do that? Do you mean the (integer) number 1 or the

Re: Python Boolean Logic

2017-09-23 Thread Bill
d seeing s)---if you had 5 or more statements a in a row like that, you would "miss" seeing the string s! : ) Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] beginning to code

2017-09-23 Thread Bill
Stephan Houben wrote: Op 2017-09-23, Rick Johnson schreef : These pissing contests over how values are passed in Python are totally irrelevant. What does it matter? Nothing will be gained or lost by arguing over which is true, or not. Unless the distinction is preventing you from doing something

Re: [Tutor] beginning to code

2017-09-23 Thread Bill
Chris Angelico wrote: On Sun, Sep 24, 2017 at 8:18 AM, Bill wrote: Stephan Houben wrote: Op 2017-09-23, Rick Johnson schreef : These pissing contests over how values are passed in Python are totally irrelevant. What does it matter? Nothing will be gained or lost by arguing over which is true

Re: [Tutor] beginning to code

2017-09-23 Thread Bill
Steve D'Aprano wrote: On Sun, 24 Sep 2017 08:18 am, Bill wrote: All one has to do, I think, is consider (1) that passing objects by "making copies" of them, would be prohibitively expensive Swift passes certain values (but not others!) by value and makes a copy. Tha

Re: Call by binding [was Re: [Tutor] beginning to code]

2017-09-25 Thread Bill
Chris Angelico wrote: On Tue, Sep 26, 2017 at 5:35 AM, Marko Rauhamaa wrote: Chris Angelico : On Tue, Sep 26, 2017 at 12:26 AM, Marko Rauhamaa wrote: Sorry, that was my bad in the terminology. But where do you get that all Python expressions evaluate to pointers? What do they evaluate to if

Re: Call by binding [was Re: [Tutor] beginning to code]

2017-09-25 Thread Bill
Tim Golden wrote: On 25/09/2017 20:40, Marko Rauhamaa wrote: Rhodri James : On 25/09/17 15:26, Marko Rauhamaa wrote: That's not what I said. I said all expressions *evaluate to* pointers. This may well be true in particular implementations, but it is an implementation detail so Chris' point

Re: Aliasing [was Re: [Tutor] beginning to code]

2017-09-26 Thread Bill
Steve D'Aprano wrote: On Wed, 27 Sep 2017 02:03 am, Stefan Ram wrote: Steve D'Aprano writes: On Tue, 26 Sep 2017 03:26 am, Antoon Pardon wrote: at that moment, but it still needed correction. If the assignment is an alias operator then after the statements Here's some C++ code that demonstr

Spacing conventions

2017-09-27 Thread Bill
"--but that was a while back. I can still see their use causing potential trouble in (really-long) real-world code. Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: Spacing conventions

2017-09-27 Thread Bill
Thank you for all of the feedback provided! It was just what I was looking for. : ) I'm going to go back and read some of the links more carefully. Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: Spacing conventions

2017-09-27 Thread Bill
Steve D'Aprano wrote: Similarly for break and continue. I can still see their use causing potential trouble in (really-long) real-world code. How so? Besides, if your code is "really long", you probably should factorise it into smaller, meaningful chunks. I worked in maintenance programm

Re: Beginners and experts (Batchelder blog post)

2017-09-28 Thread Bill
Paul Moore wrote: On 27 September 2017 at 17:41, leam hall wrote: Hehe...I've been trying to figure out how to phrase a question. Knowing I'm not the only one who gets frustrated really helps. I'm trying to learn to be a programmer. I can look at a book and read basic code in a few languages b

Re: Beginners and experts (Batchelder blog post)

2017-09-28 Thread Bill
Chris Angelico wrote: On Fri, Sep 29, 2017 at 5:45 AM, Bill wrote: Paul Moore wrote: On 27 September 2017 at 17:41, leam hall wrote: Hehe...I've been trying to figure out how to phrase a question. Knowing I'm not the only one who gets frustrated really helps. I'm trying t

Re: Beginners and experts (Batchelder blog post)

2017-09-28 Thread Bill
Chris Angelico wrote: On Fri, Sep 29, 2017 at 6:59 AM, Bill wrote: Chris Angelico wrote: Be careful with this one. For anything other than trivial errors (and even for some trivial errors), finding the bug is basically searching through a problem space of all things that could potentially

Re: Spacing conventions

2017-09-28 Thread Bill
Steve D'Aprano wrote: On Thu, 28 Sep 2017 03:56 pm, Bill wrote: I worked in maintenance programming. You got the hand you were dealt! And you weren't allowed to "improve" the code unless the customer contracted you to do so. How do you tell the difference between a

Re: Beginners and experts (Batchelder blog post)

2017-09-29 Thread Bill
Steve D'Aprano wrote: (say). Reading error messages is a skill that must be learned, even in Python. Let alone (say) gcc error messages, which are baroque to an extreme. The other day I was getting an error like: /tmp/ccchKJVU.o: In function `__static_initialization_and_destruction_0(int, int)'

Re: Refactoring

2017-09-29 Thread Bill
Stefan Ram wrote: The customer pays for the solution. The software manufacturer does the refactoring for it's own sake, because when it's a longer running project, the refactorings will pay for themself. The customer owns the source code (at least where I was). YMMV -- https://ma

Re: Beginners and experts (Batchelder blog post)

2017-09-29 Thread Bill
Chris Angelico wrote: On Sat, Sep 30, 2017 at 2:42 AM, Steve D'Aprano wrote: Oh, and I'd like to make a (moderate) defense of a kind of "bug fixing by random perturbation". Obviously making unrelated, arbitrary changes to code is bad. But making non-arbitrary but not fully understood changes to

newb question about @property

2017-09-30 Thread Bill
I spent a few hours experimenting with @property. To my mind it seems like it would be preferable to just define (override) instance methods __get__(), __set__(), and possibly __del__(), as desired, as I could easily provide them with "ideal" customization. Am I overlooking somethi

Re: newb question about @property

2017-09-30 Thread Bill
Ned Batchelder wrote: On 9/30/17 5:47 PM, Bill wrote: I spent a few hours experimenting with @property. To my mind it seems like it would be preferable to just define (override) instance methods __get__(), __set__(), and possibly __del__(), as desired, as I could easily provide them with

Re: newb question about @property

2017-09-30 Thread Bill
Steve D'Aprano wrote: On Sun, 1 Oct 2017 08:47 am, Bill wrote: I spent a few hours experimenting with @property. To my mind it seems like it would be preferable to just define (override) instance methods __get__(), __set__(), and possibly __del__(), as desired, as I could easily provide

Re: newb question about @property

2017-09-30 Thread Bill
Ned Batchelder wrote: On 9/30/17 7:18 PM, Bill wrote: Ned Batchelder wrote: On 9/30/17 5:47 PM, Bill wrote: I spent a few hours experimenting with @property. To my mind it seems like it would be preferable to just define (override) instance methods __get__(), __set__(), and possibly __del__

Re: newb question about @property

2017-09-30 Thread Bill
u think are good, I would be interested. Thanks, Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: newb question about @property

2017-10-01 Thread Bill
Steve D'Aprano wrote: [1] Technically, the interpreter knows nothing about properties. What it cares about is *descriptors*. Properties are just one kind of descriptor, as are methods. But I'm intentionally not talking about the gory details of descriptors. Feel free to ask if you care, but hone

Re: newb question about @property

2017-10-01 Thread Bill
Steve D'Aprano wrote: On Sun, 1 Oct 2017 05:46 pm, Bill wrote: If you were going to show non-Python users, say science undergraduates and faculty, that Python is an interesting tool (in 45 minutes), would one delve into descriptors? Hell no :-) Oops, I see I used the word "descript

Re: newb question about @property

2017-10-01 Thread Bill
Stephan Houben wrote: Op 2017-10-01, Bill schreef : I watched an example on YouTube where someone wrote a simple descriptor ("@Time_it) to output the amount of time that it took ordinary functions to complete.To be honest, I AM interested in descriptors. Are you sure you are not conf

Re: newb question about @property

2017-10-01 Thread Bill
Steve D'Aprano wrote: The definitive explanation of descriptors is here: https://docs.python.org/3/howto/descriptor.html Thank you! It is next on my list. Then I'll try that Circle problem you mentioned as an exercise last night! I don't expect run into any difficulties. : ) -- https:/

Re: newb question about @property

2017-10-02 Thread Bill
n exercise :-) It WAS a good exercise!! I was concerned about "infinite recursion" between my two property setters.. Thanks! Next? :) Bill import math class Circle(object): """ Define a circle class with radius and diameter""" def __i

Re: newb question about @property

2017-10-02 Thread Bill
Chris Angelico wrote: On Tue, Oct 3, 2017 at 6:23 AM, Larry Hudson via Python-list wrote: On 10/01/2017 03:52 PM, Bill wrote: Steve D'Aprano wrote: The definitive explanation of descriptors is here: https://docs.python.org/3/howto/descriptor.html Thank you! It is next on my list.

Re: newb question about @property

2017-10-02 Thread Bill
Steve D'Aprano wrote: There's no need to set the radius and the diameter, as one is completely derived from the other Good point; I'm glad I submitted my code for grading. Sort of a "trick question" to ask me to add diameter and then take off points becaus

Re: newb question about @property

2017-10-02 Thread Bill
eason I might do that yet (first things first... ). Thanks! Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: newb question about @property

2017-10-02 Thread Bill
Bill wrote: Chris Angelico wrote: Decorators are fairly straight-forward if you understand higher-order functions. ChrisA I was just minding my own business, and thought to write my first decorator for a simple *recursive* function f. The decorator WORKS if f does not make a call to

Re: newb question about @property

2017-10-03 Thread Bill
Steve D'Aprano wrote: On Tue, 3 Oct 2017 06:51 am, Bill wrote: Can you inspire me with a good decorator problem (standard homework exercise-level will be fine)? Here is a nice even dozen problems for you. Please ask for clarification if any are unclear. Thank you for sharing the pro

Re: The "loop and a half"

2017-10-03 Thread Bill
Stefan Ram wrote: Is this the best way to write a "loop and a half" in Python? Is your goal brevity or clarity, or something else (for instance, what does the code written by the other members of your "team" look like--woudn't it be nice if it matched)? Bill

Re: Python community "welcoming" feedback

2017-10-04 Thread Bill
Leam Hall wrote: A while back I pointed out some challenges for the Python community's intake of new coders. Mostly focusing on IRC and the Python e-mail list. What is the Python e-mail list? Thanks, Bill Several people have stepped up their "welcome" game and I've

Re: Creating a Dictionary

2017-10-04 Thread Bill
Stefan Ram wrote: One might wish to implement a small language with these commands: Explain why. What is the advantage? F - move forward B - move backward L - larger stepsize S - smaller stepsize . One could start with the following pseudocode for a dictionary: { 'F': lambda: myturtl

Re: Introducing the "for" loop

2017-10-05 Thread Bill
n shown so far. As long as I have two teachers here, which textbooks are you using? I am hoping to teach a college course in Python next fall. Thanks, Bill The basic course may already and there after about 12 - 18 hours. (This time includes many exercises in the classroom.) B

Re: Lies in education [was Re: The "loop and a half"]

2017-10-05 Thread Bill
Marko Rauhamaa wrote: That's good advice, but it's not all that dangerous to express off-topic statements in this newsgroup. It may not be "dangerous", but I find it a little annoying. I wasn't going to say anything, but now you are bringing it up explicitly. -- https://mail.python.org/ma

Re: why does memory consumption keep growing?

2017-10-05 Thread Bill
Fetchinson . wrote: Hi folks, I have a rather simple program which cycles through a bunch of files, does some operation on them, and then quits. There are 500 files involved and each operation takes about 5-10 MB of memory. As you'll see I tried to make every attempt at removing everything at th

Re: Lies in education [was Re: The "loop and a half"]

2017-10-10 Thread Bill
rankings on Amazon.com. That doesn't mean that either of them is right for everybody. Come back to Stroustrup's book "after" you learn C++ somewhere else, and maybe you'll enjoy it more. Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: Lies in education [was Re: The "loop and a half"]

2017-10-10 Thread Bill
ou still need folks who can encode data structures and write device drivers, from scratch. And "woe" if you need performance, such as applications involving AI. Cheers, Bill But even if it were the best language in the world, and Stroustrup the greatest language designer in the

Re: Lies in education [was Re: The "loop and a half"]

2017-10-10 Thread Bill
Dennis Lee Bieber wrote: On Tue, 10 Oct 2017 20:48:26 -0400, Bill declaimed the following: cast stones at C/C++. People started programming in C in the late 70's, and before that some were programming in B ("B Programming Language"), Preceded by BCPL (which leads t

Re: Lies in education [was Re: The "loop and a half"]

2017-10-11 Thread Bill
Grant Edwards wrote: On 2017-10-11, Bill wrote: [...] I'm not here to "cast stones", I like Python. I just think that you shouldn't cast stones at C/C++. Not while PHP exists. There aren't enough stones in the world... PHP seems (seemed?) popular for laying

Re: Lies in education [was Re: The "loop and a half"]

2017-10-11 Thread Bill
Mikhail V wrote: [...] I'm not here to "cast stones", I like Python. I just think that you shouldn't cast stones at C/C++. Not while PHP exists. There aren't enough stones in the world... PHP seems (seemed?) popular for laying out web pages. Are their vastly superior options? Python? Superi

Re: Lies in education [was Re: The "loop and a half"]

2017-10-11 Thread Bill
Grant Edwards wrote: On 2017-10-11, Bill wrote: Grant Edwards wrote: On 2017-10-11, Bill wrote: [...] I'm not here to "cast stones", I like Python. I just think that you shouldn't cast stones at C/C++. Not while PHP exists. There aren't enough stones in the wor

Re: Lies in education [was Re: The "loop and a half"]

2017-10-12 Thread Bill
Marko Rauhamaa wrote: Grant Edwards : I like [const qualifiers] in C because it allows the linker to place them in ROM with the code. It also _sometimes_ provides useful diagnostics when you pass a pointer to something which shouldn't be modified to something that is going to try to modify it.

Re: I used list, def. why li += [100,200] , and li = li + [100,200] is different

2017-10-23 Thread Bill
f scope, nothing points to that newly created object and it gets lost. The problem and both solutions are great! Thanks for posting! Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: Let's talk about debuggers!

2017-10-25 Thread Bill
Fabien wrote: On 10/25/2017 03:07 PM, Thomas Jollans wrote: What options are there for Python (that work)? PyCharm's debugger is fine (also available in the community edition) +1 Cheers, Fabien -- https://mail.python.org/mailman/listinfo/python-list

Re: Getting started with python

2017-10-30 Thread Bill
subhendu.pand...@gmail.com wrote: Hi, Could you please help me with the below if possible: Possible and reasonable are two different things. Why don't you try some web searches and try to answer some of your own questions. I offer this advice as a Python newbe myself. Bill 1.

Re: Easiest way to access C module in Python

2017-11-06 Thread Bill
John Pote wrote: Hi all, I have successfully used Python to perform unit and integration tests in the past and I'd like to do the same for some C modules I'm working with at work. There seem to be a number of ways of doing this but being busy at work and home I looking for the approach with th

Re: Python homework

2017-12-06 Thread Bill
I think carelessness in choosing variable names may be at the root of the problem. nick.martin...@aol.com wrote: I have a question on my homework. My homework is to write a program in which the computer simulates the rolling of a die 50 times and then prints (i). the most frequent side of the

Re: Processing Game Help

2017-12-10 Thread Bill
sooner I start doing that, the sooner my debugging session is over. Good luck! Bill As you can see, I tried using globals in order use variables from previous classes, but nothing has worked. For this specific approach, no error message popped up, but nothing happened either. Thanks so muc

Re: Python Learning

2017-12-15 Thread Bill
Varun R wrote: Hi All, I'm new to programming, can anyone guide me, how to start learning python programming language,...plz suggest some books also. Thanks all Are you sure you want to learn Python first? Python does enough things "behind the scene" that it makes me question the wisdom of t

Re: Python Learning

2017-12-15 Thread Bill
Chris Angelico wrote: On Sat, Dec 16, 2017 at 8:51 AM, Bill wrote: Varun R wrote: Hi All, I'm new to programming, can anyone guide me, how to start learning python programming language,...plz suggest some books also. Thanks all Are you sure you want to learn Python first? Python

Re: Python Learning

2017-12-16 Thread Bill
Rustom Mody (Rustom Mody) wrote: On Saturday, December 16, 2017 at 9:45:17 AM UTC+5:30, Bill wrote: Chris Angelico wrote: On Sat, Dec 16, 2017 at 8:51 AM, Bill wrote: Varun R wrote: Hi All, I'm new to programming, can anyone guide me, how to start learning python programming language,.

Re: Python Learning

2017-12-16 Thread Bill
Gregory Ewing wrote: Bill wrote: In my experience, if they do not have the basic (~pre-calc) math behind them, then learning from a textbook on a programming language, say, may be a bit beyond them. Very little mathematical *knowledge* is needed to get started with programming. You can do a

Re: Python Learning

2017-12-17 Thread Bill
Rustom Mody wrote: In response to Rustom Mody wrote: On Saturday, December 16, 2017 at 9:45:17 AM UTC+5:30, Bill wrote: so it really doesn't make that much difference where one starts, just "Do It!". : ) Really ¿? https://en.wikipedia.org/wiki/Principles_of_learning#Prim

Re: Python Learning

2017-12-17 Thread Bill
Larry Martell wrote: So, your experience is that the style of learning you offer is unsuitable to anyone who doesn't have some background in algebra. That's fine. For your course, you set the prereqs. But that's not the only way for someone to get into coding. You do NOT have to go to college be

Re: Python Learning

2017-12-17 Thread Bill
Gregory Ewing wrote: Bill wrote: In my years of teaching experience, students who came to college without the equivalent of "college algebra" were under-prepared for what was expected of them. This could be simply because it weeds out people who aren't good at the required st

Re: Python Learning

2017-12-17 Thread Bill
Chris Angelico wrote: On Mon, Dec 18, 2017 at 6:51 AM, Bill wrote: The point is that it takes a certain amount of what is referred to as "mathematical maturity" (not mathematical knowledge) to digest a book concerning computer programming. Emphasis on *a book*. In my years o

Re: Python Learning

2017-12-17 Thread Bill
Chris Angelico wrote: On Mon, Dec 18, 2017 at 11:31 AM, Bill wrote: Larry Martell wrote: So, your experience is that the style of learning you offer is unsuitable to anyone who doesn't have some background in algebra. That's fine. For your course, you set the prereqs. But that'

Re: Python Learning

2017-12-17 Thread Bill
Chris Angelico wrote: I don't know about vtables as needing to be in ANY programming course. They're part of a "let's dive into the internals of C++" course. You certainly don't need them to understand how things work in Python, because they don't exist; and I'm doubtful that you need to explain

Re: Python Learning

2017-12-17 Thread Bill
Chris Angelico wrote: I don't know about vtables as needing to be in ANY programming course. They're part of a "let's dive into the internals of C++" course. You certainly don't need them to understand how things work in Python, because they don't exist; and I'm doubtful that you need to explain

Re: Python Learning

2017-12-17 Thread Bill
Chris Angelico wrote: I agree with some of that, but you then take it to absurdity. You most certainly CAN drive a car without knowing how one works; in fact, with this century's cars, I think that's very much the case. How many people REALLY know what happens when you push the accelerator pedal

Re: Python Learning

2017-12-17 Thread Bill
Chris Angelico wrote: On Mon, Dec 18, 2017 at 4:04 PM, Chris Angelico wrote: On Mon, Dec 18, 2017 at 3:54 PM, Bill wrote: Chris Angelico wrote: I don't know about vtables as needing to be in ANY programming course. They're part of a "let's dive into the internals

Re: Python Learning

2017-12-18 Thread Bill
Chris Angelico wrote: On Sun, Dec 17, 2017 at 12:01 PM, Bill wrote: I think we are talking about the same people. But in college, the prerequisite of "at least co-enrolled in pre-calc", turned out to be the right one (based upon quite a lot of teaching experience). Fortunate

Re: Python Learning

2017-12-18 Thread Bill
. ; )The point of college is more about teaching students to think rather than in being efficient. I have little doubt that a tech school could "get through everything" much faster. Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: adding elif to for

2017-12-19 Thread Bill
bob gailer wrote: Has any thought been given to adding elif to the for statement? I don't think it is a good idea because it needlessly, from my point of view, embeds too much complexity into a single construct (making it more difficult to maintain, for instance). That's what language designe

Re: correctness proof for alpha-beta algorithm

2017-12-20 Thread Bill
namenobodywa...@gmail.com wrote: On Tuesday, December 19, 2017 at 3:28:39 PM UTC-8, Steve D'Aprano wrote: Does this have anything specifically to do with Python programming? i'm working on a game-playing script (ie: in python), i want to incorporate pruning into my search algorithm, and i'd l

Re: correctness proof for alpha-beta algorithm

2017-12-20 Thread Bill
Steve D'Aprano wrote: On Thu, 21 Dec 2017 08:37 am, Bill wrote: namenobodywa...@gmail.com wrote: On Tuesday, December 19, 2017 at 3:28:39 PM UTC-8, Steve D'Aprano wrote: Does this have anything specifically to do with Python programming? i'm working on a game-playing script

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

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

  1   2   3   4   5   6   7   >