« first day (719 days earlier)      last day (2859 days later) » 

08:39
doing some homework in Python and can't figure out why Python won't read my file
```
with open("./oving-3.txt", "w+") as f:
print("Oppgave 1a \n")
f.write("Hallo\n")
f.write("Skriver en linje til!\n")
f.write("Her kommer enda en linje!\n")
print("Ferdig!\n")

print("Oppgave 1b-c \n")
with open("./oving-3.txt", "r+b") as f:
print f.read(10)
```

When I open the .txt file in an editor, the expected text is there, but running read with Python won't do anything
08:56
@AnttiHaapala Ok one more question now. Whats IANG? :D And the previous one--> \[email protected]?
1 message moved from Python
09:07
1 message moved from Python
 
3 hours later…
12:10
@PeterVaro simple
it is not about dunder
it is about slot-methods
slot-methods cannot be descriptors, these need to be simple callables
@Antti I think what Peter would like to happen is that special class methods would be lifted up to the meta type automatically
ah yeah that too :d
I thought it was an instance...
nvm :D
8 messages moved from Python
 
7 hours later…
19:26
fuck
DSM
DSM
1 message moved from Python

« first day (719 days earlier)      last day (2859 days later) »