Re: Hello

2016-03-11 Thread Larry Martell
On Fri, Mar 11, 2016 at 4:49 AM, Steven D'Aprano wrote: > On Fri, 11 Mar 2016 02:28 pm, rubengoods...@yahoo.com wrote: > > > I am having trouble installing the Python software. > > Make sure your computer is turned on. I can't tell you how many times I've > tried to install Python, and I type com

Re: argparse

2016-03-11 Thread Larry Martell
On Fri, Mar 11, 2016 at 6:18 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: > > parser = argparse.A

Re: Simple exercise

2016-03-14 Thread Larry Martell
On Mon, Mar 14, 2016 at 10:07 AM, Rick Johnson wrote: > On Thursday, March 10, 2016 at 7:22:26 PM UTC-6, Mark Lawrence wrote: >> Always a code smell when range() and len() are combined. > > I would be careful about dealing in absolutes Mark. I always think people should never use absolutes. -- h

Re: retrieve key of only element in a dictionary (Python 3)

2016-03-19 Thread Larry Martell
On Fri, Mar 18, 2016 at 5:33 PM, Fillmore wrote: > > I must be missing something simple, but... > > Python 3.4.0 (default, Apr 11 2014, 13:05:11) > [GCC 4.8.2] on linux > Type "help", "copyright", "credits" or "license" for more information. d = dict() d['squib'] = "007" # I forget

script exits prematurely with no stderr output, but with system errors

2016-03-20 Thread Larry Martell
I have a script that I run a lot - at least 10 time every day. Usually it works fine. But sometime it just stops running with nothing output to stdout or stderr. I've been trying to debug this for a while, and today I looked in the system logs and saw this: abrt: detected unhandled Python exceptio

Re: script exits prematurely with no stderr output, but with system errors

2016-03-20 Thread Larry Martell
On Sun, Mar 20, 2016 at 4:47 PM, Joel Goldstick wrote: > On Sun, Mar 20, 2016 at 4:32 PM, Larry Martell > wrote: > >> I have a script that I run a lot - at least 10 time every day. Usually >> it works fine. But sometime it just stops running with nothing output >> to

Re: Why do you use python?

2016-03-21 Thread Larry Martell
On Mon, Mar 21, 2016 at 4:26 PM, wrote: > On Monday, 21 March 2016 04:13:45 UTC, Chris Angelico wrote: >> On Mon, Mar 21, 2016 at 2:59 PM, wrote: >> > instead, to be efficient, it is best to combine tools to solve problems >> > that contain complexities where there is nothing available off th

Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread Larry Martell
On Thu, Mar 24, 2016 at 4:53 PM, wrote: > I use Python wherever I can and find this list (as a usenet group via > gmane) an invaluable help at times. > > Occasionally I have to make forays into Javascript, can anyone > recommend a place similar to this list where Javascript questions can > be ask

Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread Larry Martell
On Sat, Mar 26, 2016 at 7:37 AM, Ned Batchelder wrote: > Thomas, you don't have to choose between correct and nice. It's > possible to be both. "I'm not good, I'm not nice, I'm just right." That was written by Stephen Sondheim and it's from his musical Into The Woods. It's said by the witch. Th

Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread Larry Martell
On Sat, Mar 26, 2016 at 11:31 AM, Gene Heskett wrote: > On Saturday 26 March 2016 07:52:05 Larry Martell wrote: >> As my wife once said, "If you start with 'Listen, asshole, ...' they >> probably won't hear what you have to say after that. > > She is

Re: I am out of trial and error again Lists

2014-10-22 Thread Larry Hudson
en you can play with things on your own system IN THE INTERACTIVE MODE!!! That's when you will start actually learning. -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: I am out of trial and error again Lists

2014-10-23 Thread Larry Hudson
else: nstr += str(codes.index(ch) // 3 + 2) return nstr #--- End of Code - A possible variation would be to make nstr a list instead of a string, and use .append() instead of the +=, and finally return the string by using join() on the list. Also, the if and first elif in the for could be combined: if ch in " -()" or ch.isdigit(): -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: I am out of trial and error again Lists

2014-10-23 Thread Larry Hudson
On 10/23/2014 01:44 PM, Seymore4Head wrote: I tried to make range(10) work in Python 3 by: if int(y) in range(10): name.append(str(y)) It doesn't. That's true, it doesn't. However, did you actually READ the error message it gives? It has NOTHING to do with range().

Re: I am out of trial and error again Lists

2014-10-24 Thread Larry Hudson
onths -- I MUCH prefer Linux. Among other reasons its a far better environment for programming. I only have one (active) system with Windows installed, and two others with Linux only. Actually make that three, if you count my Raspberry Pi. :-) -=- Larry -=- -- https://mail.pytho

Re: I am out of trial and error again Lists

2014-10-24 Thread Larry Hudson
27;t know too much about it. It is definitely not needed here, and is why I suggested deleting the import. nx.append(y) > ... -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: I am out of trial and error again Lists

2014-10-24 Thread Larry Hudson
fficult. print ("String range",(x)) Sorry for the harsh tone. I'm old, and the curmudgeon is starting to come out in me. -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: variable attribute name

2014-10-27 Thread Larry Martell
On Mon, Oct 27, 2014 at 2:23 PM, Harvey Greenberg wrote: > I want to let the name of an attribute be the string value of a variable. > Here is some code: > > class Object(object): pass > A = Object() > s = 'attr' > A. = 1 > > The last line denotes the variable value by (not a python form). Wha

Re: Classes

2014-10-30 Thread Larry Hudson
lass names, IOW make this class Pet instead of class pet. This is convention not a requirement, but it does help distinguish class names from ordinary variable names -- especially to others reading your code (as well as yourself a few days later). ;-) -=- Larry -=- -- https://mai

Re: Classes

2014-11-02 Thread Larry Hudson
anyone who does this should know the consequences. ;-) -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: Understanding "help" command description syntax - explanation needed

2014-11-05 Thread Larry Martell
On Wed, Nov 5, 2014 at 7:13 AM, Ivan Evstegneev wrote: > Firtst of all thanks for reply. > >>>brackets [] means that the argument is optional. > > That's what I'm talking about (asking actually), where do you know it from? I know it because I've been a programmer for 39 years. -- https://mail.py

Re: Understanding "help" command description syntax - explanation needed

2014-11-05 Thread Larry Martell
r 39 years. >> >> I didn't intend to offence anyone here. Just asked a questions ^_^ > > Don't worry about offending people. Exactly. This is the internet - it's all about annoying people ;-) > Even if you do annoy one or two, > there'll be plenty of us

Re: Understanding "help" command description syntax - explanation needed

2014-11-05 Thread Larry Hudson
well -- both on-line and dead-tree versions. Try some googling. Also the Python Wiki has a lot of valuable links: https://wiki.python.org/moin/ -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: Understanding "help" command description syntax - explanation needed

2014-11-07 Thread Larry Martell
On Fri, Nov 7, 2014 at 7:52 AM, Steven D'Aprano wrote: > Dave Angel wrote: > >> Approximately 1968 for me. I wrote programs in 1967, but didn't >> get to run them till 1968. > > > I once used a compiler that slow too. Yeah, I think it was made by Intermetrics. Or maybe Borland. -- https://mail.

Re: I don't read docs and don't know how to use Google. What does the print function do?

2014-11-10 Thread Larry Martell
On Mon, Nov 10, 2014 at 2:49 PM, Roy Smith wrote: > In article , > sohcahto...@gmail.com wrote: > >> Please help me this assignment is due in an hour. Don't give me hints, just >> give me the answer because I only want a grade. I'm not actually interested >> in learning how to program, but I kn

Communicating with a PHP script (and pretending I'm a browser)

2014-11-11 Thread Larry Martell
I have a PHP app that I want to convert to django. But I want to do it stages. All the heavy lifting is in the PHP code, so first, I want to just use templates and views to generate the HTML, but still call the PHP code. Then later convert the PHP to python. My issue is that the PHP code expects t

Re: Communicating with a PHP script (and pretending I'm a browser)

2014-11-11 Thread Larry Martell
On Tue, Nov 11, 2014 at 10:54 AM, Chris Angelico wrote: > On Wed, Nov 12, 2014 at 2:48 AM, Larry Martell > wrote: >> Is there some way python can communicate like curl ... it needs to >> send the request string in the body of a POST request to the URL that >> will rou

Re: Communicating with a PHP script (and pretending I'm a browser)

2014-11-11 Thread Larry Martell
On Tue, Nov 11, 2014 at 11:00 AM, Marc Aymerich wrote: > On Tue, Nov 11, 2014 at 4:48 PM, Larry Martell > wrote: >> >> I have a PHP app that I want to convert to django. But I want to do it >> stages. All the heavy lifting is in the PHP code, so first, I want to >>

Re: Communicating with a PHP script (and pretending I'm a browser)

2014-11-11 Thread Larry Martell
On Tue, Nov 11, 2014 at 12:18 PM, Marc Aymerich wrote: > On Tue, Nov 11, 2014 at 5:43 PM, Larry Martell > wrote: >> On Tue, Nov 11, 2014 at 11:00 AM, Marc Aymerich wrote: >>> On Tue, Nov 11, 2014 at 4:48 PM, Larry Martell >>> wrote: >>>> >>>

Re: Communicating with a PHP script (and pretending I'm a browser)

2014-11-11 Thread Larry Martell
On Tue, Nov 11, 2014 at 11:43 AM, Joel Goldstick wrote: > On Tue, Nov 11, 2014 at 11:37 AM, Larry Martell > wrote: >> On Tue, Nov 11, 2014 at 10:54 AM, Chris Angelico wrote: >>> On Wed, Nov 12, 2014 at 2:48 AM, Larry Martell >>> wrote: >>>> Is there

Re: Communicating with a PHP script (and pretending I'm a browser)

2014-11-11 Thread Larry Martell
On Tue, Nov 11, 2014 at 12:31 PM, Marc Aymerich wrote: > On Tue, Nov 11, 2014 at 6:26 PM, Larry Martell > wrote: >> On Tue, Nov 11, 2014 at 12:18 PM, Marc Aymerich wrote: >>> On Tue, Nov 11, 2014 at 5:43 PM, Larry Martell >>> wrote: >>>> On Tu

Re: Communicating with a PHP script (and pretending I'm a browser)

2014-11-12 Thread Larry Martell
On Tue, Nov 11, 2014 at 10:48 AM, Larry Martell wrote: > I have a PHP app that I want to convert to django. But I want to do it > stages. All the heavy lifting is in the PHP code, so first, I want to > just use templates and views to generate the HTML, but still call the > PHP code

Re: Converting a PHP app to Python + Django (was: Communicating with a PHP script (and pretending I'm a browser))

2014-11-12 Thread Larry Martell
On Wed, Nov 12, 2014 at 12:54 PM, Ben Finney wrote: > Michael Torrie writes: > >> If the shop is entire a PHP shop, and no one knows python, then >> rewriting things in Python and Django is a really bad idea. > > It can be done well; see “Transitioning from PHP to Django on the sly” > http://pyvi

Re: How modules work in Python

2014-11-18 Thread Larry Hudson
unction obj.func2()# Call the method through the object func2()# Try to call the method directly -- Error! #--- /Code This code results in the following: This is function func1() This is method func2() Traceback (most recent call last): File "fun-meth.py",

Re: How modules work in Python

2014-11-18 Thread Larry Hudson
On 11/18/2014 12:59 PM, sohcahto...@gmail.com wrote: On Tuesday, November 18, 2014 12:14:15 AM UTC-8, Larry Hudson wrote: First, I'll repeat everybody else: DON'T TOP POST!!! On 11/16/2014 04:41 PM, Abdul Abdul wrote: Dave, Thanks for your nice explanation. For your answer on

Re: Python IDE.

2014-11-20 Thread Larry Martell
On Thu, Nov 20, 2014 at 2:01 PM, wrote: > Can someone suggest a good python IDE. PyCharm, but it's not free. -- https://mail.python.org/mailman/listinfo/python-list

Setting default_factory of defaultdict to key

2014-12-01 Thread Larry Martell
Is there a way to set the default_factory of defaultdict so that accesses to undefined keys get to set to the key? i.e. if d['xxx'] were accessed and there was no key 'xxx' then d['xxx'] would get set to 'xxx' I know I can define a function with lambda for the default_factory, but I don't see how

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Larry Martell
On Mon, Dec 1, 2014 at 1:19 PM, Ethan Furman wrote: > On 12/01/2014 10:05 AM, Larry Martell wrote: >> >> Is there a way to set the default_factory of defaultdict so that >> accesses to undefined keys get to set to the key? > > You need to subclass and modify __missing__

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Larry Martell
On Mon, Dec 1, 2014 at 1:19 PM, Ethan Furman wrote: > On 12/01/2014 10:05 AM, Larry Martell wrote: >> >> Is there a way to set the default_factory of defaultdict so that >> accesses to undefined keys get to set to the key? > > You need to subclass and modify __missing__

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Larry Martell
On Mon, Dec 1, 2014 at 1:36 PM, Ethan Furman wrote: > On 12/01/2014 10:29 AM, Larry Martell wrote: >> On Mon, Dec 1, 2014 at 1:19 PM, Ethan Furman wrote: >>> On 12/01/2014 10:05 AM, Larry Martell wrote: >>>> >>>> Is there a way to set the default_facto

Re: Old newbie needs help.

2014-12-20 Thread Larry Martell
On Sat, Dec 20, 2014 at 11:34 AM, John Culleton wrote: > This week I wrote my first Python program, a script callable from Scribus, a > DTP program. It ran! Now I want to spread my wings a little. How do I call a > C language executable subprogram from Python and pass information back and > for

Re: kivy secret of mana game

2015-01-24 Thread Larry Martell
On Fri, Jan 23, 2015 at 3:44 PM, wrote: > On Friday, January 23, 2015 at 10:10:08 AM UTC-8, Tony the Tiger wrote: >> On Thu, 22 Jan 2015 17:13:12 +, Automn wrote: >> >> > game >> >> No interest, at all, nada, zilch. zero, nothing. >> >> /Grrr > > Why don't you like fun? I spend 10-12 hours

Re: Sort of Augmented Reality

2015-01-30 Thread Larry Hudson
immediate as soon as I started listening to it (in my mid to late teens -- I'm now 77). OTH, I still don't care for opera... ;-) -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 3.4.3rc1 is now available

2015-02-08 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 release team, I'm happy to announce the availability of Python 3.4.3rc1. Python 3.4.3rc1 has many bugfixes and other small improvements over 3.4.2. You can download it here: https://www.python.org/download/releases/3.4.3

[RELEASE] Python 3.5.0a1 is now available

2015-02-08 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm also pleased to announce the availability of Python 3.5.0a1. Python 3.5.0a1 is the first alpha release of Python 3.5, which will be the next major release of Python. Python 3.5 is still under heavy developm

Re: [RELEASE] Python 3.4.3rc1 is now available

2015-02-08 Thread Larry Hastings
On 02/08/2015 02:06 PM, Mark Lawrence wrote: On 08/02/2015 22:00, Larry Hastings wrote: On behalf of the Python development community and the Python 3.4 release team, I'm happy to announce the availability of Python 3.4.3rc1. Python 3.4.3rc1 has many bugfixes and other small improvements

Re: subprocess command fails

2015-02-21 Thread Larry Hudson
On 02/20/2015 08:47 PM, Brad s wrote: [...] print("command = %r" % (cmdargv,)) sfmove = subprocess.call(cmdargv) also, is the % to Python what precision is to C++? No. It is like the % in C's printf(). -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 3.4.3 is now available

2015-02-25 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 release team, I'm pleased to announce the availability of Python 3.4.3. Python 3.4.3 has many bugfixes and other small improvements over 3.4.2. You can find it here: https://www.python.org/downloads/release/python-343/

Installing PIL without internet access

2015-02-26 Thread Larry Martell
I have a host that has no access to the internet and I need to install PIL on it. I have an identical host that is on the internet and I have installed it there (with pip). Is there a way I can copy files from the connected host to a flash drive and then copy them to the unconnected host and have P

Re: Python programming

2014-02-12 Thread Larry Martell
On Tue, Feb 11, 2014 at 7:21 PM, ngangsia akumbo wrote: > Please i have a silly question to ask. > > How long did it take you to learn how to write programs? My entire life. I started in 1975 when I was 16 - taught myself BASIC and wrote a very crude downhill skiing game. I had dial in access to

Re: Python programming

2014-02-12 Thread Larry Martell
On Wed, Feb 12, 2014 at 9:13 AM, Roy Smith wrote: > In article , > Larry Martell wrote: > >> On Tue, Feb 11, 2014 at 7:21 PM, ngangsia akumbo wrote: >> > Please i have a silly question to ask. >> > >> > How long did it take you to learn how to wri

Top posting and double spacing

2014-02-12 Thread Larry Martell
My personal rule is that I will give people 1 or 2 chances after they are asked. If they continue to top post or send double space posts, I simply ignore everything from them until they get with the program. If we all did that maybe they'd get the message (but probably not). -- https://mail.python

Re: Python programming

2014-02-13 Thread Larry Martell
On Wed, Feb 12, 2014 at 10:56 PM, William Ray Wing wrote: > OK, and how many of you remember the original version of the tongue-in-cheek > essay "Real Programmers Don't Use Pascal" from the back page of Datamation? I do remember it. http://www.webcitation.org/659yh1oSh -- https://mail.python.o

Re: Newcomer Help

2014-02-13 Thread Larry Martell
On Thu, Feb 13, 2014 at 11:22 AM, Rustom Mody wrote: > > This is Usenet. You'll learn much here and you'll find a bunch of rude people. > > No you are not going to crash your plane but you will likely crash your > python-learning attempts if you give an occasional asshole more importance > than is

Re: Welcome to the Internet. No one here likes you. (was: Newcomer Help)

2014-02-13 Thread Larry Martell
On Thu, Feb 13, 2014 at 12:49 PM, John Ladasky wrote: > On Thursday, February 13, 2014 8:32:46 AM UTC-8, larry@gmail.com wrote: > >> This reminds me of post that was circulating in the early 90's: >> >> Welcome to the Internet. >> >> No one here likes

argparse question

2014-02-22 Thread Larry Hudson
mples, it IS in the code samples I've been running. Using 3.3 under Linux (Mint 15). -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: argparse question

2014-02-22 Thread Larry Hudson
On 02/22/2014 03:58 AM, Peter Otten wrote: Larry Hudson wrote: I have been reading the argparse section of the 3.3 docs, and running all the example code. But in section 16.4.2.6. for the formatter_class, the second example in that section illustrating RawDescriptionHelpFormatter, the example

[RELEASED] Python 3.4.0 release candidate 2 is now available

2014-02-23 Thread Larry Hastings
rg/download/releases/3.4.0/ Once I can update the new web site, Python 3.4.0rc2 will be available here: http://python.org/download/releases/ (I'm not sure what the final URL will be, but you'll see it listed on that page.) Please consider trying Python 3.4.0rc2 with your code an

Re: Strange behavior with sort()

2014-02-26 Thread Larry Hudson
ce, but it leaves the original unchanged. -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: Help with "Guess the number" script

2014-03-01 Thread Larry Hudson
rk on (and understand) this program fragment before continuing with the rest of it. -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

script uses up all memory

2014-03-05 Thread Larry Martell
I have a script that forks off other processes and attempts to manage them. Here is a stripped down version of the script: self.sleepTime = 300 self.procs = {} self.startTimes = {} self.cmd = ['python', '/usr/local/motor/motor/app/some_other_script.py'] whi

Re: script uses up all memory

2014-03-05 Thread Larry Martell
On Wed, Mar 5, 2014 at 5:39 PM, Chris Angelico wrote: > On Thu, Mar 6, 2014 at 9:27 AM, Larry Martell wrote: >> I have a script that forks off other processes and attempts to manage >> them. Here is a stripped down version of the script: >> >> self.sleepTime =

Re: script uses up all memory

2014-03-05 Thread Larry Martell
On Wed, Mar 5, 2014 at 7:33 PM, Chris Angelico wrote: > On Thu, Mar 6, 2014 at 11:20 AM, Larry Martell > wrote: >> On Wed, Mar 5, 2014 at 5:39 PM, Chris Angelico wrote: >>> On Thu, Mar 6, 2014 at 9:27 AM, Larry Martell >>> wrote: >>>> I have a

Re: script uses up all memory

2014-03-06 Thread Larry Martell
On Wed, Mar 5, 2014 at 5:27 PM, Larry Martell wrote: > I have a script that forks off other processes and attempts to manage > them. Here is a stripped down version of the script: > > self.sleepTime = 300 > self.procs = {} > self.startTimes = {}

Re: script uses up all memory

2014-03-06 Thread Larry Martell
On Thu, Mar 6, 2014 at 4:56 PM, Larry Martell wrote: > On Wed, Mar 5, 2014 at 5:27 PM, Larry Martell wrote: >> I have a script that forks off other processes and attempts to manage >> them. Here is a stripped down version of the script: >> >> self.sleepTime

Re: script uses up all memory

2014-03-06 Thread Larry Martell
On Thu, Mar 6, 2014 at 5:11 PM, Chris Angelico wrote: > On Fri, Mar 7, 2014 at 8:56 AM, Larry Martell wrote: >> I figured out what is causing this. Each pass through the loop it does: >> >> self.tools = Tool.objects.filter(ip__isnull=False) >> >> And t

Re: Python programming

2014-03-07 Thread Larry Hudson
rtunately I never had another batch of these resistors! :-) -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 3.4.0 release candidate 3

2014-03-10 Thread Larry Hastings
ill be added. The final release is projected for March 16, 2014. To download Python 3.4.0rc3 visit: http://www.python.org/download/releases/3.4.0/ Please consider trying Python 3.4.0rc3 with your code and reporting any new issues you notice to: http://bugs.python.org/ Enjoy! **

[RELEASED] Python 3.4.0

2014-03-16 Thread Larry Hastings
ved protocol for pickled objects * PEP 3156, a new "asyncio" module, a new framework for asynchronous I/O To download Python 3.4.0 visit: http://www.python.org/download/releases/3.4.0/ This is a production release. Please report any issues you notice to: http://bugs.python

Re: Github down?

2014-03-21 Thread Larry Martell
On Fri, Mar 21, 2014 at 9:22 AM, Skip Montanaro wrote: > Anybody else having trouble getting to Github? I'm trying to get to > the pythondotorg issue tracker: > > https://github.com/python/pythondotorg/issues They post the status at: https://twitter.com/githubstatus As of 10 minutes ago it was

Re: Github down?

2014-03-21 Thread Larry Martell
On Fri, Mar 21, 2014 at 9:48 AM, Skip Montanaro wrote: > On Fri, Mar 21, 2014 at 8:24 AM, Larry Martell > wrote: >> https://twitter.com/githubstatus > > Thanks for the pointer. I'm an old fart and don't use social media > much (in fact, just closed my FB accoun

Re: Time we switched to unicode? (was Explanation of this Python language feature?)

2014-03-25 Thread Larry Martell
On Tue, Mar 25, 2014 at 4:21 PM, Gregory Ewing wrote: > Roy Smith wrote: > >> Doors that open automatically as you approach them are now routine. >> > > Star Trek doors seem to be a bit smarter, though. > Captain Kirk never had to stop in front of a door > and wait for it to sluggishly slide open.

Re: Keyboard standards

2014-03-29 Thread Larry Hudson
sides, "Reply" sends private e-mail to the poster -- "Followup" sends to the newsgroup. -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: Keyboard standards

2014-03-29 Thread Larry Hudson
On 03/29/2014 12:41 PM, Michael Torrie wrote: On 03/29/2014 01:27 PM, Larry Hudson wrote: On 03/28/2014 09:26 PM, Mark H Harris wrote: PS Thunderbird puts *both* the list and the news group addys in the to: header field on reply-to-list. ~nice, huh. Must be the way YOU set it up. MY

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread Larry Hudson
mon usage of "American" for this is at best ambiguous, and definitely inaccurate (as well as chauvinistic, and rather insulting to other North and South Americans outside the US). -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: [OFF-TOPIC] How do I find a mentor when no one I work with knows what they are doing?

2014-04-08 Thread Larry Martell
On Tue, Apr 8, 2014 at 3:07 AM, James Brewer wrote: > I'm sure there will be a substantial amount of arrogance perceived from this > question, but frankly I don't think that I have anything to learn from my > co-workers, which saddens me because I really like to learn and I know that > I have a lo

Re: [OFF-TOPIC] How do I find a mentor when no one I work with knows what they are doing?

2014-04-08 Thread Larry Martell
On Tue, Apr 8, 2014 at 11:02 AM, Chris Angelico wrote: > On Wed, Apr 9, 2014 at 12:28 AM, Larry Martell > wrote: >> I've worked at places where: > > Add to that list: > > - Some of the programmers really aren't programmers, but the boss just > hasn't fi

Re: [OFF-TOPIC] How do I find a mentor when no one I work with knows what they are doing?

2014-04-08 Thread Larry Martell
On Tue, Apr 8, 2014 at 11:33 AM, Chris Angelico wrote: > He was majorly turned off > by the whole thing of significant whitespace and basically just told > me "there will be no Python here". Bah.) I had programmed in perl for 20 years, then got a job at place where the boss made the edict "There

Re: Python 2.3 and ODBC

2014-04-08 Thread Larry Martell
On Tue, Apr 8, 2014 at 4:18 PM, Gabor Urban wrote: > Hi guys, > > I am using Python 2.3 on an XP box at my company. (I know it is quite > outdated, but we could not make the management to upgrade.) I have started a > pilot project the last week to show the possibility of processing incoming > XML

Re: [OFF-TOPIC] How do I find a mentor when no one I work with knows what they are doing?

2014-04-09 Thread Larry Hudson
On 04/08/2014 08:02 AM, Chris Angelico wrote: On Wed, Apr 9, 2014 at 12:28 AM, Larry Martell wrote: I've worked at places where: Add to that list: - Some of the programmers really aren't programmers, but the boss just hasn't figured it out yet. That was my last job,

Re: TeX $\times$ symbol not working in matplotlib?

2014-04-18 Thread Larry Hudson
example of what I mean (and the backslash method will NOT work here): d = {1 : 'one',# Describe this key/value pair 2 : 'two',# Describe this one 3 : 'three' # Etc. } Play around in the interactive mode to check out how this splitting works. -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

pyodbc connect string

2014-04-29 Thread Larry Martell
I am having a problem building a connect string for pyodbc. It works when everything is hard coded, but if I build the connect string it fails. This works: pyodbc.connect('DRIVER=FreeTDS;' 'SERVER=xx.xx.xx.xx;' 'PORT=1433;' 'DATABASE=blah;' 'UID=foo;' 'PWD=bar;') But this does not: pyodbc.conne

Re: pyodbc connect string

2014-04-29 Thread Larry Martell
On Tue, Apr 29, 2014 at 7:09 PM, Chris Angelico wrote: > On Wed, Apr 30, 2014 at 10:57 AM, Larry Martell > wrote: >> This works: >> >> pyodbc.connect('DRIVER=FreeTDS;' 'SERVER=xx.xx.xx.xx;' 'PORT=1433;' >> 'DATABASE=blah;'

Re: pyodbc connect string

2014-04-29 Thread Larry Martell
On Tue, Apr 29, 2014 at 7:14 PM, Ben Finney wrote: > Larry Martell writes: > >> I am having a problem building a connect string for pyodbc. It works >> when everything is hard coded, but if I build the connect string it >> fails. >> >> This works: >> &

Re: Significant digits in a float?

2014-05-01 Thread Larry Hudson
5-$30 for it. And mine is in far better condition than the one in the e-bay photo. I recently ran across mine, but promptly misplaced it again (long story -- don't ask...). I'll have to look for it again. (And no, mine is not for sale when/if I find it again.) -=- Larry -=-

[RELEASED] Python 3.4.1rc1

2014-05-05 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 release team, I'm pleased to announce the availability of Python 3.4.1rc1. Python 3.4.1rc1 has over three hundred bugfixes and other improvements over 3.4.0. One notable change: the version of OpenSSL bundled with the Windows

Re: Python under the sea and in space

2014-05-08 Thread Larry Martell
On Tue, May 6, 2014 at 8:31 PM, Jessica McKellar wrote: > Hi folks, > > I'm trying to determine the greatest depth (in the ocean or underground) and > highest altitude at which Python code has been executed. I have written avionics data collection apps there were used in small general aviation ai

Re: The “does Python have variables?” debate

2014-05-10 Thread Larry Hudson
ndled differently. Insisting on a different name is NOT helpful. And insisting that Python does not have variables is ludicrous! -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 3.4.1

2014-05-19 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 release team, I'm pleased to announce the availability of Python 3.4.1. Python 3.4.1 has over three hundred bugfixes and other improvements over 3.4.0. One notable change: the version of OpenSSL bundled with the Windows instal

Python 3 is killing Python

2014-05-28 Thread Larry Martell
Somthing I came across in my travels through the ether: https://medium.com/@deliciousrobots/5d2ad703365d/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3 is killing Python

2014-05-28 Thread Larry Martell
On Wed, May 28, 2014 at 2:49 PM, Paul Rubin wrote: > Larry Martell writes: > > Somthing I came across in my travels through the ether: > > [1]https://medium.com/@deliciousrobots/5d2ad703365d/ > > "Python 3 can revive Python" https://medium.com/p/2a7af4788b10 &g

Re: Python 3 is killing Python

2014-05-29 Thread Larry Martell
On Wed, May 28, 2014 at 10:49 PM, Steven D'Aprano wrote: > On Wed, 28 May 2014 14:58:05 -0500, Larry Martell wrote: > > > On Wed, May 28, 2014 at 2:49 PM, Paul Rubin > > wrote: > > > >> Larry Martell writes: > >> > Somthing I came acros

Re: beginner question (True False help)

2013-08-07 Thread Larry Hudson
ion (which I would prefer) is to do away with batman altogether (maybe the Penguin got 'im??) ;-) Use the True/False version of repeat() and change the while loop to: while True: thingy() if not repeat(): break And finally unindent your final print() line. The way you

Re: new to While statements

2013-08-07 Thread Larry Hudson
al comment... Add one or two spaces to the end of your prompt string, (I like to use two). No biggie, but it just looks nicer if the answer doesn't butt up directly against the end of the prompt. -=- Larry -=- -- http://mail.python.org/mailman/listinfo/python-list

Rock, Paper, Scissors game

2013-08-16 Thread Larry Hudson
puter selects human = get_rps() # Human selects if human == 'q': break print('You have {}, I have {}. '.format( things[human], things[computer]), end='') res, scr = get_result(human, computer) scores[scr] += 1# Count win/lose/draw print(res) # And show results # Show final scores print('\nTotal scores:') print('\tYou won {} games'.format(scores[WIN])) print('\tComputer won {} games'.format(scores[LOSE])) print('\tThere were {} tie games'.format(scores[DRAW])) print('\nThanks for playing with me. Bye now.') ==== -=- Larry -=- -- http://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 3.4.0a2

2013-09-09 Thread Larry Hastings
isit: http://www.python.org/download/releases/3.4.0/ Please consider trying Python 3.4.0a2 with your code and reporting any issues you notice to: http://bugs.python.org/ Enjoy! -- Larry Hastings, Release Manager larry at hastings.org (on behalf of the entire python-dev team and 3.4's co

Re: [RELEASED] Python 3.4.0a2

2013-09-09 Thread Larry Hastings
On 09/09/2013 09:30 PM, Antoine Pitrou wrote: Le Mon, 9 Sep 2013 08:16:06 -0400, Brett Cannon a écrit : Those last two PEPs are still in draft form and not accepted nor have any committed code yet. Unless Larry enthusiastically sneaked them into the release. Whoops. Nope, I'm not

Re: building an online judge to evaluate Python programs

2013-09-23 Thread Larry Hudson
inite, the universe and human stupidity. And I'm not sure about the universe." -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 3.4.0a3

2013-09-29 Thread Larry Hastings
s you notice to: http://bugs.python.org/ Enjoy! -- Larry Hastings, Release Manager larry at hastings.org (on behalf of the entire python-dev team and 3.4's contributors) -- https://mail.python.org/mailman/listinfo/python-list

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-29 Thread Larry Hudson
On 09/29/2013 09:19 AM, Νίκος wrote: Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε: asked and answered. Move on shut up. you are nothign but annoyance here. Thanks for the laugh. Absolutely the most hilarious thing you've ever posted!!! :-) (Ever hear about the pot and the kettle?)

[RELEASED] Python 3.4.0a4

2013-10-20 Thread Larry Hastings
ule test suite fails on some platforms. * I/O conducted by the "asyncio" module may, rarely, erroneously time out. The timeout takes one hour. Please consider trying Python 3.4.0a4 with your code and reporting any new issues you notice to: http://bugs.python.org/ Enjoy! -- La

<    2   3   4   5   6   7   8   9   10   11   >