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

8:39 AM
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
 
8:56 AM
@AnttiHaapala Ok one more question now. Whats IANG? :D And the previous one--> \w+@haapala.name?
 
1 message moved from Python
 
9:07 AM
1 message moved from Python
 
 
3 hours later…
12:10 PM
@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…
7:26 PM
fuck
 
DSM
1 message moved from Python
 

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