Bug 227829

Summary: [NEW PORT] math/py-random2: Python 3 compatible Python 2 random module
Product: Ports & Packages Reporter: Kai Knoblich <kai>
Component: Individual Port(s)Assignee: Yuri Victorovich <yuri>
Status: Closed FIXED    
Severity: Affects Only Me CC: python, yuri
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://pypi.org/project/random2
Bug Depends on:    
Bug Blocks: 227830    
Attachments:
Description Flags
py-random2.shar none

Description Kai Knoblich freebsd_committer freebsd_triage 2018-04-28 15:38:47 UTC
Created attachment 192876 [details]
py-random2.shar

Hello,

attached is the shar file for the Python package py-random2, a Python 3 compatible module of the Python 2 'random' module.

In Python 3, the implementation of randrange() was changed, so that even with
the same seed you get different sequences in Python 2 and 3. Note that several
high-level functions such as randint() and choice() use randrange().


QA:
~~~
- poudriere (11.1-RELEASE amd64 + i386) for each py27 and py36 flavor -> OK
- portlint -> OK
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2018-04-28 19:03:15 UTC
Committed.
Thank you for your contribution!
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-04-28 19:03:17 UTC
A commit references this bug:

Author: yuri
Date: Sat Apr 28 19:02:57 UTC 2018
New revision: 468563
URL: https://svnweb.freebsd.org/changeset/ports/468563

Log:
  New port: math/py-random2: Python 3 compatible Python 2 random module

  PR:		227829
  Submitted by:	Kai <freebsd_ports@k-worx.org>

Changes:
  head/math/Makefile
  head/math/py-random2/
  head/math/py-random2/Makefile
  head/math/py-random2/distinfo
  head/math/py-random2/pkg-descr