On Jul 20, 11:38 pm, "kak...@gmail.com" wrote:
> Hi to all,
> I 'm writing a linux console app with sockets. It's basically a client
> app that fires commands in a server.
> For example:
> $log user 55
> $sessions list
> $server list etc.
> What i want is, after entering some commands, to press th
On 7/20/10 11:56 PM, D2Hitman wrote:
Robert Kern-2 wrote:
Don't try to fit a Gaussian to a histogram using least-squares. It's an
awful
way to estimate the parameters. Just use np.mean() and np.cov() to
estimate the
mean and covariance matrix directly.
Ok, what about distributions other th
Robert Kern-2 wrote:
>
> Don't try to fit a Gaussian to a histogram using least-squares. It's an
> awful
> way to estimate the parameters. Just use np.mean() and np.cov() to
> estimate the
> mean and covariance matrix directly.
>
Ok, what about distributions other than gaussian? Would you us
2010/7/20 Νίκος :
> Hello guys! This is my first post in this group!
I do not have an answer to your question, other than to suggest you
look at (and/or post) relevant lines from Apache's access.log and
error.log.
I write mostly to say that, in my experience, folks on this list are
very helpful,
In article
,
neoethical wrote:
> New to programming and after doing some research I've chosed to work with
> Python. One thing that's bothering me is that I would like to set up a
> specific folder in my Documents folder to hold my modules. How do I go about
> doing this? I've found the way to c
On 7/20/10 10:13 PM, D2Hitman wrote:
I want to fit an n-dimensional distribution with an n-dimensional gaussian.
So far i have managed to do this in 2d (see below). I am not sure how to
convert this to work in n-dimensions. Using "ravel" on the arrays is not
ideal, but optimize does not appear t
On Jul 20, 6:04 pm, Ken Watford wrote:
> On Tue, Jul 20, 2010 at 8:28 PM, Carl Banks wrote:
> > On Jul 20, 3:09 pm, Ken Watford wrote:
> >> Is there any way to expose the PEP 3118 buffer interface for objects
> >> that aren't extension types?
>
> >> Currently, I can expose the NumPy array interf
I want to fit an n-dimensional distribution with an n-dimensional gaussian.
So far i have managed to do this in 2d (see below). I am not sure how to
convert this to work in n-dimensions. Using "ravel" on the arrays is not
ideal, but optimize does not appear to work on multidimensional arrays. It
s
On 7/20/10 9:17 PM, sturlamolden wrote:
On 21 Jul, 02:38, Ken Watford wrote:
Perhaps, but *why* is it only a pure C-level interface?
It is exposed to Python as memoryview.
That's not really his question. His question is why there is no way for a pure
Python class (like SWIG wrappers) have
On 7/20/10 9:39 PM, Ken Watford wrote:
On Tue, Jul 20, 2010 at 9:26 PM, Robert Kern wrote:
On 7/20/10 8:38 PM, Ken Watford wrote:
On Tue, Jul 20, 2010 at 6:58 PM, Stefan Behnel
wrote:
Ken Watford, 21.07.2010 00:09:
Is there any way to expose the PEP 3118 buffer interface for objects
tha
On Tue, Jul 20, 2010 at 6:48 PM, Greg Hennessy wrote:
> On 2010-07-21, Chris Rebert wrote:
>> On Tue, Jul 20, 2010 at 6:31 PM, Greg Hennessy wrote:
>>> Given the documentation talks about "double leap seconds" which don't
>>> exist, why should this code be trusted?
>>
>> Because they exist(ed) i
On 2010-07-21, Chris Rebert wrote:
> On Tue, Jul 20, 2010 at 6:31 PM, Greg Hennessy wrote:
>> Given the documentation talks about "double leap seconds" which don't
>> exist, why should this code be trusted?
>
> Because they exist(ed) in POSIX.
Why should POSIX time calculations involving leap se
On Tue, Jul 20, 2010 at 6:31 PM, Greg Hennessy wrote:
> On 2010-07-20, Rami Chowdhury wrote:
>> If you have a sufficiently recent version of Python, have you
>>considered time.strptime:
>>http://docs.python.org/library/time.html#time.strptime ?
>
> Given the documentation talks about "double leap
On Tue, Jul 20, 2010 at 9:26 PM, Robert Kern wrote:
> On 7/20/10 8:38 PM, Ken Watford wrote:
>>
>> On Tue, Jul 20, 2010 at 6:58 PM, Stefan Behnel
>> wrote:
>>>
>>> Ken Watford, 21.07.2010 00:09:
Is there any way to expose the PEP 3118 buffer interface for objects
that aren't extens
On 2010-07-20, Rami Chowdhury wrote:
> If you have a sufficiently recent version of Python, have you
>considered time.strptime:
>http://docs.python.org/library/time.html#time.strptime ?
Given the documentation talks about "double leap seconds" which don't
exist, why should this code be trusted?
On 7/20/10 8:38 PM, Ken Watford wrote:
On Tue, Jul 20, 2010 at 6:58 PM, Stefan Behnel wrote:
Ken Watford, 21.07.2010 00:09:
Is there any way to expose the PEP 3118 buffer interface for objects
that aren't extension types?
Given that it's a pure C-level interface, I don't think there would b
On 21 Jul, 02:38, Ken Watford wrote:
> Perhaps, but *why* is it only a pure C-level interface?
It is exposed to Python as memoryview.
If memoryview is not sufficient, we can use ctypes.pythonapi to read
the C struct.
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
Pydev 1.6.0 has been released
Details on Pydev: http://pydev.org
Details on its development: http://pydev.blogspot.com
Release Highlights:
---
* Debugger
o Code-completion added to the debug console
o Entries in the debug console are evaluated on a l
On Tue, Jul 20, 2010 at 8:28 PM, Carl Banks wrote:
> On Jul 20, 3:09 pm, Ken Watford wrote:
>> Is there any way to expose the PEP 3118 buffer interface for objects
>> that aren't extension types?
>>
>> Currently, I can expose the NumPy array interface (using either
>> __array_interface__ or __arr
On Tue, Jul 20, 2010 at 4:51 PM, Alexander wrote:
> On 21.07.2010 00:46, Rami Chowdhury wrote:
>> On Jul 20, 2010, at 12:26 , Alexander wrote:
>>
>>> Hi, list
>>>
>>> How with python standard library to convert string like '-MM-DD
>>> mm:HH:SS ZONE' to seconds since epoch in UTC? ZONE may be
On 7/20/2010 3:01 PM, Peter wrote:
I have created a class that contains a list of files (contents,
binary) - so it uses a LOT of memory.
When I first pickle.dump the list it creates a 1.9GByte file on the
disk. I can load the contents back again, but when I attempt to dump
it again (with or with
On Tue, Jul 20, 2010 at 6:58 PM, Stefan Behnel wrote:
> Ken Watford, 21.07.2010 00:09:
>>
>> Is there any way to expose the PEP 3118 buffer interface for objects
>> that aren't extension types?
>
> Given that it's a pure C-level interface, I don't think there would be much
> use for that.
Perhaps
On Jul 20, 3:09 pm, Ken Watford wrote:
> Is there any way to expose the PEP 3118 buffer interface for objects
> that aren't extension types?
>
> Currently, I can expose the NumPy array interface (using either
> __array_interface__ or __array_struct__) for any class, extension or
> otherwise. But I
Hi,
New to programming and after doing some research I've chosed to work with
Python. One thing that's bothering me is that I would like to set up a
specific folder in my Documents folder to hold my modules. How do I go about
doing this? I've found the way to change it for each IDLE session but I'd
On Jul 20, 3:01 pm, Peter wrote:
> I have created a class that contains a list of files (contents,
> binary) - so it uses a LOT of memory.
>
> When I first pickle.dump the list it creates a 1.9GByte file on the
> disk. I can load the contents back again, but when I attempt to dump
> it again (with
On Jul 21, 12:47 am, Benjamin Kaplan wrote:
> On Tue, Jul 20, 2010 at 2:38 PM, kak...@gmail.com wrote:
> > Hi to all,
> > I 'm writing a linux console app with sockets. It's basically a client
> > app that fires commands in a server.
> > For example:
> > $log user 55
> > $sessions list
> > $serve
On 7/20/2010 3:01 PM Peter said...
I have created a class that contains a list of files (contents,
binary) - so it uses a LOT of memory.
Any ideas?
Switch to 64 bit Windows & Python?
Emile
--
http://mail.python.org/mailman/listinfo/python-list
On 21.07.2010 00:46, Rami Chowdhury wrote:
> On Jul 20, 2010, at 12:26 , Alexander wrote:
>
>> Hi, list
>>
>> How with python standard library to convert string like '-MM-DD
>> mm:HH:SS ZONE' to seconds since epoch in UTC? ZONE may be literal time
>> zone or given in explicit way like +0100.
>
Ken Watford, 21.07.2010 00:09:
Is there any way to expose the PEP 3118 buffer interface for objects
that aren't extension types?
Given that it's a pure C-level interface, I don't think there would be much
use for that.
Currently, I can expose the NumPy array interface (using either
__array
Is there any way to expose the PEP 3118 buffer interface for objects
that aren't extension types?
Currently, I can expose the NumPy array interface (using either
__array_interface__ or __array_struct__) for any class, extension or
otherwise. But I can't find any reference to python-side interfacin
I have created a class that contains a list of files (contents,
binary) - so it uses a LOT of memory.
When I first pickle.dump the list it creates a 1.9GByte file on the
disk. I can load the contents back again, but when I attempt to dump
it again (with or without additions), I get the following:
A Python newcomer asked this question on python-ideas list.
I am answering here for the benefit of others.
Example: building a string res with commas separating substrings s from
some sequence. Either the first item added must be s versus ', '+s or
the last must be s versus s+', '.
For buildi
On Tue, Jul 20, 2010 at 2:38 PM, kak...@gmail.com wrote:
> Hi to all,
> I 'm writing a linux console app with sockets. It's basically a client
> app that fires commands in a server.
> For example:
> $log user 55
> $sessions list
> $server list etc.
> What i want is, after entering some commands, t
On Tue, 20 Jul 2010 10:32:12 -0700, Chris Rebert wrote:
> I believe you need to /eventually/ call .wait() as shown to avoid the
> child becoming a zombie process.
Alternatively, you can call .poll() periodically. This is similar to
.wait() insofar as it will "reap" the process if it has terminate
Hi to all,
I 'm writing a linux console app with sockets. It's basically a client
app that fires commands in a server.
For example:
$log user 55
$sessions list
$server list etc.
What i want is, after entering some commands, to press the up arrow
key and see the previous commands that i have execute
On Jul 20, 2010, at 12:26 , Alexander wrote:
> Hi, list
>
> How with python standard library to convert string like '-MM-DD
> mm:HH:SS ZONE' to seconds since epoch in UTC? ZONE may be literal time
> zone or given in explicit way like +0100.
If you have a sufficiently recent version of Pytho
Hi, list
How with python standard library to convert string like '-MM-DD
mm:HH:SS ZONE' to seconds since epoch in UTC? ZONE may be literal time
zone or given in explicit way like +0100.
--
http://mail.python.org/mailman/listinfo/python-list
On 7/20/2010 7:42 AM, guandalino wrote:
Hi, running Python 2.7 test suite for urllib2 there is a test that
doesn't pass.
Do you have an idea about where the problem could be and how to solve
it?
Thanks,
best regards.
$ # ubuntu 8.04
$ pwd
~/sandbox/2.7/lib/python2.7/test
$ python test_urllib2.p
Hi Stefan,
Well, the idea is similar to package tools like pyinstaller or
cx_freeze. There approach is slightly different then what I intend to
do here.
You have to pass the name of the script to python executable("python
main.py") in order to execute it. What I mean here is to create python
exec
On Tue, Jul 20, 2010 at 8:33 AM, loial wrote:
> I have a requirement to kick off a shell script from a python script
> without waiting for it to complete. I am not bothered about any return
> code from the script.
>
> What is the easiest way to do this. I have looked at popen but cannot
> see how
sub = subprocess.Popen("shell command", shell=True)
If you have to wait the shell finishes its commands and then continue the
next Python code. You can add another line:
sub.wait()
On Tue, Jul 20, 2010 at 7:57 AM, S.Selvam wrote:
>
>
> On Tue, Jul 20, 2010 at 7:11 AM, Ranjith Kumar wrote:
>
>>
King, 20.07.2010 18:45:
I have created a simple tool(python script) that creates a self
sufficient package ready for deployment. Current implementation is
based on shell scripting to set environment for the app and finally
execute "python main.py".
I am planning to convert "main.py" into an exec
Christian,
It stays in RES and VIRT as well.
Thanks
Vishal Rana
On Tue, Jul 20, 2010 at 8:53 AM, Christian Heimes wrote:
> Am 20.07.2010 17:50, schrieb Vishal Rana:
> > Hi Christian,
> >
> > I am not sure which one is used in this case, I use htop to see the
> memory
> > used by apache / pyth
Hi,
I have created a simple tool(python script) that creates a self
sufficient package ready for deployment. Current implementation is
based on shell scripting to set environment for the app and finally
execute "python main.py".
I am planning to convert "main.py" into an executable. The plan is t
On Tue, Jul 20, 2010 at 9:39 AM, dmitrey wrote:
>>How about using a property instead of the __getattr__() hook? A property is a
>>computed attribute that (among other things) plays much nicer with hasattr.
>
> Could anyone provide an example of it to be implemented, taking into
> account that a u
On 7/20/10 11:39 AM, dmitrey wrote:
e.g. one that just looks in the object's dictionary so as to avoid returning
true for properties or other such fancy attributes.
So can anyone explain me how to look into object's dict? As I have
wrote, "something in dir(...)" requires O(numOfFields) while I
On 7/20/10 6:59 AM, dmitrey wrote:
On Jul 20, 1:37 pm, Chris Rebert wrote:
Least ugly suggestion: Just don't use hasattr(); use your `x in
dir(y)` trick instead.
something in dir() consumes O(n) operations for lookup, while hasattr
or getattr() require O(log(n)). It matters for me, because
Am 20.07.2010 17:50, schrieb Vishal Rana:
> Hi Christian,
>
> I am not sure which one is used in this case, I use htop to see the memory
> used by apache / python.
In its default configuration htop reports three different types of
memory usage: virt, res and shr (virtual, resident and shared memo
dmitrey wrote:
>> e.g. one that just looks in the object's dictionary so as to avoid
>> returning true for properties or other such fancy attributes.
>
> So can anyone explain me how to look into object's dict? As I have
> wrote, "something in dir(...)" requires O(numOfFields) while I would
> l
dmitrey wrote:
On 20 июл, 15:00, Jean-Michel Pichavant
wrote:
dmitrey wrote:
hi all,
I have a class (FuncDesigner oofun) that has no attribute "size", but
it is overloaded in __getattr__, so if someone invokes
"myObject.size", it is generated (as another oofun) and connected to
myObjec
Thanks for your input.
On Mon, Jul 19, 2010 at 7:23 PM, Scott McCarty wrote:
> I had this exactly same problem with Peel and as far as I could find there
> is no way reclaiming this memory unless you set max requests, which will
> kill the Apache children processes after that number of requests.
Hi Christian,
I am not sure which one is used in this case, I use htop to see the memory
used by apache / python.
Thanks
Vishal Rana
On Tue, Jul 20, 2010 at 5:31 AM, Christian Heimes wrote:
> > In my web application (Django) I call a function for some request which
> > loads like 500 MB data
On 20 июл, 18:39, Neil Cerutti wrote:
> On 2010-07-20, dmitrey wrote:
>
> > This doesn't stack with the following issue: sometimes user can
> > write in code "myObject.size = (some integer value)" and then
> > it will be involved in future calculations as ordinary fixed
> > value; if user doesn't
Chris,
Thanks for the link.
On Mon, Jul 19, 2010 at 11:43 PM, Chris Rebert wrote:
> On Mon, Jul 19, 2010 at 6:30 PM, Vishal Rana wrote:
> > Hi,
> > In my web application (Django) I call a function for some request which
> > loads like 500 MB data from the database uses it to do some calculati
On 2010-07-20, dmitrey wrote:
> This doesn't stack with the following issue: sometimes user can
> write in code "myObject.size = (some integer value)" and then
> it will be involved in future calculations as ordinary fixed
> value; if user doesn't supply it, but myObject.size is involved
> in calc
> e.g. one that just looks in the object's dictionary so as to avoid returning
> true for properties or other such fancy attributes.
So can anyone explain me how to look into object's dict? As I have
wrote, "something in dir(...)" requires O(numOfFields) while I would
like to use o(log(n))
>How
I have a requirement to kick off a shell script from a python script
without waiting for it to complete. I am not bothered about any return
code from the script.
What is the easiest way to do this. I have looked at popen but cannot
see how to do it.
--
http://mail.python.org/mailman/listinfo/p
On 20 июл, 15:00, Jean-Michel Pichavant
wrote:
> dmitrey wrote:
> > hi all,
> > I have a class (FuncDesigner oofun) that has no attribute "size", but
> > it is overloaded in __getattr__, so if someone invokes
> > "myObject.size", it is generated (as another oofun) and connected to
> > myObject as
Hello guys! This is my first post in this group!
I'am trying to create a python script to take a visitors page request
as url parameter, and the insert or update the counters database table
and the render the template(my tempalets are actually html files) that
has int hem special strign identifies
Am 20.07.2010 12:10, schrieb dmitrey:
> hi all,
> I have a class (FuncDesigner oofun) that has no attribute "size", but
> it is overloaded in __getattr__, so if someone invokes
> "myObject.size", it is generated (as another oofun) and connected to
> myObject as attribute.
How about using a propert
> In my web application (Django) I call a function for some request which
> loads like 500 MB data from the database uses it to do some calculation and
> stores the output in disk. I just wonder even after this request is served
> the apache / python process is still shows using that 500 MB, why is
dmitrey wrote:
hi all,
I have a class (FuncDesigner oofun) that has no attribute "size", but
it is overloaded in __getattr__, so if someone invokes
"myObject.size", it is generated (as another oofun) and connected to
myObject as attribute.
So, when I invoke in other code part "hasattr(myObject,
On Tue, Jul 20, 2010 at 7:11 AM, Ranjith Kumar wrote:
> Hi Folks,
> Can anyone tell me how to run shell commands using python script.
>
>
For simple work, i generally use os.system call.
--
Regards,
S.Selvam
" I am because we are "
--
http://mail.python.org/mailman/listinfo/python-li
Hi, running Python 2.7 test suite for urllib2 there is a test that
doesn't pass.
Do you have an idea about where the problem could be and how to solve
it?
Thanks,
best regards.
$ # ubuntu 8.04
$ pwd
~/sandbox/2.7/lib/python2.7/test
$ python test_urllib2.py
dmitrey wrote:
> hi all,
> I have a class (FuncDesigner oofun) that has no attribute "size", but
> it is overloaded in __getattr__, so if someone invokes
> "myObject.size", it is generated (as another oofun) and connected to
> myObject as attribute.
>
> So, when I invoke in other code part "hasa
On Jul 20, 1:37 pm, Chris Rebert wrote:
> On Tue, Jul 20, 2010 at 3:10 AM, dmitrey wrote:
> > hi all,
> > I have a class (FuncDesigner oofun) that has no attribute "size", but
> > it is overloaded in __getattr__, so if someone invokes
> > "myObject.size", it is generated (as another oofun) and co
On Tue, Jul 20, 2010 at 3:10 AM, dmitrey wrote:
> hi all,
> I have a class (FuncDesigner oofun) that has no attribute "size", but
> it is overloaded in __getattr__, so if someone invokes
> "myObject.size", it is generated (as another oofun) and connected to
> myObject as attribute.
>
> So, when I
hi all,
I have a class (FuncDesigner oofun) that has no attribute "size", but
it is overloaded in __getattr__, so if someone invokes
"myObject.size", it is generated (as another oofun) and connected to
myObject as attribute.
So, when I invoke in other code part "hasattr(myObject, 'size')",
instead
Fabrizio Milo aka misto, 19.07.2010 15:41:
This is very very interesting.
Do you have any direct application of it ?
I know games like World of Warcraft uses Lua as scripting language.
Lua is widely used in the gaming industry, mainly for its size but also for
its speed.
Personally, I don't
69 matches
Mail list logo