Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Jaime Collado
/
textflow
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
77873cd9
authored
Apr 22, 2022
by
Estrella Vallecillo
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Modifying comments of Sequence.py
parent
1330b215
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
textflow/Sequence.py
textflow/Sequence.py
View file @
77873cd9
...
...
@@ -5,7 +5,7 @@ from typing import Optional
class
SequenceIterator
:
#TODO documentar
def
__init__
(
self
,
children
):
"""
Creates a sequenceIterator from a Se
c
uence.
Creates a sequenceIterator from a Se
q
uence.
Args:
children: A list with the values of the attribute children of a Sequence.
"""
...
...
@@ -16,7 +16,7 @@ class SequenceIterator: #TODO documentar
"""
Return:
The se
c
uence where the iterator is point.
The se
q
uence where the iterator is point.
"""
return
self
...
...
@@ -165,9 +165,9 @@ class Sequence:
def
__len__
(
self
):
'''
Calculate the length of a Sequence
The length of a Se
c
uence is the length of the children.
The length of a Se
q
uence is the length of the children.
Returns:
A number with the length of the Se
c
uence
A number with the length of the Se
q
uence
'''
return
len
(
self
.
children
)
...
...
@@ -207,7 +207,7 @@ class Sequence:
diccionaryList: the inicial list to calculate the depth.
Returns:
A tuple that contains a number (the depth of a Se
c
uence) and a list (the route of the max depth)
A tuple that contains a number (the depth of a Se
q
uence) and a list (the route of the max depth)
'''
profMax
=
0
rutaMax
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment