Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deque to string in Python 3
#1
Hi everyone,

Fairly new to Python here and dealing with some legacy code.

n Python2 I was able to do something similar to:

frames = deque(maxlen=xyz)
framesString = ''.join(frames)
In Python3 I get an error.

How should I change it in order to get a string representing the deque object?

Thanks in advance,
G
Reply


Messages In This Thread
Deque to string in Python 3 - by anthares - Jun-11-2020, 05:07 AM
RE: Deque to string in Python 3 - by buran - Jun-11-2020, 05:17 AM
RE: Deque to string in Python 3 - by anthares - Jun-11-2020, 05:28 AM
RE: Deque to string in Python 3 - by buran - Jun-11-2020, 05:32 AM
RE: Deque to string in Python 3 - by anthares - Jun-11-2020, 06:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  If you deque a list, can it still be indexed? netrate 6 10,485 Nov-07-2016, 12:19 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020