Skip to content

Commit db8ca3e

Browse files
committed
Merge branch 'master' into feature/GR-28392_ssl
2 parents cb9f57f + 8f8e54b commit db8ca3e

File tree

548 files changed

+27726
-38150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

548 files changed

+27726
-38150
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ language runtime. The main focus is on user-observable behavior of the engine.
77

88
* Added SSL/TLS support (the `ssl` module)
99

10+
## Version 21.1.0
11+
12+
* Added subclassing of Java classes in JVM mode
13+
* Use native posix functions in the GraalPython Launcher
14+
* Support iterating over Python objects from Java and other languages as well as iterating over foreign objects in Python
15+
* Support catching foreign exceptions in catch-all except clauses
16+
17+
## Version 21.1.0
18+
19+
* Support catching exceptions from other languages or Java with catch-all except blocks
20+
* Support iterating over iterables from other languages, as well as allow other languages to iterate over Python iterables and iterators
21+
* Support isinstance and issubclass with instances and classes of other languages
22+
1023
## Version 21.0.0
1124

1225
* Implement name mangling for private attributes

THIRD_PARTY_LICENSE.txt

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3200,3 +3200,177 @@ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32003200
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
32013201
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
32023202
OF THE POSSIBILITY OF SUCH DAMAGE.
3203+
3204+
3205+
XY (liblzma)
3206+
3207+
https://git.tukaani.org/?p=xz.git;a=blob;f=COPYING
3208+
1
3209+
2 XZ Utils Licensing
3210+
3 ==================
3211+
4
3212+
5 Different licenses apply to different files in this package. Here
3213+
6 is a rough summary of which licenses apply to which parts of this
3214+
7 package (but check the individual files to be sure!):
3215+
8
3216+
9 - liblzma is in the public domain.
3217+
10
3218+
11 - xz, xzdec, and lzmadec command line tools are in the public
3219+
12 domain unless GNU getopt_long had to be compiled and linked
3220+
13 in from the lib directory. The getopt_long code is under
3221+
14 GNU LGPLv2.1+.
3222+
15
3223+
16 - The scripts to grep, diff, and view compressed files have been
3224+
17 adapted from gzip. These scripts and their documentation are
3225+
18 under GNU GPLv2+.
3226+
19
3227+
20 - All the documentation in the doc directory and most of the
3228+
21 XZ Utils specific documentation files in other directories
3229+
22 are in the public domain.
3230+
23
3231+
24 - Translated messages are in the public domain.
3232+
25
3233+
26 - The build system contains public domain files, and files that
3234+
27 are under GNU GPLv2+ or GNU GPLv3+. None of these files end up
3235+
28 in the binaries being built.
3236+
29
3237+
30 - Test files and test code in the tests directory, and debugging
3238+
31 utilities in the debug directory are in the public domain.
3239+
32
3240+
33 - The extra directory may contain public domain files, and files
3241+
34 that are under various free software licenses.
3242+
35
3243+
36 You can do whatever you want with the files that have been put into
3244+
37 the public domain. If you find public domain legally problematic,
3245+
38 take the previous sentence as a license grant. If you still find
3246+
39 the lack of copyright legally problematic, you have too many
3247+
40 lawyers.
3248+
41
3249+
42 As usual, this software is provided "as is", without any warranty.
3250+
43
3251+
44 If you copy significant amounts of public domain code from XZ Utils
3252+
45 into your project, acknowledging this somewhere in your software is
3253+
46 polite (especially if it is proprietary, non-free software), but
3254+
47 naturally it is not legally required. Here is an example of a good
3255+
48 notice to put into "about box" or into documentation:
3256+
49
3257+
50 This software includes code from XZ Utils <https://tukaani.org/xz/>.
3258+
51
3259+
52 The following license texts are included in the following files:
3260+
53 - COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1
3261+
54 - COPYING.GPLv2: GNU General Public License version 2
3262+
55 - COPYING.GPLv3: GNU General Public License version 3
3263+
56
3264+
57 Note that the toolchain (compiler, linker etc.) may add some code
3265+
58 pieces that are copyrighted. Thus, it is possible that e.g. liblzma
3266+
59 binary wouldn't actually be in the public domain in its entirety
3267+
60 even though it contains no copyrighted code from the XZ Utils source
3268+
61 package.
3269+
62
3270+
63 If you have questions, don't hesitate to ask the author(s) for more
3271+
64 information.
3272+
65
3273+
3274+
=== AUTHORS file ===
3275+
Authors of XZ Utils
3276+
===================
3277+
XZ Utils is developed and maintained by Lasse Collin
3278+
3279+
Major parts of liblzma are based on code written by Igor Pavlov,
3280+
specifically the LZMA SDK <http://7-zip.org/sdk.html>. Without
3281+
this code, XZ Utils wouldn't exist.
3282+
The SHA-256 implementation in liblzma is based on the code found from
3283+
7-Zip <http://7-zip.org/>, which has a modified version of the SHA-256
3284+
code found from Crypto++ <http://www.cryptopp.com/>. The SHA-256 code
3285+
in Crypto++ was written by Kevin Springle and Wei Dai.
3286+
Some scripts have been adapted from gzip. The original versions
3287+
were written by Jean-loup Gailly, Charles Levert, and Paul Eggert.
3288+
Andrew Dudman helped adapting the scripts and their man pages for
3289+
XZ Utils.
3290+
The GNU Autotools-based build system contains files from many authors,
3291+
which I'm not trying to list here.
3292+
Several people have contributed fixes or reported bugs. Most of them
3293+
are mentioned in the file THANKS.
3294+
3295+
======================================================
3296+
Many source files in root have this
3297+
###############################################################################
3298+
#
3299+
# Author: Lasse Collin
3300+
#
3301+
# This file has been put into the public domain.
3302+
# You can do whatever you want with this file.
3303+
#
3304+
###############################################################################
3305+
3306+
=== Files in liblzma have ====
3307+
/**
3308+
2 * \file api/lzma.h
3309+
3 * \brief The public API of liblzma data compression library
3310+
4 *
3311+
5 * liblzma is a public domain general-purpose data compression library with
3312+
6 * a zlib-like API. The native file format is .xz, but also the old .lzma
3313+
7 * format and raw (no headers) streams are supported. Multiple compression
3314+
8 * algorithms (filters) are supported. Currently LZMA2 is the primary filter.
3315+
9 *
3316+
10 * liblzma is part of XZ Utils <http://tukaani.org/xz/>. XZ Utils includes
3317+
11 * a gzip-like command line tool named xz and some other tools. XZ Utils
3318+
12 * is developed and maintained by Lasse Collin.
3319+
13 *
3320+
14 * Major parts of liblzma are based on Igor Pavlov's public domain LZMA SDK
3321+
15 * <http://7-zip.org/sdk.html>.
3322+
16 *
3323+
17 * The SHA-256 implementation is based on the public domain code found from
3324+
18 * 7-Zip <http://7-zip.org/>, which has a modified version of the public
3325+
19 * domain SHA-256 code found from Crypto++ <http://www.cryptopp.com/>.
3326+
20 * The SHA-256 code in Crypto++ was written by Kevin Springle and Wei Dai.
3327+
21 */
3328+
22
3329+
23 /*
3330+
24 * Author: Lasse Collin
3331+
25 *
3332+
26 * This file has been put into the public domain.
3333+
27 * You can do whatever you want with this file.
3334+
28 */
3335+
29
3336+
=======
3337+
3338+
// Authors: Igor Pavlov
3339+
7 // Lasse Collin
3340+
8 //
3341+
9 // This file has been put into the public domain.
3342+
10 // You can do whatever you want with this file.
3343+
3344+
=== lzmainfo, xz, xzdec sources ===
3345+
1 ///////////////////////////////////////////////////////////////////////////////
3346+
2 //
3347+
3 /// \file lzmainfo.c
3348+
4 /// \brief lzmainfo tool for compatibility with LZMA Utils
3349+
5 //
3350+
6 // Author: Lasse Collin
3351+
7 //
3352+
8 // This file has been put into the public domain.
3353+
9 // You can do whatever you want with this file.
3354+
10 //
3355+
11 ///////////////////////////////////////////////////////////////////////////////
3356+
12
3357+
3358+
==== common sources =====
3359+
// Authors: Lasse Collin
3360+
38 // Joachim Henke
3361+
39 //
3362+
40 // This file has been put into the public domain.
3363+
41 // You can do whatever you want with this file.
3364+
42 //
3365+
43 ///////////////////////////////////////////////////////////////////////////////
3366+
==== scripts sources ====
3367+
2 .\" Authors: Andrew Dudman
3368+
3 .\" Lasse Collin
3369+
4 .\"
3370+
5 .\" This file has been put into the public domain.
3371+
6 .\" You can do whatever you want with this file.
3372+
7 .\"
3373+
8 .\" (Note that this file is not based on gzip's zless.1.)
3374+
=
3375+
3376+
Oracle GraalPython uses only the "public domain" source files that belong to liblzma.

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "overlay": "69d605b7f6f27a86c9e0e8e6c0991a61dbf09d3f" }
1+
{ "overlay": "170e550ee492b57eddde3fbe3e2334bcf3ff5d5f" }

graalpython/com.oracle.graal.python.annotations/src/com/oracle/graal/python/annotations/ArgumentClinic.java

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@
6666

6767
/**
6868
* The string should contain valid Java constant value expression, for example, {@code true}, or
69-
* {@code \"some string\"}. You may have to update the annotation processor to include import of
70-
* necessary packages or use fully qualified names.
69+
* {@code \"some string\"}. Another supported value is an identifier of a static field inside
70+
* the annotated class. For anything else, you may have to update the annotation processor to
71+
* include import of necessary packages or use fully qualified names.
7172
*/
7273
String defaultValue() default "";
7374

@@ -122,10 +123,21 @@ enum ClinicConversion {
122123
*/
123124
Int,
124125
/**
125-
* Corresponds to CPython's {@code Py_ssize_t} converter. Supports {@link #defaultValue()},
126-
* and {@link #useDefaultForNone()}.
126+
* Corresponds to CPython's {@code long} converter ("L"/"l" for old style conversions).
127+
* Supports {@link #defaultValue()}, and {@link #useDefaultForNone()}.
128+
*/
129+
Long,
130+
/**
131+
* Corresponds to CPython's {@code Py_ssize_t} converter, except that it converts the result
132+
* into Java integer. Supports {@link #defaultValue()}, and {@link #useDefaultForNone()}.
127133
*/
128134
Index,
135+
/**
136+
* Roughly corresponds to CPython's legacy "n" converter: calls the __index__ and then
137+
* converts it to Java long. Supports {@link #defaultValue()}, and
138+
* {@link #useDefaultForNone()}.
139+
*/
140+
LongIndex,
129141
/**
130142
* Corresponds to CPython's {@code slice_index} converter. Supports {@link #defaultValue()},
131143
* and {@link #useDefaultForNone()}.

0 commit comments

Comments
 (0)