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@…


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 "", line 5, in <module>
    yaml.dump("Foobar", fd, Dumper=CSafeDumper)
  File "/home/jesstess/pyyaml-trunk/lib/yaml/", line 204, in dump
    return dump_all([data], stream, Dumper=Dumper, **kwds)
  File "/home/jesstess/pyyaml-trunk/lib/yaml/", line 195, in dump_all
AttributeError: 'CSafeDumper' object has no attribute 'dispose'

Attachments 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 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. 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. agen texas poker dan domino online indonesia terpercaya Situs Judi Poker Online Terbaik Terpercaya
 Singgasana Hotels & Resorts pilihan akomodasi terbaik di Indonesia
 Cipto Junaedy
 Cipto Junaedy
 Cipto Junaedy


Add a comment

Modify Ticket

Change Properties
<Author field>
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'

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

Note: See TracTickets for help on using tickets.