mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +00:00
Retain copyright of processing examples. This was requested by a Debian maintainer during packaging of the multiprocessing package for 2.4/2.5
This commit is contained in:
parent
1f8b49f517
commit
eac8071e16
7 changed files with 21 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
||||||
#
|
#
|
||||||
# Simple benchmarks for the multiprocessing package
|
# Simple benchmarks for the multiprocessing package
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2006-2008, R Oudkerk
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
|
||||||
import time, sys, multiprocessing, threading, Queue, gc
|
import time, sys, multiprocessing, threading, Queue, gc
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
#
|
#
|
||||||
# Depends on `multiprocessing` package -- tested with `processing-0.60`
|
# Depends on `multiprocessing` package -- tested with `processing-0.60`
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2006-2008, R Oudkerk
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
|
||||||
__all__ = ['Cluster', 'Host', 'get_logger', 'current_process']
|
__all__ = ['Cluster', 'Host', 'get_logger', 'current_process']
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
# This module shows how to use arbitrary callables with a subclass of
|
# This module shows how to use arbitrary callables with a subclass of
|
||||||
# `BaseManager`.
|
# `BaseManager`.
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2006-2008, R Oudkerk
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
|
||||||
from multiprocessing import freeze_support
|
from multiprocessing import freeze_support
|
||||||
from multiprocessing.managers import BaseManager, BaseProxy
|
from multiprocessing.managers import BaseManager, BaseProxy
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#
|
#
|
||||||
# A test of `multiprocessing.Pool` class
|
# A test of `multiprocessing.Pool` class
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2006-2008, R Oudkerk
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#
|
#
|
||||||
# A test file for the `multiprocessing` package
|
# A test file for the `multiprocessing` package
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2006-2008, R Oudkerk
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
|
||||||
import time, sys, random
|
import time, sys, random
|
||||||
from Queue import Empty
|
from Queue import Empty
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
# Not sure if we should synchronize access to `socket.accept()` method by
|
# Not sure if we should synchronize access to `socket.accept()` method by
|
||||||
# using a process-shared lock -- does not seem to be necessary.
|
# using a process-shared lock -- does not seem to be necessary.
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2006-2008, R Oudkerk
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -7,6 +7,9 @@
|
||||||
# in the original order then consider using `Pool.map()` or
|
# in the original order then consider using `Pool.map()` or
|
||||||
# `Pool.imap()` (which will save on the amount of code needed anyway).
|
# `Pool.imap()` (which will save on the amount of code needed anyway).
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2006-2008, R Oudkerk
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import random
|
import random
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue