Skip to content

COMPAT: add >= 2.7 features #11993

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

Closed
jreback opened this issue Jan 7, 2016 · 3 comments
Closed

COMPAT: add >= 2.7 features #11993

jreback opened this issue Jan 7, 2016 · 3 comments
Labels
Compat pandas objects compatability with Numpy or Python functions Testing pandas testing functions or related to the test suite

Comments

@jreback
Copy link
Contributor

jreback commented Jan 7, 2016

xref #7718
xref #11988

since we recently removed 2.6 (and 3.3) support, we are now free to use some features of later releases.
Some of these may be useful. We should investigate and create individual issues.

see here

  • The syntax for set literals ({1,2,3} is a mutable set).
  • Dictionary and set comprehensions ({i: i*2 for i in range(3)}).
  • io library (CLN: StringIO from io instead of from StringIO #10470)
  • argparse (rather then optparse)
  • maybe dictviews
  • memoryviews
  • sysconfig
  • automatic number in .format
>>> '{}:{}:{day}'.format(2009, 4, day='Sunday')
'2009:4:Sunday'
  • using assertRaises as a context manager
with self.assertRaises(KeyError):
    {}['foo']
  • lots of other improved testing goodies!
@jreback jreback added Testing pandas testing functions or related to the test suite Compat pandas objects compatability with Numpy or Python functions Master Tracker High level tracker for similar issues labels Jan 7, 2016
@jreback jreback added this to the Next Major Release milestone Jan 7, 2016
@kawochen
Copy link
Contributor

kawochen commented Jan 7, 2016

xref #10470

@jreback jreback modified the milestones: Next Major Release, High Level Issue Tracking Sep 24, 2017
@TomAugspurger TomAugspurger removed the Master Tracker High level tracker for similar issues label Jul 6, 2018
@TomAugspurger TomAugspurger removed this from the High Level Issue Tracking milestone Jul 6, 2018
@jbrockmendel
Copy link
Member

@jreback closeable?

@jreback
Copy link
Contributor Author

jreback commented Oct 26, 2018

sure
though maybe nice to create a new issue of things that we might want to use but don’t have already (some of the latter on this list)

@jreback jreback closed this as completed Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions Testing pandas testing functions or related to the test suite
Projects
None yet
Development

No branches or pull requests

4 participants