Hello,
Do you know if it is possible to use python + qt bindings in cygwin ?
I've looked inside kde / cygwin. There is a package named qt-gcc-3 but
I did'nt find the qt bindings for python :/ Is there a way to do that
? Or am I obliged to use tkinter to make user interfaces when I'm with
python /
nal to structure
(you can have visible democracy, blind hierarchy, in real life too.)
Visibility has to be built in from the beginning --
wrap all connect() s in a visconnect() that can trace.
Dietmar's shell sounds Right; anyone know of such in PyQt ?
cheers
-- denis
--
http://mail.py
!
See
http://stackoverflow.com/questions/2117255/python-deep-getsizeof-list-with-contents
cheers
-- denis
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 23, 10:58 pm, Brian Hammond
wrote:
> On Aug 25, 12:51 am, Denis wrote:
>
> > You can also atgevent
>
> >http://pypi.python.org/pypi/gevent
>
> Please, please document this! There are a lot of people who would
> love to use this but give up when they d
kages registered in PyPI using the PyPM
client, some packages may not yet be available in the ActiveState
repository"
Does that mean that PyPM installs ONLY from the activestate repository
and not from url or .tar.gz or dir/ ?
cheers
-- denis
--
http://mail.python.org/mailman/listinfo/python-list
h to PyPM, make it UNIFORM and
COMPATIBLE.
"Use tool A for this, tool B for that" => FearUncertaintyandDoubt =>
reduced market share
(at least for people who don't enjoy FearUncertaintyandDoubt)
cheers
-- denis
--
http://mail.python.org/mailman/listinfo/python-list
10p
under http://infolab.stanford.edu/~manku/papers.html
nice tree pictures
they optimize mem (NH * Nbuf) not runtime, and don't window
Suri +, Quantiles on Streams, 2006, 5p,
http://www.cs.ucsb.edu/~suri/psdir/ency.pdf
~ 20 refs zzz
cheers
-- denis
--
http://mail.python.o
haven't tried --
http://www.intel.com/technology/computing/opencv
http://code.google.com/p/ctypes-opencv
http://code.google.com/p/opencv-cython
cheers
-- denis
--
http://mail.python.org/mailman/listinfo/python-list
ns/1309263/rolling-median-algorithm-in-c
cheers
-- denis
--
http://mail.python.org/mailman/listinfo/python-list
For detailed questions, try
http://stackoverflow.com/questions/tagged/pyqt or pyqt4
(the " or " may have to be escaped as "%20or%20" in some browsers.)
--
http://mail.python.org/mailman/listinfo/python-list
google.com /
site:stackoverflow.com .)
cheers
-- denis
--
http://mail.python.org/mailman/listinfo/python-list
Sure, Aho-Corasick is fast for fixed strings; but without real
numbers / a concrete goal
> > Matt, how many words are you looking for, in how long a string ?
a simple solution is good enough, satisficing. Matt asked "how to
make that function look nicer?"
but "nice" has many dimensions -- bicycle
You can also at gevent
http://pypi.python.org/pypi/gevent
On Aug 23, 10:02 pm, Phillip B Oldham
wrote:
> I've been taking a look at the multitude of coroutine libraries
> available for Python, but from the looks of the projects they all seem
> to be rather "quiet". I'd like to pick one up to us
ing to read the docstring? English majors, grammar nazis, wikipedia
editors, programmers, or all 4?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
7; appears when i run the module.
It looks to me as if bWater is an integer value and doesn't have
a .clicked attribute.
Where is bWater assigned, and what is it assigned to?
If you have a clickable "water" widget of some sort in your gui, what is
the click handler for that widge
On Wed, 22 May 2013 01:15:27 +, i...@databaseprograms.biz wrote:
> If you would like this in text format instead, please let me know.
What if we don't want it at all?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
well the language designers and maintainers
explain the need to break the old scripts.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
):
t=t+v(d[0][u])
r=t/10.
print "%s C1: %f R1: %f"%(m,c,r)
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 23 May 2013 07:17:58 -0700, Keira Wilson wrote:
> Dear all who involved with responding to my question - Thank you so much
> for your nice code which really helped me.
Hold on a sec? Someone posted code that gave the correct answer to a
homework question?
--
Denis McMahon, denis
he new file name.
Something like the following (untested) with the relevant imports etc:
nfn="data0.0."+str(max([int(f[8:])for f in os.listdir(p)if re.match
('^data0.0.[0-9]+$',f)])+1)
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 26 May 2013 21:32:40 -0700, Avnesh Shakya wrote:
>how to compare two json file line by line using python? Actually I am
>doing it in this way..
Oh what a lot of homework you have today.
Did you ever stop to think what the easiest way to compare two json
datasets is?
--
w many JSON objects are on each line?
Your code at (1) creates a single list of all the json objects
The code you replied to loaded each object, assumed you did something
with it, and then over-wrote it with the next one.
As for (2) - either inspection, or errors from the json parser.
--
u represent an empty list named Foo? The same way. How do you
> represent an empty dict/mapping named Foo? Lemme look up my
> documentation... ah, the same way. Does this seem right to
> you?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
sysadmin why you
need root access.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 04 Jun 2013 07:52:17 +0800, usman mjoda wrote:
> Good day everyone, I need assistance for python codes of aes 128 bits
> key that can be run on SAGE Application. Thanks
google pycrypto
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
s, javascript etc to point them
back at the host server, or some script on your server that can obtain
and serve the appropriate resources.
Alternatively, how about displaying the third party website in an iframe
within your own document? Although that's not really pythonic, just
htmlic.
ings = { "a":1, "b":3, "c":2 }
for thing in sorted( things.values() ):
print thing
>> Prints 1, 2, 3
for thing in sorted( things.keys() ):
print thing
>> Prints a, b, c
Now although things["b"] is a valid reference because "b" is a k
x27;, year ):
print "branch 2"
elif not re.search( '=', year ):
print "branch 3"
else:
print "branch 4"
# testing logic for 8 possible input conditions
test("=", "=", "=")
test("=", "=", "x")
test("=", "x", "=")
test("=", "x", "x")
test("x", "=", "=")
test("x", "=", "x")
test("x", "x", "=")
test("x", "x", "x")
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
as the preferred coding environment for such things in
ms office?
A quick google finds me vb code to download a url into a string -
presumably once you've done that you can find the value you want to
scrape into your spreadsheet.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
't work either of these solutions out on your own,
perhaps the really important question you need to be asking yourself
right now is "should I even be trying to code this in python when my
basic knowledge of python coding is so poor?"
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
nderstood is this line.
> First please tell me what is a byte value
Seriously? You don't understand the term byte? And you're the support
desk for a webhosting company?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 14 Jun 2013 12:32:56 +0300, Nick the Gr33k wrote:
> I'mm not trolling man, i just have hard time understanding why numbers
> acts as strings.
It depends on the context.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
> i cant change my mind easily that it works in another fashon(only if the
> counter-arguments are strong).
Then you need to stop trying to write python code, because you refuse to
accept how python works, and python is not going to change for you!
--
Denis McMahon, denismfmcma...@gmail.
t; No need for a regular expression.
>
> py> sentence = "By the new group"
> py> words = sentence.split()
> py> words[1:-1]
> ['the', 'new']
>
> Does that help?
I thought OP wanted:
words[words[0],words[-1]]
But that might be just my caffeine deprived misinterpretation of his
terminology.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
st = (words[0], words[-1])
Or even:
first_and_last = [sentence.split()[i] for i in (0, -1)]
middle = sentence.split()[1:-2]
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 15 Jun 2013 13:41:21 +, Denis McMahon wrote:
> first_and_last = [sentence.split()[i] for i in (0, -1)] middle =
> sentence.split()[1:-2]
Bugger! That last is actually:
sentence.split()[1:-1]
It just looks like a two.
--
Denis McMahon, denismfmcma...@gmail.com
--
ory location and points
"b" at that memory location, then makes "a" point to the same memory
location as "b" points to.
b is a pointer to a memory location containing the value 6
a is a pointer to the same memory location
Do you understand the difference?
--
e a web
server available to you - you could put both code (just append .txt to
the filename) and screenshots from your browser there with no difficulty
at all and just include links.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 16 Jun 2013 11:35:12 +0300, Nick the Gr33k wrote:
> TB behaves for me the same way. Any line > 80 chars gets a newline. Why
> this is happening? Why not post up to 256 chars in a single line?
Because this is usenet. Read the RFCs if you must know!
--
Denis McMahon, de
On Sun, 16 Jun 2013 11:07:12 +0300, Nick the Gr33k wrote:
> On 16/6/2013 9:32 πμ, Denis McMahon wrote:
>> On Sat, 15 Jun 2013 19:18:53 +0300, Nick the Gr33k wrote:
>>
>>> In both situations we still have 2 memory units holding values, so
>>> hows that differen
On Sun, 16 Jun 2013 12:59:00 +0300, Nick the Gr33k wrote:
> Whats the difference of "interpreting " to "compiling" ?
OK, I give up!
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 19 Jun 2013 13:18:49 -0700, jacksonkemp1234 wrote:
> windowSurface.blit(playerImage, player)
> for bear in bears:
> windowSurface.blit(bearImage, bear)
Try changing this to draw the bears first, then the player.
--
Denis McMahon, denismfmcma...@
On Wed, 19 Jun 2013 13:18:49 -0700, jacksonkemp1234 wrote:
> if moveDown and player.right < WINDOW_WIDTH:
> player.right += MOVE_SPEED
Should this be moveRight instead of moveDown?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listin
;re missing the dll that provides some function that you're trying to
use.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 01 Jul 2013 21:18:26 +0200, Antoon Pardon wrote:
> I am not baiting Nikos.
Your opinion, mine differs.
> all I have done in the last two weeks that involves Nikos as a
> subject is the "Don't feed the troll thread"
Calling him a troll is baiting. Please
On Mon, 01 Jul 2013 20:42:48 +0200, Antoon Pardon wrote:
> How about the following comprimise.
> Let me know what you think about this.
How about you just ignore him.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
;s quite clear that you're more interested in having arguments and
slinging insults than you are in discussing python. I'm here to discuss
python.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
in a sort of pythonic manner, rather
than actual python code - also because some newsreaders may break
indenting etc, I've used ; as line terminators and {} to group blocks)
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
lp,
Why use Python? Just:
wget -m url
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sunday, July 24, 2016 at 11:30:09 PM UTC-5, Steven D'Aprano wrote:
> Yes, I said Pythons plural :-)
>
> For those wanting to use Python on .Net or Mono, there is some good news.
>
> Firstly, the venerable old "Python for .Net" project is still alive, and now
> supports up to Python 3.5 on .Net
On Saturday, September 3, 2016 at 8:53:18 PM UTC-5, Steve D'Aprano wrote:
> On Sat, 3 Sep 2016 12:34 pm, Denis Akhiyarov wrote:
>
> > Finally if anyone can contact Christian Heimes (Python Core Developer),
> > then please ask him to reply on request to update the license
On Sunday, October 2, 2016 at 10:57:57 AM UTC-5, nicolases...@gmail.com wrote:
> >One problem with using very similar syntax for distinct languages is that it
> >can get confusing.
>
> The first inspiration for Fython was to be close to Fortran, while improving
> the syntax. The project is in th
Have a look at automatic web app builder using Django or Flask called Wooey
based Gooey.
https://github.com/wooey/Wooey
--
https://mail.python.org/mailman/listinfo/python-list
On Sunday, January 29, 2017 at 4:00:27 PM UTC-6, Gregory Ewing wrote:
> Joseph L. Casale wrote:
> >>.NET is a library that can be used from many languages, including Python.
> >
> > No.
>
> Yes:
>
> http://pythonnet.sourceforge.net/
>
> "Python for .NET is a package that gives Python programmer
uot;""
n, m = c(i)
return c(n) + (m,)
Applying c3 to the natural numbers gives the sequence you wanted:
s = map(c3, count(1))
pprint([next(s) for _ in range(10)])
[(1, 1, 1),
(2, 1, 1),
(1, 1, 2),
(1, 2, 1),
(2, 1, 2),
(1, 1, 3),
(3, 1, 1),
(1, 2, 2),
(2, 1, 3),
(1, 1, 4)]
--
Denis Kasak
--
https://mail.python.org/mailman/listinfo/python-list
On 2018-03-13 23:56, Denis Kasak wrote:
On 2018-03-10 02:13, Steven D'Aprano wrote:
But I've stared at this for an hour and I can't see how to extend the
result to three coordinates. I can lay out a grid in the order I want:
1,1,1 1,1,2 1,1,3 1,1,4 ...
2,1,1 2,1,2
Either wait for IronPython 3.6, use COM interop, pythonnet, subprocess, or
things like gRPC. Based on PyPy experience, it is probably 1-2 years of
sponsored development to get a working IronPython 3.6.
--
https://mail.python.org/mailman/listinfo/python-list
To: Schachner, Joseph
From: denis.akhiya...@gmail.com
Either wait for IronPython 3.6, use COM interop, pythonnet, subprocess, or
things like gRPC. Based on PyPy experience, it is probably 1-2 years of
sponsored development to get a working IronPython 3.6.
--- BBBS/Li6 v4.10 Toy-3
* Origin: Pri
To: Schachner, Joseph
From: "denis akhiyarov"
To: Schachner, Joseph
From: denis.akhiya...@gmail.com
Either wait for IronPython 3.6, use COM interop, pythonnet, subprocess, or
things like gRPC. Based on PyPy experience, it is probably 1-2 years of
sponsored development to get
Denis
--
https://mail.python.org/mailman/listinfo/python-list
lick GUIs to create the stuff, the main advantage of
>>> HTML - that it's easy to write by hand - isn't needed.
>>
>> But the other advantage, that it's an existing and popular
>> standard, remains.
>
> However, for both e-mail and news, it is totally useless. It also
> interferes with the use of AsciiArt, while opening the recipient to
> the dangers above.
And HTML has the tendency to make e-mail and Usenet posts unnecessarily
bigger, which will continue to be a bugger until broadband links become
common enough.
-- Denis
--
http://mail.python.org/mailman/listinfo/python-list
* reason why it
should be exposed to all the disadvantages stated in numerous places in
thread to gain a pale "advantage" such as flashy content. We already
have a World Wide Web, no need to make Usenet it's clone.
-- Denis
--
http://mail.python.org/mailman/listinfo/python-list
roduce no intrinsical slowdown due to
increased bandwidth consumation, nor potential security problems. They
have no downsides I can possibly think of and have many advantages. They
are useful. HTML on Usenet is not.
-- Denis
--
http://mail.python.org/mailman/listinfo/python-list
n arguing about coding style or writing
followups to Xah Lee. It adds no further insight on a particular
subject, but _does_ add further delays, spam, bandwidth consumation,
exploits, and is generally a pain in the arse. It's redundant.
-- Denis
--
http://mail.python.org/mailman/listinfo/python-list
John Bokma wrote:
> Ulrich Hobelmann <[EMAIL PROTECTED]> wrote:
>
>> John Bokma wrote:
>>> http://www.phpbb.com/mods/
>>
>> Great. How can I, the user, choose, how to use a mod on a given web
>> server?
>
> Ask the admin?
And that is, in your opinion, completely comparable to running your own
net and WWW more similar to one
another.
-- Denis
--
http://mail.python.org/mailman/listinfo/python-list
Internet a
poorer place.
I suggest letting the matter rest or taking it to a more appropriate
newsgroup.
-- Denis
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 12 Nov 2013 12:47:58 +, Andy Lawton wrote:
> (I think "Europe/Kiev" is Greece but I don't know)
I suspect Nick is really in a coding sweatshop in "Asia/Mumbai"
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
server to a different site
(eg disaster recovery) UTC is still UTC.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
You should be able to automate creating this list.
You could then search through the list of tuples with a function such as:
yearname( birthdate ):
foreach thing in years
if birthdate is in the range specified by the thing
return the yearname from the thing
return "constipated program"
(this is obviously not written as python code, you have to do that bit
yourself)
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
, I'll post a corrected version next week.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 13 Nov 2013 16:44:03 -0800, edmundicon wrote:
> Den tisdagen den 12:e november 2013 kl. 23:50:03 UTC+1 skrev Denis
> McMahon:
>> On Tue, 12 Nov 2013 14:04:08 -0800, edmundicon wrote:
>>
>>
>>
>> > Greetings everyone! This is my first post on th
em facing the
public internet upon which python code is executed in response to inputs
from the public internet.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
on 'x=(x-32)*5/9' is really
"convert temp from fahrenheit to centigrade".
As you do this add relevant comments to the code. Eventually you'll have
code with sensible variable names and comments that hopefully describe
what it does.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
ages here and we all laugh at his ineptitude.
I would answer his question, but I foreswore helping him days ago now,
you just get too much abuse because (in his opinion) your answer includes
excessive whitespace.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
x; ]
otherwise [ new x = perform odd number collatz math on x; ]
display new x to the user;
}
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
ncy for assistance
on decoding the codes.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 20 Nov 2013 11:38:14 +, Duncan Booth wrote:
> Denis McMahon wrote:
>> 1) Find all the numbers less than n that are not divisible by a, b, or
>> c.
>> ask the user for x;
>> assign the value 0 to some other variable i;
>> while i is not greater than
On Sat, 23 Nov 2013 02:18:03 +, Steven D'Aprano wrote:
> On Sat, 23 Nov 2013 01:55:44 +0000, Denis McMahon wrote:
>> On Fri, 22 Nov 2013 18:22:29 +0530, Bharath Kummar wrote:
>>> Could you PLEASE provide me with the codes (codes only for the asked
>>> que
code we may be able to help with that bit.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
rd ) is hash
solved this hash!
load_dictionary( "dictionary file name" )
get_hashes( "http://www.website.tld/path/file.ext"; )
brute_force()
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
he word and the hash.
If you have code to get the hash strings from the web url, it is nuts to
output them to the screen and then type them back in to the cracking
program when you can just add the code to get them from the web to the
cracking program.
--
Denis McMahon, denismfmcma...@gmail.com
-
//txt.do/1smv
That's not source code, it's a url.
> Please, I need help.
As my newsreader isn't a web browser, I can't help. Sorry.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
less the overwhelming smell of pot that has
> been drifting around this thread knocks me unconscious.
""" The root class for all Python classes. Its methods are inherited by
all classes unless overriden. """
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
and more likely to happen.
And yes, I can dovetail, mortise and tenon, dowel etc etc etc.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
test for whether b[x[0]] eists than
trapping keyError.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, 13 Dec 2013 02:32:49 -0800, uni.mail.2014 wrote:
> I have a page that request an openID authentication
And your Python question is?
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, 13 Dec 2013 03:39:44 -0800, Jai wrote:
> hey , will u guide me how to run proxies from python
http://lmgtfy.com/?q=ip+address+spoofing
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
d the preceding 10 lines or so)
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
gramming newsgroup.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
left to right):
from collections import deque
q = dequeue([])
def add_to_queue( item, q ):
if len( q ) is 4:
q.pop()
q.appendleft( item )
def get_next( q ):
if len( q ) > 0:
return q.pop()
return None
To move from position 3
On Mon, 16 Dec 2013 19:20:20 -0800, Mura Zalukhu wrote:
> Could you give me the best tutorial / web for python. For example how to
> make a connection with database.
Which database? Which version of Python?
Google may help. So will the Python on-line documentation.
--
Denis M
tart_b = 0
max_len = 0
i = 0
while i < len( d ):
j = i + 1
while j < len( d ):
o = 0
while j+o < len( d ) and d[i+o][1] == d[j+o][1]:
o += 1
if o > max_len:
max_len = 0
max_start_a = i
max_start_b = j
j += 1
i += 1
pr
ur earlier request.
+1
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
;ll help you bypass them.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
ction that it is working with a global (to the program unit) variable.
If you want this process to provide data to other processes, you might
want to look at using a socket so they can request it as needed.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 25 Dec 2013 16:42:47 +1100, Cameron Simpson wrote:
> 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. [...]
s returning None (or any other default
value you care to pass it) as long as you use the dict.get(key[,default])
method rather than dict[key] to return the value.
See also:
http://stackoverflow.com/questions/6130768/return-none-if-dictionary-key-
is-not-available
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
None, None, None, None, None, 'jim', None, None, None, None,
None, 'susan', None, None, None, None, None, None, None, None, None,
'albert', None, None, None, None, None, None, None, None, None, None,
None, None, None, None, None, None, None, None, None, None, None, N
with machines of the pre-pentium era, although I suspect
that might not be quite accurate either.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
1 - 100 of 564 matches
Mail list logo