Re: Problem in Installing version 3.7.2(64 bit)

2019-01-30 Thread Anssi Saari
songbird  writes:

>   my understanding is that this list is actually 
> several combined services (i'm not sure how the
> mailing list operates or how it filters or rejects
> things) and then there is the usenet list comp.lang.python
> (which is how i see articles and replies).

I'm aware but the message was sent to the mailing list and it's the
mailing list that removes attachments. I suppose some Usenet servers
might strip or reject articles that look like binaries, don't really
know. I do think it extremely unlikely a beginner would send a Usenet
post except maybe via Google Groups but that interface doesn't do
attachments AFAIK.

As the mailing list has moderators and they have recently flexed their
muscles by outright banning people I'm hoping they would stop these
attachment posts too. This would stop the oft repeated responses that
attachments are stripped which I find annoying.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem in Installing version 3.7.2(64 bit)

2019-01-30 Thread Richard Damon
On 1/30/19 7:48 AM, Anssi Saari wrote:
> songbird  writes:
>
>>   my understanding is that this list is actually 
>> several combined services (i'm not sure how the
>> mailing list operates or how it filters or rejects
>> things) and then there is the usenet list comp.lang.python
>> (which is how i see articles and replies).
> I'm aware but the message was sent to the mailing list and it's the
> mailing list that removes attachments. I suppose some Usenet servers
> might strip or reject articles that look like binaries, don't really
> know. I do think it extremely unlikely a beginner would send a Usenet
> post except maybe via Google Groups but that interface doesn't do
> attachments AFAIK.
>
> As the mailing list has moderators and they have recently flexed their
> muscles by outright banning people I'm hoping they would stop these
> attachment posts too. This would stop the oft repeated responses that
> attachments are stripped which I find annoying.
>
Part of the issue is that the software that does the processing isn't
early enough in the mail queue to actually 'reject' the mail, but can
only create a 'bounce back' message. The problem with bounce messages is
that they go to who the message says is the sender, not necessarily to
who the actual sender was, so create a back-scatter issue.

The list software also does a lot more than just strip attachments, it
appears that it also strips out (or maybe converts) html formatted
messages and just passes on plain text messages. As someone who runs
another list using the same software, a LOT of people don't understand
this restriction and a far portion of the messages to the list are sent
as HTML formatted, so rejecting rather than just stripping these would
make a lot of people unhappy/confused. A lot of people also have little
graphic included in their base message as signatures, etc, that
naturally get stripped out in the conversion to plain text.

-- 
Richard Damon

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How do I get a python program to work on my phone?

2019-01-30 Thread Mario R. Osorio
You might want to check this project: https://pybee.org/

I've never used it but it shows promising.

BTW, I'm a diabetic myself and I would be very thankful if you could share your 
application.

I'm currently using 2 Android apps:

StickBuddy offers a system to keep track of both where you pinch your fingers 
and where you inject insulin thus avoiding injecting or pinching repeatedly in 
the same locations. 

Insulator is a quick and dirty insuline intake calculator.

They are both great but I'd like to have them in a single app that would 
immediately calculate the insuline needed according to the reading I just enter.

StickBuddy has a lot of other interesting goodies; It also helps me keep track 
of my carbohydrate intake.

Both apps are free.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem in Installing version 3.7.2(64 bit)

2019-01-30 Thread mm0fmf

On 29/01/2019 00:48, Ian Clark wrote:

back in my day we had to show our professors errors on punchcard! and we
liked it

On Sun, Jan 27, 2019 at 11:51 AM Terry Reedy  wrote:


On 1/26/2019 6:24 AM, Vrinda Bansal wrote:

Dear Sir/Madam,

After Installation of the version 3.7.2(64 bit) in Windows 8 when I run

the

program it gives an error. Screenshot of the error is attached below.


Nope.  This is text only mail list.  Images are tossed.  You must copy
and paste.

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list



In which case you should know not to top punch your reply!


--
https://mail.python.org/mailman/listinfo/python-list


what considerations for changing height of replacement radiator?

2019-01-30 Thread jkn
Hi all
I'm looking at changing a radiator in a bedroom shortly and wondering about
my options re. sizing.

The current radiator is 900mm W x 600mm H, and is single panel, no convector. So
looking at some representative specs, let's say 550W output.

I would be replacing this with a single panel, single convector radiator. From
looking at the spec again, the same sized radiator gives around 50% greater
output - 900W.

I am wondering about fitting a 900mm W x 450mm H single panel, single convector,
which would then reduce the output again to 700W or so, similar to the original.

My reason for doing this would simply be 'neater appearance' of the smaller
radiator, but it wouldn't be a problem if the replacement was the same size as
the original. I am wondering if there is anything else (apart from power output)
that I should be considering here?

The radiator will be under a window and the CH is an olde school 'plan C', I
think. I would probably fit a TRV in any case. There is no need to heat the room
any better than currently...

Thanks for any advice.

Cheers
Jon N
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: what considerations for changing height of replacement radiator?

2019-01-30 Thread Chris Angelico
On Thu, Jan 31, 2019 at 10:11 AM jkn  wrote:
>
> Hi all
> I'm looking at changing a radiator in a bedroom shortly and wondering 
> about
> my options re. sizing.

No problems!

A Python 2.7 radiator is sometimes smaller than a Python 3.5+
radiator, but the newer model of radiator has a number of advantageous
features. For example, you can seamlessly use temperatures in Arabic
or Russian as well as English, and you can track your energy usage
using the 'statistics' module.

Or possibly this email was sent to the wrong list :)

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: what considerations for changing height of replacement radiator?

2019-01-30 Thread Ian Clark
looking for a Space heater? sorry, not the Java mailing list

On Wed, Jan 30, 2019 at 3:11 PM jkn  wrote:

> Hi all
> I'm looking at changing a radiator in a bedroom shortly and wondering
> about
> my options re. sizing.
>
> The current radiator is 900mm W x 600mm H, and is single panel, no
> convector. So
> looking at some representative specs, let's say 550W output.
>
> I would be replacing this with a single panel, single convector radiator.
> From
> looking at the spec again, the same sized radiator gives around 50% greater
> output - 900W.
>
> I am wondering about fitting a 900mm W x 450mm H single panel, single
> convector,
> which would then reduce the output again to 700W or so, similar to the
> original.
>
> My reason for doing this would simply be 'neater appearance' of the smaller
> radiator, but it wouldn't be a problem if the replacement was the same
> size as
> the original. I am wondering if there is anything else (apart from power
> output)
> that I should be considering here?
>
> The radiator will be under a window and the CH is an olde school 'plan C',
> I
> think. I would probably fit a TRV in any case. There is no need to heat
> the room
> any better than currently...
>
> Thanks for any advice.
>
> Cheers
> Jon N
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: what considerations for changing height of replacement radiator?

2019-01-30 Thread Avi Gross
I disagree, politely, Chris. The request is too BASIC and Radiator is best
done in R. I note especially how it has support for heat maps. 

But as with Python, I recommend a recent version of 3.X, and at least
version 3.3.3 that came out in March 2017.

As for the python 2.7 radiator, it works better if it is a new style class
radiating  from base class object.


-Original Message-
From: Python-list  On
Behalf Of Chris Angelico
Sent: Wednesday, January 30, 2019 6:37 PM
To: Python 
Subject: Re: what considerations for changing height of replacement
radiator?

On Thu, Jan 31, 2019 at 10:11 AM jkn  wrote:
>
> Hi all
> I'm looking at changing a radiator in a bedroom shortly and 
> wondering about my options re. sizing.

No problems!

A Python 2.7 radiator is sometimes smaller than a Python 3.5+ radiator, but
the newer model of radiator has a number of advantageous features. For
example, you can seamlessly use temperatures in Arabic or Russian as well as
English, and you can track your energy usage using the 'statistics' module.

Or possibly this email was sent to the wrong list :)

ChrisA
--
https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Trying to figure out the data type from the code snippet

2019-01-30 Thread Chupo via Python-list
In article , 
Cameron Simpson  says...



> What you're probably wanting to know is that the print statement calls 
> str(x) for every "x" which it is asked to print, and that "p" has a 
> __str__ method returning the "R.Wilson" string (etc). All object's have 
> an __str__ method, and for "p" it has been defined to produce what looks 
> like a player's name.
> 

Yes, that is exactly what answers my question, thank you very much for 
such a comprehensive explanation!

I couldn't use type() because implementation of:

game.players.passing()

is not known. This is all info I saw:

https://stackoverflow.com/q/28056171/1324175

I searched Google using quite a few search strings, for example:

python object returning value
python class returning value
python dot
python attribute

but didn't find an answer because I didn't know what exactly should I 
search for.

Best Regards
-- 
Let There Be Light
Custom LED driveri prema specifikacijama
http://tinyurl.com/customleddriver

Chupo
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Trying to figure out the data type from the code snippet

2019-01-30 Thread DL Neil

On 31/01/19 3:38 PM, Chupo via Python-list wrote:

In article , DL
Neil  says...

Alternately/additionally, if you ask help(p), it will reveal-all about
the "class" (of which p is an "instance") - including some answers to
your second question (and perhaps others which logically follow-on).


Yes, but unfortunately this was all I had:

https://stackoverflow.com/q/28056171/1324175



It can't be - there must be some source for p (code and data)! Surely 
you're only showing us a small portion of the code?


Like printing the type() or the string representation, using help() is a 
matter of adding one line to the source code...


--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: Trying to figure out the data type from the code snippet

2019-01-30 Thread Chupo via Python-list
In article , DL 
Neil  says...
> Alternately/additionally, if you ask help(p), it will reveal-all about 
> the "class" (of which p is an "instance") - including some answers to 
> your second question (and perhaps others which logically follow-on).

Yes, but unfortunately this was all I had:

https://stackoverflow.com/q/28056171/1324175
-- 
Let There Be Light
Custom LED driveri prema specifikacijama
http://tinyurl.com/customleddriver

Chupo
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Trying to figure out the data type from the code snippet

2019-01-30 Thread Chupo via Python-list
In article <8bff3a64-e154-4e39-b558-952e8f28a...@googlegroups.com>, 
Rick Johnson  says...
> Listen... if you are not familiar with all of Python's built-in functions,
> all special methods of Python objects, and all the methods of strings,
> integers, floats, lists, tuples, dicts (and possibly others that i forgot
> to mention), you can't do much of anything with this language. 
> 
> I would advise you to read a beginners tutorial.

I am by any means not Python expert but I do have a basic Python 
knowledge and I do occasionally use Pyhon to perform some tasks.

I am not a professional programmer but rather an electrical engineer 
and I am using various programming languages since 1982. I started with 
Z80 and 6502 assembler, Fortran, Pascal, ... and since I am often using 
microcontrollers my main programming languages are C and assembler.

However, sometimes when I have to process some data, parse some file, 
generate some data, extract of filter some results acquired by sampling 
or measuring analog values, ... I do use Python - although I never 
learnt it from the book. I am using Python as a tool to accomplish the 
tasks as they 'arrive' and although my code is for sure not written in 
Pythonic way - it works.

Since arrival of various SoCs (e.g. Rasbperry Pi) I used Python not 
only for pre/post processing the data but for building applications as 
well and some of the Python programs I wrote are:

- Driver for *very* fast 3D printer which is unique in its construction
- Filtering the data acquired from multiple AD converters sampling 
movements of human body using Savitzky-Golay filter
- Program for sending large amount of data in real time via I2C BUS 
towards multiple microcontrollers every 10 ms (I used threading and 
Queue from multiprocessing and I am, upon sending the data over I2C 
BUS, scheduling a new thread in a way timing disturbances caused by 
background tasks and interrupts don't accumulate over time)
- Programs used as 'a glue' between node.js code and microcontrollers
- Interpolating the data used for sinhronizing lip movements of 
humanoid robot with spoken words between the keyframes
- 3D animation of humaniod robot arms based on the data acquired by 
motion capture and by recording movements using rotary encoders

And yes, I did use OOP. For example, I can use my driver for 3D printer 
to print one layer as follows:

from Printer3D import Head
import numpy as np
import cv2
import glob
import time

np.set_printoptions(threshold=np.nan)
layer = cv2.imread("./png_input/layer.png")

visina, sirina = layer.shape[:2]
print visina, sirina

layer = cv2.cvtColor(layer, cv2.COLOR_BGR2GRAY)
#layer = cv2.resize(layer, None, fx=0.5, fy=0.5, interpolation = 
cv2.INTER_AREA)

hd = Head(layer)
hd.setSteps_x(44, 44, 382)
hd.setDistance(21)
hd.setHead_GPIO([0, 4, 17, 27, 22, 10, 9, 11, 5, 6])
hd.setMotor_GPIO([13, 19, 26, 21, 20, 16])

hd.move(Head.ROW_UP, 10)
hd.printLayer()
hd.move(Head.UP, 10)

So, the truth is - I am indeed (obviously) not familiar with everything 
you mentioned but you can decide for yourself if everything I already 
did using Python could be classified as 'not much'.
-- 
Let There Be Light
Custom LED driveri prema specifikacijama
http://tinyurl.com/customleddriver

Chupo
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Trying to figure out the data type from the code snippet

2019-01-30 Thread Chupo via Python-list
In article , DL 
Neil  says...
> It can't be - there must be some source for p (code and data)! Surely 
> you're only showing us a small portion of the code?
> 

I am not author of the question on StackOverflow. I was looking for 
something about Python and that question was among the search results.

You can see the question was asked 4 years ago.
-- 
Let There Be Light
Custom LED driveri prema specifikacijama
http://tinyurl.com/customleddriver

Chupo
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: what considerations for changing height of replacement radiator?

2019-01-30 Thread jkn
All very droll, thanks for the replies guys. I spotted my posting error 0.0001 
secs after pressing the button...

uk.d-i-y-is-that-way-ly yours
J^n
-- 
https://mail.python.org/mailman/listinfo/python-list