This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Added new methods to
Type: Stage: resolved
Components: Demos and Tools Versions: Python 3.10
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: Ehsonjon Gadoev, rhettinger
Priority: normal Keywords:

Created on 2021-03-13 18:18 by Ehsonjon Gadoev, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 24845 closed Ehsonjon Gadoev, 2021-03-13 18:18
Repositories containing patches
Messages (2)
msg388631 - (view) Author: Ehsonjon Gadoev (Ehsonjon Gadoev) * Date: 2021-03-13 18:18
What's new in Vector (

1) Added multiplay (Vector and Vector)
2) Added division (Vector and Vector) and (Vector and scalar)
3) Added FloorDiv (Vector and Vector) and (Vector and scalar)
4) Added __mod__ (Vector and Vector) and (Vector and scalar)

This new methods is very useful!
[It is beta version! By the way we will fix bugs]
msg388636 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2021-03-13 21:25
I don't think this should be added.  The whole point of was to be a simple educational demo of a Python class its special methods work.  It was not intended to grow more features or ever be used in production.  

Also, vector-to-vector multiplication, division, and floordiv would only make sense for an elementwise array class.  This class focuses on standard vector operations.  If anything, what is missing is a method for a dot product.

Thank you for submitting a PR, but it is going to be declined from the reasons listed about.
Date User Action Args
2022-04-11 14:59:42adminsetgithub: 87654
2021-03-13 21:25:40rhettingersetstatus: open -> closed

assignee: rhettinger

nosy: + rhettinger
messages: + msg388636
resolution: rejected
stage: resolved
2021-03-13 19:33:26Ehsonjon Gadoevsettitle: Added new methods to -> Added new methods to
2021-03-13 18:18:11Ehsonjon Gadoevcreate