Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9514)

Issue 236180043: 4 - Tregubova Masha

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 11 months ago by masha.fbb57
Modified:
8 years, 11 months ago
Reviewers:
shad.python
Visibility:
Public.

Description

Код для моделирования океана и юнит-тесты для функций жертвы и хищника.

Patch Set 1 #

Patch Set 2 : test_prey was not been concatinate, main.py was changed #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+613 lines, -1 line) Patch
M Ocean.py View 1 chunk +81 lines, -0 lines 0 comments Download
M main.py View 1 chunk +269 lines, -0 lines 2 comments Download
M ocean_cell.py View 1 chunk +22 lines, -0 lines 0 comments Download
M predator.py View 1 chunk +73 lines, -0 lines 0 comments Download
M prey.py View 1 chunk +45 lines, -0 lines 0 comments Download
M report.py View 1 chunk +0 lines, -1 line 0 comments Download
M test_predator.py View 1 chunk +69 lines, -0 lines 0 comments Download
M test_prey.py View 1 chunk +54 lines, -0 lines 0 comments Download

Messages

Total messages: 2
masha.fbb57
8 years, 11 months ago (2015-05-12 14:16:32 UTC) #1
shad.python
8 years, 11 months ago (2015-05-21 14:53:16 UTC) #2
Message was sent while issue was closed.
https://codereview.appspot.com/236180043/diff/20001/main.py
File main.py (right):

https://codereview.appspot.com/236180043/diff/20001/main.py#newcode9
main.py:9: class Predator(object):
Этот класс и класс Prey ниже нужно включить в иерархию классов с общим предком,
особенно если учесть одинаковый код в некоторых методах.
Методы moving и т.п. будут при этом вызываться полиморфно.

https://codereview.appspot.com/236180043/diff/20001/main.py#newcode256
main.py:256: print "--cfg config file path. If this diretory print filename
only"
А как насчет модуля argparse?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b