Commit Graph

11981 Commits

Author SHA1 Message Date
dvermd
dc595d1276 improve fstring parser
part of: #1671
2022-10-26 21:15:24 +02:00
Jeong YunWon
5097e2025f Merge pull request #4250 from youknowone/fix-ast-fields
Fix ast types' _fields and use 0-based column
2022-10-27 03:44:48 +09:00
dvermd
f2bfb78d3c Fix ast types' _fields and use 0-based column 2022-10-27 03:09:38 +09:00
Jim Fasarakis-Hilliard
0b08786a04 Merge pull request #4248 from devonhollowood/log
Use improved log2() implementation for log10()
2022-10-25 23:09:45 +03:00
Jim Fasarakis-Hilliard
9c3cef833a Merge pull request #4249 from oow214/marshal_stopiter
Add `StopIteration` type to marshal
2022-10-25 22:19:10 +03:00
Devon Hollowood
4cfe1453e1 Accept reviewer suggestion
Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
2022-10-25 10:49:09 -07:00
Kim, YeonWoo
b5aa8c8284 Add StopIteration type to marshal 2022-10-25 20:48:14 +09:00
Devon Hollowood
82b4990224 Use improved log2() implementation for log10()
This also fixes a bug in the log2() implementation, where very large
negative integer arguments would not raise an exception (and instead
would turn into NaNs).
2022-10-24 18:46:49 -07:00
Jeong YunWon
247072c2cc Merge pull request #4143 from charliermarsh/charlie/expression-context
Add expression context parsing
2022-10-25 00:14:06 +09:00
Jeong YunWon
5466b17f03 Merge pull request #4241 from devonhollowood/log2
Allow log2() to work on large integers
2022-10-24 23:45:31 +09:00
Jeong YunWon
0f687cc51d Merge pull request #4246 from dvermd/document_code_generation
Document code generation
2022-10-24 23:44:42 +09:00
dvermd
02af970fcf document code generation 2022-10-24 15:38:42 +02:00
dvermd
c1aa5dfcbe remove scripts/generate_docs.py 2022-10-24 15:38:42 +02:00
Jeong YunWon
d0fe03c431 Merge pull request #4243 from oow214/ast_fields
Add `_fields` attribute to ast
2022-10-24 18:37:21 +09:00
Devon Hollowood
893f86e9cf Respond to reviewer comments 2022-10-23 10:17:43 -07:00
Kim, YeonWoo
b35330b63a Add _fields attribute to ast 2022-10-24 00:59:49 +09:00
Devon Hollowood
beeb0441ef Allow log2() to work on large integers 2022-10-22 14:55:14 -07:00
Jeong YunWon
38b169e863 Merge pull request #4217 from oow214/type_annotations
Add annotations for type
2022-10-22 15:50:22 +09:00
Kim, YeonWoo
ff057b267d Remove expectedFailure from test_default_annotations_exist 2022-10-22 01:52:09 +09:00
Kim, YeonWoo
e8755a75c6 Add set annotations for type 2022-10-22 01:50:58 +09:00
Kim, YeonWoo
c85b93abf6 Add get annotations for type 2022-10-22 01:49:46 +09:00
Jeong YunWon
268f3aef04 Merge pull request #4237 from jeffwang0516/method-reduce 2022-10-21 17:37:55 +09:00
jeffwang0516
aa40195d24 Remove expected failures for method related tests 2022-10-21 14:29:19 +08:00
jeffwang0516
df6d442ca8 Add method.__reduce__ 2022-10-21 14:29:19 +08:00
Dan Näsman
78586f0275 Chain reduce (#4232) 2022-10-21 15:04:25 +09:00
Kuan-Chun Wang
dda6f86ba3 Fix global behavior on class (#4234) 2022-10-21 13:06:50 +09:00
Jeong YunWon
2868e874c9 Merge pull request #4235 from dannasman/zip_longest_reduce
Add reduce and setstate for zip_longest
2022-10-20 18:02:19 +09:00
Jim Fasarakis-Hilliard
2940ef88d1 Merge pull request #4236 from devonhollowood/minmax
Fix compatibility bug for min/max builtins
2022-10-20 11:53:58 +03:00
Devon Hollowood
052b87b6e7 Fix compatibility bug for min/max builtins
This was as simple as fixing the error messages produced when zero
arguments are passed.
2022-10-19 22:34:15 -07:00
Dan Nasman
0706d8ea73 fix clippy issues 2022-10-19 21:07:41 +03:00
Dan Nasman
f6e423c479 add reduce and setstate for zip_longest 2022-10-19 20:59:05 +03:00
Jeong YunWon
4331d65285 Merge pull request #4230 from youknowone/smtpd
Add smtpd from cpython v3.10.8
2022-10-18 14:06:15 +09:00
Charlie Marsh
4b4588d885 Add expression context parsing 2022-10-17 15:20:33 -04:00
CPython Developers
39784367ee Add smtpd from cpython v3.10.8 2022-10-18 03:26:29 +09:00
Jeong YunWon
8fbab2e409 Merge pull request #4229 from charliermarsh/charlie/tokens
Expose a method to parse AST from tokens directly
2022-10-18 02:11:53 +09:00
Charlie Marsh
9ced976cde Remove parse_program_tokens 2022-10-17 12:04:30 -04:00
Charlie Marsh
71de630336 Expose a method to parse AST from tokens directly 2022-10-17 09:39:48 -04:00
Jeong YunWon
1f9d8524ff Merge pull request #4225 from joohongpark/fix-float-fromhex
Fix class method of a float subclass
2022-10-17 15:10:10 +09:00
Jeong YunWon
cf099ff4b8 Merge pull request #4218 from charliermarsh/charlie/clone
Make AST nodes Clone-able
2022-10-17 13:47:21 +09:00
Jeong YunWon
72332c90d1 Merge pull request #4226 from jopemachine/fix-class-static
Fix lambda expression's  unexpected `UnboundLocalError`
2022-10-17 13:46:09 +09:00
Gyubong
117ae0a0ea Add example code as extra test 2022-10-17 13:45:15 +09:00
Jeong YunWon
6d140fb0e7 Merge pull request #4223 from youknowone/nightly-clippy
Fix nightly clippy warnings
2022-10-17 13:28:53 +09:00
Charlie Marsh
610d408b4b Add end locations to all nodes (#4192) 2022-10-17 13:18:30 +09:00
Jeong YunWon
00dc025463 Merge pull request #4228 from gilteunchoi/remove-old-doc-remark
remove most of old __doc__ remarks
2022-10-17 11:59:51 +09:00
Jeong YunWon
425895dd0e Merge pull request #4227 from charliermarsh/charlie/simple-str-loc
Start simple string at quote mark
2022-10-17 09:52:28 +09:00
Steve Shi
2c5cacf9f2 Refactor Mapping Protocol (#4222) 2022-10-17 09:51:22 +09:00
gilteun
227034d36b remove most of old __doc__ remarks 2022-10-17 09:00:01 +09:00
joohongpark
8c18208fe6 Update vm/src/builtins/float.rs
Co-authored-by: Snowapril <sinjihng@gmail.com>
2022-10-17 02:12:36 +09:00
Charlie Marsh
e7e62d36ba Start simple string at quote mark 2022-10-16 11:25:46 -04:00
Charlie Marsh
d8f059bc58 Make AST nodes Clone-able 2022-10-16 11:01:17 -04:00