Re: Multimeter USB output

2016-08-30 Thread Paul Rubin
Larry Hudson writes: > Actually "Brain Dead Software" it was not! Brain Damage Software, apparently: https://en.wikipedia.org/wiki/BDS_C -- https://mail.python.org/mailman/listinfo/python-list

Re: Multimeter USB output

2016-08-30 Thread Larry Hudson via Python-list
On 08/29/2016 09:24 PM, Paul Rubin wrote: Larry Hudson writes: with BDS-C under CP/M. Somebody remenbering this no-fp compiler from the dark age before PC und Linux? I remember it well. It's what I used to initially learn C. Source code is online here: http://www.bdsoft.com/resources/bdsc.

Re: [OT] Altair

2016-08-30 Thread Grant Edwards
On 2016-08-30, Christopher Reimer wrote: > Paper tape reader. The first time I came across a paper tape reader > when I visited the university as a teenager in 1984. A CNC machine > read the paper tape to drill six holes in a piece of metal. The file containing the list of coordinates generated

Re: [OT] Altair

2016-08-30 Thread Sivan Greenberg
I had a Spectra Video, and I do remember fondly for allowing to experiment with fractal and all sorts of programming in BASIC. I recently watched the Steve Jobs movie and it was nice seeing how Apple was promoting that stage of early personal computers. On Tue, Aug 30, 2016 at 6:52 PM, D'Arcy

Re: [OT] Altair

2016-08-30 Thread Christopher Reimer
> On Aug 30, 2016, at 11:51 AM, Joe wrote: > >> Am 30.08.2016 um 17:52 schrieb D'Arcy J.M. Cain: >> On Tue, 30 Aug 2016 15:56:07 +0200 >> Joe wrote: >>> Am 30.08.2016 um 13:01 schrieb D'Arcy J.M. Cain: On Mon, 29 Aug 2016 21:21:05 -0700 Larry Hudson via Python-list wrote: > I re

Re: What's the best way to minimize the need of run time checks?

2016-08-30 Thread Chris Angelico
On Wed, Aug 31, 2016 at 4:30 AM, Quivis wrote: > On Mon, 29 Aug 2016 13:09:28 +1000, Chris Angelico wrote: > >> What's the best way to minimize the need of run time checks? > > Don't do programming! > > Did I win something? You might have won the 100m dash, except that we couldn't verify your vel

Re: [OT] Altair

2016-08-30 Thread Larry Hudson via Python-list
On 08/30/2016 11:51 AM, Joe wrote: Am 30.08.2016 um 17:52 schrieb D'Arcy J.M. Cain: On Tue, 30 Aug 2016 15:56:07 +0200 Joe wrote: Am 30.08.2016 um 13:01 schrieb D'Arcy J.M. Cain: On Mon, 29 Aug 2016 21:21:05 -0700 Larry Hudson via Python-list wrote: I remember it well. It's what I used to

Re: Multimeter USB output

2016-08-30 Thread mm0fmf
On 29/08/2016 09:54, Joe wrote: Am 28.08.2016 um 17:22 schrieb Dennis Lee Bieber: If you can read spaghetti coded C, you might want to study https://sourceforge.net/projects/ut61/ Interesting, but... The last time I did something with c, it was with BDS-C under CM/M. Somebody remenbering this

Re: Multimeter USB output

2016-08-30 Thread Larry Hudson via Python-list
On 08/30/2016 04:01 AM, D'Arcy J.M. Cain wrote: On Mon, 29 Aug 2016 21:21:05 -0700 Larry Hudson via Python-list wrote: I remember it well. It's what I used to initially learn C. I'm a completely self-taught, hobby programmer. Been around since the MITS Altair. How many remember that beast??

Re: [OT] Altair

2016-08-30 Thread D'Arcy J.M. Cain
On Tue, 30 Aug 2016 20:51:54 +0200 Joe wrote: > I think the first BASIC Interpreter ever sold by Gates & Friend was > for this machine? How did you use your floppy drives on this machine > (Open-Write-Close)? The floppy drive came with an operating system called MDOS - Micropolis Disk Operating

Re: [OT] Altair

2016-08-30 Thread Joe
Am 30.08.2016 um 17:52 schrieb D'Arcy J.M. Cain: On Tue, 30 Aug 2016 15:56:07 +0200 Joe wrote: Am 30.08.2016 um 13:01 schrieb D'Arcy J.M. Cain: On Mon, 29 Aug 2016 21:21:05 -0700 Larry Hudson via Python-list wrote: I remember it well. It's what I used to initially learn C. I'm a completely

Re: [OT] Altair

2016-08-30 Thread D'Arcy J.M. Cain
On Tue, 30 Aug 2016 15:56:07 +0200 Joe wrote: > Am 30.08.2016 um 13:01 schrieb D'Arcy J.M. Cain: > > On Mon, 29 Aug 2016 21:21:05 -0700 > > Larry Hudson via Python-list wrote: > >> I remember it well. It's what I used to initially learn C. I'm a > >> completely self-taught, hobby programmer.

Re: Multimeter USB output

2016-08-30 Thread Joe
Am 30.08.2016 um 13:01 schrieb D'Arcy J.M. Cain: On Mon, 29 Aug 2016 21:21:05 -0700 Larry Hudson via Python-list wrote: I remember it well. It's what I used to initially learn C. I'm a completely self-taught, hobby programmer. Been around since the MITS Altair. How many remember that beast?

Re: Itertools Python3

2016-08-30 Thread Smith
Il 30/08/2016 12:28, Chris Angelico ha scritto: On Tue, Aug 30, 2016 at 8:24 PM, Smith wrote: I can not write to the file. Can someone help me? Thanks from itertools import product valore = input('Inserisci un valore: ') risultato = product(valore, repeat = 3) with open("file.txt", "w") as re

[CmdTree] sub-command friendly cli library for python : )

2016-08-30 Thread Kidney Win
Hi there, I'm winkidney:), Recently when I work on a cli auto-generating task, I tryed "click" and "argparse" to handle it. But I have to write a library myself to do this job finally. I wish this library helps you :) Project Github Repo: https://github.com/winkidney/cmdtree Why CmdTree? A

Re: Multimeter USB output

2016-08-30 Thread D'Arcy J.M. Cain
On Mon, 29 Aug 2016 21:21:05 -0700 Larry Hudson via Python-list wrote: > I remember it well. It's what I used to initially learn C. I'm a > completely self-taught, hobby programmer. Been around since the MITS > Altair. How many remember that beast?? Remember it and still have it in the baseme

Re: Itertools Python3

2016-08-30 Thread Chris Angelico
On Tue, Aug 30, 2016 at 8:45 PM, Smith wrote: > Il 30/08/2016 12:28, Chris Angelico ha scritto: >> >> Do you get an exception, possibly from the product() call? When you >> ask for help, copy and paste the entire traceback and error message; >> it's extremely useful information. >> >> I'm pretty s

Re: Itertools Python3

2016-08-30 Thread Smith
Il 30/08/2016 12:28, Chris Angelico ha scritto: Do you get an exception, possibly from the product() call? When you ask for help, copy and paste the entire traceback and error message; it's extremely useful information. I'm pretty sure I know what the problem is here, but I want you to post the

Re: Itertools Python3

2016-08-30 Thread Chris Angelico
On Tue, Aug 30, 2016 at 8:24 PM, Smith wrote: > I can not write to the file. > Can someone help me? > Thanks > > from itertools import product > valore = input('Inserisci un valore: ') > risultato = product(valore, repeat = 3) > with open("file.txt", "w") as result: > for i in risultato:

Itertools Python3

2016-08-30 Thread Smith
Hi, I can not write to the file. Can someone help me? Thanks from itertools import product valore = input('Inserisci un valore: ') risultato = product(valore, repeat = 3) with open("file.txt", "w") as result: for i in risultato: print (result,"".join(i)) -- https://mail.

Re: Magic UTF-8/Windows-1252 encodings

2016-08-30 Thread Chris Angelico
On Tue, Aug 30, 2016 at 7:36 PM, Johannes Bauer wrote: > On 29.08.2016 17:59, Chris Angelico wrote: > >> Fair enough. If this were something that a lot of programs wanted, >> then yeah, there'd be good value in stdlibbing it. Character encodings >> ARE hard to get right, and this kind of thing doe

Re: Magic UTF-8/Windows-1252 encodings

2016-08-30 Thread Johannes Bauer
On 29.08.2016 17:59, Chris Angelico wrote: > Fair enough. If this were something that a lot of programs wanted, > then yeah, there'd be good value in stdlibbing it. Character encodings > ARE hard to get right, and this kind of thing does warrant some help. > But I think it's best not done in core

Re: Helloworld with Python C extension

2016-08-30 Thread Christian Gollwitzer
Am 30.08.16 um 08:06 schrieb Ganesh Pal: Py_BuildValue with an "s" expects a C string - that is, a pointer to char, not just a single character. You'd need to do something like this: char buf[2] = {char1, 0}; return Py_BuildValue("s", buf); ChrisA Thanks Chris for the clue's it worked,

Re: importing down in code rather than at top of file.

2016-08-30 Thread dieter
Tobiah writes: > Is it worth while to defer the import of a large module that seldom > gets used in the script? > > > import sys > import os > > if hardly_ever_happens(): > > import large_module > large_module.do_task() I have used de

Re: Multimeter USB output

2016-08-30 Thread Joe
Am 30.08.2016 um 06:24 schrieb Paul Rubin: Larry Hudson writes: with BDS-C under CP/M. Somebody remenbering this no-fp compiler from the dark age before PC und Linux? I remember it well. It's what I used to initially learn C. Source code is online here: http://www.bdsoft.com/resources/bdsc