Opened 9 years ago

Closed 9 years ago

#8253 closed defect (fixed)

search_src (etc.) bug

Reported by: jhpalmieri Owned by: tbd
Priority: major Milestone: sage-4.3.3
Component: misc Keywords:
Cc: Merged in: sage-4.3.3.alpha1
Authors: John Palmieri Reviewers: Mitesh Patel
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

In Sage 4.3.2:

search_src('is', 'prime', 'field', ignore_case=True)
Traceback (most recent call last):
...
TypeError: search() takes at most 3 arguments (4 given)

This is because of a bug in sage.misc.sagedoc: when calling re.search, flags like re.MULTILINE and re.IGNORECASE should be combined using bit-wise or, not by passing them as separate entries in a list. The attached patch fixes this.

Attachments (2)

trac_8253-search.patch (1.9 KB) - added by jhpalmieri 9 years ago.
trac_8253-search.v2.patch (2.4 KB) - added by jhpalmieri 9 years ago.

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by jhpalmieri

comment:1 Changed 9 years ago by mpatel

I noticed another *flags nearby. Should we make it flags?

comment:2 Changed 9 years ago by jhpalmieri

  • Status changed from new to needs_review

Yes. Here's a new patch, rebased against 4.3.3.alpha0.

Changed 9 years ago by jhpalmieri

comment:3 Changed 9 years ago by mpatel

  • Reviewers set to Mitesh Patel
  • Status changed from needs_review to positive_review

comment:4 Changed 9 years ago by mvngu

  • Merged in set to sage-4.3.3.alpha1
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.