gt; I'm at a complete loss of what I am doing wrong in my script and would
> hope to get at least some indication.
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Marco Bizzarri
http://code.google.com/p/qt-asterisk/
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
>
> Anyone have ideas what could be causing this? I suspect it's blocking on
> something, but I can't imagine where.
>
> There is no stderr/stdout output anywhere in the program so it's not
> blocking on anything stdio related (that I can imagine)
>
confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error) please
> notify the sender immediately and delete this e-mail. Any unauthorized
> copying, disclosure or distribution of the material in this e-mail is
> stri
.tiny.be
> Web: http://www.openerp.com
> Planet: http://www.openerp.com/planet/
> Blog: http://stephane-wirtel-at-tiny.blogspot.com
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
--
Marco Bizzarri
http://code.google.com/p/qt-asterisk/
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
ials
on this) and then return here asking questions about what you're
unable to do in python.
Of course, these are my 2 cents.
Regards
Marco
--
Marco Bizzarri
http://sf.net/projects/qt-asterisk/
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Apr 26, 2009 at 12:38 PM, Joacim Thomassen
wrote:
> Den Sat, 25 Apr 2009 23:47:57 +0200, skrev Marco Bizzarri:
>
>
> Hello Marco,
>
> python's fcntl() call the regular C fcntl() function and as stated in the
> manual pages for C fcntl:
>
>
self.show()
> def updateUi(self):
> self.centralwidget.reload()
>
> if __name__ == "__main__":
> app = QApplication(sys.argv)
> w = Watcher()
> main = MainWindow(w)
> app.exec_()
> --
> http://mail.
you subclass it, and redefine the
promp_user_password method).
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
http://chandlerproject.org/Projects/MeTooCrypto
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
5 for windows, and then download this one:
http://sourceforge.net/project/downloading.php?group_id=22307&filename=MySQL-python-1.2.2.win32-py2.5.exe&a=71602382
I'm sure you'll save yourself a lot of time.
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
Regards,
> Devi
> --
> http://mail.python.org/mailman/listinfo/python-list
>
import sys
sys.exit(123)
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
Moreover, don't fight your problem (integrating your objects) at the
wrong level (unit testing); you'll need integration tests, where you
use your *REAL* object end-to-end, maybe even talking with other
subsystems, in order to check that you are working for real. And
there,maybe, you c
hon-list
>
If you don't mind using a commercial Java lib, use
http://www.tasman.co.uk/bars/readme.html. I'ts not exactly cheap, but
it works very well, and support is good.
The only suggestion I can give you is: stay away from mixed
OCR/Barcode recognition software; usually they
hon-list
>
I've little experience with firebird, and did this one only with
PostgreSQL; but once you get the odf file, can't you just write on a
temp file and read (and write) from that?
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
;m curious how this can be done, does anyone know this?
>
> Almar
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
First result in "making a daemon in python with google":
http://mail.python.org/pipermail/python-list/2007-February/427692.html
(not tested)
On Thu, Sep 18, 2008 at 7:10 PM, Dieter Maurer <[EMAIL PROTECTED]> wrote:
> "Marco Bizzarri" <[EMAIL PROTECTED]> writes on Mon, 15 Sep 2008 20:26:27
> +0200:
>> On Mon, Sep 15, 2008 at 8:15 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote:
>> > Mailing
On Sun, Sep 14, 2008 at 10:08 AM, Marco Bizzarri
<[EMAIL PROTECTED]> wrote:
> On Sun, Sep 14, 2008 at 10:01 AM, cnb <[EMAIL PROTECTED]> wrote:
>> this recursive definition of sum thrumped me, is this some sort of
>> gotcha or am I just braindead today?
>> and yes
acc=0):
>if len(xs) == 0:
>acc
>else:
>suma(xs[1:], acc+xs[0])
You're just missing the "return" statements?
def suma(xs, acc=0):
if len(xs) == 0:
return acc
else:
return suma(xs
e the connection is
> made.
>
>
Maybe you can find this useful?
https://developer.skype.com/wiki/Skype4Py/examples/s4p_call_py
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Sep 13, 2008 at 4:11 PM, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Marco Bizzarri wrote:
>
>> class FolderInUse:
>
>>
>>
>>def true_for(self, archivefolder):
>>return any([instance.f
able, like:
specification = FolderInUse(core)
if specification.true_for(folder):
...
Any thought about this?
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Sep 12, 2008 at 6:07 PM, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> Marco Bizzarri a écrit :
> (snip)
>>
>> I'm afraid this have another problem for me...
>>
>>
>> [EMAIL PROTECTED]:/var/local/zope28/porting/Products/PAFlow$ pytho
20061015 (prerelease) (Debian 4.1.1-16.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> def any(iterable): pass
...
>>> any(x for x in [1, 2, 3])
File "", line 1
any(x for x
> ... return True
> ...
>
> Diez
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Thanks for the clarification, Diez! Indeed, I tried python2.3 and
python2.4, and of course not python2.5 ;)
I would like to make this available to the whole project. I suspect I
On Fri, Sep 12, 2008 at 4:09 PM, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
> Marco Bizzarri schrieb:
>>
>> Hi all.
>>
>> In many parts of my code I've the following schema of code:
>>
>>def isInUseByOutgoingRegistratio
True
return False
Before devising my own solution for this kind of problem, I wonder if
there is a common solution for the problem. I'm looking for a
python2.3 solution.
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.o
actively mantained and used in a big software project.
And, also, it should be quite easy to extend in order to have your
custom functions run via XML-RPC.
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo
noffice; you could
try to get the OpenOffice.org developers guide and the SDK, and check
it (but it is not a little work)
Regards
Marco
> Thanks
>
> --greg
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Sep 10, 2008 at 3:25 PM, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
> Marco Bizzarri wrote:
>
>> Hi all.
>>
>> I would like to change the way test reports are generated, in a Zope
>> environment.
>>
>
> Have you looked at nosetests? Nose
point me in the right
> direction from where to start?
>
> Thanks in advance!
> --
> http://mail.python.org/mailman/listinfo/python-list
>
http://www.modpython.org/
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
%s " % self.testsRun)
_TextTestResult.startTest(self, test)
now, of course, this is ugly, because I'm using _TextTestResult, which
I'm not supposed to know, and I'm changing behaviour by subclassing,
which is not exactly what I would like to do.
What is the pythonic way to accompl
On Sat, Sep 6, 2008 at 7:52 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Marco Bizzarri wrote:
>
>>> (...as Bruno implies, setattr(), len() et al can be and should be viewed
>>> as
>>> generic functions.
>>
>> Just a question: "gene
On Fri, Sep 5, 2008 at 9:16 PM, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> Marco Bizzarri a écrit :
>>
>> Just a question: "generic functions" are not meant in the sense of
>> "generic functions" of CLOS, am I right?
>
> Nope. Ju
On Thu, Sep 4, 2008 at 10:47 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>
> (...as Bruno implies, setattr(), len() et al can be and should be viewed as
> generic functions.
Just a question: "generic functions" are not meant in the sense of
"generic functions&qu
On Fri, Sep 5, 2008 at 3:50 PM, Maric Michaud <[EMAIL PROTECTED]> wrote:
> Le Friday 05 September 2008 15:04:22 Marco Bizzarri, vous avez écrit :
>> Hi all.
>>
>> I'm experiencing a core dump while working in the following environment
>>
>> - debain
a debug-enabled python in order to have more meaningful
backtraces?
- is there something else I should do in order to have more clues
("Read The Fine Manual (tm)" is an acceptable answer)
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
typo.
>
>
> --
> Stand Fast,
> tjg. [Timothy Grant]
>
Right; that is one of the things I try to do to avoid this sort of problems.
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
re, if I want them, I will go for Java, or some other
language like that.
I understand that Python is a balance between different forces (like
any software object around the world) and I'm simply asking some
pointers to the discussion leading to this balance.
That's all.
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Sep 4, 2008 at 2:43 PM, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
Well, Bruno, it looks like I've to wider my search in order to read
something about it. Thanks for your suggestions, in any case.
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspo
On Thu, Sep 4, 2008 at 4:39 PM, Marco Bizzarri <[EMAIL PROTECTED]> wrote:
>
> Most probably you're right. Maybe I will make a trip back to my
> university books and take a look at them again :-)
>
Meant: you *are* right. Sorry.
Saluti
Marco
--
Marco Bizzarri
http://no
in :-)
Thanks
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Sep 4, 2008 at 3:07 PM, Maric Michaud <[EMAIL PROTECTED]> wrote:
> Le Thursday 04 September 2008 14:31:23 Michele Petrazzo, vous avez écrit :
>> Marco Bizzarri wrote:
>> > looking at the source, maybe you could create a subclass of Set
>> > redefining th
org/mailman/listinfo/python-list
>
Thanks for the pointer, Bruno... I wrote from my memory, but there is
some bank of it which need quick replace ;)
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
r
all, if it is wrong, I can move to a language like Java, which has a
different approach on it. I'm really very interested in reading past
discussion on it, if they are available.
Regards
Marco
On Thu, Sep 4, 2008 at 12:57 PM, Marco Bizzarri
<[EMAIL PROTECTED]> wrote:
> Let's sa
On Thu, Sep 4, 2008 at 1:00 PM, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
> Marco Bizzarri wrote:
>
>> Let's say I've a class a, where I can write:
>
> Anticipating this obviously premature posting:
>
> http://dirtsimple.org/2004/12/python-is-not-java.htm
Let's say I've a class a, where I can write:
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
plication. Using Python. I found "Dive
>> Into Python" which I will be reading shortly.
>>
>So one question: what RDBMs are supported in that space?
The appearance is not an RDBMS, at least, maybe it is, but under the surface.
Looks more that y
s,
> Wojtek Walczak,
> http://tosh.pl/gminick/
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Saluti
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
source, maybe you could create a subclass of Set
redefining the __contains__ method?
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
st?
> --
> http://mail.python.org/mailman/listinfo/python-list
>
I do not think I qualify for experienced users; I've used pydev for
many years, and I'm quite comfortable with it. It is an eclipse based
IDE, therefore you've some of its niceties and some of its dra
error:
>
> socket.gaierror: (11001, 'getaddrinfo failed')
>
> Do you know what I do wrong?
> Thank you very much.
>
>
localhost is not resolved to 127.0.0.1 on your machine.
Try changing it to http://127.0.0.1:8080
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
encode('utf8')
I'm assuming here that the urlib.unquote(c.user.firstName) returns an
encodable string (which I'm absolutely not sure), but if it does, this
should take the first 'character'.
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
in your snippet of code, if encoding is latin1, at least for
what I can understand.
Do not assume utf8 is a two byte encoding; utf8 is a variable length
encoding. Indeed,
'a' encoded as utf8 is 'a' (one byte)
'à' encode as utf8 is '\xc3\xa0'
oes the HTTPConnection object have a property that stores this ?
> or is it retrievable by some other form?
>
> Thanks a lot.
> --
Looking at the code of HTTPConnection, all that goes through the
_output message (including, therefore, the putheaders) are appended to
the self._buffer l
>
> Does anyone have any experience with this sort of thing? If so, could
> you suggest a good library and possibly some samples?
Isn't the SAX part of this howto
http://pyxml.sourceforge.net/topics/howto/xml-howto.html
enough for you to create your parser?
Regards
Marco
--
M
will be calculated in the process).
> I've been searching, but couldn't find any examples which allows that.
Is it suitable for you to use a python program talking with a running
instance of openoffice? in that case, pyuno could help you.
--
Marco Bizzarri
http://notenotturn
mport datetime # This might be a bad idea... I haven't
> had problems yet though. datetime.datetime gets on my nerves though.
>
> just my .02
>
> Eric
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Thanks Eric; your 02 cents are worthy for me ;)
Regards
Marco
--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
http://notenotturne.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
nction/method (or even in
> their argument list, but that's a hack to be used only once in a
> while):
> localname = somemodule.somename
>
> Bye,
> bearophile
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Thanks again for sharing your thoughts with
ks Fredrik; I understand that is the underlying message of your article.
I'm just confused because PEP8 seems to suggest that the from module
import Class style is acceptable; is there a big "if you know what are
doing" before, which I'm unable to see?
Regards
Marco
--
m, also,
because I think it has to do with your setup (not that you setup
something in the wrong way: just to have context).
Regards
Marco
--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
2008 at 2:33 PM, gianluca <[EMAIL PROTECTED]> wrote:
> On 30 Ago, 12:05, "Marco Bizzarri" <[EMAIL PROTECTED]> wrote:
>> On Fri, Aug 29, 2008 at 7:53 PM, gianluca <[EMAIL PROTECTED]> wrote:
>> > hy list,
>> > I've built _libfoo.so and libfoo.
a flat module)
or
from package.subpackage import module
and then use
module.MyClass
(( for a package/subpackage structure ))
Thank you all for your attention
Regards
Marco
--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
http://notenotturne.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
o/python-list
>
Have you tried to use ldd against the _libfoo.so to check if it is
able to get all the libraries it needs?
Regards
Marco
--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
d. However, when I execute the code from the command line, I
> get the following error:
>
> ImportError: No module named mypackage.unittests.test1
>
1) What is the command you're using to run the alltest.py module?
2) what is the result of:
- python -c
On Wed, Aug 27, 2008 at 10:26 AM, Simon Brunning
<[EMAIL PROTECTED]> wrote:
> 2008/8/27 Marco Bizzarri <[EMAIL PROTECTED]>:
>> I strongly disagree on using mocks for a database; checking sequences
>> of SQL statement is fragile, painful, and leads you to frustration
>
On Tue, Aug 26, 2008 at 8:33 PM, frankrentef <[EMAIL PROTECTED]> wrote:
>
> Would the second file need something akin to...
>
> loginout.admin (ie,url,adminlogin)
Yes. Since you're importing the whole module.
--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
--
atabase (or whatever external resource you want to access), and,
after that, it should be transparent for you, more or less.
Regards
Marco
--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
ainful, and leads you to frustration
when the actual SQL and the generated SQL do not match.
Regards
Marco
--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
hould help you here:
>
> http://python-mock.sourceforge.net/
>
> There's even an example on that page for mocking a database.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
69 matches
Mail list logo