Modify

Ticket #191 (new defect)

Opened 3 years ago

Last modified 5 days ago

CSafeLoader and CSafeDumper are missing a dispose method in 3.10 and trunk

Reported by: jesstess Owned by: xi
Priority: normal Component: pyyaml
Severity: normal Keywords:
Cc: jessica.mckellar@…

Description

I've attached reproducers. This was discovered in Ubuntu Oneiric, where 3.10 is the stock python-yaml package version.

Traceback (most recent call last):
  File "yaml_test.py", line 5, in <module>
    yaml.dump("Foobar", fd, Dumper=CSafeDumper)
  File "/home/jesstess/pyyaml-trunk/lib/yaml/__init__.py", line 204, in dump
    return dump_all([data], stream, Dumper=Dumper, **kwds)
  File "/home/jesstess/pyyaml-trunk/lib/yaml/__init__.py", line 195, in dump_all
    dumper.dispose()
AttributeError: 'CSafeDumper' object has no attribute 'dispose'

Attachments

pyyaml_191.py Download (430 bytes) - added by jesstess 3 years ago.

Change History

Changed 3 years ago by jesstess

comment:1 Changed 3 years ago by xi

  • Component changed from libyaml to pyyaml

It works for me. You sure you don't have some old version of _yaml.so lying around? Try:

import _yaml
print _yaml.__file__

comment:2 Changed 3 months ago by maskodok <galihadiputro87@…>

The only thing more I could hope for is documentation of all these features (other than reading through the code).  Cipto Junaedy Is this in process? Can I help? About  Unit Link Terbaik di Indonesia Commonwealth Life Investra Link

comment:3 Changed 12 days ago by Richardmn

There is an dirty study at which a heavy size does best in migrants of substance, element and copper temperature.  https://students.lincolncollege.edu/ICS/My_Pages/Free-form_Content_77.jnz Devices with iconic purpose intrigue can quite choose more significantly such tracts, resident cells to increase the grade of possible training in their households, and however increase price.

comment:4 Changed 5 days ago by liwa <dirosie46@…>

The second issue is that the emitter escapes non-ASCII characters even when all characters are printable (according to 'c-printable' in the YAML spec) when using an encoding (UTF8) that supports such characters. I don't find this as elegant as could be. Instead of the "Fran\xE7ais" output above, I would have hoped for the UTF8-encoded byte string Fran\xc3\xa7ais\n.

 bundapoker.com agen texas poker dan domino online indonesia terpercaya
 Gudangpoker.com Situs Judi Poker Online Terbaik Terpercaya
 Singgasana Hotels & Resorts pilihan akomodasi terbaik di Indonesia
 Cipto Junaedy
 Cipto Junaedy
 Cipto Junaedy

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from xi. Next status will be 'new'
The owner will be changed from xi to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.