Ticket #5770 task new

Opened 10 months ago

Last modified 11 days ago

Deprecate IntNStringReceiver.recvd

Reported by: therve Owned by: therve
Priority: low Milestone:
Component: core Keywords:
Cc: Branch: branches/deprecated-recvd-5770
Author: therve Launchpad Bug:

Description

It was kept for compatibility purpose when the latest optimization was introduced, it should be deprecated.

Change History

1

Changed 10 months ago by therve

  • summary changed from Deprecate IntNStringReceiver.recv to Deprecate IntNStringReceiver.recvd

2

Changed 6 weeks ago by therve

  • branch set to branches/deprecated-recvd-5770
  • branch_author set to therve

(In [37980]) Branching to 'deprecated-recvd-5770'

3

Changed 6 weeks ago by therve

  • owner set to therve

4

Changed 6 weeks ago by therve

  • owner therve deleted
  • keywords review added

5

Changed 11 days ago by glyph

  • owner set to therve
  • keywords review removed

Thanks for fixing this.

Looks fine, modulo some minor points:

  1. I think that  these pyflakes errors are spurious, but if not, fix it.
  2. clearBuffer's docstring really should be a lot better. What is "the current buffer"? It might be best to describe this in terms of the behavior of stringReceived and dataReceived.
  3. # new protocol: luckily it's giving that with a handy method is not a very useful comment. Perhaps if clearBuffer's docstring explained what it did, this comment could simply be eliminated.

Please address to your satisfaction and merge.

6

Changed 11 days ago by exarkun

Do we not care that clearing a buffer provides a smaller feature set than being able to assign to recvd? It might be nice to see a unit test that does the same thing as test_recvdChanged without using a deprecated API. And it seems like we're just discarding the feature of being able to inspect the current buffer?

7

Changed 11 days ago by exarkun

Also, doesn't the set-case warning point to the wrong code? The test asks for deprecations pointed at test_recvdChanged, but that's not where the code that writes to recvd is.

Note: See TracTickets for help on using tickets.