parser bug in 1.5.0-65+

Bugs

Modérateur : xcasadmin

dimpase
Messages : 26
Inscription : mer. oct. 24, 2018 9:58 am

parser bug in 1.5.0-65+

Message par dimpase » jeu. oct. 17, 2019 7:33 am

It appears that len() is broken in versions 65 and later:
0>> len(x)
1
// Time 0
1>> len(x,y)
1
// Time 0
2>> len(x,y,z)
3
// Time 0

So something is wrong with len(x,y)

This was reported on https://groups.google.com/d/msg/sage-pa ... 0lPY-vDgAJ

Dima

parisse
Messages : 5734
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: parser bug in 1.5.0-65+

Message par parisse » jeu. oct. 17, 2019 12:43 pm

It's a side-effect of the changes I made to find the memory size of objects for devices with a (very) small amount of RAM. I will disable it. I'll keep only size() for diagnostics.

Code : Tout sélectionner

diff vecteur.cc vecteur.cc~
15033c15033
<       if (0 && s==2){
---
>       if (s==2){

parisse
Messages : 5734
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: parser bug in 1.5.0-65+

Message par parisse » jeu. oct. 24, 2019 11:52 am

Fixed in 1.5.0-69.

Répondre