Unable to understand a part of code

5 views
Skip to first unread message

Sayan Chowdhury

unread,
Jan 13, 2012, 1:32:59 PM1/13/12
to transifex-devel
Hi,

I was studying the code in txcommon/haystack_utils.py, when I came
across this line:
filters.append(SQ(slug='%s^1.2' % w))

I am unable to understand the utility of '^1.2'.

Here's the link to the code:
https://bitbucket.org/indifex/transifex/src/0e4bc50d840f/transifex/txcommon/haystack_utils.py#cl-45


--
Thanks
Regards,
Sayan Chowdhury
Third year, Computer Science and Engineering Department,
Dr.B.C.Roy Engineering College, Durgapur
http://fosswithme.wordpress.com

Reply all
Reply to author
Forward
0 new messages