Christophe <[EMAIL PROTECTED]> wrote:
> Kilian A. Foth a écrit :
> > I just found this amazing video puzzle game written with the pygame
> > library, which promises to be infinite fun - but I can't get it to
> > decode any video file I own, except the game's own example .mpg. All I
> > have is lots
Hi to all!
I have a little problem. I want to develop an application in c/c++ that
creates a window with gtk+ accordinly to the information on a xml file.
The funcions that are called for manage the event should be written in
python. I don't know how to do it, can you help me? Is it possible?
Thank
Terry Hancock <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
>
bz2.decompress(eval('"' + user + '"'))
>
> Sorry about that. I was trying the other as an alternative,
> but in fact, it doesn't work. So ignore that.
Excellent! Thanks.
--
http://mail.python.org/mailman/listinfo/pytho
Mattia Adami wrote:
> Hi to all!
> I have a little problem. I want to develop an application in c/c++ that
> creates a window with gtk+ accordinly to the information on a xml file.
> The funcions that are called for manage the event should be written in
> python. I don't know how to do it, can you
I have a Connection class that exposes members for the hostname, etc.
ie.
class Connection:
def __init__(...):
self.server = server
is there any way to document this "server" member? The only way I know
of right now is to expose it as a property and add the doc string to
that def
Dennis Lee Bieber <[EMAIL PROTECTED]> writes:
> Ah, but in the way of your code -- it is not "your car"... It is the
> car you supplied to someone "hundreds of miles away"... And they are
> perfectly free to open the hood... tamper with the engine programming, etc.
I don't understand what yo
Thanks a lot, very clear and usefull anser!
Yes, I know PyGTK and wxPython, but I want to develop a plugin for
another application that requires c++. I guess that embedding is the
appropriate way.
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for all the helpful postings! A clearer specification for
my project is that the CALLER speaks directly to list_member. And
enters, thru GUI checkbox(s), answering: r_u_ok?; Send chuch member to
visit list_member; call Social Worker, help needed, etc. An important
element is to verify
Paul Rubin schrieb:
>
> If you don't want the compiler to make sure your private instance
> variables stay private, then don't declare them that way. You're the
> one asking for less flexibility.
I want to declare them as privat, but want to give the flexibilty to
access them at the users own
Gregor Horvath <[EMAIL PROTECTED]> writes:
> > If you don't want the compiler to make sure your private instance
> > variables stay private, then don't declare them that way. You're the
> > one asking for less flexibility.
>
> I want to declare them as private, but want to give the flexibilty to
I've written a program to illustrate a few... syntactic issues with
Python. It's 158 <80 character lines long.
About how short should a program be to be postable to this newsgroup -
in other words, at what length should you stick it on a web page and
post a link?
Peter
--
A frightful hobgoblin
Fredrik> byte code is portable between platforms, but it's not portable
Fredrik> between different major Python releases (2.4.2 can run 2.4.1
Fredrik> bytecodes, but not 2.3 bytecodes, etc).
There is one slight problem with transporting .pyc files. The generated
.pyc file records the
Peter> About how short should a program be to be postable to this
Peter> newsgroup - in other words, at what length should you stick it on
Peter> a web page and post a link?
158 lines is probably not a killer. However, consider what misbehaving news
and mail readers are likely to do
One of my friends has recently taken up Python, and was griping a bit
about the language (it's too "prescriptive" for his tastes). In
particular, he didn't like the way that Python expressions were a bit
crippled. So I delved a bit into the language, and found some sources
of syntactic sugar that I
On Wed, 28 Sep 2005 08:14:50 -0500
Chris Gonnerman wrote:
> There are two philosophies about programming:
>
> -- Make it hard to do wrong.
>
> -- Make it easy to do right.
>
> What you are promoting is the first philosophy: Tie the programmer's
> hands so he can't do wrong. Python for the most
[Peter]
> http://www.pick.ucam.org/~ptc24/yvfc.html
Beautiful! Greenspun's Tenth Rule[1] performed before your very eyes! (Not
quite, because you started with Python so you were already half way there.
And yours probably isn't buggy. 8-)
[1] http://en.wikipedia.org/wiki/Greenspun's_Tenth_Rule
[EMAIL PROTECTED] writes:
>
> Peter> About how short should a program be to be postable to this
> Peter> newsgroup - in other words, at what length should you stick it on
> Peter> a web page and post a link?
>
> 158 lines is probably not a killer. However, consider what misbehaving n
I am new to programming and need some guidance on the development of the following application. The proposed application will display two pdf documents simultaneously to be viewed and simple navigation will be facilitated (i.e. turning pages).
Furthermore, the pdf documents must be linked to
Paul Rubin schrieb:
>
> You could have a "friend" declaration like in C++, if you want to let
> some class see the private instance variables of another class.
Everything is said on this topic. There are two ligitimate solutions to
the problem of private instance variables. Its a matter of tas
Gregor Horvath <[EMAIL PROTECTED]> writes:
> Everything is said on this topic. There are two ligitimate solutions
> to the problem of private instance variables. Its a matter of taste,
> and mine is the pythonic one.
The Pythonic solution is to have both solutions available, and Python
in fact use
Peter Corbett <[EMAIL PROTECTED]> writes:
> http://www.pick.ucam.org/~ptc24/yvfc.html
>
Madness! I love it.
--
http://mail.python.org/mailman/listinfo/python-list
Markus Wankus wrote:
> Hi All,
>
> Does anyone know of any good Zope3 examples?
Ask the Zope mailing-list. Zope is a world by itself, and is usually not
discussed here.
BTW, Zope3 is a really really new thing, so you won't find much existing
apps. When it's said that it offers 'the best from P
[EMAIL PROTECTED] writes:
>Hey there pythoneers
>i have another question about time, specifically, the mxDateTime
>module.
>i have been able to get a RelativeDateTimeDiff between two times,
>it gives me a difference between two DateTimes in the form of +3days
>+2hours etc...
>so, if i have a dat
[EMAIL PROTECTED] wrote:
> On Wed, 28 Sep 2005 08:14:50 -0500
> Chris Gonnerman wrote:
>
>
>>There are two philosophies about programming:
>>
>>-- Make it hard to do wrong.
>>
>>-- Make it easy to do right.
>>
>>What you are promoting is the first philosophy: Tie the programmer's
>>hands so he ca
Paul Rubin wrote:
> Gregor Horvath <[EMAIL PROTECTED]> writes:
>
>>>If you don't want the compiler to make sure your private instance
>>>variables stay private, then don't declare them that way. You're the
>>>one asking for less flexibility.
>>
>>I want to declare them as private, but want to giv
jackie chang wrote:
> Dear Python Gurus:
>
>
>
> I am a very new Python user, would really appreciate your help.
>
>
>
> I used Python to write a web form for users to enter. The underlined
> database is Oracle. One validation needs to enforce to eliminate
> duplicates entries. For exampl
Peter Corbett wrote:
> I've written a program to illustrate a few... syntactic issues with
> Python. It's 158 <80 character lines long.
>
> About how short should a program be to be postable to this newsgroup -
> in other words, at what length should you stick it on a web page and
> post a link?
Hal Vaughan wrote:
> I'm self taught and most of what I've been working on for the past several
> years has been entirely in Perl and Java. I've noticed that I can code
> about 5 times faster in Perl than Java, in part because I feel like
> whenever I want to do something in Java, I have to create
Peter Hansen wrote:
> Does it really have to be 158 lines to demonstrate these few issues? I
> for one almost never take the time to dig through 158 lines of someone
> else's code, partly on the assumption that almost any interesting issue
> can be covered (using Python, specifically) in about a
bruno modulix wrote:
> Markus Wankus wrote:
>> Hi All,
>>
>> Does anyone know of any good Zope3 examples?
>
> Ask the Zope mailing-list. Zope is a world by itself, and is usually not
> discussed here.
>
> BTW, Zope3 is a really really new thing, so you won't find much existing
> apps. When it's
[Peter]
> Does it really have to be 158 lines to demonstrate these few issues?
I think you missed the other Peter's second post, where he points to his
program: http://www.pick.ucam.org/~ptc24/yvfc.html
I didn't read every one of his 158 lines, but his code is pure poetry, or
possibly triple-dis
Hello Lasse,
> I have a Connection class that exposes members for the hostname, etc.
>
> ie.
>
> class Connection:
> def __init__(...):
> self.server = server
>
> is there any way to document this "server" member? The only way I know
> of right now is to expose it as a property a
Jeff Schwab wrote:
> ChiTownBob wrote:
>
>> Perl just sucks, as all good Python hackers know!
>
>
> I disagree. Perl has saved my butt more times than I care to count.
> Python certainly has its advantages, but I won't be giving up Perl any
> time soon.
Are the two necessarily in conflict?
Peter Corbett wrote:
> One of my friends has recently taken up Python, and was griping a bit
> about the language (it's too "prescriptive" for his tastes). In
> particular, he didn't like the way that Python expressions were a bit
> crippled. So I delved a bit into the language, and found some sour
Peter Hansen <[EMAIL PROTECTED]> writes:
> Are the two necessarily in conflict? Perl can save your butt and _still_
> suck!
If it pays the bill... :-)
--
Jorge Godoy <[EMAIL PROTECTED]>
--
http://mail.python.org/mailman/listinfo/python-list
Richie Hindle wrote:
>
> [Peter]
>> Does it really have to be 158 lines to demonstrate these few issues?
>
> I think you missed the other Peter's second post, where he points to
> his program: http://www.pick.ucam.org/~ptc24/yvfc.html
>
> I didn't read every one of his 158 lines, but his code i
cool, thanks
-shawn
--
http://mail.python.org/mailman/listinfo/python-list
[Peter]
> http://www.pick.ucam.org/~ptc24/yvfc.html
[Jeff]
> Yuma Valley Agricultural Center?
> Yaak Valley Forest Council?
I went through the same process. My guess is "Yes, Very F'ing Clever."
Peter?
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
I used the examples from the "Extending and Embedding the Python
Interpreter" tutorial and this works. I can use my types with python.
But I do not know how to creat my own Python variable in an python
extending c-code. What will I have to creat this and return it to my
python programm?
--
http
Hello,
a discussion began on python-dev about this. It began by a bug report,
but is shifted and it now belongs to this discussion group.
The problem I find with augmented assignment is it's too complex, it's
badly explained, it's error-prone. And most of all, I don't see any
use-case for it !
T
Paul Rubin wrote:
> If changing the way a class uses its own private variables breaks an
> application
> because another class was using the private variable unexpectedly,
> then that's bad, regardless of whether the other class's author was
> notified or not. It's better to let the compiler auto
Pierre Barbier de Reuille wrote:
> So, what I would suggest is to drop the user-defined augmented
> assignment and to ensure this equivalence :
>
> a X= b <=> a = a X b
>
> with 'X' begin one of the operators.
It can be done, but it's unnecessary for mutable objects like
sets or lists. A new ob
On Wed, 28 Sep 2005 22:07:56 -0700, Paul Rubin wrote:
>> One that is in other languages not even possible. A clear disadvantage.
>> Python gives me power and does not take it away like the others.
>
> Huh? If my car has a "feature" that lets someone blow it to
> smithereens from hundreds of mile
Richie Hindle wrote:
> [Peter]
>
>>Does it really have to be 158 lines to demonstrate these few issues?
>
>
> I think you missed the other Peter's second post, where he points to his
> program: http://www.pick.ucam.org/~ptc24/yvfc.html
>
> I didn't read every one of his 158 lines, but his code
Thx, but my Problem is to get my own type before.
If I have a C-Type, I know how tu return it from the Python extention,
but how will it work with my own type?
I expect something like the following:
static PyObject* wrap_MyFunction (PyObject* self, PyObject* args)
{
:
MyPyType *myType = MyT
My company resells windows machines, and we install our software, and
do a bunch of customization to make sure that all the desktop settings
are optimal... we adjust the screen resolution, color depth, and
referesh rate, remove shadows from menus and the mouse pointer, set
the power management o
Hello everybody,
I've tryed to use an interprocess communication via
SendMessage on Windows.
Unfortunately, nothing goes on
#
#! /usr/bin/env python
import win32api, win32ui, win32con
import struct, array
"""
typedef struct
Reinhold Birkenfeld a écrit :
> Pierre Barbier de Reuille wrote:
>
>
>>So, what I would suggest is to drop the user-defined augmented
>>assignment and to ensure this equivalence :
>>
>>a X= b <=> a = a X b
>>
>>with 'X' begin one of the operators.
>
>
> It can be done, but it's unnecessary for
I have been following this thread with great interest.
I have been coding in C++ since the late 80's and Java since the late 90's.
I do use private in these languages, with accessors to get at internal
data.
This has become an ingrained idiom for me. When I create a python
object, it is natu
Building a fully-fledged, custom Python object in C isn't a trivial
task; it isn't a hard one either, but it isn't trivial. :) Basically, as
far as I know, you'll need to create a PyTypeObject structure, populate
it accordingly, and then call a few setup functions on it...
// -
Hi all,
I am discovering Boost.Python, and weird exceptions in my dummy extension
modules lead me to think there is a potential problem with the
getting_started2 sample :
if you replace the first lines
>>> hi = hello('California')
>>> hi.greet()
'Hello from California'
by
>>> hi = hello('A lon
One more thing! :)
The _new method probably isn't what you want to modify the actual interl
C object; the initproc method actually gives you a pointer to it as it's
first object... (it's the tp_init member in the PyTypeObject sturcture.)
On Thu, 2005-09-29 at 15:59 +0200, elho wrote:
> Thx, but m
I don't have experience with scipting this... but I know that
resolution for example is stored in registry, and _that_ is what is
loaded when you boot.
I think most, if not all, of your changes will be found in the registry
(for permenance).
Also, have you checked out PyWin32? It's just a big pr
Richie Hindle <[EMAIL PROTECTED]> writes:
>
> [Peter]
> > http://www.pick.ucam.org/~ptc24/yvfc.html
>
> [Jeff]
> > Yuma Valley Agricultural Center?
> > Yaak Valley Forest Council?
>
> I went through the same process. My guess is "Yes, Very F'ing Clever."
> Peter?
You're all thinking about it t
A Moronicity of Guido van Rossum
Xah Lee, 200509
On Guido van Rossum's website:
http://www.artima.com/weblogs/viewpost.jsp?thread=98196
dated 20050826, he muses with the idea that he would like to remove
lambda, reduce(), filter() and map() constructs in a future version
Python 3000.
Guido wrot
On Fri, 30 Sep 2005 00:16:02 +1000
Steven D'Aprano wrote:
> Say you have written a class, with a private variable. I decide that I
> need access to that variable, for reasons you never foresaw.
What if the access to that variable was forbidden for reasons you never
foresaw? What if the class auth
On Thursday 29 September 2005 03:57, Paul Rubin wrote:
> I can't think of a single time that I've ever seen a legitimate use
> of name mangling to reach from one class into another in a Python
> application (I don't count something like a debugger). If you're got
> some concrete examples I wouldn'
Paul Rubin wrote:
> Dennis Lee Bieber <[EMAIL PROTECTED]> writes:
>
>> Ah, but in the way of your code -- it is not "your car"... It is the
>>car you supplied to someone "hundreds of miles away"... And they are
>>perfectly free to open the hood... tamper with the engine programming, etc.
>
>
On Thursday 29 September 2005 09:08, Michael Schneider wrote:
> Design Intent:
>
> 1) mark an object as dirty in a setter (anytime the object is
> changed, the dirty flag is set without requiring a user to set the
> dirty flag
2 ways: wrap every attribute that is to be set in a property object (in
On Wed, 28 Sep 2005 16:36:03 -0700, Paul Rubin wrote:
> Steven D'Aprano <[EMAIL PROTECTED]> writes:
>> No, but that is precisely why Python's semi-private variables are
>> usually better. Names like _X and class.__X are warnings to the developer
>> "use these at your own risk", without preventing
On Thursday 29 September 2005 07:43, Peter Hansen wrote:
> Are the two necessarily in conflict? Perl can save your butt and
> _still_ suck!
Hear, hear!
Although I think it's the vi user in me that makes me like Perl...
- Michael
--
http://mail.python.org/mailman/listinfo/python-list
On 9/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> What if the access to that variable was forbidden for reasons you never
> foresaw? What if the class author decide to remove the variable in the next
> version of the class, because it's not an interface, but only a part of the
> class impl
On Thursday 29 September 2005 04:53, Peter Corbett wrote:
> One of my friends has recently taken up Python, and was griping a bit
> about the language (it's too "prescriptive" for his tastes). In
> particular, he didn't like the way that Python expressions were a bit
> crippled. So I delved a bit i
On Thursday 29 September 2005 16:24, Xah Lee wrote:
> A Moronicity of Guido van Rossum
>
> Xah Lee, 200509
>
Assuming you want to reach people to convince them your position is right, why
don't you try that in proper language? "moron" occured 7 times in your not
too long text, that doesn't let y
Richie Hindle a écrit :
> [Peter]
>
>>http://www.pick.ucam.org/~ptc24/yvfc.html
>
>
> [Jeff]
>
>>Yuma Valley Agricultural Center?
>>Yaak Valley Forest Council?
>
>
> I went through the same process. My guess is "Yes, Very F'ing Clever."
> Peter?
>
print ''.join(map(lambda x: chrord(x)
fraca7 wrote:
> Richie Hindle a écrit :
>
>> [Peter]
>>
>>> http://www.pick.ucam.org/~ptc24/yvfc.html
>>
>>
>>
>> [Jeff]
>>
>>> Yuma Valley Agricultural Center?
>>> Yaak Valley Forest Council?
>>
>>
>>
>> I went through the same process. My guess is "Yes, Very F'ing Clever."
>> Peter?
>>
>
> pri
"Crypthonic" could be the exact word...On 29 Sep 2005 15:19:11 +0100, Peter Corbett <[EMAIL PROTECTED]
> wrote:Richie Hindle <[EMAIL PROTECTED]
> writes:>> [Peter]> > http://www.pick.ucam.org/~ptc24/yvfc.html>> [Jeff]> > Yuma Valley Agricultural Center?
> > Yaak Valley Forest Council?>> I went thro
Steve Holden <[EMAIL PROTECTED]> writes:
>> I think you missed the other Peter's second post, where he points to
>> his
>> program: http://www.pick.ucam.org/~ptc24/yvfc.html
>> I didn't read every one of his 158 lines, but his code is pure
>> poetry, or
>> possibly triple-distilled evil, depending
In article <[EMAIL PROTECTED]>,
Jeff Schwab <[EMAIL PROTECTED]> wrote:
>
>Sure, multiple machines are probably the right approach for the OP; I
>didn't mean to disagree with that. I just don't think they are "the
>only practical way for a multi-process application to scale beyond a few
>proces
[Peter]
> http://www.pick.ucam.org/~ptc24/yvfc.html
[fraca7]
> print ''.join(map(lambda x: chrord(x) - ord('a')) + 13) % 26) +
> ord('a')), 'yvfc'))
Ah! Or more easily, Edit / Apply ROT13. Thanks!
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Michael Schneider wrote:
> 1) mark an object as dirty in a setter (anytime the object is changed,
> the dirty flag is set without requiring a user to set the dirty flag
properties.
> 2) enforce value constraints (even if just during debugging)
properties. (when you no longer need to enforce th
Steve Holden wrote:
> To avoid naming conflicts, Python provides a mechanism (name mangling)
> which pretty much guarantees that your names won't conflict with anybody
> else's, *even if you subclass a class whose methods use the same name*.
as long as you don't cheat, that is:
# your code
clas
[EMAIL PROTECTED] wrote:
> What if the access to that variable was forbidden for reasons you never
> foresaw? What if the class author decide to remove the variable in the next
> version of the class, because it's not an interface, but only a part of the
> class implementation?
you mean when he b
"Jim" <[EMAIL PROTECTED]> writes:
> My company resells windows machines, and we install our software, and
> do a bunch of customization to make sure that all the desktop settings
> are optimal... we adjust the screen resolution, color depth, and
> referesh rate, remove shadows from menus and the
Michael Goettsche wrote:
> Assuming you want to reach people to convince them your position is right,
> why
> don't you try that in proper language? "moron" occured 7 times in your not
> too long text, that doesn't let you look like a tech moron or a math moron,
> but just like a moron.
Actua
"g.franzkowiak" <[EMAIL PROTECTED]> writes:
> Hello everybody,
>
> I've tryed to use an interprocess communication via
> SendMessage on Windows.
> Unfortunately, nothing goes on
>
> #
> #! /usr/bin/env python
>
> import win32a
[EMAIL PROTECTED] wrote:
> On Fri, 30 Sep 2005 00:16:02 +1000
> Steven D'Aprano wrote:
>
>>Say you have written a class, with a private variable. I decide that I
>>need access to that variable, for reasons you never foresaw.
>
> What if the access to that variable was forbidden for reasons you ne
fraca7 wrote:
> Richie Hindle a écrit :
>
>> [Peter]
>>
>>> http://www.pick.ucam.org/~ptc24/yvfc.html
>>
>>
>>
>> [Jeff]
>>
>>> Yuma Valley Agricultural Center?
>>> Yaak Valley Forest Council?
>>
>>
>>
>> I went through the same process. My guess is "Yes, Very F'ing Clever."
>> Peter?
>>
>
> pri
Michael Goettsche <[EMAIL PROTECTED]> writes:
> On Thursday 29 September 2005 16:24, Xah Lee wrote:
> > A Moronicity of Guido van Rossum
> >
> > Xah Lee, 200509
> >
>
> Assuming you want to reach people to convince them your position is right,
> why
> don't you try that in proper language? "mor
"fraca7" wrote:
> print ''.join(map(lambda x: chrord(x) - ord('a')) + 13) % 26) +
> ord('a')), 'yvfc'))
that's spelled
print "yvfc".decode("rot-13")
or, if you prefer,
print "yvfc".encode("rot-13")
, in contemporary python.
--
http://mail.python.org/mailman/listinfo/python
Hi,
I am getting infos on the current process, under linux, by reading the
file pointed by:
'/proc/%d/status' % os.getpid()
huh :(
There's probably another way to do it on win32 but,
i was wondering if there's a way or an existing extension out there
to do make it work on any platform.
Regard
On Thu, 29 Sep 2005 18:29:36 +0400, en.karpachov wrote:
> On Fri, 30 Sep 2005 00:16:02 +1000
> Steven D'Aprano wrote:
>
>> Say you have written a class, with a private variable. I decide that I
>> need access to that variable, for reasons you never foresaw.
>
> What if the access to that variabl
Hi folks,
I've written a Python chess module that does the following.
* Reads / Writes PGN files
* Write FEN files
* Validates moves
* Lists legal moves
* Detects check / mate / stalemate / 50 move rule / threefold repetition
Its still rough around the edges and not fully tested. I'll eventualy
Steve Holden schreef:
>There should be one-- and preferably only one --obvious way to do it.
>Although that way may not be obvious at first unless you're Dutch.
>
>Note that word "obvious": nobody says you *have* to do things the
>obvious way.
>
> Q: Are you Dutch or something?
>
**Encapsulation** is one of the 3 basic characteristics of OOP.When I firstly turned to python, it was my first script language.That time I found that python has not real private properties,I felt weird. If an oop language can't encapsulate something I want,
is it really an oop language? I asked my
On 9/29/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> "fraca7" wrote:
>
> > print ''.join(map(lambda x: chrord(x) - ord('a')) + 13) % 26) +
> > ord('a')), 'yvfc'))
>
> that's spelled
>
> print "yvfc".decode("rot-13")
>
> or, if you prefer,
>
> print "yvfc".encode("rot-13")
>
> , in co
Fredrik Lundh wrote:
> Steve Holden wrote:
>
>
>>To avoid naming conflicts, Python provides a mechanism (name mangling)
>>which pretty much guarantees that your names won't conflict with anybody
>>else's, *even if you subclass a class whose methods use the same name*.
>
>
> as long as you don't
On 9/29/05, could ildg <[EMAIL PROTECTED]> wrote:
> **Encapsulation** is one of the 3 basic characteristics of OOP.
Pyhton has encapsulation. On objetcts members are encapsulated in a
namespace all of its own. You can't change these by accident.
> Every programmer is just a human being, but not
Hi !
1.
I have a code. I want to convert from wx.DatePickerCtrl.Value to
mx.DateTime.
But I don't know, how to do it simply.
2.
I need to increment this date by 6 days.
How to do it ? (I search for a simple way, like Delphi-s d2:=d1+6)
The code section is:
from mx import DateTime as m
> ___
> class a:
> i=0
> def setI(iii):
> if self.i!=iii:
> self.i=iii
> #do some extra works here, e.g, notify the observers that
> #this property is changed, or do some logging things.
> __
Error correction time!
> >>> #here's how the crazy hackers subclassing your code can break your super
> ... #special private variable!
> ...
That should be "using your code" not "subclassing your code". D'oh!
Peace
Bill Mill
bill.mill at gmail.com
--
http://mail.python.org/mailman/listinfo/pyth
Thanks Thomas! That did it.
I can now set the wallpaper, mouse shadows, menu shadows, and I can
disable the screensaver.
Does anyone know how I can adjust the power options? I want to make
sure any hibernate or standby options are set to Never.
Thanks,
-Jim
--
http://mail.python.org/mailman/
At 09:10 AM 9/28/2005 -0700, Micah Elliott wrote:
>I agree that proof of value is necessary. Without a spec though it
>will be hard to get people to know about a convention/toolset, so it's
>a bit of a chicken-egg problem -- I can't have a pep until the tools are
>in use, but the tools won't be us
Very good~On 9/29/05, Will McGugan <[EMAIL PROTECTED]> wrote:
Hi folks,I've written a Python chess module that does the following.* Reads / Writes PGN files* Write FEN files* Validates moves* Lists legal moves* Detects check / mate / stalemate / 50 move rule / threefold repetition
Its still rough a
>> **Encapsulation** is one of the 3 basic characteristics of OOP.
This isn't an encapsulation issue. From the first hit on Google for the
word:
In programming, the process of combining elements to create a new
entity. For example, a procedure is a type of encapsulation because it
Xah Lee wrote:
> ...What the fuck is the former?
> ...What the fuck would anyone to
> ...]”, is rather inane, as you can now see.
>
> ...What the fuck does it mean...
> ...you begin to write things like Java...
Can you please alter the tone of your voice?
Gerrit.
--
Temperature in Luleå, Norrb
Thank you skip.Encapsulation or information hiding or whatever, that's what I'm looking forward to.On 9/30/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:>> **Encapsulation** is one of the 3 basic characteristics of OOP.
This isn't an encapsulation issue. From the first hit on Google for the
could ildg wrote:
> Encapsulation or information hiding or whatever
You've got to be very careful if you don't know where you're looking
for, because you might not find it.
--
http://mail.python.org/mailman/listinfo/python-list
I'm a CS student, and I've been following this thread with great
interest, because we've been discussing the virtues of private
visibility ("information hiding") in one of my courses recently. Does
anyone know of academic papers that make the case against "private" in
languages?
Greg
--
http://
On 9/29/05, Phillip J. Eby <[EMAIL PROTECTED]> wrote:
> My point about the lack of motivation was that there was little reason
> shown why this should be a PEP instead of either:
>
> 1. Documentation for a specific tool, or group of tools
> 2. A specific project's process documentation
That's what
1 - 100 of 231 matches
Mail list logo