Environment:
Ubuntu Linux 12.04 (precise)
Python 2.7.3
I have a package (i.e. a directory with a __init__.py file). In that
directory, I have files math.py and test_math.py; test_math.py contains
the single line:
from .math import EMA
If I run on the command line, "nosetests test_math.py" eve
On 25Dec2013 02:54, Denis McMahon wrote:
> On Tue, 24 Dec 2013 10:27:13 -0800, vanommen.robert wrote:
> > In this script i want to read the temperatures and make them available
> > to other scripts. [...]
> If you want this process to provide data to other processes, you might
> want to look at u
On Tue, 24 Dec 2013 10:27:13 -0800, vanommen.robert wrote:
> In this script i want to read the temperatures and make them available
> to other scripts.
The "global" keyword doesn't do that.
"global" is used inside a function definition in python to tell the
function that it is working with a gl
Tim Johnson wrote:
> * Steven D'Aprano [131224 07:05]:
>> On Tue, 24 Dec 2013 00:32:31 +, Mark Lawrence wrote:
>>
>> > Maybe of interest to some of you
>> > http://www.bbc.co.uk/news/technology-25495315
>>
>> While I'm happy for Alan Turing, may he rest in peace, I think the
>> thousands of
Hi, ALL,
I am working on a script that parses CSV file and after successful
parsing insert data ino mySQL table.
One of the fields in CSV holds a date+time value.
What the script should do is check if the cell has any data, i.e. not
empty and then make sure that the data is date+time.
If the vali
* Steven D'Aprano [131224 07:05]:
> On Tue, 24 Dec 2013 00:32:31 +, Mark Lawrence wrote:
>
> > Maybe of interest to some of you
> > http://www.bbc.co.uk/news/technology-25495315
>
> While I'm happy for Alan Turing, may he rest in peace, I think the
> thousands of other homosexuals who have
On Tue, 24 Dec 2013 09:54:48 -0800 (PST), vanommen.rob...@gmail.com
wrote:
You should always start by mentioning python version and o.s.
import time
global Sens_Raw1, Sens_Raw2, Sens_Raw3, Sens_Raw4, Sens_Raw5,
Sens_Raw6, Sens_Raw7, Sens_Raw8, Sens_Raw9, Sens_Raw10
The global statement make
Indeed this is code what I found on the web to read temperatures from 10
DS18B20 singlewire sensors.
My only programming (little) experience is VBA (Excel mostly).
avgtemperatures = [] is indeed from the original code where this line
'avgtemperatures.append(sum(temperatures) / float(len(temper
On Tue, Dec 24, 2013 at 12:54 PM, wrote:
> import time
> global Sens_Raw1, Sens_Raw2, Sens_Raw3, Sens_Raw4, Sens_Raw5, Sens_Raw6,
> Sens_Raw7, Sens_Raw8, Sens_Raw9, Sens_Raw10
> while True:
> sensorids = ["28-054c4932", "28-054c9454",
> "28-054c9fca", "28-054c4401", "28-00
import time
global Sens_Raw1, Sens_Raw2, Sens_Raw3, Sens_Raw4, Sens_Raw5, Sens_Raw6,
Sens_Raw7, Sens_Raw8, Sens_Raw9, Sens_Raw10
while True:
sensorids = ["28-054c4932", "28-054c9454", "28-054c9fca",
"28-054c4401", "28-054dab99", "28-054cf9b4", "28-054c8a03",
"
On Wed, Dec 25, 2013 at 2:41 AM, Tobias M. wrote:
> On 23.12.2013 17:47, Chris Angelico wrote:
>> while gtk.events_pending(): gtk.main_iteration()
>
> On 23.12.2013 20:59, Terry Reedy wrote:
>>
>> I think tk(inter) has 'run pending events' or something.
>
> I didn't know functions like this exist
On 12/24/2013 11:07 AM, vanommen.rob...@gmail.com wrote:
Hello, for the first time I'm trying te create a little Python program. (on a
raspberri Pi)
I don't understand the handling of variables in a loop with Python.
Lets say i want something like this.
x = 1
while x <> 10
var x = x
vanommen.rob...@gmail.com wrote:
> Hello, for the first time I'm trying te create a little Python program.
> (on a raspberri Pi)
>
> I don't understand the handling of variables in a loop with Python.
>
>
> Lets say i want something like this.
>
> x = 1
> while x <> 10
> var x = x
> x = x + 1
On 24.12.2013 17:07, vanommen.rob...@gmail.com wrote:
Hello, for the first time I'm trying te create a little Python program. (on a
raspberri Pi)
I don't understand the handling of variables in a loop with Python.
Lets say i want something like this.
x = 1
while x <> 10
var x = x
- Original Message -
> Hello, for the first time I'm trying te create a little Python
> program. (on a raspberri Pi)
>
> I don't understand the handling of variables in a loop with Python.
>
>
> Lets say i want something like this.
>
> x = 1
> while x <> 10
> var x = x
> x =
On Tue, Dec 24, 2013 at 11:07 AM, wrote:
> Hello, for the first time I'm trying te create a little Python program.
> (on a raspberri Pi)
>
> I don't understand the handling of variables in a loop with Python.
>
>
> Lets say i want something like this.
>
> x = 1
> while x <> 10
> var x = x
Hello, for the first time I'm trying te create a little Python program. (on a
raspberri Pi)
I don't understand the handling of variables in a loop with Python.
Lets say i want something like this.
x = 1
while x <> 10
var x = x
x = x + 1
The results must be:
var1 = 1
var2 = 2
On 12/24/13 10:55 AM, Mark Lawrence wrote:
On 24/12/2013 15:28, Ned Batchelder wrote:
On 12/24/13 9:58 AM, Mark Lawrence wrote:
On 24/12/2013 10:22, wxjmfa...@gmail.com wrote:
[once again snip double spaced google crap]
This is gui related.
http://en.wiktionary.org/wiki/pull_the_other_o
On 24/12/2013 15:28, Ned Batchelder wrote:
On 12/24/13 9:58 AM, Mark Lawrence wrote:
On 24/12/2013 10:22, wxjmfa...@gmail.com wrote:
[once again snip double spaced google crap]
This is gui related.
http://en.wiktionary.org/wiki/pull_the_other_one,_it%27s_got_bells_on
This isn't adding
Thanks for your answers! I didn't have the time to test any of your
suggestions so far but they already gave me something to think about. At
least now I'm much more clearer on what I am actually looking for.
On 23.12.2013 20:59, Terry Reedy wrote:
What would be easiest for user-developers wou
On 12/24/13 9:58 AM, Mark Lawrence wrote:
On 24/12/2013 10:22, wxjmfa...@gmail.com wrote:
[once again snip double spaced google crap]
This is gui related.
http://en.wiktionary.org/wiki/pull_the_other_one,_it%27s_got_bells_on
This isn't adding anything. It might even be trolling.
Th
On 24/12/2013 10:22, wxjmfa...@gmail.com wrote:
[once again snip double spaced google crap]
This is gui related.
http://en.wiktionary.org/wiki/pull_the_other_one,_it%27s_got_bells_on
This code point could have been a grapheme of
a korean glyph (Hangul script) used to to
populate a text
Hello,
I'm trying to use namespace packages (as described by PEP 420) to manage
optional components of my Python package.
I would like to discover which optional components are installed.
Unfortunately, I have not found a straightforward way to do this. For regular
packages, pkgutil.walk_packa
Le lundi 23 décembre 2013 21:53:13 UTC+1, Terry Reedy a écrit :
> On 12/23/2013 2:05 PM, wxjmfa...@gmail.com wrote:
>
>
>
> > Le lundi 23 décembre 2013 18:59:41 UTC+1, Wolfgang Keller a écrit :
>
> >> [me]
>
> >>> I'll note that Python core developers do care about memory leaks.
>
> >> And th
Am Mon, 23 Dec 2013 16:30:35 -0800
schrieb Igor Korot :
>
> Now, it looks that the python way of validating the date/time of the
> string is to call strptime(). However looking at the docs and trying
> to use the function I didn't find a way to check for the milliseconds.
> Now the dates can be f
Mark Lawrence wrote:
> Maybe of interest to some of you
> http://www.bbc.co.uk/news/technology-25495315
I think they got mixed up who'd have to pardon whom.
--
https://mail.python.org/mailman/listinfo/python-list
26 matches
Mail list logo