Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Notice Board

Per partecipare al corso di Fondamenti di programmazione 2023-24 loggatevi e attivatelo nella vostra pagina dei corsi preferiti. A quel punto il corso appare nel menù personale cliccando sul proprio avatar. Per i materiali degli anni precedenti seguite lo stesso metodo.

To join the Programming/Lab 2023-24 course, log-on and select it on the my courses page. It will appear on the personal menu of your avatar. For earlier years use the same method.

Solito errore TerminalWriter Hw8

Exyss (21510 points)
1 2 79
in HW8 by (21.5k points)
edited by

Segnalo la presenza del solito errore TerminalWriter anche nell'Hw8

args = ('py._io.terminalwriter', None, None, ['__doc__']), kargs = {}
name = 'py._io.terminalwriter', rest = [None, None, ['__doc__']]

    def _check_import(*args, **kargs)=
        name, *rest = args
        if name in forbidden or (not forbidden and name not in allowed)=
            print(f"Importing {name} (globals, locals, {rest[-2=]}) (not allowed)")
>           raise ForbiddenError(f"The import of '{name}' is forbidden")
E           testlib.ForbiddenError= The import of 'py._io.terminalwriter' is forbidden

testlib.py=39= ForbiddenError

Credo sia dovuto ad un Timeout del mio codice nel Test 8, visto che si tratta del test più lungo tra tutti, anche se non ne sono sicuro visto che considerando il Warp x2 della VM e il tempo in locale sul mio pc dovrebbe comunque rientrare nel timeout impostato.

EDIT: sembra essersi risolto dopo aver re-uplodato lo stesso codice stamattina, credo fosse un timeout sfortuito

349 views

1 Answer

andrea.sterbini (207920 points)
750 1267 2373
by (208k points)
Grazie.            .
Exyss (21510 points)
1 2 79
by (21.5k points)

Questo bug la tormenterà all'infinito prof angel

andrea.sterbini (207920 points)
750 1267 2373
by (208k points)
:LOL:                                                     .