question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

On version 2.1.0 This string: “lens with a lens ().” yields an exception.

> /lib/python3.6/site-packages/inflect.py in plural(self, text, count)
>    2239             self._pl_special_adjective(word, count)
>    2240             or self._pl_special_verb(word, count)
> -> 2241             or self._plnoun(word, count),
>    2242         )
>    2243         return "{}{}{}".format(pre, plural, post)
> 
> /lib/python3.6/site-packages/inflect.py in postprocess(self, orig, inflected)
>    2209                 continue
>    2210             if word.capitalize() == word:
> -> 2211                 result[index] = result[index].capitalize()
>    2212             if word == word.upper():
>    2213                 result[index] = result[index].upper()

IndexError: list index out of range

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jaracocommented, Nov 15, 2020

This issue is no longer reproducible:

>>> import inflect
>>> eng = inflect.engine()
>>> eng.plural('lens with a lens().')
'lenses with lens().s'
0reactions
urivacommented, Nov 21, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cascading Failures - Google - Site Reliability Engineering
Tasks might die because of a Query of Death (an RPC whose contents trigger a failure in the process), cluster issues, assertion failures,...
Read more >
The query of death - Hands-On Infrastructure Monitoring with ...
The query of death Lastly, care should be taken when crafting queries with overly broad selectors and memory-intensive aggregations.
Read more >
CDC WONDER
WONDER online databases utilize a rich ad-hoc query system for the analysis of public health data. ... 122 Cities Weekly Mortality (Archive).
Read more >
SQL Performance - Death by SELECT
This query plan will work for you if the number of records found in the index seek is few, but imagine a couple...
Read more >
Death Count Query System - FLHealthCHARTS.com
Leading Causes of Death 2016 2017 2018 2019 2020 Total Acute Bronchitis & Bronchiolitis (J20‑J21) 16 9 9 14 12 60 Alzheimers Disease (G30) 7,152...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found