[gnome-devel-docs] platform-demos: Rephrase line about string encoding in Python 3.x
- From: Sindhu Sundar <sindhus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] platform-demos: Rephrase line about string encoding in Python 3.x
- Date: Thu, 6 Mar 2014 19:19:55 +0000 (UTC)
commit 5d61566c1b923cc993d4bc98e06b603ced29a9dd
Author: Sindhu S <sindhus live in>
Date: Thu Mar 6 23:04:48 2014 +0530
platform-demos: Rephrase line about string encoding in Python 3.x
platform-demos/C/strings.py.page | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/platform-demos/C/strings.py.page b/platform-demos/C/strings.py.page
index 43293ac..f9db3e0 100644
--- a/platform-demos/C/strings.py.page
+++ b/platform-demos/C/strings.py.page
@@ -103,7 +103,7 @@ b'Fu\xc3\x9fb\xc3\xa4lle sind rund']]></code>
<p>In general it is recommended to not use <code>unicode</code> objects in GTK+ applications at all, and
only use UTF-8 encoded <code>str</code> objects since GTK+ does not fully integrate with <code>unicode</code>
objects.</p>
-<p>With Python 3.x things are much more consistent, because PyGObject will automatically encode/decode
to/from UTF-8 if you pass a string to a method or a method returns a string. Strings, or text, will always be
represented as instances of <code>str</code> only.</p>
+<p>String encoding is more consistent in Python 3.x because PyGObject will automatically encode/decode
to/from UTF-8 if you pass a string to a method or a method returns a string. Strings, or text, will always be
represented as instances of <code>str</code> only.</p>
</section>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]