# HG changeset patch
# User J. H. Palmieri <palmieri@math.washington.edu>
# Date 1332197986 25200
# Node ID af52dba869737b82448cbe0cc52445c988181591
# Parent  e1462ad1f58951ab6a33fd5bbe74d14714d2412d
stopgap for trac #11832: broken profile functions for odd primary Steenrod algebras

diff --git a/sage/algebras/steenrod/steenrod_algebra.py b/sage/algebras/steenrod/steenrod_algebra.py
--- a/sage/algebras/steenrod/steenrod_algebra.py
+++ b/sage/algebras/steenrod/steenrod_algebra.py
@@ -513,6 +513,10 @@ class SteenrodAlgebra_generic(Combinator
 
         std_basis = get_basis_name(basis, p)
         std_profile, std_type = normalize_profile(profile, precision=precision, truncation_type=truncation_type, p=p)
+        if p > 2 and len(std_profile[0]) + len(std_profile[1]) > 0:
+            from sage.misc.stopgap import stopgap
+            stopgap("""Warning: There are bugs for profile functions with the odd primary
+Steenrod algebra. Defining algebra anyway; use with care.""", 11832)
         return super(SteenrodAlgebra_generic, self).__classcall__(self, p=p, basis=std_basis, profile=std_profile, truncation_type=std_type)
 
     def __init__(self, p=2, basis='milnor', **kwds):
