Ticket #97 (closed enhancement: wontfix)
Reader can be an instance variable in Scanner
|Reported by:||py4fun@…||Owned by:||xi|
thank you for PyYAML. Unfortunately I need to exchange YAML between Java and Python and Java does not have such a good library as PyYAML. There is a port of PyYAML (JvYAML) but it is dead.
I would like to develop the Java port further that it reaches the quality of PyYAML. To simplify maintenance I would like to be as close to the PyYAML API as possible.
May I propose to make Reader an instance variable in Scanner?
Can you please apply the attached patch to achieve the following:
- improve encapsulation. Scanner and Reader can be instantiated and tested separately
- Java can use the same approach (Java does not have multiple inheritance)
All the tests succeed.