From jmerelo a geneura.ugr.es Mon Nov 23 03:00:21 2009 From: jmerelo a geneura.ugr.es (Juan Julian Merelo Guervos) Date: Mon, 23 Nov 2009 12:00:21 +0100 Subject: [bcn-pm] Usando e importando a la vez Message-ID: <4B0A6B45.2040002@geneura.ugr.es> Hola, ¿Hay alguna forma de hacer esto: use base 'Algorithm::MasterMind'; use Algorithm::MasterMind qw(entropy); en una sola sentencia? Saludos JJ From brunorc a gmail.com Mon Nov 23 04:42:42 2009 From: brunorc a gmail.com (Bruno) Date: Mon, 23 Nov 2009 13:42:42 +0100 Subject: [bcn-pm] Usando e importando a la vez In-Reply-To: <4B0A6B45.2040002@geneura.ugr.es> References: <4B0A6B45.2040002@geneura.ugr.es> Message-ID: <982340880911230442s6fbef607pd7f2517ed94acc88@mail.gmail.com> Hola 2009/11/23 Juan Julian Merelo Guervos : > ¿Hay alguna forma de hacer esto: > > use base 'Algorithm::MasterMind'; > > use Algorithm::MasterMind qw(entropy); > > en una sola sentencia? Me parece, que cuando utilizas "use base", esto es la herencia. Entonces solo se modifica @ISA, no se utiliza el Exporter para importar las funciones. Si quieres tener ambos, puedes probar este: package BaseWithEntropy; use Algorithm::MasterMind qw(entropy); 1; package SomethingElse; use base BaseWithEntropy; 1; Saludos, Bruno From alexm a alexm.org Mon Nov 23 10:43:52 2009 From: alexm a alexm.org (Alex Muntada) Date: Mon, 23 Nov 2009 19:43:52 +0100 Subject: [bcn-pm] Usando e importando a la vez In-Reply-To: <4B0A6B45.2040002@geneura.ugr.es> References: <4B0A6B45.2040002@geneura.ugr.es> Message-ID: <35064d940911231043x16d0a7b7r3e46e034925a9f16@mail.gmail.com> + Juan Julian Merelo Guervos : > ¿Hay alguna forma de hacer esto: > > use base 'Algorithm::MasterMind'; > > use Algorithm::MasterMind qw(entropy); > > en una sola sentencia? El http://perldoc.perl.org/base.html diu: The base class' import method is not called Així que no crec que hi hagi cap mecanisme «net» per fer-ho. Però si aprofites que tens herència pots delegar la cerca del mètode de classe a Perl fent: __PACKAGE__->entropy(...); O bé: $self->entropy(...); Perl recorrerà tot el @ISA cercant una classe que implementi el mètode entropy. Si entropy és una funció, la cosa no funciona, cal que hi hagi herència pel mig, però entenc que no hauria de donar-te gaires problemes fer que entropy sigui un mètode de la classe enlloc d'una funció. Salut i Perl! -- Alex Muntada http://alexm.org/ From fxn a hashref.com Tue Nov 24 14:44:26 2009 From: fxn a hashref.com (Xavier Noria) Date: Tue, 24 Nov 2009 23:44:26 +0100 Subject: [bcn-pm] estic fora el dijous Message-ID: <31a130740911241444tac3851dg4bd2eae04873cf14@mail.gmail.com> Nois estic a Madrid dijous... From alexm a alexm.org Wed Nov 25 01:36:04 2009 From: alexm a alexm.org (Alex Muntada) Date: Wed, 25 Nov 2009 10:36:04 +0100 Subject: [bcn-pm] estic fora el dijous In-Reply-To: <31a130740911241444tac3851dg4bd2eae04873cf14@mail.gmail.com> References: <31a130740911241444tac3851dg4bd2eae04873cf14@mail.gmail.com> Message-ID: <35064d940911250136m36067bfew6cd2bc4eb569afea@mail.gmail.com> + Xavier Noria : > Nois estic a Madrid dijous... Jo estic a Santiago de Compostela però duré la samarreta dels mongers a la presentació del projecte sméagol de la UPC que faig el dijous a migdia: http://www.rediris.es/jt/jt2009/programa/programa-jt.html El projecte sméagol l'estem fent en Perl: http://devel.cpl.upc.edu/recursos use Perl; -- Alex Muntada http://alexm.org/ From francesc.roma+barcelona-pm a gmail.com Sat Nov 28 09:49:41 2009 From: francesc.roma+barcelona-pm a gmail.com (=?ISO-8859-1?Q?Francesc_Rom=E0_i_Frigol=E9?=) Date: Sat, 28 Nov 2009 18:49:41 +0100 Subject: [bcn-pm] Fwd: Announcing "Python Barcelona Meetup - Happy 2nd Anniversary!", Monday, December 7, 2009 9:00 PM! In-Reply-To: References: Message-ID: Bones, Com que em vau comentar que hi més d'un interessat al grup us passo la convocatòria del següent python meetup. Jo no hi podré anar però. Per anar-hi obriu un compte al meetup (és gratis) i confirmeu assistència. Tampoc vaig poder venir dijous passat :'( espero que ens veiem aviat Salut i democràcia, Francesc ---------- Forwarded message ---------- From: New Meetup Date: Mon, Nov 23, 2009 at 4:07 PM Subject: Announcing "Python Barcelona Meetup - Happy 2nd Anniversary!", Monday, December 7, 2009 9:00 PM! [image: Meetup] Meetup Announcement The Barcelona Python Meetup Group Your group has a Meetup Monday, December 7, 2009 9:00 PM! What Python Barcelona Meetup - Happy 2nd Anniversary! When Monday, December 7, 2009 9:00 PM Who 4 Yes / 0 Maybe *There's still room for 16 more.* Where Can Gavatxo Carrer Sant Lluis, 35 Barcelona meetup2 +34 935540949 / 618090769 You only have until December 3, 2009 9:00 PM to RSVP! RSVP Now YES NO Here's what people are saying about this Meetup Group *"Computing has no sense without share our thoughts and experiences"* — Garito *"New time we'll have a vote for the date and also some talks."* — Maik Röder Learn more about this Meetup Meetup Description It's already two years that the Python Barcelona Meetup has been running successfully. Therefore, I am happy to announce that we are going to celebrate this event by organising an all-inclusive french style dinner in Gracia for 20 EUR per person. Please make sure to reserve your place now. Your confirmation is needed until the 3rd of december, but keep in mind that places are limited to 20 persons. I hope to see you for a great time out! Maik Röder Add *info a meetup.com* to your address book to receive all your Meetup emails. You are receiving this email because you are a member of The Barcelona Python Meetup Group. To manage your email settings, click here . Questions? You can email Meetup Support at: support a meetup.com Meetup Inc. PO Box 4668 #37895 New York, New York 10163-4668 -------------- part següent -------------- Un document HTML ha estat eliminat... URL: