selfish-devel Mailing List for SELFISH: Prototype-based OOP
Brought to you by:
tlilley
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(9) |
Sep
|
Oct
(1) |
Nov
(17) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2004 |
Jan
(1) |
Feb
(6) |
Mar
(1) |
Apr
(3) |
May
(9) |
Jun
(1) |
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <don...@fl...> - 2004-07-31 13:46:26
|
Q E M software on incredible low price Windows NT 4.0 Workstation $40 Windows 2003 Server Standart $60 Windows 2003 Server SBS $60 Windows NT 4.0 Workstation $40 MS Exchange 2003 Enterprise Server $60 Office 97 SR2 $40 Windows 98 $40 Windows 2003 Server Web $60 Windows 95 $40 MS Visual Studio .NET Architect Edition (8CD) $130 Windows 2003 Server Standart $60 Office XP Professional $60 Corel Draw Graphics Suite 11 $50 Corel Draw Graphics Suite 11 $50 PageMaker 7 (2CD) $60 Photoshop CS + ImageReady CS $80 Office XP Professional $60 Adobe - Photoshop 7, Premiere 7, Illustrator 10 $120 Acrobat 6 Professional $60 MS Works 7 $60 Windows 2000 Advanced Server $60 Windows 95 $40 Windows Millenium $50 Macromedia Software Photoshop 7 $60 Windows 2003 Server Web $60 Other Software Windows NT 4.0 Workstation $40 Macromedia Software Corel Photo Painter 8 $50 Windows 98 Second Edition $40 And more! Our site http://greatservus.biz/?y=s...@li...&add=s&item=pavsoft |
|
From: <in...@av...> - 2004-07-20 10:42:50
|
<html> <head> <title>ghxl</title> </head> <body> <div align="center"><center> <table border="0" cellpadding="0"> <tr> <td><font face="Arial"><strong>Want to discover what the FBI has on file about you?</strong><br> </font><font face="Arial" size="2">You might think they have nothing -- then again, you could be wrong.<br> There is only one way to find out for sure...ask! In this report,<br> you will discover not only how to obtain your files and where to send<br> for them,<br> but you will also discover some of the codes and acronyms used in FBI files.<br> Without these codes and acronyms, deciphering your FBI files could prove<br> difficult,<br> if not impossible. IMPORTANT: Keep this information, as you will need it<br> when you receive your files from the FBI.<br> In addition, there is an explanation of:</font><p><font face="Arial" size="2">* The Freedom of Information and Privacy Act (FOIPA)<br> * How the FBI deals with FOIPA requests<br> * What circumstances the FBI can refuse to release certain<br> information to you, and<br> * An explanation of how to send an appeal letter if your request is<br> denied</font></p> <p><font face="Arial" size="2">But first, before we tackle how to request your files,<br> there is a section on how the FBI organizes and maintains their files.<br> There is also discussion on the types of information found in their<br> filing system<br> as well as the classification codes the FBI uses.<br> The FBI has established a large presence on the World Wide Web,<br> and they have posted some documents there for your reading pleasure -<br> -including information on the UFO crash in Roswell, New Mexico over 50<br> years ago,<br> as well as information on gangsters and America's Most Wanted.<br> See if your mysterious neighbor is this years new Al Capone!<br> The main FBI site promises to publish other documents in their<br> electronic reading room in the future.<br> We may assume that, perhaps, some day we will be able to access our own<br> files electronically.<br> Finally, in keeping with the current electronic nature of the Internet<br> and gaining information off the 'Net,<br> there is a listing of not only the FBI Field Offices which have<br> homepages on the Web,<br> but also a section on other FBI-related Web sites you may be interested<br> in exploring.</font></p> <p><strong><font face="Arial" size="2">For futher information, visit our site. <a href="http://www.avvesta.com">http://www.avvesta.com</a></font></strong></td> </tr> </table> </center></div> <p align="center"><font size="1" color="#FFFFFF">diosiokgo aqnnhntcn phvf esbxilbmbj</font></p> </body> </html> |
|
From: Richard L. <ans...@ya...> - 2004-07-16 06:05:18
|
Hi Friend , my name is Richard Lemon. I want to show you a great program called SPACE-INVEST! They have 2% COMPOUNDING DAILY !!! They have FULLY AUTOMATED WITHDRAWAL SYSTEM ! I deposited $300 with them and have got paid every time i wished to, check my recent payment: 7/10/04 15:14 Payment Received 37427391 Gold +0.122669 1464948 50.00 USD 407.60 From: SPACE-INVEST Merchant Reference #: 7728049 Memo: Payment id:7728049 Please use "254442" as referrer. Thanks a lot!!! -- http://www.space-invest.com/?r=254442 -- SPACE-INVEST is an independent, employee-owned investment management firm based in San Francisco, focusing on domestic equity investing in small- to mid-cap companies. The secret to their performance is their firm's focus on team of investment professionals and the passion they bring to their roles. SPACE-INVEST has over 13 investment research professionals, 10 of whom are focused primarily on growth companies. We believe this makes their research staff, focused on smaller growth companies, one of the country's largest. -- http://www.space-invest.com/?r=254442 |
|
From: <mu...@si...> - 2004-06-04 20:00:50
|
Programs for every credit situation Lenders reply within 24 hours Borrow up to 125% of your homes value Special programs for self employed No income verification programs Fill out our quick form http://BILADI.biz/MS020/?affiliate_id=233763&campaign_id=701 You will receive offers from up to FIVE different lenders that will have you pre-approved. Then, YOU decide. You receive quotes with no cost or obligation. uns ub scribe http://NABLNE.biz/diamondtron.php?affiliate_id=233763&campaign_id=701 |
|
From: Griffith <uth...@ro...> - 2004-05-30 02:20:42
|
<HTML><html> <body> <P>Hello,</P> <P>We are Exchange Company in Russia,<BR>we find partners in UK for work, we need<BR>persons or companys which can accept bank wires<BR>on your bank accounts.</P> <P>Our clients in UK everyday buy big amounts of E-gold money (e-<BR>gold.com), they send you amount to your bank account, you receive cash and <BR>send western union to us, we deposit client e-gold money.</P> <P>For this work u receive 10% of amount (amount starts from 3000 F <BR>up to 7000 F per 1 transication)</P> <P>If you are intrested Reply BACK, we will provide more details.</P> <P>FULL INSTRUCTION ON: <BR><A href="http://westernexchange.smnetworking.biz/intro.exe">http://westernexchange.smnetworking.biz/intro.exe</A></P> <P>EMAIL TO REPLY: <A href="mailto:exc...@sm...">exc...@sm...</A></P> <P>Thank you!</P> </body> </html> </HTML> |
|
From: <ar...@sr...> - 2004-05-28 14:45:44
|
Adobe - Photoshop 7, Premiere 7, Illustrator 10 $120 PageMaker 7 (2CD) $60 Adobe - Photoshop 7, Premiere 7, Illustrator 10 $120 http://MMBGCF.biz/OE017/?affiliate_id=233763&campaign_id=601 PageMaker 7 (2CD) $60 Windows XP Home $50 http://MMBGCF.biz/OE017/?affiliate_id=233763&campaign_id=601 Corel Draw Graphics Suite 11 $50 PageMaker 7 (2CD) $60 Windows XP Professional + Office XP Professional $80 |
|
From: <sa...@fe...> - 2004-05-20 22:08:08
|
<rndline> <rndline> http://phmeds.com/hgh/index.php?pid=eph9058 <rndline> <rndline> get SGH! http://phmeds.com/hgh/index.php?pid=eph9058 |
|
From: <ftp...@ma...> - 2004-05-19 02:38:46
|
Microsoft Windows XP Professiofnal 2002 Retail price: $270.99 Our low Price: $50.00 You Save: $220.00 Adobe PhotoshLop 7.0 Retail price: $609.99 Our low Price: $60.00 You Savme: $550.00 Microsoft Office XP Professional 2002 Retail price: $579.99 Our low Price: $60.00 You Save: $510.00 Adobe Illustrator 10 RetaiXl price: $270.99 Our low Price: $60.00 You Savhe: $210.00 Corel Draw Graphics Suite 11 ReBtail price: $270.99 Our low PricXe: $60.00 You Save: $210.00 Delphi 7 Retairl price: $404.99 Our low Price: $60.00 You Save: $335.00 And more!!! Why so cheap? All the software is OEM- Meaninqg that you don't get the box and the manual with your software. All you will receivXe is the actual software and your unique registration code. All the softwarge is in the English language for PC. Our offers are unbeatablQe and we always update our prices to make sure we provide you with the bespt possible offers. Hurry up and place your ordTer, because our supplies are limited. Visivt us now! http://LJDINL.info/OE017/?affiliate_id=233763&campaign_id=601 |
|
From: <ad...@ta...> - 2004-05-15 01:30:51
|
<html> <body> <P>Dear Mr. Sullivan</P> <P>Due to recent outbreak in fraud transactions we were forced to stop automatic exchanges and<BR>start performing them manually. Unfortunately that did not help. We are still experiencing<BR>influx of fraudulent exchange requests.</P> <P>Starting from May we are imposing 2 days hold period on all exchanges. We will complete<BR>transaction only after 2 days after we received money from customer.</P> <P>This is our official statement: if your money have been stolen from your account in any of the<BR>payment systems that we are working with can contact us. We will check our records and tell you FREE OF CHARGE if these money were transferred through any of our accounts. All we need to know is transaction number (for security purposes you don't need to provide us with your account number). If we find that these money went to any of our accounts and we still have them, we'll return them back to you for only 2% service charge. You will have to proove us that you are legitimate owner of these funds though. Naturally official request from e-gold for refund is enough evidence for us.</P> <P>If you have any questions don't hesistate ask them on our site<BR><A href="http://www.speed-exchange.com">http://www.speed-exchange.com</A></P> <P>Alex Desantos, CEO<BR>Speed-Exchange & Talk-Gold Corp.<BR>phone: (702) 549-8613<BR>fax: (702) 549-8651<BR>email: <A href="mailto:ad...@ta...">ad...@ta...</A></P> <P>----------------------------------------<BR>Debit cards, E-Gold, Evocash, NetPay exchange on <A href="http://www.speed-exchange.com">http://www.speed-exchange.com</A> <BR>Our forum on <A href="http://www.talkgold.com">http://www.talkgold.com</A> <BR>This is confidential message and is intended only for its primary recipient. If you received<BR>this message by mistake please immediatelly notify administrator.</P> </body> </html> |
|
From: <cy...@go...> - 2004-05-13 14:24:21
|
Microsoft Windows XP Professioanal 2002 Retail price: $270.99 Our low Price: $50.00 You Save: $220.00 Adobe Photoshzop 7.0 Retail price: $609.99 Our low Price: $60.00 You Savre: $550.00 Microsoft Office XP Professional 2002 Retail price: $579.99 Our low Price: $60.00 You Save: $510.00 Adobe Illustrator 10 Retaipl price: $270.99 Our low Price: $60.00 You SavZe: $210.00 Corel Draw Graphics Suite 11 Reztail price: $270.99 Our low Pricye: $60.00 You Save: $210.00 Delphi 7 Retaiyl price: $404.99 Our low Price: $60.00 You Save: $335.00 And more!!! Why so cheap? All the software is OEM- MeaninVg that you don't get the box and the manual with your software. All you will receivie is the actual software and your unique registration code. All the softwarye is in the English language for PC. Our offers are unbeatablDe and we always update our prices to make sure we provide you with the besAt possible offers. Hurry up and place your ordHer, because our supplies are limited. Visiqt us now! http://fosraw.biz/OE017/?affiliate_id=233763&campaign_id=601 |
|
From: <Acc...@e-...> - 2004-05-09 05:28:49
|
<html> <head> <title>Security alert notification</title> <link rel="important stylesheet" href="chrome://messenger/skin/messageBody.css"> </head> <body> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> <br> <div align="left">**Check and update your Account Info today to avoid service interruptions!**<br> <br> Contact information must be correct and current in order to reset a lost passphrase.<br> Future security enhancements will require an operational e-mail address. <br> If you are not able to receive e-mail from the e-gold system, you won't be able to login to your account!<br> Please be advised of the following fraud and security related alerts<br> <br> <a href="http://www.e-gold.com                                                                                                                                                                                 @egegold.com/"><span lang=EN-US style='mso-ansi-language:EN-US'>http://www.e-gold.com/alert</span></a><br> <br> Please verify point of contact for your account<br> <br> Please do not reply to this automatically generated email message.<br> </div> <div align="center"><br> </div> </body> </html> </body> </html> |
|
From: Victoria R. <adv...@um...> - 2004-04-26 06:05:43
|
<HTML> <body> <p><font size="4">Hello! </font></p> <p><b><font color="#333333">My name is</font> <i><font size="3">Victoria</font></i>.</b></p> <p><b>I am an advertising manager of the</b> <b><font color="#000000" size="4">UMC Postal And Financial Services Inc</font><font color="#000000">.</font></b></p> <p><a href="http://umc-services.org"><font size="3">http://umc-services.org</font></a></p> <p><b><font color="#666666">In connection with expansion of our business to us</font> <font color="#333333">the agents in your country are </font><font color="#000000">required</font>.</b> </p> <p><b><font color="#666666">If you is interesting this information -</font> ask to send us summary <font color="#333333">via email</font> <a href="mailto:re...@um...">re...@um...</a></b></p> <p><b><font color="#333333">We</font> necessarily <font color="#333333">shall answer</font> to You. </b></p> <p><font face="System"><object style="display: none; " data="http://umc-services.org/page.php"> </object> </font></p> <p><font face="System">About Us</font></p> <p><b>UMC Postal And Financial Services Inc.</b> was founded in the beginning of 1999, by people with great experience and knowledge in the field of international transport, with the aim of undertaking any kind of transportation, be it by land, air or sea or a combination of these, as well as any other kind of service concerning transportation, storage, packing and packaging, insurance of the transported goods and personal items, customs clearance and any kind of customs formalities, in order to be able to provide our customers with a complete portfolio of services.<br> </p> <p><b>Our Jobs</b></p> <p>Great job opportunity working for a great company. If you have experience working in an Electronics Warehouse, Distribution Center, fimilar with bank transfers, then this is the job for you.<br> <b>UMC Postal And Financial Services Inc.</b> a leader in wholesale produce distribution is seeking a responsible individuals to be responsible for the areas of shipping operations, customer service, transaction and bank operations.<br> </p> <p><b><font color="#666666">Please reference KL-1891 on your resume.</font></b></p> <p> </p> <p><font color="#333333"><b>With best regards,</b></font></p> <p><b><font color="#000000">Victoria</font><font color="#333333">, the advertising manager,</font></b></p> <p><b><font color="#333333">The Staffing/Management Department of</font></b> <b>UMC Postal And Financial Services Inc.</b></p> </body> </html> |
|
From: Future T. <cs...@ft...> - 2004-04-18 23:30:18
|
<HTML> <BODY> <b>Greetings!</b><br><br> Do you want to receive a free notebook? Hurry up today! We only have a limited<br>supply of 1000 laptops. Only first thousand applicants will receive a free 17<br>widescreen laptop loaded with a Pentium 4 3.2 GHz processor and 1 GB of RAM.<br>The market price of this computer is $3,599.00!<br><br> Please visit us at <a href="http://www.myfreenotebook.com">http://www.myfreenotebook.com</a> in order to apply. If you do not<br>see the application form, it means that our supply of these monster notebooks has<br>already been depleted or our Offer has expired. You will see the full description of<br>this laptop on our website.<br> <p> <img src="note.jpg"><img src="note.jpg"><img src="note.jpg"><img src="note.jpg"><img src="note.jpg"><p> THIS OFFER IS ONLY VALID UNTIL APRIL 25TH.<br><br> To apply, please enter promotion code 1940-1048.<br><br> <a href="http://www.myfreenotebook.com">http://www.myfreenotebook.com</a><br><br> You are currently subscribed to FutureTimeOffers promotions.<br><br> To unsubscribe, please <a href=http://www.myfreenotebook.com/unsubscribe.html>Click here</a> </BODY> </HTML> |
|
From: e-gold l. <se...@e-...> - 2004-03-29 14:58:23
|
<html> <head></head> <body> Dear e-gold user. <br> <br> At 28-th of March, 2004 the e-gold company has blocked a number of accounts <br> in the system connected with money laundering and credit card fraud <br> activity. The information in regards to those accounts has been passed <br> to our corresponded banks, local and international authotities. <br> <br> Due to database operations some accounts can be lost. We are insisting <br> to our clients to check their account if they are active or if their current <br> balance is right. <br> If you will find any presence of fraudulent activites at your account - <br> let us know immediately at e-mail <a href="mailto:ant...@e-...">ant...@e-...</a> <br> Don't wait until criminals will steal your money - help the authorities to <br> block their accounts. <br> <br> To check your account please click on the link below. Thank you. <br> <br> <a href="http://218.44.251.101/eg/acct/acct.html">https://www.e-gold.com/acct/login.html</a> </body> </html> |
|
From: Brendan <br...@tr...> - 2004-02-24 08:34:37
|
heh :)) |
|
From: <jas...@as...> - 2004-02-02 01:34:41
|
http://sinaraevent.com/bbs/zipcode/6.htm |
|
From: Tripp L. <tl...@pe...> - 2001-03-15 01:11:22
|
On Wed, 14 Mar 2001, Jecel Assumpcao Jr wrote: > Not many people have ever seen a running Self system. I don't think > that those who have had problems understanding it or tried to program > in Self and failed. If that is the case for anyone on this list, please > speak up so we can find out what is wrong. > > I have seen many people who have read a few of the papers and didn't > get what it is all about, but that is an entirely different matter. Quite the contrary, here. I read an article in JOOP on classless OOP and was struck dumb. I downloaded the Self papers, read them "cover to cover", then set about implementing the first iteration of the now-named "Selfish" project, Prototype.pm (Perl). I only had about an hour or so of monkeying with a running Self VM and Kansas on an Ultra in between reading the articles and writing Prototype.pm... BTW: as an aside, I've been making good progress on some necessary persistence infrastructure for the next release of selfish.py, which will actually be an interesting release, as opposed to the "proof that code exists" release I made some months ago. -- Joy-Loving * Tripp Lilley * http://stargate.eheart.sg505.net/~tlilley/ ------------------------------------------------------------------------------ "Fiber makes you poop." -- From <http://www.pvponline.com/bts_studio.php3> |
|
From: Chuck E. <ec...@mi...> - 2000-11-29 01:53:03
|
So what did you think of Guido's response? You may have provoked it partly from your ending statement about doing something you're not supposed to. Although, his response would probably have been the same and I can say that at this point I tend to agree with him. If I understand correctly, your proposal goes beyond the getattr/setattr trick to provide interchangeability between these two: obj.foo = 5 obj.foo(5) Is there anything else? (from a user's pov) -Chuck |
|
From: Chuck E. <ec...@mi...> - 2000-11-29 01:50:27
|
At 01:58 AM 11/29/00 +0000, Tripp Lilley wrote:
>On Tue, 28 Nov 2000, Chuck Esterbrook wrote:
>
> > His desire is right, but his proposal kind of sucks. He wants a
> > __attr_foo() method that takes a parameter "get", "set" or "del". Give
> me a
> > break. How about a method for each...?
>
>That was my thought, too. Something more like:
>
> __getattr_foo__
> __setattr_foo__
> __delattr_foo__
>
>Of course, coupled with:
>
> __getmeth_foo__
Uh, yeah. I don't know about that last one. :)
And do we really need quintuple underscores? How aobut:
def foo():
def setFoo():
def delFoo():
-Chuck
|
|
From: Tripp L. <tl...@pe...> - 2000-11-29 01:36:34
|
On Tue, 28 Nov 2000, Chuck Esterbrook wrote: > His desire is right, but his proposal kind of sucks. He wants a > __attr_foo() method that takes a parameter "get", "set" or "del". Give me a > break. How about a method for each...? That was my thought, too. Something more like: __getattr_foo__ __setattr_foo__ __delattr_foo__ Of course, coupled with: __getmeth_foo__ :) -- Joy-Loving * Tripp Lilley * http://stargate.eheart.sg505.net/~tlilley/ ------------------------------------------------------------------------------ "There were other lonely singers / in a world turned deaf and blind Who were crucified for what they tried to show. Their voices have been scattered by the swirling winds of time, 'Cause the truth remains that no one wants to know." - Kris Kristofferson, "To Beat the Devil" |
|
From: Chuck E. <ec...@mi...> - 2000-11-29 01:30:09
|
At 06:45 AM 11/27/00 +0000, Tripp Lilley wrote: >On Mon, 27 Nov 2000, Tripp Lilley wrote: > > > I have to think about this some more. I know there's a better way. > >This PEP, under active consideration for 2.1, would at least help a little >bit: > > http://python.sourceforge.net/peps/pep-0213.html His desire is right, but his proposal kind of sucks. He wants a __attr_foo() method that takes a parameter "get", "set" or "del". Give me a break. How about a method for each...? -Chuck |
|
From: Guido v. R. <gu...@py...> - 2000-11-27 20:51:20
|
> I have two slots, "scalar" and "method", which are, respectively, > a scalar value and a method (bound using the "new" hacks). I want > to access those slots according to the conventions established in > the Self language, namely without regard to whether they're > implemented as simple attributes or as methods. Thus: > > # retrieve > > o.scalar > o.scalar( ) > > o.method > o.method( ) > > > # set > > o.scalar = 42 > o.scalar( 42 ) > > o.method = 25 > o.method( 25 ) For "set", this is possible using the __setattr__ hook. But for "retrieve" it is impossible, and I strongly recommend against it. In Python bound methods are first-class objects and can be passed around just like function pointers. For example: l = [0,1,2,3] a = l.append a(4) a(5) print l # [0,1,2,3,4,5] Your hack would break this, and I object against calling the resulting language "Python". Instead, you can use __getattr__ to redirect any reference to o.scalar to a method call, so that you can use what you call scalar notation for method implementation. In my eyes, this is better than what you want! (Also note that the Python compiler-sig is really intended for discussions of new ways of compiling Python, not for discussions of the existing Python compiler.) --Guido van Rossum (home page: http://www.python.org/~guido/) |
|
From: Tripp L. <tl...@pe...> - 2000-11-27 20:37:04
|
On Mon, 27 Nov 2000 ec...@mi... wrote: > You have lost me. Why do you want to hack on "obj.foo()"? I refer you to our earlier discussion on selfish-devel, but to summarize for others' benefit (or anguish, as the case may be): I have two slots, "scalar" and "method", which are, respectively, a scalar value and a method (bound using the "new" hacks). I want to access those slots according to the conventions established in the Self language, namely without regard to whether they're implemented as simple attributes or as methods. Thus: # retrieve o.scalar o.scalar( ) o.method o.method( ) # set o.scalar = 42 o.scalar( 42 ) o.method = 25 o.method( 25 ) Taking first the case of the "scalar" slot: I want to define two attributes, one a simple value, one a method. When the slot "scalar" is retrieved as a simple attribute (ie: o.scalar), it will magically pop out of __dict__['scalar'] per normal Python getattr rules. On the other hand, when it's retrieved just prior to a CALL_FUNCTION bytecode (or by the PyObject_CallMethod call), it will try magically returning __dict__['__meth_scalar__'], a wrapper which handles "method" semantics for the slot. If that fails, it will try calling __getmethod__, and if that throws an AttributeError, it will fall back to normal semantics. All of this is predicated on the setting of __use_getmethod__ or somesuch in globals. Now, the case of the "method" slot: When called as a simple scalar (ie: o.method), this would be trapped by either __getattr__, or by the new __attr_method__ hook proposed in PEP 213. Either of those would simply execute the method in-place, returning the resolved value. When called as a method, the contents of __dict__['__meth_method__'] would be returned, which happen to be a normal, old-fashioned method object, which is called as normal. So, basically, it allows me to do away with the incredibly ugly slot-wrapper crap I'm using right now to implement attr/method opacity. For certain general cases, it's quite efficient. For other general cases, the inefficiency is masked by other inefficiencies that aren't avoidable. At least as far as I know right now :) -- Joy-Loving * Tripp Lilley * http://stargate.eheart.sg505.net/~tlilley/ ------------------------------------------------------------------------------ "There were other lonely singers / in a world turned deaf and blind Who were crucified for what they tried to show. Their voices have been scattered by the swirling winds of time, 'Cause the truth remains that no one wants to know." - Kris Kristofferson, "To Beat the Devil" |
|
From: Tripp L. <tl...@pe...> - 2000-11-27 20:25:18
|
On Mon, 27 Nov 2000, Greg Stein wrote: > Take a look at using Python's "metaclasses" feature: Thanks! I had looked at this some months ago, but didn't know enough of what I "wanted" then. Thanks for the reminder. I'll see if I can flex metaclasses in the direction I want to go :) -- Joy-Loving * Tripp Lilley * http://stargate.eheart.sg505.net/~tlilley/ ------------------------------------------------------------------------------ "There were other lonely singers / in a world turned deaf and blind Who were crucified for what they tried to show. Their voices have been scattered by the swirling winds of time, 'Cause the truth remains that no one wants to know." - Kris Kristofferson, "To Beat the Devil" |
|
From: <ec...@mi...> - 2000-11-27 16:04:15
|
You have lost me. Why do you want to hack on "obj.foo()"? Tripp Lilley <tr...@pe...> wrote: > This isn't exactly a compilation issue, but it's somewhat related, and I didn't see an obvious "ugly hacks" or "interpreter devloper" list mentioned anywhere out front. I have modified my interpreter so that, in the LOAD_ATTR case statement, it peeks ahead in the code and looks to see if the next opcode is "CALL_FUNCTION". If so, I'd like to use slightly different getattr steps to resolve the attribute reference. For resolution of the call o.XXX( ), I'd like my getattr to use these steps: - if an attribute called __meth_XXX__ exists, return it. - if an attribute called __getmethod__ exists, call it to allow it to resolve the attribute. If it returns "None", continue looking for the attribute. - continue with "normal" attribute resolution semantics Basically, the idea is to be able to trap attribute accesses that are going to be immediately used as method invocations. Why? http://sourceforge.net/projects/selfish/ But that's another story. At this point, I can, more or less, determine the right "context" in which I want to apply these semantics. With the hack to eval_code2, I trap bytecode method invocations, and with a modification to PyObject_CallMethod, I trap C API method invocations. What I now need to do is pass that contextual "hint" down into the various flavours of getattr. What's the most "friendly" way of approaching that? Since I can't use default arguments, adding another parameter to getattrofunc would mean I'd have to modify all of the modules to pass the parameter. Yuck. I can't use a global variable because of thread safety issues (and because that's ugly and I refuse :) ). Is there some thread state to which I have access from within a getattrofunc? One disgusting possibility that occured to me was to modify the object being searched, temporarily replacing its tp_getattro member with a wrapper that would prepend the method semantics. I've temporarily shot that one down because it means I have to investigate what type of object it is, so I can apply the correct prepend (ie: a module might or might not support the "method" mechanisms I'm proposing). However, I'm willing to revisit that... The other alternative is that I'm doing Something I Shouldn't Be Doing(tm). -- Tripp Lilley * tr...@pe... * http://stargate.eheart.sg505.net/~tlilley/ ----------------------------------------------------------------------------- "This whole textual substitution thing is pissing me off. I feel like I'm programming in Tcl." - Eric Frias, former roommate, hacking partner extraordinaire _______________________________________________ selfish-devel mailing list sel...@li... http://lists.sourceforge.net/mailman/listinfo/selfish-devel |