-
Notifications
You must be signed in to change notification settings - Fork 152
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
Support removal of multiple value same key URLs #29
Comments
This would be useful, albeit infrequently used. Removing multiple keys will also be supported when provided a dictionary with >>> furl('/foo/?gender=M&gender=F&gender=robot')
.remove([('gender','M'),('gender','F')]).url
'/foo/?gender=robot'
>>> furl('/foo/?gender=M&gender=F&gender=robot')
.remove({'gender': 'M'}).url
'/foo/?gender=M&gender=robot' I'll add such functionality shortly. |
furl v0.3.7's Query.remove() supports the removal of multiple values from the >>> furl('/foo/?gender=M&gender=F&location=CA').remove({'gender': 'M'}).url
'/foo/?gender=F&location=CA'
>>> furl('/foo/?gender=M&gender=F&location=CA').remove([('gender', 'M')]).url
'/foo/?gender=F&location=CA'
>>> from orderedmultidict import omdict
>>> omd = omdict([('gender', 'M'), ('location', 'CA')])
>>> furl('/foo/?gender=M&gender=F&location=CA').remove(omd).url
'/foo/?gender=F' Upgrade to furl v0.3.7 with
Thank you for bringing this issue to my attention jstarcher. |
Great work, thanks @gruns! |
Is it possible to use the .remove() method with multiple value keys?
The text was updated successfully, but these errors were encountered: