Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
More cbook deprecations.#7999
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -543,6 +543,7 @@ def file_requires_unicode(x): | ||
return False | ||
@deprecated('2.1') | ||
def is_scalar(obj): | ||
"""return true if *obj* is not string like and is not iterable""" | ||
return not is_string_like(obj) and not iterable(obj) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Arbitrary objects (that are not iterable) are scalars, not numlike. Why? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. 'cause that confuses me 'cause aren't scalers numbers? What definition of scalers are we using then? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. We don't use this function and I exactly don't want to get bogged down into defining what its semantics should be. | ||
@@ -582,6 +583,7 @@ def to_filehandle(fname, flag='rU', return_opened=False): | ||
return fh | ||
@deprecated('2.1') | ||
def is_scalar_or_string(val): | ||
"""Return whether the given object is a scalar or string like.""" | ||
return is_string_like(val) or not iterable(val) | ||