How do I use bitwise operators with an str object in python 2.7?


+1 vote
asked Mar 16, 2016 by jnfwas (270 points)
What code do I need to go back to previous activity. I am trying replicate CRC algorithm that uses byte array in python 2 I will try this tomorrow

4 Answers

0 votes
answered Jun 3, 2016 by Gur_8629 (590 points)
selected Jun 5, 2016 by gur8575
 
Best answer
Try using this Python Basic Operators - Tutorialspoint
Someone correct me if I misinterpreted how it works
+1 vote
answered May 21, 2016 by Szklar (1,320 points)

The same goes for shift operators.
Forexample, operators and string formatting in Python and C are very similar.
Pythonstring formatting controls the creation of strings. I have been using Operators and String Formatting in Python | Operators | InformIT and I am really liking what they offer
commented May 22, 2016 by Medved (2,610 points)
Hope this helps somebody
commented May 22, 2016 by Workman (220 points)
This is a question I have been struggling with for a while
0 votes
answered May 22, 2016 by marozzifur (3,250 points)
Kinda late but here is what I did after encountering this problem. Here is a link where you can find some nice resources on the subject http://www.informit.com/articles/article.aspx?p=28790
0 votes
answered Jun 3, 2016 by gofton6370 (340 points)
I tweaked this answer a bit and came up with this fiddle. And so far, the most insightful post I came across is this one str Python Reference (The Right Way) 0.1 documentation insights

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...