On Sun, 20 Dec 2009 11:11:54 -0500, Steve Holden wrote:
> Dave Angel wrote:
> [...]
>> We were talking about 2.x And I explicitly mentioned 3.x because if
>> one develops code that depends on old-style classes, they'll be in
>> trouble with 3.x, which has no way to specify old-style classes. In
* Alf P. Steinbach:
* W. eWatson:
When I use numpy.__doc__ in IDLE under Win XP, I get a heap of words
without reasonable line breaks.
"\nNumPy\n=\n\nProvides\n 1. An array object of arbitrary
homogeneous items\n 2. Fast mathematical operations over arrays\n 3.
Linear Algebra, Fourier
En Sun, 20 Dec 2009 02:04:17 -0300, harish anand
escribió:
I have Mandriva 2010.0 in my laptop.
I installed python3.1 from the repository.
But i am unable to import tkinter in python console.
When I try to import tkinter I get the following error,
`ImportError : No module named _tkinter`
En Sat, 19 Dec 2009 07:36:59 -0300, Emeka escribió:
Okay if that is the case, why do we need it? By having int a = 65, b =
66 ,
why should we also have *kwlist[]?
static PyObject* foo(PyObject *self, PyObject *args, PyObject *kwrds)
{
int a=65, b=66;
char *kwlist[] = {"a", "b", NULL}
AppRe Godeck a écrit :
(snip)
Thanks for your replies, I was hoping to hear from some django people as
well. Especially if you choose django over web2py, and why.
I don't know what a "django people" is - but if you mean "django core
developper", I'm not one of them. Now wrt while I use Django
Thadeus Burgess a écrit :
(snip)
Spend one
day working on a simple django application, polls, blog, image
gallery, family pet tree, you name it. Then take the next day, and
write the same application with web2py, and you decide. In the end,
both are tools and you need to figure out what is best f
On Dec 20, 1:35 am, mdipierro wrote:
> Errata. I said "The dal supports transactions" where I meant "the dal
> supports migrations".
> Of course it also supports "transactions" as well as "distributed
> transactions".
Sorry, if this is not related to this topic.
Does web2py support distributed t
Do you remember my post about Vectorized laziness that was fully
ignored by everyone here?
http://groups.google.com/group/comp.lang.python/browse_thread/thread/2637aafa1274629d/
The latest Clojure v.1.1 has implemented the same idea, they are named
"Chunked Sequences":
http://www.infoq.com/news/20
On 20 Des, 01:46, Lie Ryan wrote:
> Not necessarily, you only need to be certain that the two streams don't
> overlap in any reasonable amount of time. For that purpose, you can use
> a PRNG that have extremely high period like Mersenne Twister and puts
> the generators to very distant states.
E
mdipierro a écrit :
On Dec 19, 12:42 am, AppRe Godeck wrote:
Just curious if anybody prefers web2py over django, and visa versa. I
know it's been discussed on a flame war level a lot. I am looking for a
more intellectual reasoning behind using one or the other.
Of course I am the most biased
Anand Vaidya a écrit :
On Dec 19, 2:42 pm, AppRe Godeck wrote:
Just curious if anybody prefers web2py over django, and visa versa. I
know it's been discussed on a flame war level a lot. I am looking for a
more intellectual reasoning behind using one or the other.
Hi,
I am not very familiar w
On 12/21/2009 08:35 AM, Gabriel Genellina wrote:
En Sat, 19 Dec 2009 00:18:26 -0300, Peter escribió:
This was somehow unexpected for me, since in a module using
logger.py, I could use either import:
from mylogger import logger # without package name
or
from of.mylogger import logger # wi
Sylvain Thénault wrote:
On 18 décembre 18:24, Jean-Michel Pichavant wrote:
Sylvain Thénault wrote:
Hi,
I'm very pleased to announce the release of pylint 0.19 / astng 0.19.2 release!
More information / download on http://www.logilab.org/project/pylint/0.19.0.
This is a "community" r
Is it possible to build python extensions using gcc's -fmudflap to check
memory access? I'm not real familiar with mudflap usage, not sure if it
works on building shared objects. Perhaps it requires a rebuilt python
main? Hopefully not.
--
http://mail.python.org/mailman/listinfo/python-list
--
Petro Khoroshyy
Institute of Biophysics
Biological Research Center of the
Hungarian Academy of Sciences
Temesvari krt. 62, P.O.Box 521
Szeged, Hungary, H-6701
This message was sent using IMP, the Internet Messaging Program.
--
Petro Khoroshyy
Institute of Biophysics
Biological Research Center of the
Hungarian Academy of Sciences
Temesvari krt. 62, P.O.Box 521
Szeged, Hungary, H-6701
This message was sent using IMP, the Internet Messaging Program.
AppRe Godeck a écrit :
On Mon, 14 Dec 2009 12:25:16 +0100, Bruno Desthuilliers wrote:
r0g a écrit :
Bruno Desthuilliers wrote:
Sancar Saran a écrit :
(snip)
My problem is with PHP syntax and performance. I'm just trying to
replicate my recepies in python...
Python is not PHP, and trying to
Hello,. everyone.
I've a string that looks something like
lksjdfls kdjff lsdfs sdjfls sdfsdwelcome
>From above string I need the digits within the ID attribute. For
example, required output from above string is
- 35343433
- 345343
- 8898
I've written this regex that's kind of working
difflib.get_close_matches looks useful. But, I don't see where it defines
'close'. Besides that, wouldn't it be much more useful if one could supply
their own distance metric?
--
http://mail.python.org/mailman/listinfo/python-list
How about re.findall(r'\d+(?:\.\d+)?',str)
extracts only numbers from any string
~uk
On Dec 21, 4:38 pm, Oltmans wrote:
> Hello,. everyone.
>
> I've a string that looks something like
>
> lksjdfls kdjff lsdfs sdjfls = "amazon_35343433">sdfsdwelcome
>
>
> From above string I n
Hello,
Le Sun, 20 Dec 2009 17:08:33 +0100, Johannes Bauer a écrit :
>
> #!/usr/bin/python3
> import gzip
> x = gzip.open("testdatei", "wb")
> x.write("ä")
The bug here is that you are trying to write an unicode text string ("ä")
to a binary file (a gzip file). This bug has been fixed now; in th
On Dec 21, 7:38 pm, Oltmans wrote:
> Hello,. everyone.
>
> I've a string that looks something like
>
> lksjdfls kdjff lsdfs sdjfls = "amazon_35343433">sdfsdwelcome
>
>
> From above string I need the digits within the ID attribute. For
> example, required output from above string is
Oltmans wrote:
> I've a string that looks something like
>
> lksjdfls kdjff lsdfs sdjfls = "amazon_35343433">sdfsdwelcome
>
>
> From above string I need the digits within the ID attribute. For
> example, required output from above string is
> - 35343433
> - 345343
> - 8898
>
> I'v
On Dec 21, 5:05 pm, Umakanth wrote:
> How about re.findall(r'\d+(?:\.\d+)?',str)
>
> extracts only numbers from any string
>
Thank you. However, I only need the digits within the ID attribute of
the DIV. Regex that you suggested fails on the following string
lksjdfls kdjff lsdfs sdjfl
>>> In python, 'class variable' is a variable that belongs to a class; not
>>> to the instance and is shared by all instance that belong to the class.
>>
>> Surely, since string variables are strings, and float variables are
>> floats, and bool variables are bools, and module variables are modules,
Ok. how about re.findall(r'\w+_(\d+)',str) ?
returns ['345343', '35343433', '8898', '8898'] !
On Dec 21, 6:06 pm, Oltmans wrote:
> On Dec 21, 5:05 pm, Umakanth wrote:
>
> > How about re.findall(r'\d+(?:\.\d+)?',str)
>
> > extracts only numbers from any string
>
> Thank you. However, I only
--
Petro Khoroshyy
Institute of Biophysics
Biological Research Center of the
Hungarian Academy of Sciences
Temesvari krt. 62, P.O.Box 521
Szeged, Hungary, H-6701
This message was sent using IMP, the Internet Messaging Program.
Is there a way to send() information back to a generator while using the
for...in statement?
Thanks in advance.
--
http://mail.python.org/mailman/listinfo/python-list
In article ,
Steven D'Aprano wrote:
>On Wed, 09 Dec 2009 18:50:29 +, Nobody wrote:
>>
>> Compiled languages' switch statements typically require constant labels
>> as this enables various optimisations.
>
>Pascal, for example, can test against either single values, enumerated
>values, or a ra
> > On Dec 19, 12:42 am, AppRe Godeck wrote:
> >> Just curious if anybody prefers web2py over django, and visa versa. I
> >> know it's been discussed on a flame war level a lot. I am looking for a
> >> more intellectual reasoning behind using one or the other.
>
> > Of course I am the most biased
In article ,
Mark Dickinson wrote:
>On Dec 11, 10:30=A0am, Mark Dickinson wrote:
>> > It looks like an infinite series with term `t`, where`n` =3D (2k-1)^2
>> > and `d` =3D d =3D 4k(4k+2) for k =3D 1... Does it have a name?
>>
>> Interesting. =A0So the general term here is
>> 3 * (2k choose k) /
Oltmans wrote:
Hello,. everyone.
I've a string that looks something like
lksjdfls kdjff lsdfs sdjfls sdfsdwelcome
From above string I need the digits within the ID attribute. For
example, required output from above string is
- 35343433
- 345343
- 8898
I've written this regex that
On Dec 19, 8:39 pm, AppRe Godeck wrote:
> On Sat, 19 Dec 2009 12:48:07 -0800, Yarko wrote:
> > On Dec 19, 12:42 am, AppRe Godeck wrote:
>
> It seems that this is the biggest issue surrounding web2py, from my
> research, is the ability to customize the defaults (the easy). If all
> web2py of
Hi,
I am to write script which is to read data from log file which resides on
remote host. It's a simple text file but grows to couple of MBytes. I want to
do ssh connection to remote, and run 'tail -f _some_file_' command to read only
new coming data and process them in the loop. The problem is
On Dec 21, 2:32 am, Bruno Desthuilliers wrote:
> Thadeus Burgess a écrit :
> (snip)
>
> > Spend one
> > day working on a simple django application, polls, blog, image
> > gallery, family pet tree, you name it. Then take the next day, and
> > write the same application with web2py, and you decide.
On 2009-12-21, Rick wrote:
> I am to write script which is to read data from log file which
> resides on remote host. It's a simple text file but grows to
> couple of MBytes. I want to do ssh connection to remote, and
> run 'tail -f _some_file_' command to read only new coming data
> and process
"Lucas Prado Melo" wrote in message
news:9f4be2240912210639g58da0549jb0c81450947ef...@mail.gmail.com...
Is there a way to send() information back to a generator while using the
for...in statement?
Thanks in advance.
Yes, see "send(), (generator method)" or "yield expressions" in the help.
It should be interesting to add new funcionality to "copytree" function into
a "shutil.py" module?, I mean...I have developed a very silly function
"copytree" with a different fourth argument. I have modified the "ignore"
parameter to "target" parameter; this new one is used to copy the files wich
Pythonistas:
I'm stuck on the "PGP Key ID". When I whip out my trusty Ubuntu and run pgp -kg,
I get a 16-digit "DSA / EIGamal" key.
When I enter it into http://pypi.python.org/pypi?%3Aaction=register_form , I get
a helpful "PGP Key ID is invalid".
Should I try a key of some other algorithm?
Lie Ryan writes:
> On 12/17/2009 3:17 PM, J Kenneth King wrote:
>> A language is a thing. It may have syntax and semantics that bias it
>> towards the conventions and philosophies of its designers. But in the
>> end, a language by itself would have a hard time convincing a human
>> being to ado
On 2009-12-19 09:14 AM, Carl Johan Rehn wrote:
On Dec 19, 2:49 pm, sturlamolden wrote:
On 19 Des, 11:05, Carl Johan Rehn wrote:
I plan to port a Monte Carlo engine from Matlab to Python. However,
when I timed randn(N1, N2) in Python and compared it with Matlab's
randn, Matlab came out as a c
I use the following code:
fileobject = open("e:\\Ray Holts Documents\\Word Documents\\1850 Warren MS
Jenkins", 'y')
line = fileobject.readline()
I get the following error message:Traceback (most recent call last):
File "C:/Python26/Reading_and_Writing_Files", line 5, in
fileobject = open("
Tentatively titled "Foundations".
Also, these first 2/3 sections may be moved to some later point, i.e. even the
structure is tentative, but I'd value comments!
http://tinyurl.com/programmingbookP3>
Table of contents:
3 Foundations 1
3.1 Some necessary math notation & terminology. 2
3.1.
Ray Holt wrote:
I use the following code:
fileobject = open("e:\\Ray Holts Documents\\Word Documents\\1850 Warren
MS Jenkins", 'y')
line = fileobject.readline()
I get the following error message:Traceback (most recent call last):
File "C:/Python26/Reading_and_Writing_Files", line 5, in
Dear reader,
the application is an interface to a sqlite database and stores image
metadata (such as year, event, photographer, people on image etc.). i use
pyqt4 for the interface and developed this application on a linux platform
(python 2.5.4). friends of mine liked what i have done an want it
Steve Holden, Chairman, PSF wrote:
Hi,everyone.
This year I hope all readers of this list will assist me in crass
commercial promotion of next year's PyCon.
...
One particularly effective way for you prodigious email producers to
assist is to something to your signature (as you will see I hav
hi,
i am new to python but have programming experience in few other languages.
i am trying to start with python 2.6 or 3.0. my requirement is accessing
database (mysql and/or postgresql) and web development.
what all i should install for my requirement?
to connect to database (mysql and/or pos
On Mon, Dec 21, 2009 at 9:22 AM, Simon Moses wrote:
> hi,
>
> i am new to python but have programming experience in few other languages.
> i am trying to start with python 2.6 or 3.0. my requirement is accessing
> database (mysql and/or postgresql) and web development.
>
> what all i should insta
En Mon, 21 Dec 2009 11:39:46 -0300, Lucas Prado Melo
escribió:
Is there a way to send() information back to a generator while using the
for...in statement?
No. You have to write the iteration as a while loop.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
Hi;
I'm checking the best way to validate attributes inside a class. Of
course I can use property to check it, but I really want to do it
inside the __init__:
class A:
def __init__(self, foo, bar):
self.foo = foo #check if foo is correct
self.bar = bar
All examples that I saw
There is huge difference between what Steve is asking and spam.
Spam is "Unsolicited e-mail, often of a commercial nature, sent
indiscriminately to multiple mailing lists, individuals, or
newsgroups".
Steve is asking us help him to identify communities that we may be
part of and that we believe m
On Mon, Dec 21, 2009 at 8:23 AM, logan tag wrote:
> It should be interesting to add new funcionality to "copytree" function
> into a "shutil.py" module?, I mean...I have developed a very silly function
> "copytree" with a different fourth argument. I have modified the "ignore"
> parameter to "tar
On Mon, Dec 21, 2009 at 9:41 AM, Denis Doria wrote:
> All examples that I saw with property didn't show a way to do it in
> the __init__. Just to clarify, I don't want to check if the parameter
> is an int, or something like that, I want to know if the parameter do
> not use more than X chars; an
Neal Becker wrote:
> difflib.get_close_matches looks useful. But, I don't see where it defines
> 'close'. Besides that, wouldn't it be much more useful if one could
> supply their own distance metric?
If you have a distance function you can find the N best matches with
>>> from heapq import ns
Denis Doria wrote:
Hi;
I'm checking the best way to validate attributes inside a class. Of
course I can use property to check it, but I really want to do it
inside the __init__:
class A:
def __init__(self, foo, bar):
self.foo = foo #check if foo is correct
self.bar = bar
Al
On Mon, Dec 21, 2009 at 11:48 AM, Ray Holt wrote:
> I use the following code:
> fileobject = open("e:\\Ray Holts Documents\\Word Documents\\1850 Warren MS
> Jenkins", 'y')
> line = fileobject.readline()
>
> I get the following error message:Traceback (most recent call last):
> File "C:/Python26/
* Denis Doria:
I thought in something like:
class A:
def __init__(self, foo = None, bar = None):
set_foo(foo)
self._bar = bar
def set_foo(self, foo):
if len(foo) > 5:
raise
_foo = foo
foo = property(setter = set_foo)
But looks too much
I just installed "python3.1.1.msi" on a system that had "python3.1.msi"
installed in "D:/python31". The installer found the old installation in
"D:/python31", partially trashed it, and then installed the new version
in "C:/python31".
I uninstalled the failed install, and reinstalled. On
brc.hu> writes:
>
>
petro,
I think you need to use e-mail, not IMP
Gil
--
http://mail.python.org/mailman/listinfo/python-list
to code a web page which connects to a database and displays some rows, what
minimum software and libraries i should install?
python 2.6, mysql 5.0, apache 2.2 and Django? thats enough?
From: Stephen Hansen
To: Simon Moses
Cc: python-list@python.org
Sent: M
On Mon, Dec 21, 2009 at 10:34 AM, Simon Moses wrote:
>
> to code a web page which connects to a database and displays some rows, what
> minimum software and libraries i should install?
>
> python 2.6, mysql 5.0, apache 2.2 and Django? thats enough?
Depending on your requirements, you might not n
Thanks for the answer, it's perfect for my purposes.
See you in other thread!!!
On Mon, Dec 21, 2009 at 6:47 PM, Stephen Hansen wrote:
> On Mon, Dec 21, 2009 at 8:23 AM, logan tag wrote:
>
>> It should be interesting to add new funcionality to "copytree" function
>> into a "shutil.py" module?, I
so python 2.6, mysql 5.0, apache 2.2, mod_wsgi, MySQL-python-1.2.2.win32-py2.6
and Django should be sufficient for my requirement.
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
http://in.yahoo.com/--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
I have a mac os x, and I try to replicate the sample in swig tutorial
but when I try to link, I have these linking errors:
ld example.o example_wrap.o -o _example.so
Undefined symbols:
"_PyType_Type", referenced from:
_PyType_Type$non_lazy_ptr in example_wrap.o
"_PyExc_SystemErr
Hi,
I am writing a script wherein I need to merge files into existing tar.gz
files. Currently, I am using tarfile module. I extract the tar.gz to a
tempdir and copy the new file there and re-compress all the files back into
a tar.gz. Is there a better way to do it?
Thanks
Pulkit
--
http://mail.
Hi,
I am writing a script wherein I need to merge files into existing tar.gz
archives. Currently, I am using tarfile module. I extract the tar.gz to a
tempdir and copy the new file there and re-compress all the files back into
a tar.gz. Is there a better way to do it?
Thanks
Pulkit
(Sorry for t
On Mon, Dec 21, 2009 at 11:09 AM, Simon Moses wrote:
> so python 2.6, mysql 5.0, apache 2.2, mod_wsgi,
> MySQL-python-1.2.2.win32-py2.6 and Django should be sufficient for my
> requirement.
I don't know for certain; you're asking a bit too much specific detail here :)
Just go to http://docs.djan
Ben,
I do not have python 2.6 install, my version of Python is 2.4.
Because of my version of Python I believe I have to perform what you
have suggested:
This should, ideally, consist of two separate operations:
* parse the string, using a specific format, to create a ‘datetime’
object
*
Lie Ryan wrote:
On 12/21/2009 1:19 PM, W. eWatson wrote:
When I use numpy.__doc__ in IDLE under Win XP, I get a heap of words
without reasonable line breaks.
"\nNumPy\n=\n\nProvides\n 1. An array object of arbitrary
homogeneous items\n 2. Fast mathematical operations over arrays\n 3.
David Lyon wrote:
Also try..
http://www.unixuser.org/~euske/python/vnc2flv/index.html
On Mon, 21 Dec 2009 11:15:32 +0530, Banibrata Dutta
wrote:
Have you searched the archives of this list ? I remember seeing a related
discussion 5-6 months back.
On Mon, Dec 21, 2009 at 2:35 AM, aditya shukl
ANNOUNCING
eGenix.com mx Base Distribution
Version 3.1.3 for Python 2.3 - 2.6
Open Source Python extensions providing
important and useful services
tekion wrote:
Ben,
I do not have python 2.6 install, my version of Python is 2.4.
Because of my version of Python I believe I have to perform what you
have suggested:
This should, ideally, consist of two separate operations:
* parse the string, using a specific format, to create a ‘datetime’
On Dec 17, 8:39 pm, Christian Heimes wrote:
> Jonathan Hartley wrote:
> > Only this week I sent a py2exe-derived executable to someone else (a
> > non-developer) and it would not run on their WinXP machine ("'The
> > system cannot execute the specified program'") - my current favourite
> > hypothe
In article ,
Albert van der Horst wrote:
>In article ,
>Mark Dickinson wrote:
>>On Dec 11, 10:30=A0am, Mark Dickinson wrote:
>>> > It looks like an infinite series with term `t`, where`n` =3D (2k-1)^2
>>> > and `d` =3D d =3D 4k(4k+2) for k =3D 1... Does it have a name?
>>>
>>> Interesting. =A0
On Dec 21, 2:50 am, Bruno Desthuilliers wrote:
> mdipierro a écrit :
...
> > This means you do not need to import
> > basic web2py symbols. They are already defined in the environment that
> > executes the models and controllers
>
> Ok. As far as I'm concerned : show stops here.
Sorry- I don't _t
On Dec 17, 11:16 pm, Mark Hammond wrote:
> On 18/12/2009 7:44 AM, Ross Ridge wrote:
>
> > The "P" DLL is for C++ and so the original poster may not actually need
> > it. I'm pretty sure Python itself doesn't need it, and py2exe shouldn't
> > either, but wxPython, or more precisely wxWidgets, almo
Jonathan Hartley wrote:
>Many thanks for that, but my issue is that my programs work fine for
>me on my computer - but then fail on other people's computers. I'd
>very strongly prefer for my users to not have to install the MSVCR
>redistributable installer as well as my program - it would be much
On 12/22/2009 6:39 AM, W. eWatson wrote:
Wow, did I get a bad result. I hit Ctrl-P, I think instead of Alt-P, and
a little window came up showing it was about to print hundreds of pages.
I can canceled it, but too late. I turned off my printer quickly and
eventually stopped the onslaught.
I coul
Hi,
I've a config for logging where I set up a file rotation with
handlers.RotatingFileHandler and when the app parses the logging
config it says keyError when trying to parse that section
('RotatingFileHandler' is not defined). Curiously enough, I can do
import logging and from logging.handlers i
This is an introduction to programming based on Python 3.x in Windows.
It's posted as PDFs on Google Docs.
Currently 2 full chapters plus a little of chapter 3, about 120 pages in total;
chapters 1 and 2 reviewed by [comp.programming] and [comp.lang.python] residents
(although I have no doubt
Denis Doria wrote:
> Hi;
>
> I'm checking the best way to validate attributes inside a class. Of
> course I can use property to check it, but I really want to do it
> inside the __init__:
>
> class A:
> def __init__(self, foo, bar):
> self.foo = foo #check if foo is correct
>
On Mon, 21 Dec 2009 09:41:22 -0800, Denis Doria wrote:
> Hi;
>
> I'm checking the best way to validate attributes inside a class.
There is no "best way", since it depends on personal taste.
> Of
> course I can use property to check it, but I really want to do it inside
> the __init__:
If you
Lie Ryan wrote:
On 12/22/2009 6:39 AM, W. eWatson wrote:
Wow, did I get a bad result. I hit Ctrl-P, I think instead of Alt-P, and
a little window came up showing it was about to print hundreds of pages.
I can canceled it, but too late. I turned off my printer quickly and
eventually stopped the o
On Dec 21, 3:05 pm, MRAB wrote:
> tekionwrote:
> > Ben,
> > I do not have python 2.6 install, my version of Python is 2.4.
> > Because of my version of Python I believe I have to perform what you
> > have suggested:
>
> > This should, ideally, consist of two separate operations:
>
> > * parse th
tekion writes:
> Ben,
> I do not have python 2.6 install, my version of Python is 2.4.
Ouch :-( Upgrade as soon as possible, 2.4 is no longer receiving bug
fixes http://www.python.org/download/releases/2.4.6/>.
> So I guess I am stuck on parsing the string "24/Nov/2009:12:00:00
> -0500" using r
seafoid wrote:
> Hi Guys,
>
> When python reads in a file, can lines be referred to via an index?
>
> Example:
>
> for line in file:
> if line[0] == '0':
> a.write(line)
>
> This works, however, I am unsure if line[0] refers only to the first line or
> the first character in all l
On Mon, Dec 21, 2009 at 1:51 PM, W. eWatson wrote:
> Lie Ryan wrote:
>>
>> On 12/22/2009 6:39 AM, W. eWatson wrote:
>>>
>>> Wow, did I get a bad result. I hit Ctrl-P, I think instead of Alt-P, and
>>> a little window came up showing it was about to print hundreds of pages.
>>> I can canceled it, b
On 12/22/2009 4:41 AM, Denis Doria wrote:
Hi;
I'm checking the best way to validate attributes inside a class. Of
course I can use property to check it, but I really want to do it
inside the __init__:
class A:
def __init__(self, foo, bar):
self.foo = foo #check if foo is correct
On Mon, 21 Dec 2009 15:03:03 +0100, Daniel Fetchinson wrote:
> I don't think Steven cares much, he loves this type of nitpicking and
> uber pedantic formulations, but only if he can apply it to other
> people's post :)
Heh heh :)
I actually do care, because (not having a Java/C++ background) I a
This is a one-time post to annouce the creation of logbuilder project,
an open source tool for change log creation based on version control
commit messages. Using conventions in commit messages logbuilder
detects messages that can be imported into the change log and
painlessly creates on for every
> I'm stuck on the "PGP Key ID". When I whip out my trusty Ubuntu and run
> pgp -kg, I get a 16-digit "DSA / EIGamal" key.
>
> When I enter it into http://pypi.python.org/pypi?%3Aaction=register_form
> , I get a helpful "PGP Key ID is invalid".
>
> Should I try a key of some other algorithm?
If
Martin v. Loewis wrote:
I'm stuck on the "PGP Key ID". When I whip out my trusty Ubuntu and run
pgp -kg, I get a 16-digit "DSA / EIGamal" key.
When I enter it into http://pypi.python.org/pypi?%3Aaction=register_form
, I get a helpful "PGP Key ID is invalid".
Should I try a key of some other alg
sturlamolden wrote:
> On 19 Des, 16:20, Carl Johan Rehn wrote:
>
>> How about mulit-core or (perhaps more exciting) GPU and CUDA? I must
>> admit that I am extremely interested in trying the CUDA-alternative.
>>
>> Obviously, cuBLAS is not an option here, so what is the safest route
>> for a novi
Stephen Hansen wrote:
On Mon, Dec 21, 2009 at 1:51 PM, W. eWatson wrote:
Lie Ryan wrote:
On 12/22/2009 6:39 AM, W. eWatson wrote:
Wow, did I get a bad result. I hit Ctrl-P, I think instead of Alt-P, and
No, its not true. A built-in module does not mean its available
everywhere. It means i
Hi Mark,
many thanks for your help. I tried your code in my program and it worked.
I would like to understand what the code is doing and I have some questions
to it.
> Are you passing in these values, or are they being returned? To me the
> depth of the pointer references implies numVars, var
Hi,
I'm learning Python, jumping in the deep end with a threading application. I
came across an authoritative-looking site that recommends using queues for
threading in Python.
http://www.ibm.com/developerworks/aix/library/au-threadingpython/index.html
The author provides example code that fet
On Mon, Dec 21, 2009 at 2:57 PM, W. eWatson wrote:
> This has got to be some sort of IDLE issue then.
Huh? How do you figure?
> When I run a simple
> program. If I open this program in the IDLE editor:
> #import math
> print "hello, math world."
> print cos(0.5)
> print sin(0.8)
>
> then I get
>
On Mon, Dec 21, 2009 at 3:12 PM, Gib Bogle
wrote:
> #spawn a pool of threads, and pass them queue instance
> for i in range(5):
> t = ThreadUrl(queue,i)
> t.setDaemon(True)
> t.start()
>
> #populate queue with data
> for host in hosts:
> queue.put(host)
This is indented over o
sturlamolden wrote:
On 19 Des, 14:06, Carl Johan Rehn wrote:
Matlab and numpy have (by chance?) the exact names for the same
functionality,
Common ancenstry, NumPy and Matlab borrowed the name from IDL.
LabView, Octave and SciLab uses the name randn as well.
So the basioc question is, h
sturlamolden wrote:
On 19 Des, 16:20, Carl Johan Rehn wrote:
How about mulit-core or (perhaps more exciting) GPU and CUDA? I must
admit that I am extremely interested in trying the CUDA-alternative.
Obviously, cuBLAS is not an option here, so what is the safest route
for a novice parallel-pro
1 - 100 of 135 matches
Mail list logo