[ANN] Austin -- CPython frame stack sampler v3.0.0 is now available

2021-07-02 Thread Gabriele Tornetta
mple to compile from sources as it only depends on the standard C library if you don't have access to the above-listed sources. You can stay up-to-date with the project's development by following Austin on Twitter (https://twitter.com/AustinSampler). All the best, Gabriele -- https:

[ANN] Austin -- CPython frame stack sampler v2.1.1 is now available

2021-01-12 Thread Gabriele Tornetta
tter (https://twitter.com/AustinSampler). All the best, Gabriele https://github.com/P403n1x87/austin";>Austin 2.1.1 - frame stack sampler for CPython. (12-Jan-21) -- https://mail.python.org/mailman/listinfo/python-list

[ANN] Austin -- CPython frame stack sampler v2.0.0 is now available

2020-10-13 Thread Gabriele
st-austin Like the other Austin tools, pytest-austin can be installed easily from PyPI. You can stay up-to-date with the project's development by following Austin on Twitter (https://twitter.com/AustinSampler). All the best, Gabriele https://github.com/P403n1x87/austin";>Austin 2.0.0

[ANN] Austin -- Python frame stack sampler for CPython v1.0.1 is now available

2020-06-21 Thread Gabriele
Austin can be downloaded Linux: - Snap Store - Debian repositories Windows: - Chocolatey Furthermore, you can stay up-to-date with the project's development by following Austin on Twitter (https://twitter.com/AustinSampler). All the best, Gabriele Bugfixes - Fixed Python 3.8 support

Re: [ANN] Austin -- CPython frame stack sampler v1.0.0 is now available

2019-10-21 Thread Gabriele
Austin computes the deltas of resident memory between samples. That's because resident memory is the closest to the actual space occupied in physical memory. I hope this answers your question! Best, G On Mon, 21 Oct 2019, 22:37 Barry, wrote: > > > > On 20 Oct 2019, at 23:12

[ANN] Austin -- CPython frame stack sampler v1.0.0 is now available

2019-10-20 Thread Gabriele
ge details, as well as some examples of Austin in action. Details on how to contribute to Austin's development can be found at the bottom of the page. All the best, Gabriele What's New == - Added support for multi-process Python applications. - Added support for P

ANN: Austin -- CPython frame stack sampler 0.7.0

2019-07-30 Thread Gabriele
ge details, as well as some examples of Austin in action. Details on how to contribute to Austin's development can be found at the bottom of the page. I hope that you can find Austin useful! All the best, Gabriele -- https://mail.python.org/mailman/listinfo/python-list

Re: getting columns attributes in declarative style with sqlalchemy

2011-11-02 Thread Gabriele
do it: [col.name for col in Country.__table__.columns._all_cols] Thank you very much! This is exactly what I was looking for! Thanks! Gabriele -- http://mail.python.org/mailman/listinfo/python-list

getting columns attributes in declarative style with sqlalchemy

2011-10-28 Thread Gabriele
tter and logical to use my class Country... but I can't find the simple way for doing that... maybe it's very simple, but... Someone can help me? Thanks Gabriele -- http://mail.python.org/mailman/listinfo/python-list

ANN: emacs-for-python 0.2.1 released

2011-04-02 Thread Gabriele Lanaro
I'm pleased to announce the 0.2.1 release of emacs-for-python *What is emacs-for-python?* It's a collection of emacs extensions and settings to quickly setup the editor for python development. *Main features included:* - snippets - pymacs - ropemacs - auto-completion - on the fly

Re: Speed-up for loops

2010-09-04 Thread Gabriele Lanaro
Maybe for the simple sum you can just use the sum builtin: python -m timeit -s 'sum((10,)*1)' 1000 loops, best of 3: 0.0985 usec per loop About the loop in general it's a good practice to use list comprehension and generator expressions 2010/9/2 Michael Kreim > Hi, > > I was comparing

[ANN] Emacs For Python 0.1, collection of emacs extensions for python development

2010-07-02 Thread Gabriele Lanaro
ython Thank you for the attention! - Gabriele -- http://mail.python.org/mailman/listinfo/python-list

[ANN]: Emacs For Python 0.1, collection of emacs extensions for python development

2010-07-01 Thread Gabriele Lanaro
ython Thank you for the attention! - Gabriele -- http://mail.python.org/mailman/listinfo/python-list

Python distributing localization files

2010-06-17 Thread Gabriele Lanaro
Hi, I want to localize my application (a pygtk gui app), what's the best way to distribute and install localization files? I'm currently using `distribute` to package it. Any suggestion? -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread Gabriele Lanaro
The print function you're trying to use is for python 3 version only, If you want to keep reading the book, install python 3, else take a book that covers python 2.x syntax 2010/6/8 Deadly Dirk > I am a total beginner with Python. I am reading a book ("The Quick Python > Book", 2nd edition, by V

Re: GUIs - A Modest Proposal

2010-06-06 Thread Gabriele Lanaro
I'd really like to s/tkinter/WxWidgets/g, the multiplatformness is (almost) the same but wx looks infinitely better. IMHO a good intention is to best the API of wx. Anyway, GUI programmers usually choose the toolkit (often 3rd party) more appropriate for the situation, wether it is or not in the st

Re: Replace in large text file ?

2010-06-05 Thread Gabriele Lanaro
A module designed to do this is fileinput: http://docs.python.org/library/fileinput.html The approach is the same as the other except that it's in the standard library. 2010/6/5 Paul Rubin > Steve writes: > > Remove all comma's > > Replace all @ with comma's > > Save as a new file. > > The si

Re: Vote to Add Python Package "pubsub" to the Python Standard Library

2010-06-02 Thread Gabriele Lanaro
I definitvely vote for adding such a package to the stdlib (or at least a symilar publish/subscrive and observer implementation). It's useful in a wide range of programs. 2010/6/2 Carl Banks > On May 26, 4:26 am, Tom wrote: > > I vote for adding the Python package "pubsub" to the Python standa

Problems with relative imports and pep 366

2010-05-31 Thread Gabriele Lanaro
I've yet asked this question on SO, I'll copy the contents: I have a "canonical file structure" like that (I'm giving sensible names to ease the reading): mainpack/ __main__.py __init__.py - helpers/ __init__.py path.py - network/ __init__.py clientlib.py serv

Re: Working group for Python CPAN-equivalence?

2010-03-04 Thread John Gabriele
On Mar 3, 5:30 pm, Ben Finney wrote: > > Terry Reedy writes: > > > On 3/3/2010 12:05 PM, John Nagle wrote: > > > > CPAN enforces standard organization on packages. PyPi does not. > > This is, I think, something we don't need as much in Python; there is a > fundamental difference between Perl's de

Re: Working group for Python CPAN-equivalence?

2010-03-04 Thread John Gabriele
On Mar 3, 9:11 pm, John Bokma wrote: > Philip Semanchuk writes: > > > In other words, if I was a Perl user under Ubuntu would I use > > the pkg manager to add a Perl module, or CPAN, or would both work? > > Both would work, but I would make very sure to use a separate > installation directory for

Re: cpan for python?

2010-03-03 Thread John Gabriele
On Mar 2, 11:58 pm, John Bokma wrote: > Lie Ryan writes: > > On 03/03/2010 09:47 AM, TomF wrote: > > [..] > > >> There > >> is also a program called cpan, distributed with Perl.  It is used for > >> searching, downloading, installing and testing modules from the CPAN > >> repository.  It's far mo

Re: Working group for Python CPAN-equivalence?

2010-03-03 Thread John Gabriele
On Mar 3, 7:45 am, Olof Bjarnason wrote: > Hi everybody! > > The "Where is CPAN for Python?" question keeps popping up, with > answers ranging from "There is no CPAN for Python" and "We already > have CPAN for Python" (confusing). > > I'm wondering - is there any work being done identifying .. > >

Re: Few early questions on Class

2010-03-03 Thread John Gabriele
Hi Subhabrata, s/_init_/__init__/ -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes: nested structures and pointers

2010-01-18 Thread Gabriele Modena
On Mon, Jan 18, 2010 at 10:33 AM, Gabriele Modena wrote: >  1. what is the correct (pythonic) way to capture the prototype > definition of dev_callbacks and the relation between that structure > and dev_info? > >  2. is it correct to wrap "connect", "transceive&q

ctypes: nested structures and pointers

2010-01-18 Thread Gabriele Modena
), ("bCrc", c_bool), ("bPar", c_bool), ("ui8TxBits", c_ubyte) ] Passing the data structures to wrapper functions seem to work (the data is initialized), but the result is not what expected (I presume the problems are related to memory alignment due to wrong declarations), -- Gabriele -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting access to the process table from python?

2010-01-13 Thread John Gabriele
On Jan 13, 1:41 pm, Roy Smith wrote: > I need to get information about what processes are running on a box. > Right now, I'm interested in Solaris and Linux, but eventually > probably other systems too.  I need to know things like the pid, > command line, CPU time, when the process started running

Question about the "new" module

2006-12-29 Thread Gabriele *darkbard* Farina
something.do_something() when MyController.index is called an exception is raised "NoneType object has not attribute do_something". Why does it happen ? I have to load the module in different ways (but I'd like to force the reload every time the module is loaded) ? Gabriele -- http://mail.python.org/mailman/listinfo/python-list

Re: restricted environment

2006-07-20 Thread Gabriele *darkbard* Farina
faulkner wrote: > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496746 > When you think of modifying the interpreter, think of the compiler > module. This seems a good solutions. Does it works correctly and safely ? -- http://mail.python.org/mailman/listinfo/python-list

Re: restricted environment

2006-07-20 Thread Gabriele *darkbard* Farina
Paul Rubin wrote: > "Gabriele *darkbard* Farina" <[EMAIL PROTECTED]> writes: > > Using a separate interpreter could be a solution, but restarting any > > time the interpreter give me too much overhead and the application will > > work as slow as a CGI app e

Re: restricted environment

2006-07-19 Thread Gabriele *darkbard* Farina
The other problem is about limiting accessible resources ... Gabriele -- http://mail.python.org/mailman/listinfo/python-list

restricted environment

2006-07-19 Thread Gabriele *darkbard* Farina
to host different applications without need to copy the script for any application and with any risk that the scripts will ifluence in any way each other. Any help? Gabriele -- http://mail.python.org/mailman/listinfo/python-list

Thread specific singleton

2006-06-09 Thread Gabriele Farina
nt(), Specific().a) for x in range(4): thread.start_new_thread(test, (x, )) time.sleep(10) - using the thread module should be fine even if threads are created trought the threading module, right ? Thanks, Gabriele -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode digit to unicode string

2006-05-16 Thread Gabriele *darkbard* Farina
thank you, bye -- http://mail.python.org/mailman/listinfo/python-list

Unicode digit to unicode string

2006-05-16 Thread Gabriele *darkbard* Farina
Hi, I have a unicode digit stored into a variable ('0020' for example) and I'd like to retrieve the corrisponding unicode character based on the current encoding. How can i do that ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python C API question

2006-04-24 Thread Gabriele *darkbard* Farina
It seems to be what I need. Thank you! -- http://mail.python.org/mailman/listinfo/python-list

Python C API question

2006-04-24 Thread Gabriele *darkbard* Farina
ts using Python C API. thanks, Gabriele -- http://mail.python.org/mailman/listinfo/python-list

Re: Basic python help

2006-03-13 Thread John M. Gabriele
(Please don't top-post -- fixed) Kevin Feng wrote: > > > On 3/14/06 2:12 AM, in article [EMAIL PROTECTED], > "Gregor Horvath" <[EMAIL PROTECTED]> wrote: > > >>Kevin Feng schrieb: >> >> >>>More information about this error may be available in the server error log. >>> >>> >>> >>>Any suggestion

Re: Write a GUI for a python script?

2006-03-02 Thread John M. Gabriele
John M. Gabriele wrote: > > There are Python bindings to most GUI toolkits (GTK+, Qt, fltk, wxWindows, > and Tk come to mind). Whoops. Forgot fltk with the pyFLTK Python binding. fltk is a fast, light, toolkit that's written in C++ but (again, IIRC) feels more like C-with-classes

Re: Write a GUI for a python script?

2006-03-02 Thread John M. Gabriele
Glurt Wuntal wrote: > I am a newbie with Python. It's a great language, but I would like to be > able to present a simple gui menu for some of my scripts; something better > than using 'raw_input' prompts. > > Any recommendations for a program that will allow me to create the gui > screens? Someth

Re: Suggestions for documentation generation?

2006-03-02 Thread John M. Gabriele
Michael Ekstrand wrote: > > > Doxygen has recently added support for Python, [snip] Didn't know that. Thanks for the heads-up. :) -- (remove zeez if demunging email address) -- http://mail.python.org/mailman/listinfo/python-list

Re: Suggestions for documentation generation?

2006-03-01 Thread John M. Gabriele
kpd wrote: > Hello, > > I have written a C++ library that I've then wrapped with Pyrex. > Any suggestions to the best-in-class tool to create documentation for > the libraries? > > I would love to document things in one spot (could be the code) and > generate html and PDF from there. > > Doxygen

Re: C++ OpenGL rendering, wxPython GUI?

2006-02-28 Thread John M. Gabriele
[EMAIL PROTECTED] wrote: > [snip] Now I'm > looking to build a GUI in python with the rendering engine as an > integrated window. I will most likely use wxPython for the GUI and I > know it has support for adding an OpenGL canvas. > > You might look into PyFLTK (which I think was just recently

Re: Python Indentation Problems

2006-02-28 Thread John M. Gabriele
Renato wrote: > If you use vi (vim, I hope), then place something like this in your > .vimrc > > set ts=4 > set sw=4 > set expandtab > set ai Or, more verbose: set tabstop=4 set shiftwidth=4 set autoindent > There are a lot more tricks for python in vim (and plugins, and > helpers, and so on),

Re: looking for a simpe plotting module

2006-02-26 Thread John M. Gabriele
Henrique Ferreiro wrote: > > O Sáb, 25-02-2006 ás 15:01 -0800, MARK LEEDS escribiu: > >>i'm pretty much a python beginner so can anyone recommend a plooting >>package in python ( simple foating numbers >>that makes lines or dots with a yaxis and an an xaxis. i don't need >>fancy drawings ) that

Re: automatic html generation for documentation?

2006-02-26 Thread John M. Gabriele
Lonnie Princehouse wrote: > I plan on writing some documentation that will consist of blocks of > commentary with interspersed snippets of syntax-colored Python code and > the occaisional image. > > Does anyone know of a package that will take a high level description > of what I just described an

Re: pyFltk-1.1

2006-02-22 Thread John M. Gabriele
{fixed top-posting} george williams wrote: > > This is to announce the first official release of pyFltk-1.1, > > the Python bindings for the cross platform GUI toolkit fltk-1.1 > > By god this sounds interesting I wish I > knew what you are talking about fltk (pronounced "full-tick" as in "C

Re: new wooden door step - fixing and finishing

2006-02-22 Thread John M. Gabriele
Jeffrey Schwab wrote: > jkn wrote: > > >> I was wondering about treating it >> wilth liberal amounts of Teak Oil or similar... > > > Some people, when confronted with a problem, think "I know, I’ll use > Teak Oil." Now they have two problems. Quit it! You're making me laugh too much and it'

Re: editor for Python on Linux

2006-02-22 Thread John M. Gabriele
Mladen Adamovic wrote: > Hi! > > I wonder which editor or IDE you can recommend me for writing Python > programs. I tried with jEdit but it isn't perfect. > NEdit -- (remove zeez if demunging email address) -- http://mail.python.org/mailman/listinfo/python-list

Re: fairly large webapp: from Java to Python. experiences?

2006-02-04 Thread John M. Gabriele
Shalabh Chaturvedi wrote: > [EMAIL PROTECTED] wrote: > > A class-to-class and method-to-method rewrite will give some but likely > not the full benefit of moving to Python. A redesign might be necessary > - making it more 'Pythonic' in the process. In my experience, many cruft > classes that ex

Re: python's library support

2006-02-03 Thread John M. Gabriele
Sean wrote: > I am a newbie in python, and I have a feeling that python provides less > library support than perl www.cpan.org This seems a big discussion > topic. > > I want to know if there is extensive algorithm library support in > python. I know there is a pretty neat module in perl to imple

Re: cannot install scipy

2006-02-03 Thread John M. Gabriele
nitro wrote: > Hi, > > I am using a Debian system. I installed NumPy and everything works > well. When I try to install SciPy, I get the following error. Any help > would be appreciated. > > === > [EMAIL PROTECTED]:~/scipy/scipy-0.4.4$ python setup.py install > import core -> failed: > /usr/lib/p

Re: fairly large webapp: from Java to Python. experiences?

2006-02-03 Thread John M. Gabriele
[EMAIL PROTECTED] wrote: > To replace a large framework you will probably need a framework. Well, I'm sure not all web frameworks are created equal, however, CherryPy does bill itself as a "web framework". > Take a > look at http://www.djangoproject.com or http://www.turbogears.org. They > both u

Re: Server side newbie

2006-01-29 Thread John M. Gabriele
swisscheese wrote: > I have a simple python desktop app with several edit controls and a > couple of buttons. It just does some math. What's the simplest way to > make it a server-side app so visitors to my site can run the app via > their browser? > The *simplest* way is to make it into a CGI sc

Re: VB to Python migration

2006-01-28 Thread John M. Gabriele
Josh wrote: > We have a program written in VB6 (over 100,000 lines of code and 230 UI > screens) that we want to get out of VB and into a better language. The > program is over 10 years old and has already been ported from VB3 to > VB6, a job which took over two years. We would like to port it t

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-21 Thread John M. Gabriele
Luiz Geron wrote: > I don't have experience on this, but I think that you can make the > script return the image "contents" directly to the img tag, without > passing it to a img file, so you can use something like this: > > > > wich saves some processing and I/O. > I like this method. You ha

Re: web crawling.

2006-01-19 Thread John M. Gabriele
Alex Martelli wrote: > S Borg <[EMAIL PROTECTED]> wrote: > > >> Hello, >> >> I have been writing very simple Python programs that parse HTML and >>such, mainly just to get >>a better feel for the language. Here is my question: If I parsed an >>HTML page into all of the image >>files listed on tha

Re: instance attributes not inherited?

2006-01-15 Thread John M. Gabriele
Dennis Lee Bieber wrote: > On Sun, 15 Jan 2006 20:50:59 -0500, "John M. Gabriele" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > >>Sorry -- that question I wrote looks a little incomplete: what I meant >>to ask was, how does i

Re: instance attributes not inherited?

2006-01-15 Thread John M. Gabriele
Dan Sommers wrote: > [snip] > >>How does it help that Parent.__init__ gets called? That call simply >>would create a temporary Parent object, right? I don't see how it >>should help (even though it *does* indeed work). > > > The __init__ method is an *initializer*, *not* a constructor. By the >

Re: instance attributes not inherited?

2006-01-15 Thread John M. Gabriele
John M. Gabriele wrote: > David Hirschfield wrote: > >> Nothing's wrong with python's oop inheritance, you just need to know >> that the parent class' __init__ is not automatically called from a >> subclass' __init__. Just change your code to do th

Re: instance attributes not inherited?

2006-01-15 Thread John M. Gabriele
David Hirschfield wrote: > Nothing's wrong with python's oop inheritance, you just need to know > that the parent class' __init__ is not automatically called from a > subclass' __init__. Just change your code to do that step, and you'll be > fine: > > class Parent( object ): > def __init__(

instance attributes not inherited?

2006-01-15 Thread John M. Gabriele
The following short program fails: --- code #!/usr/bin/python class Parent( object ): def __init__( self ): self.x = 9 print "Inside Parent.__init__()" class Child( Parent ): def __init__( self ): print "Inside C

Re: OOP: method overriding works in mysterious ways?

2006-01-02 Thread John M. Gabriele
André wrote: > John M. Gabriele wrote: > > Since Child has no advice() method, it inherits the one for Parent. > Thus, Child can be thought of as being defined as follows: > > . class Child( Parent ): > . > . def speak( self ): > . print '\t\tChild.s

Re: OOP: method overriding works in mysterious ways?

2006-01-02 Thread John M. Gabriele
Dustan wrote: > [snip] That is, Parent does have its > own critique method, not a reference to Grand_parent.critique(). Interesting. "It has its own" critique method? Hm. Not quite sure what that means exactly... Anyhow, I wasn't suggesting that Parent had a reference to Grand_parent.critique()

Re: OOP: method overriding works in mysterious ways?

2006-01-02 Thread John M. Gabriele
Scott David Daniels wrote: > Dustan wrote: > >> From my experience, the methods are passed >> down, not referred to from the parent. That is, Parent does have its >> own critique method, not a reference to Grand_parent.critique(). > > This is typical of static binding as (for example) seen

OOP: method overriding works in mysterious ways?

2006-01-02 Thread John M. Gabriele
Consider the following: #!/usr/bin/python #- class Grand_parent( object ): def speak( self ): print 'Grand_parent.speak()' self.advise() def advise( self ): print 'Grand_parent.advise()'

Adding methods to an object

2005-10-13 Thread Gabriele *darkbard* Farina
error ... unbound method ... tnx, gabriele -- http://mail.python.org/mailman/listinfo/python-list

Re: cgi, reusing html. common problem?

2005-09-01 Thread John M. Gabriele
On Thu, 01 Sep 2005 20:57:56 -0500, Steve Holden wrote: > John M. Gabriele wrote: >> [snip] >> >> Is that how it's usually done? If not, what *is* the >> usual way of handling this? >> > There are a million ways to solve this particular problem, despite

Re: cgi, reusing html. common problem?

2005-09-01 Thread John M. Gabriele
On Thu, 01 Sep 2005 19:10:14 +0200, Walter Dörwald wrote: > John M. Gabriele wrote: > >> I'm putting together a small site using Python and cgi. >> >> (I'm pretty new to this, but I've worked a little with >> JSP/servlets/Java before.) >> >

Re: cgi, reusing html. common problem?

2005-09-01 Thread John M. Gabriele
On Thu, 01 Sep 2005 13:12:14 +0100, Fuzzyman wrote: > On Thu, 01 Sep 2005 03:10:07 -0400, "John M. Gabriele" > <[EMAIL PROTECTED]> wrote: > >>I'm putting together a small site using Python and cgi. >> >>(I'm pretty new to this, but

Re: cgi, reusing html. common problem?

2005-09-01 Thread John M. Gabriele
On Thu, 01 Sep 2005 09:20:51 +0200, Diez B. Roggisch wrote: > John M. Gabriele wrote: >> I'm putting together a small site using Python and cgi. >> >> (I'm pretty new to this, but I've worked a little with >> JSP/servlets/Java before.) >> >&g

cgi, reusing html. common problem?

2005-09-01 Thread John M. Gabriele
I'm putting together a small site using Python and cgi. (I'm pretty new to this, but I've worked a little with JSP/servlets/Java before.) Almost all pages on the site will share some common (and static) html, however, they'll also have dynamic aspects. I'm guessing that the common way to build si

Re: ANN: python-constraint 1.0

2005-07-07 Thread gabriele renzi
Gustavo Niemeyer ha scritto: > > Overview > > > **python-constraint** [1]_ is a Python module offering solvers for > Constraint Solving Problems (CSPs) over finite domains in simple > and pure Python. CSP is class of problems which may be represented > in terms of variables (`a`,

Re: Which kid's beginners programming - Python or Forth?

2005-06-29 Thread gabriele renzi
BORT ha scritto: > All, > > The Forth-Python pull was heading to a conclusion just like "Tastes > Great" vs. "Less Filling" or Ford-Chevy. However, friendly folks at > comp.lang.forth pointed me to Amazon.com and _Mindstorms: Children, > Computers, and Powerful Ideas_ > by Seymour Papert. The bo

compiling python code

2005-05-26 Thread Gabriele *Darkbard* Farina
Hi, I have a python file inside a zip file. I'd like to compile it and add the resulting .pyc file into the zip. I tryed reading the source and compiling it using compile(), but I don't know how to write .pyc file. Can someone give me some help? bye, gabriele -- http://mail.

zipimport

2005-05-04 Thread Gabriele *Darkbard* Farina
Hi, I have a zip file structured like this: mymodule.zip\ module1.py submodule\ submodule1.py I tried to load submodule.submodule1 using this pice of code: import zipimport z = zipimport.zipimporter("mymodule.zip") z.load_module("submodule.submodule1") but it does not work (load_mod

Re: anonymous function objects?

2005-04-28 Thread gabriele renzi
Uwe Mayer ha scritto: Friday 29 April 2005 00:06 am Paul Rubin wrote: Closest you can come is: f = lambda: sys.stdout.write("hello world\n") Ah. :)) Why does the "print" statement return a syntax error here? ^ this is the reason :) You can't have statements into an

Extracting Font Outline informations

2005-04-04 Thread Gabriele *Darkbard* Farina
Hi, there is a Python library that makes me able to extract outline informations from font files? I'd like to manage TrueType and FreeType fonts ... I searched for som wrappers, but I didn't find anything ... bye -- http://mail.python.org/mailman/listinfo/python-list

Re: Like overloading __init__(), but how?

2005-02-23 Thread John M. Gabriele
On Wed, 23 Feb 2005 21:32:52 -0700, Steven Bethard wrote: > [snip] > Another possibility is to play around with *args: > > class Vector3d(object): > def __init__(self, *args): > if not args: > # constructor with no arguments > elif len(args) == 6: >

Like overloading __init__(), but how?

2005-02-23 Thread John M. Gabriele
I know that Python doesn't do method overloading like C++ and Java do, but how am I supposed to do something like this: - incorrect #!/usr/bin/python class Point3d: pass class Vector3d: """A vector in three-dimensional cartesian space."""

difference between class methods and instance methods

2005-02-16 Thread John M. Gabriele
I've done some C++ and Java in the past, and have recently learned a fair amount of Python. One thing I still really don't get though is the difference between class methods and instance methods. I guess I'll try to narrow it down to a few specific questions, but any further input offered on the su

Re: Is Python as capable as Perl for sysadmin work?

2005-02-08 Thread John M. Gabriele
Nick Vargish wrote: "John M. Gabriele" <[EMAIL PROTECTED]> writes: At some point during some dingy job in the back boiler room of Unix, would you find yourself saying, "geez, I'd wish I started this with Perl -- Python just isn't cutting it." ? Sometimes I

Re: Is Python as capable as Perl for sysadmin work?

2005-02-08 Thread John M. Gabriele
Aahz wrote: [snip] Anyway. Have you ever noticed how shell scripts keep getting longer? Yup. Ever notice how it gets harder to figure out what the heck any given script's doing? Yup. Well, that's where Python helps you out compared to Perl. Python can be a bit clumsier than Perl for dirt-simple

Re: Is Python as capable as Perl for sysadmin work?

2005-02-07 Thread John M. Gabriele
On Mon, 07 Feb 2005 20:13:30 -0800, beliavsky wrote: > > [snip] > > I'm a Windows user, not a Unix sysadmin, but I've noticed that > Cameron Laird has written several articles on Python for system > administration in Unix Review and Sys Admin magazine, for example > http://www.unixreview.com/doc

Is Python as capable as Perl for sysadmin work?

2005-02-07 Thread John M. Gabriele
I recently posted this sort of question to the c.l.p.m but didn't get much of a response. I know a little Perl and a little Python, but master neither at the moment. I see that Python is a general purpose OO programming language that finds use among some system administrators, but my guess is that

Re: a new Perl/Python a day

2005-01-10 Thread gabriele renzi
Bob Smith ha scritto: Scott Bryce wrote: Xah Lee wrote: frustrated constantly by its inanities and incompetences.) I don't see what this has to do with Perl. You're joking, right? please consider that the message you all are asking are crossposted to comp.lang.perl.misc and comp.lang.python, avo

Re: Python evolution: Unease

2005-01-06 Thread gabriele renzi
Alex Martelli ha scritto: But Alex is right; Envisage does hold a lot of promise. The very concept of an architecture based on a spare skeleton and copious plugins is intrinsically excellent, and I think that by now eclipse has proven it's also practically viable for real-world powerful IDEs/plat

Re: Cookbook 2nd ed Credits (was Re: The Industry choice)

2005-01-05 Thread gabriele renzi
Jacek Generowicz ha scritto: [EMAIL PROTECTED] (Alex Martelli) writes: ...but each still gets ONE free copy...!-) Who gets Luther Blissett's copy ? :-) And are all the Luther Blissetts the same Luther Blisset ? no, some of them are Wu Ming http://www.wumingfoundation.com/ (from http://www.lutherb

Re: Continuations Based Web Framework - Seaside.

2005-01-02 Thread gabriele renzi
Mike Thompson ha scritto: 'Seaside' is a Smalltalk framework for what might be called "Modal Web Development" or "Synchronous Web Programming", or even "Continuation Based Web Apps". http://www.beta4.com/seaside2/ Very sexy it looks too. And it seems to be generating a lot of interest - Ru

Re: Complementary language?

2004-12-26 Thread gabriele renzi
Alex Martelli ha scritto: Nolo contendere (not having looked much into Alice yet), but are there stand-alone didactical materials for Alice as there are for Oz? > It > seemed to me that the available materials for Alice basically take SML > somewhat for granted, while Oz does come with tutorials

Re: Complementary language?

2004-12-26 Thread gabriele renzi
Robin Becker ha scritto: Alex Martelli wrote: . If you're looking for SERIOUS multiparadigmaticity, I think Oz may be best -- (the book's authors critique the vagueness of the "paradigm" concept, and prefer "model", but that's much the same thing

Re: Optional Static Typing

2004-12-25 Thread gabriele renzi
Mike Meyer ha scritto: "John Roth" <[EMAIL PROTECTED]> writes: <[EMAIL PROTECTED]> wrote in message This may sound a bit cynical, but most real uber-programmers have either Lisp or Smalltalk in their backgrounds, and frequently both one. Neither of those languages have static typing, and they simp