Re: Inquiry regarding the name of subprocess.Popen class

2008-09-02 Thread Nicola Musatti
. It seems that it would be more accurate to just name the class Subprocess, can anyone explain why this is not the case? The Python class is a generalization of the standard Posix function of (almost) the same name: http://opengroup.org/onlinepubs/007908775/xsh/popen.html Cheers, Nicola Musatti

Re: GUI Programming by hand not code with Python Code

2008-07-09 Thread Nicola Musatti
the latest XRCed version requires you to annotate the xrc in order to obtain the same effect which is not only tedious, but as far as I can tell it also makes it impossible to round trip between XRCed and wxFormBuilder. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Help need with subprocess communicate

2008-06-06 Thread Nicola Musatti
(wxPython in my case), but you can't really expect that to work. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Help need with subprocess communicate

2008-06-04 Thread Nicola Musatti
://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440554 Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Code correctness, and testing strategies

2008-06-03 Thread Nicola Musatti
and doesn't enjoy the incremental aspect of automated testing. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Do you know of a much simpler way of writing a program that writes a program?

2008-05-02 Thread Nicola Musatti
On May 2, 3:50 pm, mcse jung [EMAIL PROTECTED] wrote: Here is asample program that writes a program and then executes it. Do you knowof a much simpler way of writing a program that writes a program? Use a templating engine, such as Cheetah: http://www.cheetahtemplate.org/ Cheers, Nicola

Re: Java or C++?

2008-04-24 Thread Nicola Musatti
and boost::shared_ptr you can go an extremely long way without giving pointers any special considerations. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: subprocess module is sorely deficient?

2008-04-22 Thread Nicola Musatti
currently writing a mencoder GUI in Tkinter and need a full fledged process handler to control the command line and to display the progress in a text-box) I suggest you check out this: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440554 Cheers, Nicola Musatti -- http://mail.python.org

Re: Article of interest: Python pros/cons for the enterprise

2008-02-26 Thread Nicola Musatti
On Feb 26, 12:58 pm, Paul Boddie [EMAIL PROTECTED] wrote: On 25 Feb, 19:44, Nicola Musatti [EMAIL PROTECTED] wrote: Witness the kind of libraries/framework that used to and still come with some commercial C+ + implementation, and even some free/open source ones; Boost, ACE

Re: Article of interest: Python pros/cons for the enterprise

2008-02-26 Thread Nicola Musatti
. This is about C Traps and Pitfalls. Although it shows its age, it's still worth reading. Unfortunately from its price you'd think it was handwritten. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Article of interest: Python pros/cons for the enterprise

2008-02-26 Thread Nicola Musatti
complicated if you need more control. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Article of interest: Python pros/cons for the enterprise

2008-02-26 Thread Nicola Musatti
? ;-) Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Article of interest: Python pros/cons for the enterprise

2008-02-25 Thread Nicola Musatti
On Feb 24, 1:01 am, Paul Rubin http://[EMAIL PROTECTED] wrote: Nicola Musatti [EMAIL PROTECTED] writes: a = [f(x) + g(y) for x,y in izip(m1, m2) if h(x,y).frob() == 7] [...] There you replace one line of code with 40+ lines to get around the absence of GC. Sounds bug-prone among

Re: Article of interest: Python pros/cons for the enterprise

2008-02-25 Thread Nicola Musatti
On Feb 24, 9:14 pm, Larry Bugbee [EMAIL PROTECTED] wrote: On Feb 21, 10:22 am, Nicola Musatti [EMAIL PROTECTED] wrote: On Feb 21, 6:31 pm, Paul Boddie [EMAIL PROTECTED] wrote: The main reason why C++ has declined in usage is because almost everything of practical value is optional

Re: Article of interest: Python pros/cons for the enterprise

2008-02-25 Thread Nicola Musatti
On Feb 25, 3:17 pm, Carl Banks [EMAIL PROTECTED] wrote: On Feb 25, 8:29 am, Nicola Musatti [EMAIL PROTECTED] wrote: On Feb 24, 9:14 pm, Larry Bugbee [EMAIL PROTECTED] wrote: Corporate marketing, and corporate attention in general, saw to it that Java was well equipped with libraries

Re: Article of interest: Python pros/cons for the enterprise

2008-02-23 Thread Nicola Musatti
a quite small `map` -- what about big ones. With mutable objects!? True, and in a serious application I'd probably pass the map by reference into the function. Still, it's rather likely that these copies are optimized away by the compiler; this is what VC++ does, for instance. Cheers, Nicola

Re: Article of interest: Python pros/cons for the enterprise

2008-02-23 Thread Nicola Musatti
Paul Rubin wrote: Nicola Musatti [EMAIL PROTECTED] writes: a = [f(x) + g(y) for x,y in izip(m1, m2) if h(x,y).frob() == 7] [...] There you replace one line of code with 40+ lines to get around the absence of GC. Sounds bug-prone among other things. Come on, you didn't define f, g, izip, h

Re: Article of interest: Python pros/cons for the enterprise

2008-02-22 Thread Nicola Musatti
Paul Boddie wrote: On 21 Feb, 19:22, Nicola Musatti [EMAIL PROTECTED] wrote: [...] The main reason why C++ has declined in usage is because it never got the kind of corporate marketing enjoyed by Java and C#. What? C++ was practically the favoured language for serious applications

Re: Article of interest: Python pros/cons for the enterprise

2008-02-22 Thread Nicola Musatti
On Feb 22, 9:03 am, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: Nicola Musatti a écrit : [...] So, yes, your big company is likely to be safer with newbie C++ programmers than with Python newbie programmers. Sorry but I don't buy your arguments. I suspect nobody seriously does

Re: Article of interest: Python pros/cons for the enterprise

2008-02-22 Thread Nicola Musatti
On Feb 22, 12:24 am, Carl Banks [EMAIL PROTECTED] wrote: On Feb 21, 1:22 pm, Nicola Musatti [EMAIL PROTECTED] wrote: There are other downsides to garbage collection, as the fact that it makes it harder to implement the Resource Acquisition Is Initialization idiom, due to the lack

Re: Article of interest: Python pros/cons for the enterprise

2008-02-22 Thread Nicola Musatti
is never taken to be of another type, e.g. by keeping around pointers to the object that occupied its memory before it was reallocated. I believe that this degree of type safety is worth having, which is why I favour the addition of optional GC to C++. Cheers, Nicola Musatti -- http://mail.python.org

Re: Article of interest: Python pros/cons for the enterprise

2008-02-22 Thread Nicola Musatti
On Feb 22, 12:09 pm, Paul Rubin http://[EMAIL PROTECTED] wrote: Nicola Musatti [EMAIL PROTECTED] writes: The real point about garbage collection is that it's about the only way to ensure that an object of one type is never taken to be of another type, e.g. by keeping around pointers

Re: Article of interest: Python pros/cons for the enterprise

2008-02-22 Thread Nicola Musatti
On Feb 22, 12:07 pm, Paul Rubin http://[EMAIL PROTECTED] wrote: Nicola Musatti [EMAIL PROTECTED] writes: In C++ memory is just another resource which you can handle just like any other one, possibly using RAII. Ok, I'll bite. Here's a straightforward Python expression: a = [f(x) + g(y

Re: Article of interest: Python pros/cons for the enterprise

2008-02-22 Thread Nicola Musatti
On Feb 22, 3:25 pm, Roy Smith [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Nicola Musatti [EMAIL PROTECTED] wrote: Yet I'm convinced that even such partial guarantee is worth having. Partial guarantees are like being a little bit pregnant. Yes, and I'm sure your tests cover all

Re: Article of interest: Python pros/cons for the enterprise

2008-02-22 Thread Nicola Musatti
On Feb 22, 5:13 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Fri, 22 Feb 2008 04:48:28 -0800, Nicola Musatti wrote: [...] As you can see the standard library takes care of all memory management. Aaah, that's much nicer and easier to understand than the list comprehension

Re: Article of interest: Python pros/cons for the enterprise

2008-02-21 Thread Nicola Musatti
, yes, your big company is likely to be safer with newbie C++ programmers than with Python newbie programmers. Had we been speaking of productivity... but we weren't, were we? Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Article of interest: Python pros/cons for the enterprise

2008-02-21 Thread Nicola Musatti
Please do not reply personally to newsgroup postings, thank you. On Thu, Feb 21, 2008 at 4:00 PM, Tim Chase [EMAIL PROTECTED] wrote: [...] -- Nicola.Musatti at gmail dot com Home: http://nicola.musatti.googlepages.com/home Blog: http://wthwdik.wordpress.com/ --

Re: Article of interest: Python pros/cons for the enterprise

2008-02-21 Thread Nicola Musatti
On Feb 21, 3:46 pm, Ryan Ginstrom [EMAIL PROTECTED] wrote: On Behalf Of Nicola Musatti Newbies learn, and the fundamental C++ lessons are usually learnt quite easily. Unless we're talking about idiots, that is, but in this case at least C++ is likely to make their deficiencies evident

Re: Article of interest: Python pros/cons for the enterprise

2008-02-21 Thread Nicola Musatti
comparing apples with oranges. Assembly language is pretty easy to learn too. But is it a productive use of a programmer's time? Only if it's 1975. It depends on the task at hand. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Article of interest: Python pros/cons for the enterprise

2008-02-21 Thread Nicola Musatti
On Feb 21, 5:14 pm, Steve Holden [EMAIL PROTECTED] wrote: Ryan Ginstrom wrote: On Behalf Of Nicola Musatti Newbies learn, and the fundamental C++ lessons are usually learnt quite easily. Unless we're talking about idiots, that is, but in this case at least C++ is likely to make

Re: understaning self

2008-02-21 Thread Nicola Musatti
and makes some more advanced, very effective techniques possible. Hope this helps. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Article of interest: Python pros/cons for the enterprise

2008-02-21 Thread Nicola Musatti
dialogues for submission to uninterested developers who insisted on using C++ because everything else is slow. Things change. Boehm himself is working for the inclusion of - optional - garbage collection in the C++ standard. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo

Re: Who's to blame?

2008-01-04 Thread Nicola Musatti
behaviour with Yes/No buttons as with OK/Cancel ones. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Who's to blame?

2008-01-04 Thread Nicola Musatti
On Jan 4, 3:12 pm, [EMAIL PROTECTED] wrote: [...] I have sub-classed wx.Dialog to do my own custom modal dialogs as well. You can use sizers and put whatever widgets you want onto it that way. Just make sure that when you create the Yes/No buttons, you give them the wx.ID_YES or wx.ID_NO ids,

Who's to blame?

2008-01-03 Thread Nicola Musatti
not missing some obvious mistake of mine, that is. Thanks for your help. Cheers, Nicola Musatti # sbs_test.py import wx import sbs_test_xrc class MainFrame(sbs_test_xrc.xrcMainFrame): def __init__(self, parent): sbs_test_xrc.xrcMainFrame.__init__(self, parent) self.button.Bind

Re: The best platform and editor for Python

2007-07-05 Thread Nicola Musatti
in convincing you that you really need the features. On the other hand open source projects tend to lack features nobody enjoys implementing. Cheers, Nicola Musatti P.S. Maybe I should add a ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: The best platform and editor for Python

2007-07-05 Thread Nicola Musatti
On Jul 5, 4:21 pm, Roy Smith [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Nicola Musatti [EMAIL PROTECTED] wrote: On Jul 5, 1:23 pm, Gregor Horvath [EMAIL PROTECTED] wrote: [...] That's a property of open source projects. Features nobody really needs are not implemented

Re: c++ for python programmers

2007-02-14 Thread Nicola Musatti
++ Is Evil is just plain stupid. Moreover, C might be a valid competitor for small projects and it probably covers most Pythonistas' needs for closeness to the metal, but it just doesn't scale. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: c++ for python programmers

2007-02-14 Thread Nicola Musatti
variables may lead to hanging to memory that is really not needed anymore. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: c++ for python programmers

2007-02-13 Thread Nicola Musatti
Thinking in C++, but I haven't read it: http://www.mindview.net/ Books/TICPP/ThinkingInCPP2e.html Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Lead Software Engineer

2006-10-20 Thread Nicola Musatti
data if they lowered their expectations for the programmer position. They would get even more data if they specified where to reply... Unless this is an incredibly lame attempt to increase those sites' traffic. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Grammar parsing

2006-08-03 Thread Nicola Musatti
Paolo Pantaleo wrote: Hi, How can I write a pareser for a certain gramamr? I found PyPy that does it, is thare any other tool? Maybe something built-in the python interpreter? Check out Dave Beazley's Ply: http://www.dabeaz.com/ply/ . Cheers, Nicola Musatti -- http://mail.python.org

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Nicola Musatti
? Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Standalone Python functions in UML?

2006-04-05 Thread Nicola Musatti
suited to represent the shift to a meta level that is involved when you start creating types at execution time. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Standalone Python functions in UML?

2006-04-05 Thread Nicola Musatti
and Lisp programming communities... Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: New python.org website

2006-03-09 Thread Nicola Musatti
the Ruby on Rails logo, which is first rate. The Java logo has the problem that it is not universal: in Italy for instance the name Java has no connection with coffee. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: New python.org website

2006-03-07 Thread Nicola Musatti
to the design team. Sigh! Another of these sites that all look the same, with two screenfuls of info on the home page that are going to be in the way of every returning user... Not to mention the dull color scheme and the unremarkable logo. I can't say I'm impressed. Cheers, Nicola Musatti -- http

Re: Too Many if Statements?

2006-02-08 Thread Nicola Musatti
consider writing a parser for your configuration file. If you use a parser generator it's not that difficult. Moreover a lexical analyzer could be enough if your syntax is simple. I found Dave Beazley's PLY reasonably easy to use: http://www.dabeaz.com/ply/ Cheers, Nicola Musatti -- http

Re: OO conventions

2006-02-06 Thread Nicola Musatti
I V wrote: Nicola Musatti wrote: [...] Factory functions (or classes) are there to solve this problem and still allow a clean separation of concerns. Although instances of Klass are created uninitialized, they only live in this state within their factory and only reach trhe outside world

Re: OO conventions

2006-02-06 Thread Nicola Musatti
Fredrik Lundh wrote: Nicola Musatti wrote: [...] What is important to me is to keep your get_initial_data() function outside Klass if it's task is non trivial, e.g. it has to interact with the OS or a DB. why ? Separating the internal logic of an application from its interactions

Re: OO conventions

2006-02-03 Thread Nicola Musatti
live in this state within their factory and only reach trhe outside world only when they are in a usable state. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: excellent book on information theory

2006-01-19 Thread Nicola Musatti
, right? Probably not, if Paul's American. For example, here in the states we have Python Parks, where you go to look at scenery from inside your python. They're actually one and the same thing: http://v8rx7.com/python_by_fibercan.htm Cheers, Nicola Musatti P.S. The way Google can find anything

Re: Spiritual Programming (OT, but Python-inspired)

2006-01-04 Thread Nicola Musatti
feel his presence about the house. Yet all these examples appear to me to be better explained as instances of a form of physiological or psichological inertia than as indications of the existence of some form of meta reality. More-platonic-than-pythonic-ly y'rs, Nicola Musatti -- http

Re: Herds of cats (was: Guido at Google)

2005-12-23 Thread Nicola Musatti
Cameron Laird wrote: In article [EMAIL PROTECTED], Nicola Musatti [EMAIL PROTECTED] wrote: . Ah, the closed source days! Back then you could just buy the company and be done with it. Now you have to chase developers one by one all over the world

Re: Guido at Google

2005-12-22 Thread Nicola Musatti
developers one by one all over the world... ;-) Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list

Re: Guido at Google

2005-12-21 Thread Nicola Musatti
become collegues also with Matt Austern, formerly of Apple, and Danny Thorpe, formerly of Borland. I guess we mere mortals don't stand a chance of being hired, but if the trend continues there are going to be a lot of very interesting positions opening everywhere else :-) Cheers, Nicola Musatti

Re: PYTHON LOOSING FOR JAVA???????

2005-11-09 Thread Nicola Musatti
innovative solutions, when they can just use Google to search teh Interweb for source code which Google has stolen from the rightful owners??? *wink* The obvious answer is send your CV to Alex... *wink*, *wink* If-you-can't-lick-'em-join-'em-ly y'rs, Nicola Musatti -- http://mail.python.org