Bug 227829 - [NEW PORT] math/py-random2: Python 3 compatible Python 2 random module
Summary: [NEW PORT] math/py-random2: Python 3 compatible Python 2 random module
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL: https://pypi.org/project/random2
Keywords:
Depends on:
Blocks: 227830
  Show dependency treegraph
 
Reported: 2018-04-28 15:38 UTC by Kai Knoblich
Modified: 2018-04-28 19:03 UTC (History)
2 users (show)

See Also:


Attachments
py-random2.shar (1.67 KB, text/plain)
2018-04-28 15:38 UTC, Kai Knoblich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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