1 2014-01-28T01:22:13 *** derdon
2 2014-01-28T04:59:54 <ajitesh_> ThomasWaldmann, Yes.. I read up.. in strings each character is represented by 1 byte.. whereas in unicode it can also use 2 bytes to represent 1 character.. so it can be used to address characters beyond the 256 ascii characters..
3 2014-01-28T06:05:05 <ajitesh_> so while experimenting on the interpreter i saw that if i use string.format like -- 'xyz {0}'.format('actual cyrilic text') -- it works fine..
4 2014-01-28T06:11:02 <ajitesh_> but if i send in a unicode string as argument it throws an error because it tries to encode it using ascii encoding unless define it as -- u'xyz ...'.format(abc)
5 2014-01-28T06:17:31 <ajitesh_> and also the error only happens when i pass a unicode string, not in a normal string
6 2014-01-28T06:40:40 <ajitesh_> so i guess unicodes need unicode format strings
7 2014-01-28T07:46:24 <ThomasWaldmann> ajitesh_: it is usually 32bits/unichr nowadays
8 2014-01-28T07:47:16 <ThomasWaldmann> and yes, the non-unicode format strings fed with unicode args is the problem
9 2014-01-28T07:47:42 <ThomasWaldmann> for comparison, try "%s test" % u"äöü"
10 2014-01-28T07:49:20 <ThomasWaldmann> or use some cyrillic or hindi chars
11 2014-01-28T08:19:48 *** ajitesh_
12 2014-01-28T08:20:14 *** ajitesh_
13 2014-01-28T09:14:57 *** greg_f
14 2014-01-28T10:20:08 <ajitesh_> ThomasWaldmann, yes "%s test" % u"äöü" works
15 2014-01-28T11:08:54 <ThomasWaldmann> ajitesh_: that is because here it automatically "upgrades" (decodes with the default ascii decoder) the format string to unicode while processing it
16 2014-01-28T11:09:24 <ThomasWaldmann> ok, guess now you know what there is to do.
17 2014-01-28T11:26:08 <ajitesh_> ThomasWaldmann, Yes i think so .. Just ran a grep command.. big task ahead :D
18 2014-01-28T11:48:14 <ThomasWaldmann> ajitesh_: yeah, it's simple, but not small. and it needs to be done systematically.
19 2014-01-28T11:49:01 <ThomasWaldmann> but solving that issue would be very welcome, it's open since a while...
20 2014-01-28T11:57:56 <ajitesh_> ThomasWaldmann, yep it'd be my pleasure.. :)
21 2014-01-28T12:10:18 *** ronny_
22 2014-01-28T12:14:05 *** ronny_
23 2014-01-28T12:15:27 *** derdon
24 2014-01-28T13:00:32 *** dave_largo
25 2014-01-28T13:43:43 *** skathpalia
26 2014-01-28T13:54:29 *** skathpalia
27 2014-01-28T14:59:23 *** RogerHaase
28 2014-01-28T15:50:14 <ThomasWaldmann> ananasova: dreimark: eSyr: jhermann: RogerHaase: ronny_: sharky93: SteveMcIntyre: waldi: xiaq: xorAxAx: (and everybody else who may fit):
29 2014-01-28T15:50:25 <ThomasWaldmann> google summer of code 2014 starts soon
30 2014-01-28T15:50:44 <ThomasWaldmann> in a few days, the organisation application starts
31 2014-01-28T15:51:15 <ThomasWaldmann> I could be org admin as usual, but i need a backup admin (in case a truck hits me).
32 2014-01-28T15:51:57 <ThomasWaldmann> also, we need some people who would like to mentor students.
33 2014-01-28T15:52:26 <ThomasWaldmann> and (later, if we get accepted): some students ;)
34 2014-01-28T15:53:03 <ThomasWaldmann> everybody who has time and motivation to mentor and some knowledge about moin2 is welcome as a mentor.
35 2014-01-28T15:53:38 <ThomasWaldmann> that includes the usual suspects, but also past year students
36 2014-01-28T15:55:56 <ThomasWaldmann> https://moinmo.in/GoogleSoc2014 see there
37 2014-01-28T16:04:06 *** skathpalia
38 2014-01-28T16:18:51 <ananasova> moin
39 2014-01-28T16:22:10 <ananasova> time flies so fast, in 6 days org applications start
40 2014-01-28T16:28:20 <ThomasWaldmann> time flies like an arrow
41 2014-01-28T16:28:27 <ThomasWaldmann> fruit flies like a banana
42 2014-01-28T16:36:02 <ananasova> hm.. the project "Mail/Notification related functionality" according to its description below has only Mail part remaining, isn't it?
43 2014-01-28T16:39:43 <ananasova> and by the way, all the projects are listed according to their priority?
44 2014-01-28T16:53:47 <ThomasWaldmann> ananasova: that page is in a rather unfinished state
45 2014-01-28T16:54:01 <ThomasWaldmann> as you know best what you did, just edit it :)
46 2014-01-28T18:15:56 *** greg_f
47 2014-01-28T18:52:05 *** dreimark
48 2014-01-28T18:52:05 *** ThomasWaldmann
49 2014-01-28T18:52:30 *** xiaq
50 2014-01-28T18:53:33 *** xiaq
51 2014-01-28T18:53:46 *** dreimark
52 2014-01-28T18:53:57 *** xiaq
53 2014-01-28T18:54:06 *** skathpalia
54 2014-01-28T19:00:01 *** ThomasWaldmann
55 2014-01-28T19:00:01 *** ThomasWaldmann
56 2014-01-28T19:04:58 <ajitesh_> ThomasWaldmann, What does the ' !r ' mean in something like 'abc "{0!r}" def'.format(xyz) ?
57 2014-01-28T19:09:58 <derdon> ajitesh_: I'm not ThomasWaldmann but: it applies the repr function to the element. so "{0!r}".format(xyz) is like using "{0}".format(repr(xyz))
58 2014-01-28T19:12:15 <ajitesh_> derdon, thanks :)
59 2014-01-28T19:13:01 <derdon> np
60 2014-01-28T19:35:38 * ThomasWaldmann has heard that python has docs :)
61 2014-01-28T19:40:58 <waldi> really?
62 2014-01-28T21:22:19 *** dave_largo
63 2014-01-28T21:43:15 *** sudo_dirk
64 2014-01-28T21:51:50 *** sudo_dirk
65 2014-01-28T21:52:25 *** sudo_dirk
66 2014-01-28T22:00:05 *** RogerHaase
67 2014-01-28T23:46:15 *** sudo_dirk
68 2014-01-28T23:48:54 *** sudo_dirk
69
MoinMoin: MoinMoinChat/Logs/moin-dev/2014-01-28 (last edited 2014-01-28 01:30:02 by IrcLogImporter)