Re: [sage-devel] Re: Error in compiling Sage 5.9 in Fedora 18

2013-06-22 Thread Wai Man Chung
Hi,

After trying "make distclean" to start the build from scratch, the build
finally succeed.

Thanks.



On Sun, Jun 23, 2013 at 7:13 AM, Volker Braun  wrote:

> You have some half-built gfortran in the path, try "make distclean" to
> start the build from scratch.
>
>
>
>
> On Saturday, June 22, 2013 2:49:07 AM UTC-7, Wai Man Chung wrote:
>>
>> I have taken advice of Volker Braun and run "sudo yum install gcc-c++
>> gcc-gfortran", then I run "make" again, it runs for a while and it seems
>> the previous error is passed. But there is other similar error :
>>
>> ==**===
>> gfortran: error: libgfortran.spec: No such file or directory
>> make[4]: *** [testlsame] Error 1
>> make[4]: Leaving directory `/home/wmchung/Sage-build-5.9/**
>> sage-5.9/spkg/build/lapack-**20071123.p2/src/INSTALL'
>> /bin/sh: ./testlsame: No such file or directory
>> /bin/sh: ./testslamch: No such file or directory
>> /bin/sh: line 1: ./testdlamch: No such file or directory
>> /bin/sh: line 1: ./testsecond: No such file or directory
>> /bin/sh: line 1: ./testdsecnd: No such file or directory
>> /bin/sh: line 1: ./testversion: No such file or directory
>> make[3]: *** [lapack_install] Error 127
>> make[3]: Leaving directory `/home/wmchung/Sage-build-5.9/**
>> sage-5.9/spkg/build/lapack-**20071123.p2/src'
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-devel" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-devel/K10TaiEPbRw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Re: The 2013 Spies Prize winner is...

2013-06-22 Thread Jason Grout
Congratulations!  This is very deserved.  We *really* appreciate all the 
work you've done!  I think it's been critical to the success of Sage.


Jason



On 6/22/13 12:48 PM, William Stein wrote:

Jeroen Demeyer has provided excellent service to the Sage community as
release manager, starting with Version 4.6.1 in January 2011, just
five months after his first code contribution.  He has continued to
contribute significant code to the Sage library in the area of number
theory, including over forty contributions related to the fundamental
Sage package of PARI.

Jeroen is everything the Sage community could ask for in a release
manager.  He is a trusted custodian of the code and has built an
impressive system for frequent beta and final releases.  He works
carefully with developers and users to balance the priorities of
fast-paced cutting-edge development, backwards compatibility,
portability, and high-quality software.  During his tenure as release
manager, he has earned great respect while making difficult decisions
as he shaped the Sage that the world sees.  His efficient, timely,
fair and knowledgeable work has won him the admiration of the Sage
development community and has rendered a great service to the much
larger user community.

For his conscientious and technically excellent work as Sage release
manager, and his significant contributions to the Sage library, Jeroen
Demeyer is awarded the 2013 Spies Prize.

Please join me in congratulating Jeroen!

  -- The 2013 Spies Prize Committee





--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Re: The 2013 Spies Prize winner is...

2013-06-22 Thread mhampton
Excellent choice, congratulations Jeroen!

-Marshall

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] Re: Error in compiling Sage 5.9 in Fedora 18

2013-06-22 Thread Volker Braun
You have some half-built gfortran in the path, try "make distclean" to 
start the build from scratch.



On Saturday, June 22, 2013 2:49:07 AM UTC-7, Wai Man Chung wrote:
>
> I have taken advice of Volker Braun and run "sudo yum install gcc-c++ 
> gcc-gfortran", then I run "make" again, it runs for a while and it seems 
> the previous error is passed. But there is other similar error :
>
> =
> gfortran: error: libgfortran.spec: No such file or directory
> make[4]: *** [testlsame] Error 1
> make[4]: Leaving directory 
> `/home/wmchung/Sage-build-5.9/sage-5.9/spkg/build/lapack-20071123.p2/src/INSTALL'
> /bin/sh: ./testlsame: No such file or directory
> /bin/sh: ./testslamch: No such file or directory
> /bin/sh: line 1: ./testdlamch: No such file or directory
> /bin/sh: line 1: ./testsecond: No such file or directory
> /bin/sh: line 1: ./testdsecnd: No such file or directory
> /bin/sh: line 1: ./testversion: No such file or directory
> make[3]: *** [lapack_install] Error 127
> make[3]: Leaving directory 
> `/home/wmchung/Sage-build-5.9/sage-5.9/spkg/build/lapack-20071123.p2/src'
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] Mutable default parameters in Sage

2013-06-22 Thread Mathieu Guay-Paquet

On Friday, 21 June 2013 12:56:10 UTC+2, John Cremona wrote:
>
> Perhaps the best way forward would be to split this up into sections, 
> rather than doing it all at once.  For example we could deal with the 
> elliptic curve cases in one ticket.
>

Right, having separate tickets and patches for separate files would be a 
good idea, so I'll do it that way.

I haven't checked yet, but probably all the current cases are reasonably 
safe anyway, so it's a low priority fix. Possibly more important would be a 
short comment about this in the Developer's Guide to avoid future (and not 
so safe) instances creeping into Sage, so I'll do that too.

Thanks,
Mathieu

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] Re: The 2013 Spies Prize winner is...

2013-06-22 Thread Julien Puydt

Le 22/06/2013 21:55, leif a écrit :

William Stein wrote:

For his conscientious and technically excellent work as Sage release
manager, and his significant contributions to the Sage library,
Jeroen Demeyer is awarded the 2013 Spies Prize.


Just wonder whether he's already on vacation (i.e., offline)... ;-)

Anyway, congrats!


Congrats too.

Vacawhat?

Snark on #sage-devel

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Re: The 2013 Spies Prize winner is...

2013-06-22 Thread leif

William Stein wrote:

For his conscientious and technically excellent work as Sage release
manager, and his significant contributions to the Sage library,
Jeroen Demeyer is awarded the 2013 Spies Prize.


Just wonder whether he's already on vacation (i.e., offline)... ;-)

Anyway, congrats!


-leif

--
() The ASCII Ribbon Campaign
/\   Help Cure HTML E-Mail

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] The 2013 Spies Prize winner is...

2013-06-22 Thread David Kirkby
On 22 June 2013 19:48, William Stein  wrote:

> Please join me in congratulating Jeroen!
>
>  -- The 2013 Spies Prize Committee

Well done - an excellent choice.

Dave

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Re: The 2013 Spies Prize winner is...

2013-06-22 Thread Rob Beezer
Congratulations, Jeroen!  Well deserved.  Thanks for all your excellent 
work with the releases!

Rob

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-devel] The 2013 Spies Prize winner is...

2013-06-22 Thread David Joyner
Congrats Jeroen!


On Sat, Jun 22, 2013 at 2:48 PM, William Stein  wrote:
> Jeroen Demeyer has provided excellent service to the Sage community as
> release manager, starting with Version 4.6.1 in January 2011, just
> five months after his first code contribution.  He has continued to
> contribute significant code to the Sage library in the area of number
> theory, including over forty contributions related to the fundamental
> Sage package of PARI.
>
> Jeroen is everything the Sage community could ask for in a release
> manager.  He is a trusted custodian of the code and has built an
> impressive system for frequent beta and final releases.  He works
> carefully with developers and users to balance the priorities of
> fast-paced cutting-edge development, backwards compatibility,
> portability, and high-quality software.  During his tenure as release
> manager, he has earned great respect while making difficult decisions
> as he shaped the Sage that the world sees.  His efficient, timely,
> fair and knowledgeable work has won him the admiration of the Sage
> development community and has rendered a great service to the much
> larger user community.
>
> For his conscientious and technically excellent work as Sage release
> manager, and his significant contributions to the Sage library, Jeroen
> Demeyer is awarded the 2013 Spies Prize.
>
> Please join me in congratulating Jeroen!
>
>  -- The 2013 Spies Prize Committee
>
>
> --
> William Stein
> Professor of Mathematics
> University of Washington
> http://wstein.org
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] The 2013 Spies Prize winner is...

2013-06-22 Thread William Stein
Jeroen Demeyer has provided excellent service to the Sage community as
release manager, starting with Version 4.6.1 in January 2011, just
five months after his first code contribution.  He has continued to
contribute significant code to the Sage library in the area of number
theory, including over forty contributions related to the fundamental
Sage package of PARI.

Jeroen is everything the Sage community could ask for in a release
manager.  He is a trusted custodian of the code and has built an
impressive system for frequent beta and final releases.  He works
carefully with developers and users to balance the priorities of
fast-paced cutting-edge development, backwards compatibility,
portability, and high-quality software.  During his tenure as release
manager, he has earned great respect while making difficult decisions
as he shaped the Sage that the world sees.  His efficient, timely,
fair and knowledgeable work has won him the admiration of the Sage
development community and has rendered a great service to the much
larger user community.

For his conscientious and technically excellent work as Sage release
manager, and his significant contributions to the Sage library, Jeroen
Demeyer is awarded the 2013 Spies Prize.

Please join me in congratulating Jeroen!

 -- The 2013 Spies Prize Committee


-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Re: Import problem

2013-06-22 Thread Travis Scrimshaw
   It's better to import them at the module level (I've been told it's 
faster when calling the function). However due to circular imports, this is 
not always possible (unless you lazily import it). Although it sometimes is 
best to put things in functions that only use a certain module in one (or 
two) place(s).
   In short, yes, you are correct, but circular imports force us not to 
sometimes.

Best,
Travis


On Saturday, June 22, 2013 2:32:25 AM UTC-7, Matthieu Deneufchâtel wrote:
>
> Thanks, that works!
> I thought it was better to import the modules outside the functions I am 
> writing. Is there a rule ?
> Matthieu
>
> Le samedi 22 juin 2013 09:56:46 UTC+2, Travis Scrimshaw a écrit :
>>
>> Hey Matthieu,
>>Sounds like a circular import. You'll have to import FreeMonoid in the 
>> function that you are using it in. For example:
>>
>> def foo(x):
>> from sage.some.module import Bar
>> Bar(x)
>> ...
>>
>> Best,
>> Travis
>>
>>
>> On Friday, June 21, 2013 3:54:51 PM UTC+2, Matthieu Deneufchâtel wrote:
>>>
>>> I added the line
>>> from sage.monoids.free_monoid import FreeMonoid
>>> to the file combinat/words/finite_word.py
>>> and after I rebuilt the library, I get an error when I start Sage:
>>> /home/matthieu/Documents/sage-5.6/local/lib/python2.7/site-packages/sage/combinat/words/finite_word.py
>>>  
>>> in ()
>>> 199 from sage.rings.all import Integer, Infinity, ZZ
>>> 200 from sage.sets.set import Set
>>> --> 201 from sage.monoids.free_monoid import FreeMonoid
>>> 202 
>>> 203 def tomonoid_element(self):
>>>
>>> ImportError: cannot import name FreeMonoid
>>> Error importing ipy_profile_sage - perhaps you should run %upgrade?
>>> WARNING: Loading of ipy_profile_sage failed.
>>> Where does it come from?
>>> I also tried from sage.monoids.all import * but it did not work either.
>>> Matthieu
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] ppa mirror ?

2013-06-22 Thread Thierry Dumont


Hello,

Is there  only one ppa server for Ubuntu ?

If YES, may be it would be reasonable  to make mirrors: in my lab, I 
install sage on all the machines using the ppa: it means 5 interactive 
servers (we use ltsp for every day computer access) + a cluster of 12 
machines +
Maybe the "tube" is large between Lyon (France) and Cape-Town but I 
think it is by no means serious...


I could look at making a mirror...

t.

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


<>

Re: [sage-devel] Re: Error in compiling Sage 5.9 in Fedora 18

2013-06-22 Thread Wai Man Chung
Hi,

Thanks for the advice.

I have taken advice of Volker Braun and run "sudo yum install gcc-c++
gcc-gfortran", then I run "make" again, it runs for a while and it seems
the previous error is passed. But there is other similar error :

=
gfortran: error: libgfortran.spec: No such file or directory
make[4]: *** [testlsame] Error 1
make[4]: Leaving directory
`/home/wmchung/Sage-build-5.9/sage-5.9/spkg/build/lapack-20071123.p2/src/INSTALL'
/bin/sh: ./testlsame: No such file or directory
/bin/sh: ./testslamch: No such file or directory
/bin/sh: line 1: ./testdlamch: No such file or directory
/bin/sh: line 1: ./testsecond: No such file or directory
/bin/sh: line 1: ./testdsecnd: No such file or directory
/bin/sh: line 1: ./testversion: No such file or directory
make[3]: *** [lapack_install] Error 127
make[3]: Leaving directory
`/home/wmchung/Sage-build-5.9/sage-5.9/spkg/build/lapack-20071123.p2/src'
Error compiling lapack.

real0m0.356s
user0m0.043s
sys 0m0.060s

Error installing package lapack-20071123.p2




***
Error building Sage.

The following package(s) may have failed to build:

package: gcc-4.7.2.p1
log file: /home/wmchung/Sage-build-5.9/sage-5.9/logs/pkgs/gcc-4.7.2.p1.log
build directory:
/home/wmchung/Sage-build-5.9/sage-5.9/spkg/build/gcc-4.7.2.p1

package: lapack-20071123.p2
log file:
/home/wmchung/Sage-build-5.9/sage-5.9/logs/pkgs/lapack-20071123.p2.log
build directory:
/home/wmchung/Sage-build-5.9/sage-5.9/spkg/build/lapack-20071123.p2

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
-

It is quite strange. If you have any idea, I would be grateful if you can
further advse.

Regards,
W.M. Chung



On Sun, Jun 16, 2013 at 10:59 PM, leif  wrote:

> Volker Braun wrote:
>
>> I haven't seen that on Fedora before, but then I've never tried to
>> compile gcc in Sage. Ideally you'd just install the Fedora toolchain:
>>   sudo yum install gcc-c++ gcc-gfortran
>>
>
>
> Still, 
> /home/wmchung/Sage-build-5.9/**sage-5.9/spkg/build/sqlite-3.**7.5.p1/src/config.log
> would be interesting.
>
> And it seems Fedora's g++ (gcc-c++) was already installed (unless Sage's
> GCC spkg got installed half, which I don't think is likely to happen).
>
> It's also unclear to me why Sage would attempt to install further spkgs
> (i.e., sqlite) when installing Sage's toolchain failed (unless perhaps '-k'
> was given to 'make').
>
>
> -leif
>
>  On Sunday, June 16, 2013 8:02:33 AM UTC-4, Wai Man Chung wrote:
>>
>> Dear all,
>>
>> I am building Sage 5.9 from source code in Fedora 18 64 bit. I meet
>> error during the compilation :
>>
>> ==**==**
>> ==
>> checking whether we are using the GNU C++ compiler... yes
>> checking whether g++ accepts -g... yes
>> checking dependency style of g++... gcc3
>> checking how to run the C++ preprocessor... /lib/cpp
>> configure: error: C++ preprocessor "/lib/cpp" fails sanity check
>> See `config.log' for more details.
>> Error configuring sqlite
>>
>> real0m2.465s
>> user0m0.435s
>> sys 0m0.337s
>> 
>> 
>> Error installing package sqlite-3.7.5.p1
>> 
>> 
>> Please email sage-devel 
>> (http://groups.google.com/**group/sage-devel
>> 
>> 
>> >)
>>
>> explaining the problem and including the relevant part of the log file
>>/home/wmchung/Sage-build-5.9/**sage-5.9/logs/pkgs/sqlite-3.7.**
>> 5.p1.log
>> Describe your computer, operating system, etc.
>> If you want to try to fix the problem yourself, *don't* just cd to
>> /home/wmchung/Sage-build-5.9/**sage-5.9/spkg/build/sqlite-3.**7.5.p1
>> and
>> type 'make' or whatever is appropriate.
>> Instead, the following commands setup all environment variables
>> correctly and load a subshell for you to debug the error:
>>(cd
>> '/home/wmchung/Sage-build-5.9/**sage-5.9/spkg/build/sqlite-3.**
>> 7.5.p1'
>> && '/home/wmchung/Sage-build-5.9/**sage-5.9/sage' --sh)
>> When you are done debugging, you can type "exit" to leave the
>> subshell.
>> **

[sage-devel] Re: Import problem

2013-06-22 Thread Matthieu Deneufchâtel
Thanks, that works!
I thought it was better to import the modules outside the functions I am 
writing. Is there a rule ?
Matthieu

Le samedi 22 juin 2013 09:56:46 UTC+2, Travis Scrimshaw a écrit :
>
> Hey Matthieu,
>Sounds like a circular import. You'll have to import FreeMonoid in the 
> function that you are using it in. For example:
>
> def foo(x):
> from sage.some.module import Bar
> Bar(x)
> ...
>
> Best,
> Travis
>
>
> On Friday, June 21, 2013 3:54:51 PM UTC+2, Matthieu Deneufchâtel wrote:
>>
>> I added the line
>> from sage.monoids.free_monoid import FreeMonoid
>> to the file combinat/words/finite_word.py
>> and after I rebuilt the library, I get an error when I start Sage:
>> /home/matthieu/Documents/sage-5.6/local/lib/python2.7/site-packages/sage/combinat/words/finite_word.py
>>  
>> in ()
>> 199 from sage.rings.all import Integer, Infinity, ZZ
>> 200 from sage.sets.set import Set
>> --> 201 from sage.monoids.free_monoid import FreeMonoid
>> 202 
>> 203 def tomonoid_element(self):
>>
>> ImportError: cannot import name FreeMonoid
>> Error importing ipy_profile_sage - perhaps you should run %upgrade?
>> WARNING: Loading of ipy_profile_sage failed.
>> Where does it come from?
>> I also tried from sage.monoids.all import * but it did not work either.
>> Matthieu
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Re: Import problem

2013-06-22 Thread Travis Scrimshaw
Hey Matthieu,
   Sounds like a circular import. You'll have to import FreeMonoid in the 
function that you are using it in. For example:

def foo(x):
from sage.some.module import Bar
Bar(x)
...

Best,
Travis


On Friday, June 21, 2013 3:54:51 PM UTC+2, Matthieu Deneufchâtel wrote:
>
> I added the line
> from sage.monoids.free_monoid import FreeMonoid
> to the file combinat/words/finite_word.py
> and after I rebuilt the library, I get an error when I start Sage:
> /home/matthieu/Documents/sage-5.6/local/lib/python2.7/site-packages/sage/combinat/words/finite_word.py
>  
> in ()
> 199 from sage.rings.all import Integer, Infinity, ZZ
> 200 from sage.sets.set import Set
> --> 201 from sage.monoids.free_monoid import FreeMonoid
> 202 
> 203 def tomonoid_element(self):
>
> ImportError: cannot import name FreeMonoid
> Error importing ipy_profile_sage - perhaps you should run %upgrade?
> WARNING: Loading of ipy_profile_sage failed.
> Where does it come from?
> I also tried from sage.monoids.all import * but it did not work either.
> Matthieu
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-devel] Re: find_stat in Sage, the combinatorial_map decorator and its consequences

2013-06-22 Thread Dima Pasechnik
On 2013-06-22, Volker Braun  wrote:
> --=_Part_5_26369588.1371859450149
> Content-Type: text/plain; charset=ISO-8859-1
>
> http://www.python.org/dev/peps/pep-0318/
>
> On Friday, June 21, 2013 1:43:13 PM UTC-7, Dima Pasechnik wrote:
>>
>> Why does one even need a decorator in Simon's proposal? 
>>
>
> http://www.python.org/dev/peps/pep-0318/
Thanks Volker, I started writing code generating code 30+ years ago...
>
> I think a decorator like this makes the code unreadable, and if it can 
>> be avoided then it should be avoided. 
>>
>
> That is not the general consensus

I don't think it's general consensus that if project B needs something
from classes A0, A1, ... it must directly modify classes A0, A1,...
(already full of methods), just because it's the 1st thought the crossed
the designer's minds, and because they have the numbers to muscle this
design in.  IMHO B could very well derive from classes A0, A1,... and
place its extra methods in these derivations. Using decorators or
schmuckerators or whatever it sees fit.

One advantage of such design is that the code of B is located in one
place, instead of being all over the A0, A1,...

 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.