Re: can't add variables to instances of built-in classes

2016-07-19 Thread Lawrence D’Oliveiro
On Wednesday, July 20, 2016 at 6:19:45 PM UTC+12, Chris Angelico wrote: > > On Wed, Jul 20, 2016 at 9:58 AM, Lawrence D’Oliveiro wrote: >> >> On Wednesday, July 20, 2016 at 9:24:57 AM UTC+12, bream...@gmail.com wrote: >>> >>> On Tuesday, July 19, 2016 at 3:54:12 AM UTC+1, Lawrence D’Oliveiro wrote:

Re: can't add variables to instances of built-in classes

2016-07-19 Thread Chris Angelico
On Wed, Jul 20, 2016 at 9:58 AM, Lawrence D’Oliveiro wrote: > On Wednesday, July 20, 2016 at 9:24:57 AM UTC+12, bream...@gmail.com wrote: >> >> On Tuesday, July 19, 2016 at 3:54:12 AM UTC+1, Lawrence D’Oliveiro wrote: >>> >>> On Tuesday, July 19, 2016 at 11:12:52 AM UTC+12, bream...@gmail.com wrot

Re: Floating point equality [was Re: What exactly is "exact" (was Clean Singleton Docstrings)]

2016-07-19 Thread Chris Angelico
On Wed, Jul 20, 2016 at 3:42 PM, Steven D'Aprano wrote: > Arithmetic on integer-values (e.g. 1.0) is always exact, up to a limit of > either 2**53 or approximately 1e53, I forget which. (That's why most > Javascript > programmers fail to notice that they don't have an integer type.) It's 2**53,

Floating point equality [was Re: What exactly is "exact" (was Clean Singleton Docstrings)]

2016-07-19 Thread Steven D'Aprano
On Tuesday 19 July 2016 14:58, Rustom Mody wrote: > So I again ask: You say «"Never compare floats for equality" is a pernicious > myth» It is the word *never* which makes it superstition. If people said "Take care with using == for floats, its often not what you want" I would have no argument

Re: What exactly is "exact" (was Clean Singleton Docstrings)

2016-07-19 Thread Gene Heskett
On Tuesday 19 July 2016 18:27:10 Ian Kelly wrote: > On Tue, Jul 19, 2016 at 2:35 PM, Gene Heskett wrote: > > And I am not familiar with this foot-poundals per second that you > > question about, but just from the wording I'd say it is a fifty > > dollar way to say horsepower. > > https://en.wiki

Re: What exactly is "exact" (was Clean Singleton Docstrings)

2016-07-19 Thread Random832
On Tue, Jul 19, 2016, at 18:17, Marko Rauhamaa wrote: > I'd love it if batteries were priced per joule, or even per > kilowatt-hour. Typically their capacity is labeled in amp-hours. You have to know your devices to know if the voltage difference between different battery types (Which ranges from

Re: What exactly is "exact" (was Clean Singleton Docstrings)

2016-07-19 Thread Lawrence D’Oliveiro
On Wednesday, July 20, 2016 at 10:28:04 AM UTC+12, Ian wrote: > Ah, the machinations that users of imperial units have to endure. Deep in some people’s hearts, the Mars Climate Orbiter still sails... -- https://mail.python.org/mailman/listinfo/python-list

Re: can't add variables to instances of built-in classes

2016-07-19 Thread Lawrence D’Oliveiro
On Wednesday, July 20, 2016 at 9:24:57 AM UTC+12, bream...@gmail.com wrote: > > On Tuesday, July 19, 2016 at 3:54:12 AM UTC+1, Lawrence D’Oliveiro wrote: >> >> On Tuesday, July 19, 2016 at 11:12:52 AM UTC+12, bream...@gmail.com wrote: >>> >>> On Monday, July 18, 2016 at 10:48:15 PM UTC+1, Lawrence

Re: What exactly is "exact" (was Clean Singleton Docstrings)

2016-07-19 Thread Marko Rauhamaa
Gregory Ewing : > Physicists realised that nearly a century ago, and no > longer use the idea of a velocity-dependent mass. Roche states that about 60% of modern authors just use rest mass and avoid relativistic mass. https://en.wikipedia.org/wiki/Mass_in_special_relativity#Controversy>

Re: What exactly is "exact" (was Clean Singleton Docstrings)

2016-07-19 Thread Marko Rauhamaa
Ian Kelly : > Ah, the machinations that users of imperial units have to endure. Europeans often mistakenly believe that Americans haven't yet adopted the SI units. They have: - the length of a ski is measured in centimeters - the width of film and the diameter of a gun barrel are measured in

Re: What exactly is "exact" (was Clean Singleton Docstrings)

2016-07-19 Thread Gregory Ewing
Gene Heskett wrote: The theory of relativity says that the faster you are going, the more massive you become. It doesn't, really. The equations only seem to say that if you insist on keeping the Newtonian definitions of momentum and kinetic energy in the context of relativity, which is a silly

Re: What exactly is "exact" (was Clean Singleton Docstrings)

2016-07-19 Thread Ian Kelly
On Tue, Jul 19, 2016 at 2:35 PM, Gene Heskett wrote: > And I am not familiar with this foot-poundals per second that you > question about, but just from the wording I'd say it is a fifty dollar > way to say horsepower. https://en.wikipedia.org/wiki/Foot-poundal > Which is defined in the area of

Re: What exactly is "exact" (was Clean Singleton Docstrings)

2016-07-19 Thread Marko Rauhamaa
Gene Heskett : > On Tuesday 19 July 2016 13:46:37 Lawrence D’Oliveiro wrote: >> What is this “watt” of which you speak? > > A unit of electrical power, simplified to 1 volt at 1 amp = 1 watt > when that currant is passed thru a 1 ohm resistor. But since the > majority of radio frequency stuff is d

Re: Request for help

2016-07-19 Thread MRAB
On 2016-07-19 22:21, alister wrote: On Tue, 19 Jul 2016 13:06:39 +1000, Steven D'Aprano wrote: On Tue, 19 Jul 2016 06:20 am, alister wrote: I suggest next time you stay awake during lessons. That's an uncalled for nasty comment. You don't know the O.P's issues or why he is having difficulty

Re: can't add variables to instances of built-in classes

2016-07-19 Thread breamoreboy
On Tuesday, July 19, 2016 at 3:54:12 AM UTC+1, Lawrence D’Oliveiro wrote: > On Tuesday, July 19, 2016 at 11:12:52 AM UTC+12, bream...@gmail.com wrote: > > > > On Monday, July 18, 2016 at 10:48:15 PM UTC+1, Lawrence D’Oliveiro wrote: > >> > >> > >> When you have lots

Re: Request for help

2016-07-19 Thread alister
On Tue, 19 Jul 2016 13:06:39 +1000, Steven D'Aprano wrote: > On Tue, 19 Jul 2016 06:20 am, alister wrote: > >> I suggest next time you stay awake during lessons. > > That's an uncalled for nasty comment. You don't know the O.P's issues or > why he is having difficulty. because he has failed to

Re: What exactly is "exact" (was Clean Singleton Docstrings)

2016-07-19 Thread Gene Heskett
On Tuesday 19 July 2016 13:46:37 Lawrence D’Oliveiro wrote: > On Wednesday, July 20, 2016 at 12:07:25 AM UTC+12, Gene Heskett wrote: > > This klystron amplifier, a new one of which was north of $125,000 in > > the 1970's when I learned about them, is a long tube, around 5 feet > > long with altern

Re: python - handling HTTP requests asynchronously

2016-07-19 Thread edgargdcv
Could you please help me showing me your code ? I'm in a situation similar greetings . -- https://mail.python.org/mailman/listinfo/python-list

Re: What exactly is "exact" (was Clean Singleton Docstrings)

2016-07-19 Thread Lawrence D’Oliveiro
On Wednesday, July 20, 2016 at 12:07:25 AM UTC+12, Gene Heskett wrote: > This klystron amplifier, a new one of which was north of $125,000 in the > 1970's when I learned about them, is a long tube, around 5 feet long > with alternating sections of copper tubeing and ceramic insulators > separati

Re: an error

2016-07-19 Thread Laurent Pointal
WePlayGames WeEnjoyIt wrote: > elif p2==8: >pygame1.blit(image3,(143,146) <= missing ) > total+=1 > fps=40 > clockfps.tick(fps) > pygame.display.update() > > the problem with this is that i get an syntax error at the very end at the > TOTAL+=1 when i delete this it tells me

Re: Request for help

2016-07-19 Thread Steven D'Aprano
On Mon, 18 Jul 2016 07:50 pm, Eric kago wrote: > Hi Pythoners > > I need help in understanding hoe to put up the code to the following > command Hi Eric, You might find that the "Tutor" mailing list is better for simple questions like this: https://mail.python.org/mailman/listinfo/tutor Reme

Re: What exactly is "exact" (was Clean Singleton Docstrings)

2016-07-19 Thread Gene Heskett
On Monday 18 July 2016 23:16:32 Steven D'Aprano wrote: > On Tue, 19 Jul 2016 10:36 am, Rustom Mody wrote: > > I recollect — school physics textbook so sorry no link — > > that in the Newton gravitation law > > f = -GMm/r² > > > > there was a discussion about the exponent of r ie 2 > > And that to

Re: an error

2016-07-19 Thread Terry Reedy
On 7/19/2016 2:07 AM, WePlayGames WeEnjoyIt wrote: pygame1.blit(image3,(143,146) If you type this line (including \n) into IDLE's Python-aware editor, it will notice that there is an open parenthesis for a function call and indent the next line to the space under the 'i' of image. This i