Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107471 > unrolled thread
| Started by | Ethan Furman <ethan@stoneleaf.us> |
|---|---|
| First post | 2016-04-21 19:10 -0700 |
| Last post | 2016-04-21 19:10 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How much sanity checking is required for function inputs? Ethan Furman <ethan@stoneleaf.us> - 2016-04-21 19:10 -0700
| From | Ethan Furman <ethan@stoneleaf.us> |
|---|---|
| Date | 2016-04-21 19:10 -0700 |
| Subject | Re: How much sanity checking is required for function inputs? |
| Message-ID | <mailman.1.1461290981.2861.python-list@python.org> |
On 04/21/2016 06:34 PM, Christopher Reimer wrote: > class PieceFactory(object): > [...] Better. > I do plan to incorporate a sanity test in each Piece class to validate > the initial position value. Pawns have 16 specific positions. Bishop, > Knight and Rook each have four specific positions. King and Queen each > have two specific positions. An invalid value will raise an exception. This will make it so you cannot use your PieceFactory for custom setups. -- ~Ethan~
Back to top | Article view | comp.lang.python
csiph-web