. 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
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
(wxPython in my case),
but you can't really expect that to work.
Cheers,
Nicola Musatti
--
http://mail.python.org/mailman/listinfo/python-list
://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440554
Cheers,
Nicola Musatti
--
http://mail.python.org/mailman/listinfo/python-list
and doesn't enjoy the incremental aspect of
automated testing.
Cheers,
Nicola Musatti
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
. 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
complicated if you need more control.
Cheers,
Nicola Musatti
--
http://mail.python.org/mailman/listinfo/python-list
? ;-)
Cheers,
Nicola Musatti
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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/
--
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
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
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
and makes some more advanced, very effective techniques possible.
Hope this helps.
Cheers,
Nicola Musatti
--
http://mail.python.org/mailman/listinfo/python-list
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
behaviour with Yes/No buttons as with OK/Cancel ones.
Cheers,
Nicola Musatti
--
http://mail.python.org/mailman/listinfo/python-list
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,
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
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
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
++ 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
variables may
lead to hanging to memory that is really not needed anymore.
Cheers,
Nicola Musatti
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
?
Cheers,
Nicola Musatti
--
http://mail.python.org/mailman/listinfo/python-list
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
and
Lisp programming communities...
Cheers,
Nicola Musatti
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
, 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
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
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
developers one by one all
over the world... ;-)
Cheers,
Nicola Musatti
--
http://mail.python.org/mailman/listinfo/python-list
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
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
57 matches
Mail list logo