Size: 16378
Comment:
|
Size: 1941
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
!'''[http://generic-viagra.land.ru/ | Generic viagra online] !''' !'''[http://cheap-phentermine.hotmail.ru/ | buy phentermine cheap phentermine online] !''' !'''[http://best-phentermine.hotmail.ru/ | buy cheap phentermine online] !''' !'''[http://fha_mortgage.chat.ru/ | buy cheap phentermine online] !''' !'''[http://ticket1_broker.chat.ru/ | Ticket Broker] !''' !'''[http://buy_phent.chat.ru/ | buy adipex phentermine] !''' !'''[http://cheap--viagra.fromru.com/ | Cheap viagra] !'''! |
LinuxJournal, April 01, 2001 |
Line 9: | Line 3: |
!'''[http://united-airline.boom.ru/ | United Airlines tickets flights] !'''! !'''[http://computer-desk.fromru.com/ | Computer desk] !'''! |
http://www.linuxjournal.com/article.php?sid=4540 |
Line 12: | Line 5: |
[http://online1degree.chat.ru/ | Online degree] [http://camel-cig.newmail.ru | Cheap camel cigarettes] [http://marlb-cigarette.newmail.ru | marlboro cigarettes] [http://gift_basket.chat.ru/ | Gift basket] [http://find-tires.com/ | Best Tires] [http://computer_battery.euro.ru/ | computer battery] [http://computer-battery.fromru.com/ | computer battery] [http://notebook-battery.fromru.com/ | notebook battery] |
Mix-in programming 은 프로그래밍 스타일의 한가지로서, 특정 기능을 지니는 단위(class)를 다른 단위와 섞어쓰는 기법이다. [OOP]의 MultipleInheritance가 사용된다. |
Line 21: | Line 7: |
There are several reasons to use mix-ins: * extend existing classes in new areas without having to edit, * maintain or merge with their source code * keep project components (such as domain frameworks and interface frameworks) separate * they ease the creation of new classes by providing a grab bag of functionalities that can be combined as needed * overcome a limitation of subclassing, whereby a new subclass has no effect if objects of the original class are still being created in other parts of the software. |
|
Line 22: | Line 14: |
Best links: '''betting''' | [Python]은 훌륭한 [OOP]언어로서, 다중상속 및 dynamic class binding을 지원한다. |
Line 24: | Line 16: |
[http://soccer_betting.chat.ru/ | soccer betting] [http://soccer-betting.fromru.com/ | soccer betting] [http://soccer-betting.land.ru/ | soccer betting] [http://football_betting.chat.ru/ | football betting] [http://footballbettings.euro.ru/ | football betting] [http://football-betting.fromru.com/ | football betting] [http://horse_betting.chat.ru/ | horse betting] [http://horse_bettings.euro.ru/ | horse betting] [http://horse-betting.fromru.com/ | horse betting] [http://horse-betting.land.ru/ | horse betting] [http://basketball_bet.chat.ru/ | basketball betting] [http://basketball-betting.fromru.com/ | basketball betting] [http://basketball-betting.land.ru/ | basketball betting] [http://baseballbetting.chat.ru/ | baseball betting] [http://baseballbettings.euro.ru/ | baseball betting] [http://baseball-betting.fromru.com/ | baseball betting] [http://bettingodds.chat.ru/ | odds betting] [http://betting_odd.euro.ru/ | odds betting] [http://virtual_betting.chat.ru/ | virtual betting] [http://virtualbetting.euro.ru/ | virtual betting] [http://nfl_betting.chat.ru/ | nfl betting] [http://internet_betting.chat.ru/ | internet betting] [http://internetbetting.euro.ru/ | internet betting] [http://betting_line.chat.ru/ | betting line] [http://bettingline.euro.ru/ | betting line] [http://spread_betting.chat.ru/ | spread betting] [http://footballbettingo.chat.ru/ | online football betting] [http://ofootballbetting.euro.ru/ | online football betting] [http://betting_site.chat.ru/ | betting site] [http://betting_sites.euro.ru/ | betting site] [http://poker_betting.chat.ru/ | poker betting] [http://betting-odd.land.ru/ | betting odds] [http://betting-odds.fromru.com/ | betting odds] [http://virtual-betting.fromru.com/ | virtual betting] [http://virtual-bettings.land.ru/ | virtual betting] [http://nfl-betting.fromru.com/ | nfl betting] [http://internet-bettings.land.ru/ | internet betting] [http://betting-line.fromru.com/ | betting line] [http://betting-lines.land.ru/ | betting line] [http://spread-betting.fromru.com/ | spread betting] [http://online-football-betting.fromru.com/ | online football betting] [http://online-football-betting.land.ru/ | online football betting] [http://betting-site.fromru.com/ | betting site] [http://betting-site.land.ru/ | betting site] [http://poker-betting.fromru.com/ | poker betting] |
{{{#!python >>>class Friendly: ... def hello(self): ... print 'Hello' ... >>> class Person: ... pass ... >>> p = Person() >>> Person.__bases__ += (Friendly,) >>> p.hello() Hello }}} |
Line 70: | Line 30: |
{{{#!python import types def MixIn(pyClass, mixInClass, makeAncestor=0): if makeAncestor: if mixInClass not in pyClass.__bases__: pyClass.__bases__ = (mixInClass,) + pyClass.__bases__ else: # Recursively traverse the mix-in ancestor # classes in order to support inheritance baseClasses = list(mixInClass.__bases__) baseClasses.reverse() for baseClass in baseClasses: MixIn(pyClass, baseClass) # Install the mix-in methods into the class for name in dir(mixInClass): if not name.startswith('__'): # skip private members member = getattr(mixInClass, name) if type(member) is types.MethodType: member = member.im_func setattr(pyClass, name, member) |
|
Line 71: | Line 52: |
Best links: '''book store''' | }}} |
Line 73: | Line 54: |
[http://book_store.euro.ru/ | book store] [http://book-store.fromru.com/ | book store] Best links: '''bow wow''' [http://bow-wow.fromru.com/ | bow wow] Best links: '''budget car rental''' [http://budget-car-rental.fromru.com/ | budget car rental] Best links: '''buy used car''' [http://buy-used-cars.fromru.com/ | buy used car] [http://buy_used_car.euro.ru/ | buy used car] Best links: '''buying home''' [http://buying-home.fromru.com/ | buying home] Best links: '''cable''' [http://cable_modem.euro.ru/ | cable modem] [http://cable-modem.fromru.com/ | cable modem] [http://cable_internet.euro.ru/ | cable internet] [http://cable-internet.fromru.com/ | cable internet] [http://timewarner_cable.chat.ru/ | warner internet cable] Best links: '''cable tv''' [http://cable_tv.euro.ru/ | cable tv] Best links: '''california real estate''' [http://california-real-estate.fromru.com/ | california real estate] Best links: '''car''' [http://australia-used-car.fromru.com/ | australia used car] [http://paris_used_car.euro.ru/ | paris used car] [http://paris-used-car.fromru.com/ | paris used car] [http://us_used_car.chat.ru/ | us used car] [http://us-used-car.fromru.com/ | us used car] Best links: '''car for sale''' [http://car-for-sale.fromru.com/ | car for sale] [http://car4sale.euro.ru/ | car for sale] Best links: '''car prices''' [http://car-prices.fromru.com/ | car prices] Best links: '''car rental''' [http://carrental.euro.ru/ | car rental] [http://car-rental.fromru.com/ | car rental] Best links: '''caribbean cruise''' [http://caribbean1cruise.euro.ru/ | caribbean cruise] [http://caribbean-cruise.fromru.com/ | caribbean cruise] Best links: '''cars''' [http://used_cars_sales.chat.ru/ | used car sale] Best links: '''cars prices''' [http://cars_prices.chat.ru/ | car prices] Best links: '''cellular phone accessories''' [http://phone_accessory.chat.ru/ | cell phone accessory] [http://phone-accessories.fromru.com/ | cell phone accessories] Best links: '''Cheap Hotel''' [http://cheap2hotel.chat.ru/ | cheap hotel] [http://cheap-hotel.fromru.com/ | cheap hotel] Best links: '''checks order''' [http://check_order.chat.ru/ | check order] [http://check-order.fromru.com/ | check order] Best links: '''chicago real estate''' [http://chicagoestate.chat.ru/ | chicago real estate] [http://chicago-real-estate.fromru.com/ | chicago real estate] Best links: '''cigarettes''' [http://cigar_discount.euro.ru/ | discount cigarettes] [http://cigarettes-discount.fromru.com/ | discount cigarettes] Best links: '''College Degree Online''' [http://college-university.fromru.com/ | college degree online] Best links: '''college humor''' [http://college-humor.fromru.com/ | college humor] [http://college_humor.chat.ru/ | college humor] Best links: '''colorado real estate''' [http://colorado_estate.chat.ru/ | colorado real estate] [http://colorado-real-estate.fromru.com/ | colorado real estate] Best links: '''computer store''' [http://computer_store.euro.ru/ | computer store] [http://computer-store.fromru.com/ | computer store] Best links: '''Concert Ticket''' [http://concert-ticket.fromru.com/ | concert ticket] Best links: '''concert tickets''' [http://concert_tickets.euro.ru/ | concert ticket] Best links: '''cosmetics''' [http://cosmetic_case.euro.ru/ | cosmetic case] [http://cosmetic-case.fromru.com/ | cosmetic case] Best links: '''courses''' [http://online_courses.chat.ru/ | online courses] [http://online-courses.fromru.com/ | online courses] [http://college-course-online.fromru.com/ | college course online] [http://computer_courses.chat.ru/ | online computer courses] [http://online-computer-course.fromru.com/ | online computer courses] [http://justice_criminal.euro.ru/ | online criminal justice course] [http://criminal-justice-courses.fromru.com/ | online criminal justice course] [http://army-online-course.fromru.com/ | army online courses] [http://accreditedcourse.euro.ru/ | accredited online courses] [http://cscorrespondence.chat.ru/ | correspondence courses] [http://correspondence-courses.fromru.com/ | correspondence courses] [http://education_course.euro.ru/ | online education course] [http://college_courses.euro.ru/ | college course] [http://college-courses.fromru.com/ | college course] [http://accredited-online-courses.fromru.com/ | accredited online courses] Best links: '''credit''' [http://credits_report.euro.ru/ | credit report] [http://credit-reports.fromru.com/ | credit report] Best links: '''cruise''' [http://guadeloupecruise.euro.ru/ | guadeloupe cruises] [http://guadeloupe-cruise.fromru.com/ | guadeloupe cruises] [http://martiniquecruise.euro.ru/ | martinique cruise] [http://martinique-cruise.fromru.com/ | martinique cruise] Best links: '''cruise review''' [http://cruise-reviews.fromru.com/ | cruise review] Best links: '''cruise ship''' [http://cruises_ship.euro.ru/ | cruise ship] [http://cruiseships.fromru.com/ | cruise ship] Best links: '''dental''' [http://dental_plan.chat.ru/ | dental plan] [http://dental-plan.fromru.com/ | dental plan] [http://delta_dental.chat.ru/ | delta dental] [http://delta-dental.fromru.com/ | delta dental] [http://dental_implant.chat.ru/ | dental implant] [http://dental-implant.fromru.com/ | dental implant] [http://dental-schools.fromru.com/ | dental schools] Best links: '''dental care''' [http://dental_care.chat.ru/ | dental care] Best links: '''dental health''' [http://dental_health.chat.ru/ | dental health] [http://dental-health.fromru.com/ | dental health] Best links: '''denver real estate''' [http://denverrealestate.chat.ru/ | denver real estate] [http://denver-realestate.fromru.com/ | denver real estate] Best links: '''digital camera accessories''' [http://camera-accesories.fromru.com/ | digital camera accessory] Best links: '''digital camera accessory''' [http://digital_camera_accessory.euro.ru/ | digital camera accessory] [http://camera_accessory.euro.ru/ | digital camera accessory] Best links: '''digital cameras''' [http://digital_camera.euro.ru/ | digital camera] [http://digital-camera.fromru.com/ | digital camera] Best links: '''digital photo''' [http://digital-photo.fromru.com/ | digital photo] Best links: '''discount airfare''' [http://discount-airfare.fromru.com/ | discount airfare] Best links: '''discount car rental''' [http://car_rental.euro.ru/ | discount car rental] [http://discount-car-rental.fromru.com/ | discount car rental] Best links: '''discount cigarette''' [http://discount-cigarette.fromru.com/ | discount cigarette] Best links: '''discount cigarettes''' [http://cigarette_disc.euro.ru/ | discount cigarette] Best links: '''discount computer''' [http://discount-computer.fromru.com/ | discount computer] Best links: '''discount cruises''' [http://discount-cruises.fromru.com/ | discount cruise] Best links: '''discount hotels''' [http://discount_hotels.chat.ru/ | discount hotel] Best links: '''discount shopping''' [http://discountshopping.euro.ru/ | discount shopping] [http://discount-shopping.fromru.com/ | discount shopping] Best links: '''discount travel''' [http://discount_travel.euro.ru/ | discount travel] [http://discount-travel.fromru.com/ | discount travel] Best links: '''dvd movies''' [http://dvdmovie.chat.ru/ | dvd movie] [http://dvdmovies.fromru.com/ | dvd movie] Best links: '''dvd rental''' [http://dvd_rental.euro.ru/ | dvd rental] [http://dvd-rental.fromru.com/ | dvd rental] Best links: '''estate investment''' [http://estateinvestment.euro.ru/ | estate investment] Best links: '''europe mortgage''' [http://europe_mortgage.euro.ru/ | europe mortgage] [http://europe-mortgage.fromru.com/ | europe mortgage] Best links: '''europe used car''' [http://europe-used-car.fromru.com/ | europe used car] Best links: '''european vacations''' [http://europeanvacation.euro.ru/ | european vacation] [http://european-vacation.fromru.com/ | european vacation] Best links: '''executive recruiting''' [http://recruiting_exec.chat.ru/ | executive recruiting] Best links: '''florida hotel''' [http://florida-hotels.fromru.com/ | florida hotels] Best links: '''florida mortgage''' [http://floridamortgage.chat.ru/ | florida mortgage] [http://floridamortgage.fromru.com/ | florida mortgage] Best links: '''florida real estate''' [http://florida_estate.chat.ru/ | florida real estate] Best links: '''flower shop''' [http://flower-shop.fromru.com/ | flower shop] Best links: '''flowers delivery''' [http://flowers2delivery.chat.ru/ | flowers delivery] [http://flowers-delivery.fromru.com/ | flowers delivery] Best links: '''flowers gifts''' [http://flowers_gifts.chat.ru/ | flowers gifts] [http://flowers-and-gifts.fromru.com/ | flowers gifts] Best links: '''foreclosure''' [http://foreclosure-prev.chat.ru/ | foreclosure prevention] [http://avoid-foreclosure.fromru.com/ | avoid foreclosure] [http://avoidforeclosure.euro.ru/ | avoid foreclosure] [http://foreclosure-help.fromru.com/ | foreclosure help] [http://bank_foreclosure.euro.ru/ | bank foreclosure] [http://foreclosures-bank.fromru.com/ | bank foreclosure] [http://foreclosure-home.fromru.com/ | foreclosure home] [http://stop_foreclosure.chat.ru/ | stop foreclosure] [http://stop-foreclosure.fromru.com/ | stop foreclosure] [http://foreclosurehouse.euro.ru/ | house foreclosure] [http://house-foreclosure.fromru.com/ | house foreclosure] [http://foreclosure-property.fromru.com/ | foreclosure property] [http://hud_foreclosure.chat.ru/ | hud foreclosure] [http://hud-foreclosure.fromru.com/ | hud foreclosure] [http://estateforeclosur.euro.ru/ | real estate foreclosure] [http://real-estate-foreclosure.fromru.com/ | real estate foreclosure] [http://foreclosure_prev.chat.ru/ | foreclosure prevention] Best links: '''free pc online games''' [http://pcgame-online.fromru.com/ | free pc online game] Best links: '''gambling''' [http://gambling_card.chat.ru/ | gambling card] [http://gambling-card.fromru.com/ | gambling card] [http://footballgambles.euro.ru/ | football gambling] Best links: '''Garage Door''' [http://garage_door.chat.ru/ | garage door] Best links: '''georgia real estate''' [http://georgia_estate.euro.ru/ | georgia real estate] [http://georgia-real-estate.fromru.com/ | georgia real estate] Best links: '''grants''' [http://governmentgrants.euro.ru/ | government grants] [http://government-grants.fromru.com/ | government grants] [http://sb_grants.chat.ru/ | small business grants] [http://small-business-grants.fromru.com/ | small business grants] Best links: '''greeting card''' [http://greeting_card.chat.ru/ | greeting card] Best links: '''hair loss product''' [http://hair-loss-products.fromru.com/ | hair loss product] Best links: '''hair loss products''' [http://hair_products.chat.ru/ | hair loss product] Best links: '''hairs''' [http://hairs_loss.chat.ru/ | hair loss] [http://hair_replacement.chat.ru/ | hair replacement] [http://hairsreplacement.euro.ru/ | hair replacement] [http://lost_hairs.euro.ru/ | hair loss] [http://hairs-loss.fromru.com/ | hair loss] [http://hair-replacement.fromru.com/ | hair replacement] Best links: '''hawaii real estate''' [http://hawaii_estate.euro.ru/ | hawaii real estate] [http://hawaii-real-estate.fromru.com/ | hawaii real estate] Best links: '''health''' [http://womens_health.chat.ru/ | womens health] [http://womens-health.fromru.com/ | womens health] [http://health_1care.chat.ru/ | health care] [http://health-care.fromru.com/ | health care] [http://sexual_health.chat.ru/ | sexual health] Best links: '''home depot''' [http://depot_home.euro.ru/ | home depot] Best links: '''home for sale''' [http://home_for_sale.euro.ru/ | home for sale] [http://home-for-sale.fromru.com/ | home for sale] Best links: '''home selling''' [http://home-selling.fromru.com/ | home selling] [http://home_selling.euro.ru/ | home selling] [http://sympathy-giftb.fromru.com/ | sympathy gift basket] [http://baby-gb.pochta.ru/ | baby gift basket] [http://food_gb.chat.ru/ | food gift basket] [http://gourmet_gb.chat.ru/ | gourmet gift basket] [http://cookie_gift_b.chat.ru/ | cookie gift basket] |
---- CategoryReport |
LinuxJournal, April 01, 2001
http://www.linuxjournal.com/article.php?sid=4540
Mix-in programming 은 프로그래밍 스타일의 한가지로서, 특정 기능을 지니는 단위(class)를 다른 단위와 섞어쓰는 기법이다. [OOP]의 MultipleInheritance가 사용된다.
There are several reasons to use mix-ins:
- extend existing classes in new areas without having to edit,
- maintain or merge with their source code
- keep project components (such as domain frameworks and interface frameworks) separate
- they ease the creation of new classes by providing a grab bag of functionalities that can be combined as needed
- overcome a limitation of subclassing, whereby a new subclass has no effect if objects of the original class are still being created in other parts of the software.
[Python]은 훌륭한 [OOP]언어로서, 다중상속 및 dynamic class binding을 지원한다.
1 import types
2 def MixIn(pyClass, mixInClass, makeAncestor=0):
3 if makeAncestor:
4 if mixInClass not in pyClass.__bases__:
5 pyClass.__bases__ = (mixInClass,) + pyClass.__bases__
6 else:
7 # Recursively traverse the mix-in ancestor
8 # classes in order to support inheritance
9 baseClasses = list(mixInClass.__bases__)
10 baseClasses.reverse()
11 for baseClass in baseClasses:
12 MixIn(pyClass, baseClass)
13 # Install the mix-in methods into the class
14 for name in dir(mixInClass):
15 if not name.startswith('__'):
16 # skip private members
17 member = getattr(mixInClass, name)
18 if type(member) is types.MethodType:
19 member = member.im_func
20 setattr(pyClass, name, member)