hi,
i'm trying the random.gauss function. can anyone explain how to get a
number between a given range? like, from 0 to 20 with an average of
10? and how to determine the "steep" of the curve? i've never studied
it, so mu and sigma don't really tell me a thing.
thanks in advange
--
http://mail.py
Roald de Vries wrote:
I would suggest to do choose the same strategy as 'from __future__
import ...' takes, which does similar things and limits them to the
module it is used in. I would be curious to hear about your results.
Kind regards, Roald
Hi,
well, i have thought on the issue and i th
Chris Rebert wrote:
On Fri, Feb 26, 2010 at 12:45 PM, Gib Bogle
wrote:
How can I interrogate Python to find out where it is looking to find the
PyQt4 DLLs in a Windows installation?
import sys
print(sys.path)
Note this thread:
http://www.mail-archive.com/p...@riverbankcomputing.com/msg20121
On Feb 26, 2:05 pm, Stephen Nelson-Smith wrote:
> Hello,
I'm sorry - I hadn't realised that python-list ended up here as well.
Sincere apologies for double-posting.
S.
--
http://mail.python.org/mailman/listinfo/python-list
On 2010-02-26 15:26 PM, pistacchio wrote:
hi,
i'm trying the random.gauss function. can anyone explain how to get a
number between a given range?
You don't. The Gaussian distribution has infinite range. The best you can do
with the standard library is to keep sampling until you get a number in
Jean-Michel Pichavant wrote:
Andreas Waldenburger wrote:
On Fri, 26 Feb 2010 09:09:36 -0600 Tim Daneliuk
wrote:
On 2/24/2010 2:23 PM, Andreas Waldenburger wrote:
[stuff]
Reminiscent of:
mov AX,BX ; Move the contents of BX into AX
Well, there might be some
The point of my question was that sys.path is clearly not being used in this
case. When I start Python sys.path includes D:\python26\lib\site-packages which
seems to be the Python default. Using sys.path.append I have tried adding both
D:\python26\lib\site-packages\PyQt4 and D:\python26\lib\si
Is there technique to determine if threads are active in a Python
application?
The only technique I can think of is to check sys.modules for
thread and threading. But this will only show whether these
modules were imported - not whether there are actually background
threads running.
Motivation: W
In message
, William
Lohrmann wrote:
> The best thing would be to backslash the single quote: print 'The play
> "All\'s Well That Ends Well"'
Backslash-type escapes are the most general solution to this type of
problem. They’re also the easiest to apply automatically:
for ch in input_stri
Tobiah wrote:
Now that I use python, this is the amount of time
per day that I spend adding forgotten semicolons while
debugging other languages.
You think that's bad? I've spent hours today converting the J language
that I don't dare mention to Python. Once in a blue moon I came across
a
On 2/26/2010 4:21 PM, qtrimble wrote:
fileIN = open(r"C:\testing.txt", "r")
for line in fileIN:
year = line[3:7]
day = line[7:10]
print year, day
This is good since i can get the year and day of year into a variable
but I haven't gotten any further.
That's an excellent start.
In article ,
Patrick Sabin wrote:
>
>A database usually stores data on disk and not in RAM. However you could
>use sqlite with :memory:, so that it runs in RAM.
The OP wants transparent caching, so :memory: wouldn't work.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncr
On Feb 26, 12:58Â pm, Jeremy wrote:
> I have lots of data that I currently store in dictionaries. Â However,
> the memory requirements are becoming a problem. Â I am considering
> using a database of some sorts instead, but I have never used them
> before. Â Would a database be more memory efficie
In article ,
Roy Smith wrote:
>
>Whatever database you pick, you're almost certainly going to end up having
>to install it wherever you install your application. There's no such thing
>as a universally available database that you can expect to be available
>everywhere.
...unless you use SQLi
In article <891a98fa-c398-455a-981f-bf72af772...@s36g2000prh.googlegroups.com>,
Jeremy wrote:
>
>I have lots of data that I currently store in dictionaries. However,
>the memory requirements are becoming a problem. I am considering
>using a database of some sorts instead, but I have never used
On Feb 26, 7:58Â am, Jeremy wrote:
> I have lots of data that I currently store in dictionaries. Â However,
> the memory requirements are becoming a problem. Â I am considering
> using a database of some sorts instead, but I have never used them
> before. Â Would a database be more memory efficien
On Feb 26, 2:21 pm, qtrimble wrote:
> On Feb 26, 4:14 pm, OdarR wrote:
>
> > > below is just a sample. There are well over 500,000 lines that need
> > > processed.
>
> > > wer1999001
> > > 31.2234 82.2367
> > > 37.9535 82.3456
> > > wer1999002
> > > 31.2234 82.2
Hello,
I'd like to define variables with some specific name that has a common
prefix.
Something like this:
varDic = {'red': 'a', 'green': 'b', 'blue': 'c'}
for key, value in varDic.iteritems():
'myPrefix' + key = value
I know this is illegal, but there must be a trick somewhere.
Thanks,
I smell homework
--
http://mail.python.org/mailman/listinfo/python-list
Joan Miller writes:
> On 26 feb, 12:35, Ben Finney wrote:
> > A common convention is to have a ‘README’ text file, written in
> > reStructuredText for rendering to various output formats as part of
> > the documentation. You could then have the ‘setup.py’ program read
> > the contents of that fi
The PyQt4 problem results from having copies of the Qt DLLs in directories that
are in the PATH, as Doug Bell discovered. In my case I have two programs that
use Qt, AMD CodeAnalyst and Matlab. If I rename BOTH these directories I can
import the PyQt4 modules.
Since this behaviour did not oc
The PyQt4 problem results from having copies of the Qt DLLs in directories that
are in the PATH, as Doug Bell discovered. In my case I have two programs that
use Qt, AMD CodeAnalyst and Matlab. If I rename BOTH these directories I can
import the PyQt4 modules.
Since this behaviour did not oc
On Fri, 26 Feb 2010 09:09:36 -0600, Tim Daneliuk wrote:
> Reminiscent of:
>
> mov AX,BX ; Move the contents of BX into AX
That's a *good* comment, because without it most English-speaking people
would assume you were moving the contents of AX into BX.
> And, yes, I've actually
I used the x86 Python 2.6.4 installer. I am working in x64 Win7 pro.
I have tried adjusting environment variables as well as putting the
files directly in the search path of Python.. Python still returns
this.. Any ideas?
>>> import sys
>>> sys.path
['C:\\Python26\\Lib\\idlelib', 'C:\\Program Fil
On Fri, 26 Feb 2010 23:32:27 -, Raphael Mayoraz
wrote:
I'd like to define variables with some specific name that has a common
prefix.
Why?
No seriously, how do you think this is going to solve whatever problem you
clearly think it will solve?
--
Rhodri James *-* Wildebeeste Herder
* Raphael Mayoraz:
Hello,
I'd like to define variables with some specific name that has a common
prefix.
Something like this:
varDic = {'red': 'a', 'green': 'b', 'blue': 'c'}
for key, value in varDic.iteritems():
'myPrefix' + key = value
I know this is illegal, but there must be a trick s
On Friday 26 February 2010 16:06:56 Routb3d wrote:
> I used the x86 Python 2.6.4 installer. I am working in x64 Win7 pro.
>
> I have tried adjusting environment variables as well as putting the
> files directly in the search path of Python.. Python still returns
> this.. Any ideas?
Where are you
On Fri, Feb 26, 2010 at 6:22 PM, Alf P. Steinbach wrote:
> * Raphael Mayoraz:
>
>> Hello,
>>
>>
>> I'd like to define variables with some specific name that has a common
>> prefix.
>> Something like this:
>>
>> varDic = {'red': 'a', 'green': 'b', 'blue': 'c'}
>> for key, value in varDic.iteritems
thanks, betadistribute did the work... and i learned a new thing!
On 26 Feb, 22:56, Robert Kern wrote:
> On 2010-02-26 15:26 PM, pistacchio wrote:
>
> > hi,
> > i'm trying the random.gauss function. can anyone explain how to get a
> > number between a given range?
>
> You don't. The Gaussian dist
On Feb 26, 1:26 pm, pistacchio wrote:
> hi,
> i'm trying the random.gauss function. can anyone explain how to get a
> number between a given range? like, from 0 to 20 with an average of
> 10? and how to determine the "steep" of the curve? i've never studied
> it, so mu and sigma don't really tell
Steven D'Aprano writes:
> On Fri, 26 Feb 2010 09:09:36 -0600, Tim Daneliuk wrote:
>
>> Reminiscent of:
>>
>> mov AX,BX ; Move the contents of BX into AX
>
>
> That's a *good* comment, because without it most English-speaking people
> would assume you were moving the contents of A
Steven D'Aprano wrote:
On Fri, 26 Feb 2010 09:09:36 -0600, Tim Daneliuk wrote:
Reminiscent of:
mov AX,BX ; Move the contents of BX into AX
That's a *good* comment, because without it most English-speaking people
would assume you were moving the contents of AX into BX.
[sn
On 2/26/2010 6:32 PM, Raphael Mayoraz wrote:
Hello,
I'd like to define variables with some specific name that has a common
prefix.
Something like this:
varDic = {'red': 'a', 'green': 'b', 'blue': 'c'}
for key, value in varDic.iteritems():
'myPrefix' + key = value
No trick, just swap a new ke
* MRAB:
Steven D'Aprano wrote:
On Fri, 26 Feb 2010 09:09:36 -0600, Tim Daneliuk wrote:
Reminiscent of:
mov AX,BX ; Move the contents of BX into AX
That's a *good* comment, because without it most English-speaking
people would assume you were moving the contents of AX into B
Hello,
I have been using python for quite some time; however this is the
first python project i have worked on.
The code is hosted at http://github.com/zubin71/PyAutoRun
The code needs re-factoring and feature additions; i have put up a
TODO list there too. It`d be great if anyone could work on
On Friday 26 February 2010 17:42:04 Isaiah Coberly wrote:
> Thanks for the reply.
>
> I tried putting the files from
>
> C:\OpenCV2.0\Python2.6\Lib
>
> too
>
> C:\Python26\Lib\site-packages
>
> and Python still wont import..
>
> I adjusted the environment variables to try and import maya.sta
On Fri, 26 Feb 2010 21:56:47 +0100, Patrick Sabin wrote:
>> Shelve looks like an interesting option, but what might pose an issue
>> is that I'm reading the data from a disk instead of memory. I didn't
>> mention this in my original post, but I was hoping that by using a
>> database it would be m
Jeremy writes:
> I have lots of data that I currently store in dictionaries. However,
> the memory requirements are becoming a problem. I am considering
> using a database of some sorts instead, but I have never used them
> before. Would a database be more memory efficient than a dictionary?
W
On Fri, 26 Feb 2010 13:26:44 -0800, pistacchio wrote:
> hi,
> i'm trying the random.gauss function. can anyone explain how to get a
> number between a given range? like, from 0 to 20 with an average of 10?
That's not what a Gaussian distribution does. It has an infinite range.
Are you sure you w
On Fri, 26 Feb 2010 18:47:26 -0600, John Bokma wrote:
> Steven D'Aprano writes:
>
>> On Fri, 26 Feb 2010 09:09:36 -0600, Tim Daneliuk wrote:
>>
>>> Reminiscent of:
>>>
>>> mov AX,BX ; Move the contents of BX into AX
>>
>>
>> That's a *good* comment, because without it most Englis
On Fri, 26 Feb 2010 20:15:16 -0500, John Posner wrote:
> On 2/26/2010 6:32 PM, Raphael Mayoraz wrote:
>> Hello,
>>
>> I'd like to define variables with some specific name that has a common
>> prefix.
>> Something like this:
>>
>> varDic = {'red': 'a', 'green': 'b', 'blue': 'c'} for key, value in
>
Steven D'Aprano wrote:
On Fri, 26 Feb 2010 18:47:26 -0600, John Bokma wrote:
Steven D'Aprano writes:
On Fri, 26 Feb 2010 09:09:36 -0600, Tim Daneliuk wrote:
Reminiscent of:
mov AX,BX ; Move the contents of BX into AX
That's a *good* comment, because without it most Englis
On 2/26/2010 10:20 PM, Steven D'Aprano wrote:
On Fri, 26 Feb 2010 20:15:16 -0500, John Posner wrote:
On 2/26/2010 6:32 PM, Raphael Mayoraz wrote:
Hello,
I'd like to define variables with some specific name that has a common
prefix.
Something like this:
varDic = {'red': 'a', 'green': 'b', 'bl
On Fri, 26 Feb 2010 15:32:27 -0800, Raphael Mayoraz wrote:
> Hello,
>
> I'd like to define variables with some specific name that has a common
> prefix.
> Something like this:
>
> varDic = {'red': 'a', 'green': 'b', 'blue': 'c'}
> for key, value in varDic.iteritems():
> 'myPrefix' + key = va
On Feb 26, 2010, at 19:47 , Isaiah Coberly wrote:
> C:\OpenCV2.0\Python2.6\Lib\site-packages
>
> no .py files here..
>
> cv.pyd
> libcv.dll.a
>
>
> C:\OpenCV2.0\Python2.6\Lib\site-packages\opencv
>
> _init_.py
> matlan_syntax.py
> adaptors.py
> cv.py
>
It looks to me like 'opencv' is stru
On 27 Feb 2010 00:02:40 GMT
Steven D'Aprano wrote:
> On Fri, 26 Feb 2010 09:09:36 -0600, Tim Daneliuk wrote:
> > mov AX,BX ; Move the contents of BX into AX
>
> That's a *good* comment, because without it most English-speaking people
> would assume you were moving the contents of
On 2/26/2010 9:25 PM, MRAB wrote:
> Steven D'Aprano wrote:
>> On Fri, 26 Feb 2010 18:47:26 -0600, John Bokma wrote:
>>
>>> Steven D'Aprano writes:
>>>
On Fri, 26 Feb 2010 09:09:36 -0600, Tim Daneliuk wrote:
> Reminiscent of:
>
> mov AX,BX ; Move the contents of
On 26Feb2010 10:39, Arjun wrote:
| Hi, I have a small script that runs a TCP server. A client connects to
| this server and transmits a stored file line-by-line, and then waits
| for a confirmation "done". However, when I run them the first loop
| never really ends -- as the TCP server keeps expec
On Sat, 27 Feb 2010 00:54:53 +, MRAB wrote:
> The assembly languages of virtually all the processors that I've come
> across put the destination first, eg. x86:
Incorrect. x86 assembly has two distinct syntax branches, "Intel
syntax" (which is most common in the Windows world according to
W
On Sat, 27 Feb 2010 03:25:47 +, MRAB wrote:
>> Also, some assemblies perform the move in different directions
>> according to the arguments. So you might have:
>>
>> mv AX,BX ; move contents of BX into AX mv @CX,DX ; move contents of
>> @CX into DX
>>
>> Horrible, yes, but apparently some a
On Fri, 26 Feb 2010 21:51:17 -0600, Tim Daneliuk wrote:
> The only possible exception to this I can think of is when there is some
> non-obvious side-effect (i.e. language and/or hardware is
> "misfeatured"):
>
> mov A,B; Moving A into B also will also arm
>
Steven D'Aprano wrote:
for key, value in varDic.iteritems():
varDic['myPrefix_' + key] = value
del varDic[key]
Watch out if any of the existing values already startswith 'myPrefix'
You can end up with trouble just as confusing as if 'myPrefix' is an
empty string
DaveA
--
http:/
Mensanator wrote:
> "You're" not getting the point.
If every link has to be accompanied by a summary of all of the
information at the end of it, what point is there to linking?
(Programmers are the _only_ people I know of who complain about the
arduousness of tasks like typing quotes or clicking
Dennis Lee Bieber wrote:
On Sat, 27 Feb 2010 13:00:32 +1300, Gib Bogle
declaimed the following in
gmane.comp.python.general:
The PyQt4 problem results from having copies of the Qt DLLs in directories that
are in the PATH, as Doug Bell discovered. In my case I have two programs that
use Qt, A
FREE CALL TO ANYWHERE .. http://mobiletricks777.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 26, 10:20 am, "Diez B. Roggisch" wrote:
> Am 26.02.10 17:08, schrieb Diez B. Roggisch:
>
>
>
>
>
> > Am 26.02.10 16:57, schrieb darnzen:
> >> On Feb 26, 9:41 am, "Diez B. Roggisch" wrote:
> >>> Am 26.02.10 16:32, schrieb darnzen:
>
> On Feb 26, 3:15 am, "Diez B. Roggisch" wrote:
>
101 - 156 of 156 matches
Mail list logo