diff --git a/src/idl_gen_python.cpp b/src/idl_gen_python.cpp
index 96f9c4285a7ebee6ba10086e56c98cfcd189f775..de47a99cf30bc1ef71b3c64380f659b351030b43 100644
--- a/src/idl_gen_python.cpp
+++ b/src/idl_gen_python.cpp
@@ -493,7 +493,7 @@ static void GenStruct(const StructDef &struct_def,
                       StructDef *root_struct_def) {
   if (struct_def.generated) return;
 
-  GenComment(struct_def.doc_comment, code_ptr, nullptr);
+  GenComment(struct_def.doc_comment, code_ptr, nullptr, "# ");
   BeginClass(struct_def, code_ptr);
   if (&struct_def == root_struct_def) {
     // Generate a special accessor for the table that has been declared as
@@ -660,5 +660,3 @@ bool GeneratePython(const Parser &parser,
 }
 
 }  // namespace flatbuffers
-
-
diff --git a/tests/monster_test.fbs b/tests/monster_test.fbs
index b2b99bb8e173b97be3156ac043baf3c727b35781..6fe5f25db86a2689288053ef4aeea26edb794d29 100755
--- a/tests/monster_test.fbs
+++ b/tests/monster_test.fbs
@@ -31,6 +31,7 @@ table Stat {
   count:ushort;
 }
 
+/// an example documentation comment: monster object
 table Monster {
   pos:Vec3 (id: 0);
   hp:short = 100 (id: 2);