Re: Circular Import

2022-04-12 Thread Stefano Ovus
found a solution: importing modules instead of classes, ex. -- square.py import circle ... @classmethod def from_circle(cls, circle: circle.Circle) -> Square: ... return cls(...) -- https://mail.python.org/mailman/listinfo/python-list

Circular Import

2022-04-12 Thread Stefano Ovus
How can I avoid circular imports keeping separated modules ? -- square.py from circle import Cirle class Square: def __init__(self): ... @classmethod def from_circle(cls, circle: Circle) -> Square: ... return cls(...) -- circle.py from square import Square class Circle: def

installazione numpy

2021-10-11 Thread stefano felli
l'installazione di numpy con pip install numpy fornisce errore Building wheel for numpy (PEP 517) ERROR: Failed building wheel for numpy Failed to build numpy ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly A cosa รจ dovuto e come devo fare per installa

Re: Convenient filtering in for cycles

2011-10-05 Thread Stefano Maggiolo
if c else l2) # SyntaxError for x in l1 if c else l2 # valid Cheers, Stefano -- http://mail.python.org/mailman/listinfo/python-list

Convenient filtering in for cycles

2011-10-05 Thread Stefano Maggiolo
e other is list comprehensions as in ===(6)=== for x in (x in l if P(x)): do_stuff(x) == which accidentally would be a better solution than (1), (3), (4), (5), though not as good as (2). Thank you for your attention, Stefano Maggiolo -- http://mail.python.org/mailman/listinfo/python-list

Re: package with executable

2009-05-20 Thread Stefano Costa
Il Wed, 20 May 2009 07:01:39 +0100, A. Cavallo ha scritto: > With the standard distutils (no need for setuptools) the config.py file > might look like: Right, I ended up using setuptools just because I used paster to create the project layout. I'll think about using plain distutils instead. > i

package with executable

2009-05-19 Thread Stefano Costa
Hi, my name is Stefano Costa, I am an archaeologist and I am developing GNUCal, a radiocarbon calibration program released under the GNU GPL. [1][2] Currently the program consists of a small "library", largely based on Matplotlib and Numpy, and a command line program. My goal is t

SqlAlchemy and mssqlserver

2009-04-21 Thread Stefano
Using sqlalchemy with pyodbc and mssqlserver Why sa always generate identity ? many thanks here the sample tb = Table('prova',meta,Column('chiave', Integer, primary_key=True)) tb.create() CREATE TABLE prova ( chiave INTEGER NOT NULL IDENTITY(1,1), PRIMARY KEY (chiave)

script question

2009-04-17 Thread Stefano
I have a script like this myscript.py def func01() def func02() def func03() def funcnn() How can i execute my func in the code ? import myscript for i in range(1,n): myscript.func?? many thanks stefano -- http://mail.python.org/mailman/listinfo/python-list

wx, qt, gtk

2009-03-05 Thread Stefano
earched in internet and i've found that applications ( even commercial ) written with gtk are more and more than other written with wx and qt (not only with python) Any commets are appreciated Stefano -- http://mail.python.org/mailman/listinfo/python-list

Re: How to assign a function to another function

2007-09-17 Thread Stefano Esposito
On Mon, 17 Sep 2007 17:49:58 +0100 Paul Rudin <[EMAIL PROTECTED]> wrote: > Stefano Esposito <[EMAIL PROTECTED]> writes: > > > Hi all > > > > what i'm trying to do is this: > > > >>>>def foo (): > > ... return None > > .

How to assign a function to another function

2007-09-17 Thread Stefano Esposito
ot working and even trying with >>>def assigner (a, b): ... a = b ... >>>assigner(foo, bar) >>>foo() isn't working. How can I achieve my goal? Thanks for your help! :) -- Stefano Esposito <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

make images with python

2007-08-14 Thread stefano
I need make some images using python but i'm lost :P i need some module to make .png (with drawline, drawcircle, drawpoint etc etc etc ) like gd for php :P thants :D -- http://mail.python.org/mailman/listinfo/python-list

Re: http client module

2007-08-01 Thread stefano
On 31 jul, 23:07, Steve Holden <[EMAIL PROTECTED]> wrote: > stefano wrote: > > Hello i'm looking for a http client for python i found this one call > > httplib2 > > >http://64.233.169.104/search?q=cache:0jJWNfodK6gJ:bitworking.org/proj... > > > but is t

http client module

2007-07-31 Thread stefano
Hello i'm looking for a http client for python i found this one call httplib2 http://64.233.169.104/search?q=cache:0jJWNfodK6gJ:bitworking.org/projects/httplib2/+httplib2+python&hl=es&ct=clnk&cd=1&gl=cl&client=firefox-a but is too old -- http://mail.python.org/mailman/listinfo/python-list

Re: gui application on cross platform

2007-05-29 Thread Stefano Canepa
On 28 Mag, 09:28, james_027 <[EMAIL PROTECTED]> wrote: > On May 28, 3:06 pm, Stefano Canepa <[EMAIL PROTECTED]> wrote: > > > > > On 28 Mag, 08:01, james_027 <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I am using delphi to develop gui

Re: Python tutorials

2007-05-29 Thread Stefano Canepa
On 29 Mag, 09:08, Laurentiu <[EMAIL PROTECTED]> wrote: > Hello! > > i was searching the net for some python video > tutorials (free and payed). > > i found some interesting stuff atwww.showmedo.combut > i want something more complex. > > can someone give me some address for python video > tutorials

Re: gui application on cross platform

2007-05-28 Thread Stefano Canepa
On 28 Mag, 08:01, james_027 <[EMAIL PROTECTED]> wrote: > Hi, > > I am using delphi to develop gui application, and wish to make a shift > to python. here are some of my question/concern... > > 1. is python develop gui application a cross platform? just like java > swing? Yes. Qt, wxwidgets and pyg

Re: Asynchronous XML-RPC client library?

2007-04-29 Thread Stefano Canepa
p://jpa.berlios.de/ Why don't you try twisted (http://www.twistedmatrix.com) Bye Stefano -- http://mail.python.org/mailman/listinfo/python-list

Re: Font management under win32

2005-09-30 Thread Stefano Masini
Do you think that is possible with win32 extensions? thanks, stefano -- http://mail.python.org/mailman/listinfo/python-list

Font management under win32

2005-09-28 Thread Stefano Masini
it works! So, does anybody ever had the same problem? thanks, stefano -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do Pythoneers reinvent the wheel?

2005-09-10 Thread Stefano Masini
ere, like it beeing difficult to come out with effective decisional support in an open source community, or something like this. I can certainly see the challenge of who and how should decide what goes in the library, and what not. stefano -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do Pythoneers reinvent the wheel?

2005-09-09 Thread Stefano Masini
true, by the way! So, let's talk about a way to more effectively present available solutions to our good programmers! :) cheers, stefano -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do Pythoneers reinvent the wheel?

2005-09-09 Thread Stefano Masini
ly beginners. But it is so official that no one would ever dare suggesting to include something in it. If the Vaults of Parnassus were listed in there (maybe a bit trimmed and evaluated first ;) a beginner would have immediate access to the most common tricks that one soon faces when it comes

Re: Why do Pythoneers reinvent the wheel?

2005-09-09 Thread Stefano Masini
zed when I look back and see how many wheels I reinvented. But maybe it's just lack of wisdom. :) stefano -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do Pythoneers reinvent the wheel?

2005-09-09 Thread Stefano Masini
ty cool. If I had to vote for something going into a "testing" stdlib, I'd vote for PyPI. You see, that's my point, we have too many! :) stefano -- http://mail.python.org/mailman/listinfo/python-list

Why do Pythoneers reinvent the wheel?

2005-09-09 Thread Stefano Masini
started. I understand and respect your work, also because you put the remarkable effort to make it publicly available. That's my two cents, stefano -- http://mail.python.org/mailman/listinfo/python-list

New Zope Italia Association (AZI)

2005-05-04 Thread Stefano Noferi
the visibility of Zope, Plone and Python in Italy. Further details can be found at http://zope.it. -- Stefano Noferi Zope Italia Association -- http://mail.python.org/mailman/listinfo/python-list