-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes in Queue. #150
Comments
@czgdp1807 kindly add the points I missed |
Let's not go for it,
They both are currently attributes of the |
it keeps referring back to self.queue it would be better if we can just move it in a different function/property. Less headache for the programmer and less things to change if we ever have to. |
yeah now to think of it, deque is used as Queue in many places. |
I also dont understand why value error is raised. Something like IndexError would be better (same is used in deque) |
Yes, this will help in removing redundant attributes.
Feel free to make the change. See, if such changes are needed elsewhere in the code base. |
quick question... |
I won't recommend. |
Description of the problem
Queue module needs some refactoring.
enqueue()
anddequeue()
type(x) is not self._dtype
can be converted to_check_type(type(x),self._dtype)
This issue was briefly discussed in #139 (comment)
Further suggestions are welcome.
I will be taking on this issue, since I'm also working on LinkedListStack side by side.
The text was updated successfully, but these errors were encountered: