ANN: PiCloud's Python Platform is now open to the Public!

2010-07-20 Thread Ken Elkabany
After 5 months in private beta, PiCloud, a cloud computing platform for the Python Programming Language, is now open to the general public. PiCloud enables Python users to leverage the power of an on-demand, high performance, and auto scaling compute cluster with as few as two lines of code! No

cx_Freeze 4.2

2010-07-20 Thread Anthony Tuininga
What is cx_Freeze? cx_Freeze is a set of scripts and modules for freezing Python scripts into executables in much the same way that py2exe and py2app do. It requires Python 2.3 or higher since it makes use of the zip import facility which was introduced in that version. Where do I get it?

relatorio 0.5.5 released

2010-07-20 Thread ced
Relatorio is a project to easily create reports in a variety of formats (openoffice text, PDF, XHTML) from python objects. A new minor release of relatorio has been published. It only fixes the namespace in opendocument manifest which is required for OpenOffice 3.2. relatorio is available on

Re: How is memory managed in python?

2010-07-20 Thread Chris Rebert
On Mon, Jul 19, 2010 at 6:30 PM, Vishal Rana ranavis...@gmail.com 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 calculation and stores the output in disk. I just wonder even after this request is

Re: [ANN] Lupa 0.6 - Lua in Python

2010-07-20 Thread Stefan Behnel
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

hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread 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. So, when I invoke in other code part hasattr(myObject, 'size'), instead o

Re: hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread Chris Rebert
On Tue, Jul 20, 2010 at 3:10 AM, dmitrey dmitrey.kros...@scipy.org 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

Re: hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread dmitrey
On Jul 20, 1:37 pm, Chris Rebert c...@rebertia.com wrote: On Tue, Jul 20, 2010 at 3:10 AM, dmitrey dmitrey.kros...@scipy.org 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

Re: hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread Duncan Booth
dmitrey dmitrey.kros...@scipy.org 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

urllib2 test fails (2.7, linux)

2010-07-20 Thread guandalino
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

Re: How to pass the shell in Python

2010-07-20 Thread S.Selvam
On Tue, Jul 20, 2010 at 7:11 AM, Ranjith Kumar ranjitht...@gmail.comwrote: 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 --

Re: hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread Jean-Michel Pichavant
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,

Re: How is memory managed in python?

2010-07-20 Thread Christian Heimes
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 it

Re: hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread Christian Heimes
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 property

Trying to redirect every urel request to test.py script with the visitors page request as url parameter.

2010-07-20 Thread Νίκος
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

Re: hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread dmitrey
On 20 июл, 15:00, Jean-Michel Pichavant jeanmic...@sequans.com 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

Kick off a delete command from python and not wait

2010-07-20 Thread loial
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. --

Re: hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread dmitrey
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

Re: hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread Neil Cerutti
On 2010-07-20, dmitrey dmitrey.kros...@scipy.org 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

Re: How is memory managed in python?

2010-07-20 Thread Vishal Rana
Chris, Thanks for the link. On Mon, Jul 19, 2010 at 11:43 PM, Chris Rebert c...@rebertia.com wrote: On Mon, Jul 19, 2010 at 6:30 PM, Vishal Rana ranavis...@gmail.com wrote: Hi, In my web application (Django) I call a function for some request which loads like 500 MB data from the

Re: hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread dmitrey
On 20 июл, 18:39, Neil Cerutti ne...@norwich.edu wrote: On 2010-07-20, dmitrey dmitrey.kros...@scipy.org 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

Re: How is memory managed in python?

2010-07-20 Thread 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. Thanks Vishal Rana On Tue, Jul 20, 2010 at 5:31 AM, Christian Heimes li...@cheimes.de wrote: In my web application (Django) I call a function for some request which loads like

Re: How is memory managed in python?

2010-07-20 Thread Vishal Rana
Thanks for your input. On Mon, Jul 19, 2010 at 7:23 PM, Scott McCarty scott.mcca...@gmail.comwrote: 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

Re: hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread Jean-Michel Pichavant
dmitrey wrote: On 20 июл, 15:00, Jean-Michel Pichavant jeanmic...@sequans.com 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

Re: hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread Duncan Booth
dmitrey dmitrey.kros...@scipy.org 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)

Re: How is memory managed in python?

2010-07-20 Thread Christian Heimes
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

Re: hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread Robert Kern
On 7/20/10 6:59 AM, dmitrey wrote: On Jul 20, 1:37 pm, Chris Rebertc...@rebertia.com 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

Re: hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread Robert Kern
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

Re: hasattr + __getattr__: I think this is Python bug

2010-07-20 Thread Ian Kelly
On Tue, Jul 20, 2010 at 9:39 AM, dmitrey dmitrey.kros...@scipy.org 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

Compile python executable only for package deployment on Linux

2010-07-20 Thread King
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 to

Re: How is memory managed in python?

2010-07-20 Thread Vishal Rana
Christian, It stays in RES and VIRT as well. Thanks Vishal Rana On Tue, Jul 20, 2010 at 8:53 AM, Christian Heimes li...@cheimes.de 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

Re: Compile python executable only for package deployment on Linux

2010-07-20 Thread Stefan Behnel
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

Re: How to pass the shell in Python

2010-07-20 Thread Jia Hu
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 s.selvams...@gmail.com wrote: On Tue, Jul 20, 2010 at 7:11 AM, Ranjith

Re: Kick off a delete command from python and not wait

2010-07-20 Thread Chris Rebert
On Tue, Jul 20, 2010 at 8:33 AM, loial jldunn2...@gmail.com 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

Re: Compile python executable only for package deployment on Linux

2010-07-20 Thread King
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

Re: urllib2 test fails (2.7, linux)

2010-07-20 Thread Terry Reedy
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

convert time to UTC seconds since epoch

2010-07-20 Thread Alexander
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

Re: convert time to UTC seconds since epoch

2010-07-20 Thread Rami Chowdhury
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 Python,

linux console command line history

2010-07-20 Thread kak...@gmail.com
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

Re: Kick off a delete command from python and not wait

2010-07-20 Thread Nobody
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 terminated,

Re: linux console command line history

2010-07-20 Thread Benjamin Kaplan
On Tue, Jul 20, 2010 at 2:38 PM, kak...@gmail.com 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

How to treat the first or last item differently

2010-07-20 Thread Terry Reedy
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

Pickle MemoryError - any ideas?

2010-07-20 Thread Peter
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:

Exposing buffer interface for non-extension types?

2010-07-20 Thread Ken Watford
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

Re: Exposing buffer interface for non-extension types?

2010-07-20 Thread Stefan Behnel
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

Re: convert time to UTC seconds since epoch

2010-07-20 Thread Alexander
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. If you have

Re: Pickle MemoryError - any ideas?

2010-07-20 Thread Emile van Sebille
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. snip ~2Gb size reference Any ideas? Switch to 64 bit Windows Python? Emile -- http://mail.python.org/mailman/listinfo/python-list

Re: linux console command line history

2010-07-20 Thread kak...@gmail.com
On Jul 21, 12:47 am, Benjamin Kaplan benjamin.kap...@case.edu wrote: On Tue, Jul 20, 2010 at 2:38 PM, kak...@gmail.com 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

Re: Pickle MemoryError - any ideas?

2010-07-20 Thread Carl Banks
On Jul 20, 3:01 pm, Peter peter.milli...@gmail.com 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

Set Python Path for Idle Mac 10.5

2010-07-20 Thread neoethical
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

Re: Exposing buffer interface for non-extension types?

2010-07-20 Thread Carl Banks
On Jul 20, 3:09 pm, Ken Watford kwatford+pyt...@gmail.com 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

Re: Exposing buffer interface for non-extension types?

2010-07-20 Thread Ken Watford
On Tue, Jul 20, 2010 at 6:58 PM, Stefan Behnel stefan...@behnel.de 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

Re: Pickle MemoryError - any ideas?

2010-07-20 Thread John Nagle
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

Re: convert time to UTC seconds since epoch

2010-07-20 Thread Ian Kelly
On Tue, Jul 20, 2010 at 4:51 PM, Alexander b3n...@yandex.ru 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

Re: Exposing buffer interface for non-extension types?

2010-07-20 Thread Ken Watford
On Tue, Jul 20, 2010 at 8:28 PM, Carl Banks pavlovevide...@gmail.com wrote: On Jul 20, 3:09 pm, Ken Watford kwatford+pyt...@gmail.com 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

Pydev 1.6.0 Released

2010-07-20 Thread Fabio Zadrozny
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

Re: Exposing buffer interface for non-extension types?

2010-07-20 Thread sturlamolden
On 21 Jul, 02:38, Ken Watford kwatford+pyt...@gmail.com 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. --

Re: Exposing buffer interface for non-extension types?

2010-07-20 Thread Robert Kern
On 7/20/10 8:38 PM, Ken Watford wrote: On Tue, Jul 20, 2010 at 6:58 PM, Stefan Behnelstefan...@behnel.de 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

Re: convert time to UTC seconds since epoch

2010-07-20 Thread Greg Hennessy
On 2010-07-20, Rami Chowdhury rami.chowdh...@gmail.com 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

Re: Exposing buffer interface for non-extension types?

2010-07-20 Thread Ken Watford
On Tue, Jul 20, 2010 at 9:26 PM, Robert Kern robert.k...@gmail.com wrote: On 7/20/10 8:38 PM, Ken Watford wrote: On Tue, Jul 20, 2010 at 6:58 PM, Stefan Behnelstefan...@behnel.de  wrote: Ken Watford, 21.07.2010 00:09: Is there any way to expose the PEP 3118 buffer interface for objects

Re: convert time to UTC seconds since epoch

2010-07-20 Thread Chris Rebert
On Tue, Jul 20, 2010 at 6:31 PM, Greg Hennessy greg.henne...@cox.net wrote: On 2010-07-20, Rami Chowdhury rami.chowdh...@gmail.com 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

Re: convert time to UTC seconds since epoch

2010-07-20 Thread Greg Hennessy
On 2010-07-21, Chris Rebert c...@rebertia.com wrote: On Tue, Jul 20, 2010 at 6:31 PM, Greg Hennessy greg.henne...@cox.net 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

Re: convert time to UTC seconds since epoch

2010-07-20 Thread Chris Rebert
On Tue, Jul 20, 2010 at 6:48 PM, Greg Hennessy greg.henne...@cox.net wrote: On 2010-07-21, Chris Rebert c...@rebertia.com wrote: On Tue, Jul 20, 2010 at 6:31 PM, Greg Hennessy greg.henne...@cox.net wrote: Given the documentation talks about double leap seconds which don't exist, why should

Re: Exposing buffer interface for non-extension types?

2010-07-20 Thread Robert Kern
On 7/20/10 9:39 PM, Ken Watford wrote: On Tue, Jul 20, 2010 at 9:26 PM, Robert Kernrobert.k...@gmail.com wrote: On 7/20/10 8:38 PM, Ken Watford wrote: On Tue, Jul 20, 2010 at 6:58 PM, Stefan Behnelstefan...@behnel.de wrote: Ken Watford, 21.07.2010 00:09: Is there any way to expose the

Re: Exposing buffer interface for non-extension types?

2010-07-20 Thread Robert Kern
On 7/20/10 9:17 PM, sturlamolden wrote: On 21 Jul, 02:38, Ken Watfordkwatford+pyt...@gmail.com 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

Multidimensional Fitting

2010-07-20 Thread D2Hitman
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

Re: Exposing buffer interface for non-extension types?

2010-07-20 Thread Carl Banks
On Jul 20, 6:04 pm, Ken Watford kwatford+pyt...@gmail.com wrote: On Tue, Jul 20, 2010 at 8:28 PM, Carl Banks pavlovevide...@gmail.com wrote: On Jul 20, 3:09 pm, Ken Watford kwatford+pyt...@gmail.com wrote: Is there any way to expose the PEP 3118 buffer interface for objects that aren't

Re: Multidimensional Fitting

2010-07-20 Thread Robert Kern
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 to

Re: Set Python Path for Idle Mac 10.5

2010-07-20 Thread Ned Deily
In article aanlktimruhticd07t-shacgp3rgd3o4sej8fsk7af...@mail.gmail.com, neoethical neoethi...@gmail.com 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

Re: Trying to redirect every urel request to test.py script with the visitors page request as url parameter.

2010-07-20 Thread Jason Friedman
2010/7/20 Νίκος nikos.the.gr...@gmail.com: 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

Re: Multidimensional Fitting

2010-07-20 Thread D2Hitman
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 use

Re: Multidimensional Fitting

2010-07-20 Thread Robert Kern
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

[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2010-07-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: multiple inheritance should not be a problem: there can be only one dominant base, which is 'int' in this case. someone with a debugger should step into this call to PyType_Ready() and see why it does not set the flag correctly (at the

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2010-07-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: A unit test (or even a sample script) showing the desired feature is needed. -- nosy: +amaury.forgeotdarc stage: - unit test needed ___ Python tracker rep...@bugs.python.org

[issue7171] Add inet_ntop and inet_pton support for Windows

2010-07-20 Thread Greg Hazel
Changes by Greg Hazel gha...@users.sourceforge.net: -- nosy: +ghazel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7171 ___ ___ Python-bugs-list

[issue2244] urllib and urllib2 decode userinfo multiple times

2010-07-20 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: By confirming the %2525 case, I guess this is really a bug. But the patch cause test_urllib2.py failed. I modified the patch to fix it. -- nosy: +ysj.ray Added file: http://bugs.python.org/file18082/urllib_issue_updated.patch

[issue8192] SQLite3 PRAGMA table_info doesn't respect database on Win32

2010-07-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: python2.7 includes a newer version of sqlite. Does the problem still reproduces there? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8192

[issue2244] urllib and urllib2 decode userinfo multiple times

2010-07-20 Thread Ray.Allen
Changes by Ray.Allen ysj@gmail.com: Added file: http://bugs.python.org/file18083/urllib_issue_updated.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2244 ___

[issue2244] urllib and urllib2 decode userinfo multiple times

2010-07-20 Thread Ray.Allen
Changes by Ray.Allen ysj@gmail.com: Removed file: http://bugs.python.org/file18082/urllib_issue_updated.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2244 ___

[issue9310] Intermittent failures in test_logging

2010-07-20 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I'm not convinced that this is an error in logging or test_logging. There are no special Unicode keys in the list being sorted AFAIK, and no reason why the sort() should fail. It's more likely to be some problem in the collation code

[issue9310] Intermittent failures in test_logging

2010-07-20 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: vinay.sajip - status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9310 ___

[issue2244] urllib and urllib2 decode userinfo multiple times

2010-07-20 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: This bug exists on py3k also, so I worked out a patch for py3k, too. -- Added file: http://bugs.python.org/file18084/urllib_issue_updated.diff ___ Python tracker rep...@bugs.python.org

[issue2244] urllib and urllib2 decode userinfo multiple times

2010-07-20 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Thanks Ray Allen. Usually the patch against the py3k branch is enough, it will be ported to other branches. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2244

[issue9309] Add environment variable complementing command line option -no-user-cfg

2010-07-20 Thread Alexander Dreyer
Changes by Alexander Dreyer adre...@gmx.de: Added file: http://bugs.python.org/file18085/dist.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9309 ___

[issue9309] Add environment variable complementing command line option -no-user-cfg

2010-07-20 Thread Alexander Dreyer
Alexander Dreyer adre...@gmx.de added the comment: Added better patch (checks environment first). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9309 ___

[issue9309] Add environment variable complementing command line option -no-user-cfg

2010-07-20 Thread Alexander Dreyer
Changes by Alexander Dreyer adre...@gmx.de: Removed file: http://bugs.python.org/file18069/dist.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9309 ___

[issue9309] Add environment variable complementing command line option -no-user-cfg

2010-07-20 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: I don't think this can go into python2.x. Besides, is it really worthy to add such a new environment variable? -- nosy: +ysj.ray ___ Python tracker rep...@bugs.python.org

[issue9309] Add environment variable complementing command line option -no-user-cfg

2010-07-20 Thread Alexander Dreyer
Alexander Dreyer adre...@gmx.de added the comment: The patch is originating from Sage Days 24. Sage (http://www.sagemath.org) distributes a bunch of mathematical python-based software. The integration of the individual packages is done by individual people which might not use --no-user-cfg in

[issue9310] Intermittent failures in test_logging

2010-07-20 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Actually it looks the same as issue 8201. If test_lib2to3 is run before test_logging, test_logging fails. Perhaps backporting the patch will help. -- keywords: +patch Added file:

[issue9310] Intermittent failures in test_logging

2010-07-20 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- resolution: invalid - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9310 ___ ___

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-07-20 Thread Dmitry Jemerov
Dmitry Jemerov intelliy...@gmail.com added the comment: The problem doesn't happen on Python 3.1.2 because it doesn't have the code in mimetypes that accesses the Windows registry. Haven't tried the 3.2 alphas yet. -- ___ Python tracker

[issue3615] Expect methods for testing.

2010-07-20 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: The API on TestCase is already too wide without adding more methods. This is easy enough to do in a TestCase subclass for those who want it. -- resolution: - wont fix status: pending - closed

[issue4080] pyunit - display time of each test case - patch

2010-07-20 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I am in the process of creating an extension mechanism for unittest which will make adding this sort of use case to unittest much easier. *Even* if it is added to the core it should be in the form of an extension (plugin) so please

[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: A quick look suggests that the patches are ok, thank you. -- stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9296

[issue8433] buildbot: test_curses failure, getmouse() returned ERR

2010-07-20 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: How about skipping the tests until someone can figure out what's going on? The patch is tested on: http://www.python.org/dev/buildbot/builders/i386 Ubuntu 3.x/builds/1643 -- keywords: +patch nosy: +skrah Added file:

[issue9313] distutils error on MSVC older than 8

2010-07-20 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: I got an error while testing py3k on VC6. Here is a patch. == ERROR: test_remove_visual_c_ref (distutils.tests.test_msvc9compiler.msvc9compile rTestCase)

[issue2690] Precompute range length

2010-07-20 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2690 ___ ___ Python-bugs-list

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Dirkjan Ochtman
New submission from Dirkjan Ochtman dirk...@ochtman.nl: This seems wrong: a = [] b = iter(['c', 'd']) a += b c = [] c + iter(['d', 'e']) Traceback (most recent call last): File stdin, line 1, in module TypeError: can only concatenate list (not listiterator) to list In other words, if

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2010-07-20 Thread Tal Einat
Tal Einat talei...@gmail.com added the comment: IDLE should be accessible and easy to use for beginners who have never used a command line. Therefore I don't think up/down should scroll through the history by default. Since IDLE looks like a text editor (even the shell window) it is more

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2010-07-20 Thread Tal Einat
Tal Einat talei...@gmail.com added the comment: Regarding passing on letter/number key-presses to the command line, I'm -0 on this. Note that not only letter/number keys should be passed on. I've often found myself wanting to type in the command line after looking at previous code, to see

  1   2   3   >