> Please show the *exact* error message, including the traceback, by
> copying and pasting it. Do not retype it by hand, or summarize it, or put
> it into your own words.
Unfortunately this is not possible. The logging system I designed only
gives the following information, as we have millions of
On 09/16/2010 08:24 AM, Andre Alexander Bell wrote:
or you could write the loop
>>> m1m2 = np.empty_like(m1)
>>> for i in range(m1m2.shape[0]):
... m1m2[i] = np.dot(m1, m2)
This should have been
... m1m2[i] = np.dot(m1[i], m2[i])
Sorry for the typo.
Andre
--
http://mail.python.org/mailma
On 9/14/2010 2:25 PM, Sridhar Ratnakumar wrote:
Hi,
As you may already know, ActivePython provides versioned Python executables
that makes it possible to invoke a particular X.Y version from the command line
directly if you have multiple Python versions on PATH. Eg:
C:\Python27\python26.e
Hi,
I assume you have arrays like these:
>>> import numpy as np
>>> m1 = np.random.rand(size=(4,3,3))
>>> m2 = np.random.rand(size=(4,3,3))
So that m1[0] is a 3x3 Matrix and m1[1] is another one, i.e. you have
four matrices.
On 09/15/2010 01:54 AM, Gregory Ewing wrote:
I had thought that do
On Thu, Sep 16, 2010 at 2:49 PM, Ned Deily wrote:
> If the problem is that the socket object in question no longer exists,
> you can protect your code there by enclosing the remove operation in a
> try block, like:
The question that remains to be seen however is:
Why does your list contain dirt
On Wed, 15 Sep 2010 21:05:49 -0700, k3xji wrote:
> Hi all,
>
> We have a select-based server written in Python. Occasionally, maybe
> twice a month there occurs a weird problem, select() returns with
> filedescriptor out of range in select() error. This is of course a
> normal error and handled g
In article
,
k3xji wrote:
> We have a select-based server written in Python. Occasionally, maybe
> twice a month there occurs a weird problem, select() returns with
> filedescriptor out of range in select() error. This is of course a
> normal error and handled gracefully. Our policy is to take d
On Tue, 14 Sep 2010 16:38:50 +0200, Diez B. Roggisch wrote:
> And additionally, but simply not using staticmethods at all. It's a
> rather obscure feature of python - usually, classmethods are what is
> considered a static method in other languages.
Are you sure about that? I know Java isn't ne
On Sep 14, 4:54 pm, Gregory Ewing wrote:
> Suppose I have two N+2 dimensional arrays, representing
> N-d arrays of 2-d matrices. I want to perform matrix
> multiplication between corresponding matrices in these
> arrays.
>
> I had thought that dot() might do this, but it appears
> not, because e.g
Hi all,
We have a select-based server written in Python. Occasionally, maybe
twice a month there occurs a weird problem, select() returns with
filedescriptor out of range in select() error. This is of course a
normal error and handled gracefully. Our policy is to take down few
users for select() t
On 15Sep2010 22:31, Rodrick Brown wrote:
| I'm doing something like
|
| >>> today = datetime.date.fromtimestamp(1284584357.241863)
| >>> today.ctime()
| 'Wed Sep 15 00:00:00 2010'
|
| Why isn't the time field being populated what I expect is to see something
| like Wed Sep 15 2010 16:59:17:24186
I find this surprising:
>>> import argparse
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('--test', action='append', default=['default'])
[...]
>>> parser.parse_args(['--test', 'arg'])
Namespace(test=['default', 'arg'])
As an argument is provided, I didn't expect to see the defau
I'm doing something like
>>> today = datetime.date.fromtimestamp(1284584357.241863)
>>> today.ctime()
'Wed Sep 15 00:00:00 2010'
Why isn't the time field being populated what I expect is to see something
like Wed Sep 15 2010 16:59:17:241863
--
[ Rodrick R. Brown ]
http://www.rodrickbrown.com ht
In message
, alex23
wrote:
> However, for a quick & ready solution, have you looked at Microsoft's
> Scriptomatic?[2] It's a handy little tool that lets you specify the
> WMI query you want and produces code for you, with Python being one of
> the targets.
Why not just call Scriptomatic directly
In message
, Douglas
wrote:
>> Why reinvent rsync?
> In what way is rsync relevant to the stated problem? Did you actually
> READ the question?
Yes.
> Note: I use Linux at home (yes, even rsync) and very much prefer it to
> Windows. However, at work I have no choice but to use the resources
> t
KING LABS wrote:
> The following information is exactly what I am trying to collect for
> the inventory. I can find vb scripts with googling. I want to do the
> same with Python & Win32. Use Server/Client architecture .
> Client(agent) updates the information to server.
I highly agree with the re
On Thu, Sep 16, 2010 at 11:10 AM, gavino wrote:
> I am comiling 3.1.2.
> I am not root but a user.
> I compiled readline and it did not complain.
> gdb and zlib and some other modules also were not found.
Like I said earlier in my previous post, is the readline line that
you compiled and install
(Posting to python general discussion).
On Thu, Sep 16, 2010 at 10:17 AM, João Vitor wrote:
> I made a program that, according to my teacher, is correct but is not
> running properly.
> The program is really simple:
> import math
> x = input ("Coloque o valor do primeiro cateto:")
> y = input ("C
On Sep 15, 5:12 pm, James Mills wrote:
> On Thu, Sep 16, 2010 at 9:58 AM, gavino wrote:
> > I compiled readline 6.1 myself.
>
> > # ./configure --prefix=/home/apps/python --disable-shared --with-
> > pymalloc --with-threads --with-pth --enable-big-digits --disable-ipv6
> > --enable-readline --wi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
El 15/09/2010 20:58, Grant Edwards escribió:
> On 2010-09-15, cerr wrote:
>
>> I get a socket error "[Errno 98] Address already in use" when i
>> try to open a socket that got closed before with close(). How
>> come close() doesn't close the socket p
On 16/09/2010 01:13, Jason Swails wrote:
Hello everyone,
I'm encountering an issue in one of my Python classes that makes
extensive use of dictionaries. I was under the impression that each
time an object was instantiated, all of its variables were created in a
new section of memory, so that if
On Thu, Sep 16, 2010 at 10:14 AM, Hans wrote:
> I'm new to this area. Please allow me to ask some (maybe stupid)
> questions.
Without reading the rest of your post too much. Designs are up to you,
I can't comment.
I can only share in a fairly common view, and that is, we'd encourage
you to use a
On Thu, Sep 16, 2010 at 10:13 AM, Jason Swails wrote:
> Hello everyone,
>
> I'm encountering an issue in one of my Python classes that makes extensive
> use of dictionaries. I was under the impression that each time an object
> was instantiated, all of its variables were created in a new section
FREE to Join !
You get up to 35% cashback for every qualified purchase you make on
the site. On any personal referrals, you'll also make 1/2% on their
qualifying purchases!
*
www.ma360eMall.com
Everything you need and want
Get paid to shop with Cashback u
Hi,
I'm new to this area. Please allow me to ask some (maybe stupid)
questions.
I'm planning to write a web application which used for searching my
mysql database.
1. files organization
I have this in my main.py:
print """%s""" %
(record[0],table_name,cursor_name,record1)
it kind of works but
Hello everyone,
I'm encountering an issue in one of my Python classes that makes extensive
use of dictionaries. I was under the impression that each time an object
was instantiated, all of its variables were created in a new section of
memory, so that if you change the value of the variable in on
On Thu, Sep 16, 2010 at 9:58 AM, gavino wrote:
> I compiled readline 6.1 myself.
>
> # ./configure --prefix=/home/apps/python --disable-shared --with-
> pymalloc --with-threads --with-pth --enable-big-digits --disable-ipv6
> --enable-readline --with-readline=/home/apps/readline/lib/
> # make -j1
On 16/09/2010 00:23, Ethan Furman wrote:
I need some fresh eyes, or better brains, or both!
The expected debugging output is a list of names in alphabetical order
from each node (there are about 90 of them); what I am getting is this:
--> dbf.tables.Index.from_file('', r'aad13658_last_name_for_
I compiled readline 6.1 myself.
# ./configure --prefix=/home/apps/python --disable-shared --with-
pymalloc --with-threads --with-pth --enable-big-digits --disable-ipv6
--enable-readline --with-readline=/home/apps/readline/lib/
# make -j14
modules not installed:
readline .
I need some fresh eyes, or better brains, or both!
The expected debugging output is a list of names in alphabetical order
from each node (there are about 90 of them); what I am getting is this:
--> dbf.tables.Index.from_file('', r'aad13658_last_name_for_state.idx')
starting next_item call fo
Ben Finney wrote:
it doesn't matter what the case is, so there's no need for
anything more complex than all lowercase.
Also doing what was suggested would require looking at
what's in the file system, which would be a lot of bother
to go to for no good reason, and would fail for paths
that don'
On 09/15/2010 02:04 PM, Thomas Jollans wrote:
On Wednesday 15 September 2010, it occurred to Ed Greenberg to exclaim:
I'm pretty new to Python, but I am really enjoying it as an alternative
to Perl and PHP.
When I run the debugger [import pdb; pdb.set_trace()] and then do next
and step, and
On 9/15/10 11:36 AM, Colin J. Williams wrote:
On 14-Sep-10 19:54 PM, Gregory Ewing wrote:
Suppose I have two N+2 dimensional arrays, representing
N-d arrays of 2-d matrices. I want to perform matrix
multiplication between corresponding matrices in these
arrays.
I had thought that dot() might do
On 9/13/10 12:06 PM, Chris Withers wrote:
Hi All,
I'm wondering what libraries people would use to answer the following questions
relating to business days:
- on a naive level; "what's give me the last business day" (ie: skipping
weekends)
- on a less-naive level; same question but taking int
Chris Withers writes:
> I'm curious as to why, with a file called "Foo.txt"
> os.path.normcase('FoO.txt') will return "foo.txt" rather than
> "Foo.txt"?
What kind of answer are you looking for?
A direct answer would be: it does that because on case-insensitive
filesystems, it doesn't matter wha
I urgently need money help!https://siteheart.com/js/chat/chat.html?
ent=9228&hash=97b8aa4b4eec4801f941b0aa97cd2587&ipcsid=842e10a5515ee7299638a546b6b2997f
Maria
--
http://mail.python.org/mailman/listinfo/python-list
On 15/09/2010 21:10, Bruno Oliveira wrote:
Hi list,
I recently found a bug in my company's code because of a strange
behavior using multiprocessing.Queue. The following code snippet:
from multiprocessing import Queue
queue = Queue()
queue.put('x')
print queue.get_nowait()
Fails with:
...
F
Hi list,
I recently found a bug in my company's code because of a strange behavior
using multiprocessing.Queue. The following code snippet:
from multiprocessing import Queue
queue = Queue()
queue.put('x')
print queue.get_nowait()
Fails with:
...
File
"E:\Shared\dist-0902\i686.win32\processin
On Wednesday 15 September 2010, it occurred to Ed Greenberg to exclaim:
> I'm pretty new to Python, but I am really enjoying it as an alternative
> to Perl and PHP.
>
> When I run the debugger [import pdb; pdb.set_trace()] and then do next
> and step, and evaluate variables, etc, when I hit 'c' fo
On 2010-09-15, cerr wrote:
> I get a socket error "[Errno 98] Address already in use" when i try to
> open a socket that got closed before with close(). How come close()
> doesn't close the socket properly?
> My socket code :
>
> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> s.bind(
Thomas Jollans wrote:
On Tuesday 14 September 2010, it occurred to Neil Benn to exclaim:
#
./python
-sh: ./python: not found
I'm guessing either there is no file ./python, or /bin/sh is fundamentally
broken.
or ./python is a symlink to a file that does not exist, or ./python
is a scr
On Wednesday 15 September 2010, it occurred to Paul Watson to exclaim:
> So, what is not a regular file about this? Is there any way to find out
> which files are being considered irregular?
Regular files are the kind of files used to store bytes. Other kinds of files
you might find in a file sy
On Wednesday 15 September 2010, it occurred to cerr to exclaim:
> Hi There,
>
> I get a socket error "[Errno 98] Address already in use" when i try to
> open a socket that got closed before with close(). How come close()
> doesn't close the socket properly?
> My socket code :
>
> s = socket.soc
Hi There,
I get a socket error "[Errno 98] Address already in use" when i try to
open a socket that got closed before with close(). How come close()
doesn't close the socket properly?
My socket code :
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((host, port))
s.listen(1)
...
I'm pretty new to Python, but I am really enjoying it as an alternative
to Perl and PHP.
When I run the debugger [import pdb; pdb.set_trace()] and then do next
and step, and evaluate variables, etc, when I hit 'c' for continue, we
go to the end, just fine.
As soon as I set a breakpoint down
@Diez and @David
Thanks guys. Both excellent leads. Colour me happy. I can now make
progress and meet some deadlines. :)
@Lawrence
> Why reinvent rsync?
In what way is rsync relevant to the stated problem? Did you actually
READ the question?
Note: I use Linux at home (yes, even rsync) and very mu
On Tue, Sep 14, 2010 at 7:54 PM, Gregory Ewing
wrote:
> Suppose I have two N+2 dimensional arrays, representing
> N-d arrays of 2-d matrices. I want to perform matrix
> multiplication between corresponding matrices in these
> arrays.
>
> I had thought that dot() might do this, but it appears
> not
On Sep 15, 9:53 am, Andrew wrote:
> I'm trying to remove the widgets from the QFormLayout widget from
> PyQt4. According to the documentation I should be able to use the
> command .takeAt(int) which will delete the widget from the layout and
> then return to me the QLayoutWidget.
> It currently is
I'm trying to remove the widgets from the QFormLayout widget from
PyQt4. According to the documentation I should be able to use the
command .takeAt(int) which will delete the widget from the layout and
then return to me the QLayoutWidget.
It currently is giving me back the widget, but is not removi
On 14-Sep-10 19:54 PM, Gregory Ewing wrote:
Suppose I have two N+2 dimensional arrays, representing
N-d arrays of 2-d matrices. I want to perform matrix
multiplication between corresponding matrices in these
arrays.
I had thought that dot() might do this, but it appears
not, because e.g. applyin
On Sep 13, 3:02 pm, David Robinow wrote:
> On Mon, Sep 13, 2010 at 1:06 PM, Chris Withers wrote:
> > I'm wondering what libraries people would use to answer the following
> > questions relating to business days:
>
> > - on a less-naive level; same question but taking into account public
> > holid
Hi All,
I'm curious as to why, with a file called "Foo.txt"
os.path.normcase('FoO.txt') will return "foo.txt" rather than "Foo.txt"?
Yes, I know the behaviour is documented, but I'm wondering if anyone can
remember the rationale for that behaviour?
cheers,
Chris
--
Simplistix - Content Ma
> From: Jon Siddle
> Subject: Re: 3>0 is True
> To: python-list@python.org
> Date: Wednesday, September 15, 2010, 5:04 PM
> As others have said, it's not
> a matter of precendence. Using the
> compiler module
> you can see how python actually parses this:
>
> 3 > (0 is True)
> Compare(Const(3)
As others have said, it's not a matter of precendence. Using the
compiler module
you can see how python actually parses this:
3 > (0 is True)
Compare(Const(3), [('>', Compare(Const(0), [('is', Name('True'))]))])
No great surprise there.
3 > 0 is True
Compare(Const(3), [('>', Const(0)), ('is',
Not really true for ">" and "is" :
http://docs.python.org/reference/expressions.html#evaluation-order
Operator ">" and operator "is" are in the same precedence but in group
Comparisons :
"Operators in the same box group left to right (except for comparisons,
including tests, which all have t
Yingjie Lan wrote:
> I am not sure how to interprete this, in the interactive mode:
>
3>0 is True
> False
(3>0) is True
> True
3> (0 is True)
> True
>
> Why did I get the first 'False'? I'm a little confused.
>
> Thanks in advance for anybody who shed some light on this.
This loo
Yingjie Lan writes:
> I am not sure how to interprete this, in the interactive mode:
>
> >>> 3>0 is True
> False
> >>> (3>0) is True
> True
> >>> 3> (0 is True)
> True
>
> Why did I get the first 'False'? I'm a little confused.
It is interpreted as equivalent to this:
>>> 3 > 0 and 0 is Tr
Yingjie Lan wrote:
> I am not sure how to interprete this, in the interactive mode:
>
3>0 is True
> False
(3>0) is True
> True
3> (0 is True)
> True
>
> Why did I get the first 'False'? I'm a little confused.
http://docs.python.org/reference/expressions.html#notin
"""
Unlike C,
Because "is" operator take precedence on ">" operator .
Le Wed, 15 Sep 2010 05:34:06 -0700 (PDT),
Yingjie Lan a écrit :
> Hi,
>
> I am not sure how to interprete this, in the interactive mode:
>
> >>> 3>0 is True
> False
> >>> (3>0) is True
> True
> >>> 3> (0 is True)
> True
>
> Why did I ge
In message <8faqj0fno...@mid.individual.net>, Paul Watson wrote:
> ' not a regular file -- skipping
> ' not a regular file -- skipping
> ' not a regular file -- skipping
Just a guess, is the file it’s complaining about named “'”?
--
http://mail.python.org/mailman/listinfo/python-list
In message
<8dc0fa8e-f0e6-4603-9283-186551597...@a19g2000vbi.googlegroups.com>, Douglas
wrote:
> It works well enough, but now I want to make it sensitive to the "A"
> attribute (only backup the file if it is set), and update it
> afterwards (unset it). This will help me avoid wasted disk due to
Hi,
I am not sure how to interprete this, in the interactive mode:
>>> 3>0 is True
False
>>> (3>0) is True
True
>>> 3> (0 is True)
True
Why did I get the first 'False'? I'm a little confused.
Thanks in advance for anybody who shed some light on this.
YL
--
http://mail.python.org/ma
On Wed, Sep 15, 2010 at 4:51 AM, Douglas wrote:
> Environment: X86, 1Gb RAM, Win XP, latest SP, Excel 2003.
>
> Hi, can anyone direct a relative newbie to the best source of info?
> I am writing my own backup app in Python 2.5.2 (all my company will
> allow me to use) using IDLE.
> I intend to run
Douglas writes:
> Hi, can anyone direct a relative newbie to the best source of info?
> I am writing my own backup app in Python 2.5.2 (all my company will
> allow me to use) using IDLE.
> I intend to run this app daily via the Task Scheduler to back up a
> mission-critical spreadsheet that only
I used timer way,and I found that threading.Timer didn't work with PyQt,so I
used QTimer instead,and it did work.
On Wed, Sep 15, 2010 at 3:44 PM, Nitin Pawar wrote:
> cron is daemon running which maps the tasks with the frequency
>
> if you want to run a task at a specific time, you can schedule
On Sep 14, 4:38 pm, de...@web.de (Diez B. Roggisch) wrote:
> lallous writes:
> > How can I keep the class private and have the following work:
>
> > [code]
> > class __internal_class(object):
> > @staticmethod
> > def meth1(s):
> > print "meth1:", s
>
> > @staticmethod
> > d
On 09/15/2010 10:48 AM, Peter Otten wrote:
I personally would not be too concerned about the leading underscore, but
you can use
string.Formatter().parse(template)
instead.
Thanks for this pointer. I like it this way. So if I now combine your
generator with your suggestion, I end up with som
Hi,
Here is my command:
cxfreeze --target-dir=AutoOrder gui.py
--base-name=D:\Python31\Lib\site-packages\cx_Freeze\bases\Win32GUI.exe
--include-path=. -z icon.jpg
Both app icon and tray icon used icon.jpg
Regards,
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I'm glad to inform you about new releases of our completely free (BSD
license) cross-platform software, written using Python language and
NumPy:
OpenOpt 0.31 (numerical optimization), FuncDesigner 0.21 (automatic
differentiation, modelling, interpolation, integration),
DerApproximator 0.21
Environment: X86, 1Gb RAM, Win XP, latest SP, Excel 2003.
Hi, can anyone direct a relative newbie to the best source of info?
I am writing my own backup app in Python 2.5.2 (all my company will
allow me to use) using IDLE.
I intend to run this app daily via the Task Scheduler to back up a
mission-
Andre Alexander Bell wrote:
> On 09/15/2010 10:00 AM, Peter Otten wrote:
>> def extract_names(t, recurse=1):
>> for _, name, fmt, _ in t._formatter_parser():
>> if name is not None:
>> yield name
>> if recurse and fmt is not None:
>> for name in ext
On 09/15/2010 10:00 AM, Peter Otten wrote:
def extract_names(t, recurse=1):
for _, name, fmt, _ in t._formatter_parser():
if name is not None:
yield name
if recurse and fmt is not None:
for name in extract_names(fmt, recurse-1):
yi
Peter Otten wrote:
> Andre Alexander Bell wrote:
>
>> On 09/14/2010 08:20 PM, Miki wrote:
>>> You can use ** syntax:
>> english = {'hello':'hello'}
>> s.format(**english)
>>
>> Thanks for your answer. Actually your answer tells me that my example
>> was misleading. Consider the template
cron is daemon running which maps the tasks with the frequency
if you want to run a task at a specific time, you can schedule it for the
same
if you need any help, ping on gtalk, can help you out
Thanks,
Nitin
On Wed, Sep 15, 2010 at 1:05 PM, Von wrote:
> I have read the cron man page just no
I have read the cron man page just now,It says that cron wakes up every
minute to check task.
I will try install/uninstall with cron.
Cheers,
On Wed, Sep 15, 2010 at 3:25 PM, Von wrote:
> Thanks Nitin,I wonder how cron works,does it create a timer thread for each
> task?
>
>
> On Wed, Sep 15, 2
Thanks Nitin,I wonder how cron works,does it create a timer thread for each
task?
On Wed, Sep 15, 2010 at 2:35 PM, Nitin Pawar wrote:
> I think to do so either you will need to schedule a cron or write a daemon
> process which will run continuously.
> Assuming that its running only once a day or
How can I get the request passed on to my views when using this
middleware?
class RestHTTPMiddleware(object):
def __init__(self, app):
self.app = app
def __call__(self, environ, start_response):
request = Request(environ)
body = StringIO.StringIO(request.body)
method = webapp
77 matches
Mail list logo