After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 505594 - nautilus-python: use Py_ssize_t for PyDict_Next
nautilus-python: use Py_ssize_t for PyDict_Next
Status: RESOLVED DUPLICATE of bug 444366
Product: nautilus-python
Classification: Other
Component: general
Git Master
Other All
: Normal critical
: ---
Assigned To: Johan (not receiving bugmail) Dahlin
Johan (not receiving bugmail) Dahlin
Depends on:
Blocks:
 
 
Reported: 2007-12-25 18:01 UTC by Scott Tsai
Modified: 2007-12-26 09:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
nautilus-python Py_ssize_t patch (729 bytes, patch)
2007-12-25 18:02 UTC, Scott Tsai
none Details | Review

Description Scott Tsai 2007-12-25 18:01:58 UTC
Please describe the problem:
On x86_64 boxes with a python newer than 2.5, nautilus-python does not actually execute any of the python extensions.

Passing a "Py_ssize_t" as the second argument to "PyDict_Next" in "nautilus_python_load_file" fixes this.

The attached patch maintains compatibility with python versions older than 2.5 using the pre-processor idiom suggested in PEP353:
http://www.python.org/dev/peps/pep-0353/


Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Scott Tsai 2007-12-25 18:02:37 UTC
Created attachment 101590 [details] [review]
nautilus-python Py_ssize_t patch
Comment 2 Johan (not receiving bugmail) Dahlin 2007-12-26 09:50:55 UTC

*** This bug has been marked as a duplicate of 444366 ***