ravikumar10 / genyris

Automatically exported from code.google.com/p/genyris
Other
0 stars 0 forks source link

(read) is missing the first char when called interactively #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
> (read)
1234
What is the expected output? What do you see instead?

expected
~ 1234

got
~ 234

Was sf defect #2830083

Original issue reported on code.google.com by birchb1...@gmail.com on 8 Dec 2010 at 2:30

GoogleCodeExporter commented 9 years ago
Fixed in 720:c379ed3cc0b8 - stream classes which were reading twice in hasData()

Original comment by birchb1...@gmail.com on 8 Dec 2010 at 2:41

GoogleCodeExporter commented 9 years ago
It's back!
> var p (IndentedParser(.new stdin))

[Exp: <IndentedStreamParser>] # IndentedParser 
> p(.read)
1234

(234) # Pair 

Original comment by birchb1...@gmail.com on 21 Dec 2010 at 3:01

GoogleCodeExporter commented 9 years ago
The stdio object is a singleton in 734:7d974813db0c, should be a fix. Loooks 
good, keep defect open until certain this time. Not easy to unit test...

Original comment by birchb1...@gmail.com on 21 Dec 2010 at 3:23

GoogleCodeExporter commented 9 years ago

Original comment by birchb1...@gmail.com on 15 Jul 2011 at 4:04