Re: [sage-devel] Help compiling on supercomputer!

2014-02-09 Thread Jori Mäntysalo
Quoting Kate Stange : Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: Have you tried cpan -i ExtUtils::MakeMaker ? At least on normal system I would start with this. -- Jori Mäntysalo -- You received this message because you are subscribed to the Google Groups "

[sage-devel] SageNB: load() unexpected argument 'attach'

2016-08-15 Thread Jori Mäntysalo
x27; and this has been discussed before. But what is the solution to this? This does not happen every time with "1+2" or something similar, but for all cells of maybe 5 line or longer this do happen. -- Jori Mäntysalo

[sage-devel] Trac: CC and keyphrases instead of keyword

2016-08-15 Thread Jori Mäntysalo
uld not want to receive notifications and not see it as "my ticket" after that. 2) Is it possible to enable keyphrases instead of keywords? Putting "foo bar, xyzzy" to keywords equals to "foo, bar, xyzzy". -- Jori Mäntysalo

Re: [sage-devel] Re: Problem retrieving a (positively reviewed) ticket

2016-08-20 Thread Jori Mäntysalo
On Sun, 21 Aug 2016, leif wrote: I am finding myself unable to fetch the positively reviewed ticket TRAC#21135 : No. Works for me: $ git fetch -v trac public/21135 && echo OK $ git fetch -v trac public/21135 fatal: Couldn't find remote ref public/21135 -- Jori Mäntysalo

[sage-devel] Comparison and logarithm on .py vs. interactive

2016-08-26 Thread Jori Mäntysalo
ed logarithm of integer in Sage? In Python 3.3 there is, but we use Python 2.x. -- Jori Mäntysalo

Re: [sage-devel] Re: Comparison and logarithm on .py vs. interactive

2016-08-26 Thread Jori Mäntysalo
) instead of 2 in the Python file.) Tested with 2r on Sage session, makes no difference. -- Jori Mäntysalo

Re: [sage-devel] Re: Comparison and logarithm on .py vs. interactive

2016-08-26 Thread Jori Mäntysalo
On Fri, 26 Aug 2016, leif wrote: Hmmm, does Posets.BooleanLattice() care whether you pass an int or an Integer? (I.e., does the return type of its methods change?) No: sage: P = Posets.BooleanLattice(3) sage: Q = Posets.BooleanLattice(3r) sage: P == Q True sage: P is Q True -- Jori

[sage-devel] Re: [sage-support] Re: (William Stein) "my top priority right now is to **make a lot of money**"

2016-08-26 Thread Jori Mäntysalo
that he gets killed in accident, somebody inherits copyrights of Sage etc.) -- Jori Mäntysalo

[sage-devel] List moderation: devel vs. support

2016-08-26 Thread Jori Mäntysalo
I just learnt that this devel-list is moderated, whereas support-list is not. I think that it should be just the opposite. -- Jori Mäntysalo

Re: [sage-devel] Re: Comparison and logarithm on .py vs. interactive

2016-08-26 Thread Jori Mäntysalo
result. Thanks! * * * But shouldn't it work in any case? I.e. comparison of log(a+b*c^2...) to some number should work when a,b,c... are sage Integers. -- Jori Mäntysalo

Re: [sage-devel] Re: Categories catalog?

2016-09-02 Thread Jori Mäntysalo
. But should there be groups.KleinFour() or just groups.permutation.KleinFour()? (And graphs.Petersen() would be enought, but that's another story.) -- Jori Mäntysalo

[sage-devel] Output of matrix with complex values

2016-09-14 Thread Jori Mäntysalo
some logic in printing sometimes a+bi and bi+a in other times? And should it be unified? -- Jori Mäntysalo

[sage-devel] Trac unavailable again?

2016-09-25 Thread Jori Mäntysalo
it fetch trac u/jmantysalo/note-colons" STDERR: fatal: unable to connect to trac.sagemath.org: STDERR: trac.sagemath.org[0: 104.197.143.230]: errno=Connection refused trac.sagemath.org answers to ping. -- Jori Mäntysalo

Re: [sage-devel] Re: [sagemath-admins] trac not responding

2016-09-26 Thread Jori Mäntysalo
On Mon, 26 Sep 2016, Harald Schilly wrote: or maybe this: git remote add trac2 g...@trac.sagemath.org:sage.git git fetch trac2 and see if that works. Works, but then how to checkout tickets after that? -- Jori Mäntysalo

Re: [sage-devel] Re: Trac unavailable again?

2016-09-26 Thread Jori Mäntysalo
...@trac.sagemath.org:sage.git (fetch) trac2 g...@trac.sagemath.org:sage.git (push) -- Jori Mäntysalo

Re: [sage-devel] Re: Trac unavailable again?

2016-09-26 Thread Jori Mäntysalo
On Mon, 26 Sep 2016, Dima Pasechnik wrote: i.e. you should see  trac        g...@trac.sagemath.org:sage.git (fetch)  trac        g...@trac.sagemath.org:sage.git (push)  Thanks! This works now. -- Jori Mäntysalo

[sage-devel] Notebook stuck on "N?" with a worksheet

2016-10-07 Thread Jori Mäntysalo
characters or something in text cells before it, as the problem faded away when I remove those. Because of that I did not clear the example from Finnish texts. -- Jori Mäntysalo

Re: [sage-devel] Notebook stuck on "N?" with a worksheet

2016-10-07 Thread Jori Mäntysalo
On Fri, 7 Oct 2016, Jori Mäntysalo wrote: Could someone try SageNB with http://www.sis.uta.fi/~jm58660/Broken.sws More about this: the computation works, but getting output back to the browser window does not work. So if I reload the page, it seems to be OK. But with other worksheets

Re: [sage-devel] To the attention of Nicolas M Thiéry (recursive-monkey-patch)

2016-10-09 Thread Jori Mäntysalo
On Sun, 9 Oct 2016, Emmanuel Charpentier wrote: sage.symbolic.expression.Expression, you jus have to patch the source and recompile. That means a turnaround time of 10-40 minutes each time. How? ./sabe -b takes less than a minute even on quite old machine. -- Jori Mäntysalo

[sage-devel] About exceptions

2016-10-12 Thread Jori Mäntysalo
out of memory or something like that? -- Jori Mäntysalo

Re: [sage-devel] About exceptions

2016-10-12 Thread Jori Mäntysalo
is bad (but not nearly as bad as a bare "except:") OK, I'll correct those when I see one. There are 56 on combinat, 50 on rings and 30 on graphs. -- Jori Mäntysalo

Re: [sage-devel] About exceptions

2016-10-12 Thread Jori Mäntysalo
ot; or just a DiGraph with some special properties? -- Jori Mäntysalo

Re: [sage-devel] About exceptions

2016-10-12 Thread Jori Mäntysalo
ds to be used here. So we have now a common view that 'type' in TypeError should (mostly?) refer to types in wrong class, wrong category etc; and so for functions having no input it should (almost?) never happen. -- Jori Mäntysalo

Re: [sage-devel] Re: About exceptions

2016-10-12 Thread Jori Mäntysalo
we have a *method* (i.e., a function with one argument "self"), and "self" of course has the correct type but has a wrong value. Yep, mostly those functions should raise ValueError. (Or, maybe, some error derived from it; but that might be really, really bikeshedding.) -- Jori Mäntysalo

Re: [sage-devel] About exceptions

2016-10-13 Thread Jori Mäntysalo
defined) and ValueError for programming errors (an input which a priori does not make sense). Documentation for ValueError says "- - and the situation is not described by a more precise exception - -". Maybe there should be something like MathematicalError as a base class instead of ArithmeticError, but we can't change that. -- Jori Mäntysalo

Re: [sage-devel] About exceptions

2016-10-13 Thread Jori Mäntysalo
I opened https://trac.sagemath.org/ticket/2169 to make some example. I guess you mean that for example ValueError("%s and %s must be positive integers." % (m, n)) should be as it is, but ValueError("the poset is not ranked") changed to ArithmeticError. -- Jori Mäntysalo

Re: [sage-devel] Milestones

2016-10-14 Thread Jori Mäntysalo
left author-field empty if I am not sure that I'll make patch myself. * * * But we don't have any plans like "Version 8 will be out about q1/2018 and will have mostly more support for numerical linear algebra.", and so milestones are not really used. -- Jori Mäntysalo

[sage-devel] Customizin failed login -page

2016-10-16 Thread Jori Mäntysalo
ogin -page. -- Jori Mäntysalo

Re: [sage-devel] Milestones

2016-10-17 Thread Jori Mäntysalo
On Mon, 17 Oct 2016, Erik Bray wrote: Does Sage have *any* kind of roadmap planning? No. What kind of roadmap it could be? If some developers are interested in graph theory, how to make them to add more linear algebra code to Sage? -- Jori Mäntysalo

Re: [sage-devel] Milestones

2016-10-17 Thread Jori Mäntysalo
16-11-15). In principle doable. It would mean that Volker won't change beta to rc until some predefined date, and will make the change unless there is a very good reason to release still one beta. -- Jori Mäntysalo

Re: [sage-devel] Re: Customizin failed login -page

2016-10-17 Thread Jori Mäntysalo
is Sorry, I was unclear. They "see" it in techical sense, but mostly don't read or notice. ("Hear but not listen", I don't know if there is same kind of verb pair for visual reception.) -- Jori Mäntysalo

Re: [sage-devel] Milestones

2016-10-17 Thread Jori Mäntysalo
that having two branches is just too much. In perfect world we could have LTS with bugfixes only and so on, but we have not enought manpower for that. But we could have some kind of decision like "7.6rc0 will be out at the end of April 2017." -- Jori Mäntysalo

Re: [sage-devel] Milestones

2016-10-17 Thread Jori Mäntysalo
advance when the new version will be available. -- Jori Mäntysalo

[sage-devel] Overcommitted memory and error handling

2016-10-17 Thread Jori Mäntysalo
("Failure allocating memory.") but due to overcommit there is no exception raised. Setting (as root) the value of /proc/sys/vm/overcommit_memory will not help, but may change error message given. -- Jori Mäntysalo

Re: [sage-devel] Overcommitted memory and error handling

2016-10-18 Thread Jori Mäntysalo
he line I sent, and you can see that it will fail in memset(). (But, as said, with different error message.) I used 64-bit Ubuntu 16.04 LTS with most recent kernel from Ubuntu packages. This kernel should not have any tweaks. -- Jori Mäntysalo

[sage-devel] Notebook stuck on "N?" with a worksheet (fwd)

2016-10-20 Thread Jori Mäntysalo
Anybody? One -- and only one -- of my users if having really big problems with cells not responding. Somehow computation seems to work, but the result is not got back to worksheet. Pressing refresh helps sometimes, not always. How to debug this? -- Jori Mäntysalo -- Forwarded

[sage-devel] Testing corner cases

2016-10-22 Thread Jori Mäntysalo
found that for example is_triangle_free() and is_cayley() fails. known_kaboom is needed as for example is_prime() don't just throw an exception, it stops the whole workseet.) -- Jori Mäntysalo

Re: [sage-devel] Re: Notebook stuck on "N?" with a worksheet

2016-10-22 Thread Jori Mäntysalo
te "1+2", press Shift+Enter. Got "3". Press arrow up, correct text to "1+3", again Shift+Enter and arrow up. And now how to correct the line to "1+4" without mouse? This is 64-bit Ubuntu, Firefox from repository, all up-to-date. (OK, can do that, but is not quick and easy.) -- Jori Mäntysalo

Re: [sage-devel] Re: Notebook stuck on "N?" with a worksheet

2016-10-22 Thread Jori Mäntysalo
ion environment) and so. (Besides that, University of Tampere, Technical University of Tampere and University of Applied Sciences of Tampere will be united from 1.1.2018. So check out what other two wants and be ready for that too. Maple to same server maybe?) -- Jori Mäntysalo

Re: [sage-devel] Re: Notebook stuck on "N?" with a worksheet

2016-10-23 Thread Jori Mäntysalo
try this (yet). How others teach Sage? Here I make a Sage account of the form "Coursecode-Year", and the teacher asks students to share worksheet with that account. -- Jori Mäntysalo

Re: [sage-devel] Re: Notebook stuck on "N?" with a worksheet

2016-10-24 Thread Jori Mäntysalo
Can you give me some kind of Hello world! -example of Jupyter? ./sage --notebook=jupyter will open a server to port --- how to change the port or, more general, is there some help file? First I would like to see a way to have two local user using Sage and not seeing each other files. --

Re: [sage-devel] Re: Notebook stuck on "N?" with a worksheet

2016-10-25 Thread Jori Mäntysalo
F-8" dpkg-reconfigure locales pip3 install jupyterhub Noticed that it used IPv6, got a headache when googling, found the instruction to put GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet" on /etc/default/grub, said update-grub and got the login prompt. -- Jori Mäntysalo

Re: [sage-devel] Re: Notebook stuck on "N?" with a worksheet

2016-10-25 Thread Jori Mäntysalo
last look for worksheet sharing. Thanks for help! -- Jori Mäntysalo

[sage-devel] Re: Installing JupyterHub and LDAP

2016-10-26 Thread Jori Mäntysalo
r GAP or...) from Jupyter? Can I change worksheet type, for example test what "10/4" will output as a plain Python2? Both are possible with SageNB. -- Jori Mäntysalo

Re: [sage-devel] Re: Notebook stuck on "N?" with a worksheet

2016-10-26 Thread Jori Mäntysalo
test this hypothesis?". Maybe some day...) -- Jori Mäntysalo

[sage-devel] Multivariate polynomial factoring and bug(?)

2016-10-27 Thread Jori Mäntysalo
F = factor(P*Q) and this got stuck. Might be that it just needs more memory than I have; I don't know how much it normally uses. -- Jori Mäntysalo

Re: [sage-devel] Multivariate polynomial factoring and bug(?)

2016-10-27 Thread Jori Mäntysalo
number. I don't know if it plays well with Sage random state. But in any case, this is just a test code to see how well Singular works. -- Jori Mäntysalo

Re: [sage-devel] Multivariate polynomial factoring and bug(?)

2016-10-27 Thread Jori Mäntysalo
algorithm Singular uses, and the memory requirements. So this may be just a feature. (Actually there is at least a minor bug: at mimum I should have gotten an error message about running out of memory.) -- Jori Mäntysalo

Re: [sage-devel] vote on behaviour of is_similar for matrices

2016-10-28 Thread Jori Mäntysalo
much harder to debug. It is not that hard to add some if M.ncols()==... before .is_similar(). -- Jori Mäntysalo

Re: [sage-devel] Multivariate polynomial factoring and bug(?)

2016-10-28 Thread Jori Mäntysalo
I also used Sage to generate random polynomials. -- Jori Mäntysalo

Re: [sage-devel] Re: Installing JupyterHub and LDAP

2016-10-28 Thread Jori Mäntysalo
For other purposes Jupyterhub seems to be a great piece of software. -- Jori Mäntysalo

Re: [sage-devel] Multivariate polynomial factoring and bug(?)

2016-10-29 Thread Jori Mäntysalo
(n) with given n, it is not that random. -- Jori Mäntysalo

Re: [sage-devel] Re: Multivariate polynomial factoring and bug(?)

2016-10-31 Thread Jori Mäntysalo
), which requires much more ressources (I have checked with giac and aborted after half an hour and more than 8G of RAM required). OK and thanks! This explains clearly why this happens. -- Jori Mäntysalo

Re: [sage-devel] Re: Testing corner cases

2016-10-31 Thread Jori Mäntysalo
every distributive lattice is modular.) etc. -- Jori Mäntysalo

Re: [sage-devel] Re: Installing JupyterHub and LDAP

2016-11-01 Thread Jori Mäntysalo
On Fri, 28 Oct 2016, Dima Pasechnik wrote: Well, I suppose you can install more "usual" jupyter kernels, e.g. R one, GAP one, etc. Of course, but then profit for using Sage fades away. On the plus side I could have "kernels" for, say, last two stable versions and

Re: [sage-devel] Re: Bug in caching mechanism of FiniteEnumeratedSet

2016-11-02 Thread Jori Mäntysalo
ve snippet: a = list(Subsets(range(13), 5)) And suddenly the first code snippet will never print anything. Tell me that's not a bug! To me it seems to be worst than a bug: intentionally broken design. Something like this is almost impossible to teach in classroom. -- Jori Mäntysalo

Re: [sage-devel] Re: Testing corner cases

2016-11-06 Thread Jori Mäntysalo
You won't get a wrong result from stack trace. -- Jori Mäntysalo

Re: [sage-devel] New algorithm for checking if a graph is Cayley

2016-11-08 Thread Jori Mäntysalo
examples? Is it on a worksheet, or already integrated as a part of Sage code? Have you tested that it is faster than what Sage currently have? -- Jori Mäntysalo

Re: [sage-devel] New algorithm for checking if a graph is Cayley

2016-11-09 Thread Jori Mäntysalo
middle solution is to make it _is_simple_deterministic(), so it won't show up in -completion or html documentation. is_cayley_directed() has no explanation of what is a Cayley graph. I haven't read the paper, so I can not comment about the idea. -- Jori Mäntysalo

Re: [sage-devel] New algorithm for checking if a graph is Cayley

2016-11-10 Thread Jori Mäntysalo
posets.py: - "Dushnik-Miller" is mentioned in dimension() - Eponymous "slender" is said in is_slender() - "Semiorder" etc. are named in is_incomparable_chain_free() -- Jori Mäntysalo

Re: [sage-devel] Speed question re the sigma function

2016-11-15 Thread Jori Mäntysalo
use some kind of heuristic to guess what will be the fastest way. -- Jori Mäntysalo

[sage-devel] Graph plotting: _pos and acyclic layout

2016-11-22 Thread Jori Mäntysalo
int(H._pos) and got {0: [0.50239985054502, 0], 1: [0.5037689172710763, 1]} {0: [0.5001236499103481, 0], 1: [0.5075885512735917, 1]} So should the save_pos do something when layout is not the default? It seems that at least it is not strictly deterministic. -- Jori Mäntysalo

[sage-devel] Return false or raise error on some situations

2016-12-04 Thread Jori Mäntysalo
swer. So please give your opinion. * * * I think we all agree that this should be consistent, and something like is_induced_subposet() should also behave in the same way. -- Jori Mäntysalo

Re: [sage-devel] Aliases

2016-12-07 Thread Jori Mäntysalo
s_parallel() on src/sage/combinat/posets/posets.py. (IMO tab completion could even show linkage() when g.l is pressed and show something like "linkage (alias to degeneracy)", but that's not a decision that Sage should do, it should be a property of IPython.) -- Jori Mäntysalo

[sage-devel] Python3-compatible syntax

2016-12-11 Thread Jori Mäntysalo
gainst Py3 when making patches. That will save time later. -- Jori Mäntysalo

Re: [sage-devel] Re: Python3-compatible syntax

2016-12-12 Thread Jori Mäntysalo
le to run git diff --name-only develop your-new-branch | xargs python3... -- Jori Mäntysalo

Re: [sage-devel] Re: Aliases

2016-12-14 Thread Jori Mäntysalo
thing like ZZ which is very common and have quite long "real" name.) Btw, is there an easy way for a user to add own aliases? So that it would go to the right place in hierarchy. -- Jori Mäntysalo

Re: [sage-devel] Re: Release note auto-generation RFC

2017-01-13 Thread Jori Mäntysalo
listed in the high-level view. If #1 adds foo() to graphs and #2 adds bar(), then the list should have something like "Graph enchancements: foo() and bar()." Which ticket should contain that information? Hard question is this. -- Jori Mäntysalo

[sage-devel] Closing wontfix-tickets

2017-01-19 Thread Jori Mäntysalo
Could someone close all 49 wontfix-positive_review -tickets? IMO it would be nice to have this done after every stable release. -- Jori Mäntysalo

[sage-devel] cc1 killed in iMac

2017-02-06 Thread Jori Mäntysalo
might be a real bug. The hardware should be OK, I just wiped HD and installed 32-bit Ubuntu 16.04.1 LTS. * * * Btw, what is the oldest and slowest computer where SageMath currently can be compiled (without docs, as docbuilding should preferably be done in a supercomputer near you...)? -- Jori

Re: [sage-devel] cc1 killed in iMac

2017-02-07 Thread Jori Mäntysalo
sure). Yes, that was it. Ubuntu installer had made 1 GB swap, so I had total of 2 GB. I made a 5 GB swapfile, and now it seems to compile. Very very slowly, but compiling anyways. -- Jori Mäntysalo

[sage-devel] Re-wording parameter names in plot()

2017-02-10 Thread Jori Mäntysalo
am unsure aftera a comment from Kevin. -- Jori Mäntysalo

[sage-devel] Boolean-valued functions and seealso-blocks

2017-02-13 Thread Jori Mäntysalo
vers or are covered by the Boolean property in a poset of property implications. -- Jori Mäntysalo

Re: [sage-devel] Boolean-valued functions and seealso-blocks

2017-02-13 Thread Jori Mäntysalo
On Mon, 13 Feb 2017, Daniel Krenn wrote: +1 for crosslinks of any kind An example: https://trac.sagemath.org/ticket/22377 -- Jori Mäntysalo

[sage-devel] Re-wording parameter names in plot() (fwd)

2017-02-18 Thread Jori Mäntysalo
/ticket/18545 , but now I am unsure after a comment from Kevin. -- Jori Mäntysalo

Re: [sage-devel] Hiding answers to non-trivial exercises in thematic tutorials

2017-03-03 Thread Jori Mäntysalo
"hidden", and maybe some larger code snippets available behind a click and so on. -- Jori Mäntysalo

[sage-devel] Warning, slow doctest vs. # long time

2017-03-21 Thread Jori Mäntysalo
Is it possible to modify doctesting framework to have different time for tests marked with # long time? Something like sage --warn-long 1,10 could give warning for only doctests taking more than 10 seconds if they are explicitly marked as slow. -- Jori Mäntysalo

Re: [sage-devel] Warning, slow doctest vs. # long time

2017-03-21 Thread Jori Mäntysalo
On Tue, 21 Mar 2017, David Roe wrote: currently not stored anywhere.  The place you'll need to change is line 566 of sage/doctest/parsing.py, where you'll need to do something like Thanks for pointing right files. I opened #22661 for this and also put in some example code.

Re: [sage-devel] Re: How about moving the AUTHORS section to the last?

2017-04-21 Thread Jori Mäntysalo
tured docstring would of course be a good thing. Then we could, as an example, hide the AUTHORS-section if wanted etc. -- Jori Mäntysalo

Re: [sage-devel] not receiving trac mail notification anymore

2017-05-03 Thread Jori Mäntysalo
Not directly related, but I got notifications with one exception: closing tickets. Would be nice to have those too. -- Jori Mäntysalo

[sage-devel] Trac down

2017-05-08 Thread Jori Mäntysalo
Trac gives the Internal server error, and even that after waiting a minute. -- Jori Mäntysalo

Re: [sage-devel] Re: Trac down

2017-05-08 Thread Jori Mäntysalo
On Mon, 8 May 2017, Dima Pasechnik wrote: Works for me. A particular link you have problem there? Seems to work again. At least these had problems: https://trac.sagemath.org/ticket/22773 https://trac.sagemath.org/ticket/22674 -- Jori Mäntysalo

[sage-devel] Unifying "test::" and "tests::"

2017-05-09 Thread Jori Mäntysalo
that someday there could be more structured processing of help, maybe foldable HTML help or something like that. -- Jori Mäntysalo

Re: [sage-devel] Sage policy question: require docstrings and doctests?

2017-05-09 Thread Jori Mäntysalo
ke EXAMPLES:: sage: pass # Actually tested in foobar() ? Then we could automatically check the code and see that every function has the examples-block. -- Jori Mäntysalo

Re: [sage-devel] Re: Unifying "test::" and "tests::"

2017-05-16 Thread Jori Mäntysalo
ve to represent the exact Sage/Python types." with an example, and I have added "Start with assumptions of the object, if there are any." etc. And about that: what should be the place of SEEALSO-block? Or in general, order of blocks? -- Jori Mäntysalo

Re: [sage-devel] Re: Unifying "test::" and "tests::"

2017-05-17 Thread Jori Mäntysalo
looking for example is_isoform() at finite lattices. Could we have an exact format for those? -- Jori Mäntysalo

Re: [sage-devel] Sage policy question: require docstrings and doctests?

2017-05-17 Thread Jori Mäntysalo
quite massive output of failing tests... What kind of testing we are talking now? As an example we can create a random graph g and check that g.is_planar() == (g.genus() == 0) etc. Should we have that kind of randomized test? (I do those, but have not included them to Sage code.) -- Jori

Re: [sage-devel] Several choises for docstring

2017-05-17 Thread Jori Mäntysalo
lock? 12) Having lists of weaker and stronger properties is my idea. It can be discussed too. 13) When should we use the format LatticePoset({1: [...]...}) in the examples, and when LatticePoset(DiGraph('GTE3_#H'))? 14) What are good examples anyway? At least these questions can be discussed, and this was only for a very small and clearly defined function. -- Jori Mäntysalo

[sage-devel] About certificate-parameter

2017-05-17 Thread Jori Mäntysalo
ys returns a pair (i.e. a tuple of two elements) where first value is True or False, and the second value is the certificate or None. But that won't make the question about docstring easier. What to do if INPUT and OUTPUT are strongly related? See for example automorphism_group() of a g

Re: [sage-devel] Re: Poll for issue G2 a specific guideline for writing docstrings

2017-05-17 Thread Jori Mäntysalo
ve no guideline at all, we will end having add_vertex() -> Add a vertex to this graph. add_edge() -> Add an edge to ``self``. or something similar. We could at least reduce that. -- Jori Mäntysalo

[sage-devel] About oneliners in TOC vs. docstring

2017-05-17 Thread Jori Mäntysalo
mation, as is_sectionally_complemented() -> Return True if the lattice is sectionally complemented sounds informationless explanation. What others think about this? (Of course this only works when there a short explanation is possible; more often it is not.) -- Jori Mäntysalo

Re: [sage-devel] Re: About oneliners in TOC vs. docstring

2017-05-18 Thread Jori Mäntysalo
should first see if we want to have "test if..." -structure in function docstrings. -- Jori Mäntysalo

Re: [sage-devel] Re: About oneliners in TOC vs. docstring

2017-05-18 Thread Jori Mäntysalo
On Thu, 18 May 2017, Vincent Delecroix wrote: Yep, seems to be nicer. But maybe we should first see if we want to have "test if..." -structure in function docstrings. How is this different from the poll G3 where everybody seems to agree - - I think that the poll is still open

Re: [sage-devel] Docstring standards: new Sphinx directives? New Sphinx directions?

2017-05-18 Thread Jori Mäntysalo
INPUT? In some more complicated situations, mostly constructors, we also could have examples inside input blocks. -- Jori Mäntysalo

Re: [sage-devel] Second round poll for H1 a specific guideline for writing docstrings

2017-05-18 Thread Jori Mäntysalo
-support. And if that fails too, we will give an official dollar coin to William. He will then toss a coin to make an arbitrary decision. (By guideline I do not mean a rule.) -- Jori Mäntysalo

Re: [sage-devel] Second round poll for H2 a specific guideline for writing docstrings

2017-05-19 Thread Jori Mäntysalo
the developer manual. Here is my opinion. But a metaquestion: Why can't someone (like Kwankyu) just got direct emails and make a summary? It is of course different when I have untold arguments to tell, not just +1 or -1. -- Jori Mäntysalo

Re: [sage-devel] Re: Second round poll for H5 a specific guideline for writing docstrings

2017-05-19 Thread Jori Mäntysalo
. - If ``certificate=False`` return either (True, None) or (False, XX), where XX is... -- Jori Mäntysalo

Re: [sage-devel] Re: Second round poll for H5 a specific guideline for writing docstrings

2017-05-19 Thread Jori Mäntysalo
comment this. We can have longer INPUT and shorter OUTPUT, or vice versa. -- Jori Mäntysalo

Re: [sage-devel] Re: Second round poll for H5 a specific guideline for writing docstrings

2017-05-22 Thread Jori Mäntysalo
On Mon, 22 May 2017, Jeroen Demeyer wrote: On 2017-05-19 14:16, Jori Mäntysalo wrote: The only thing I want to see in the OUTPUT block is the *type* of the objects and how many of them. Why that? What's wrong with being verbose in the OUTPUT block? This is a misquote. I support some

Re: [sage-devel] Second round poll for H5 a specific guideline for writing docstrings

2017-05-22 Thread Jori Mäntysalo
is essential) +1 from me too. Something printed (a, b, c) might actually be something more complicated that a plain tuple. -- Jori Mäntysalo

  1   2   3   4   5   6   >