[issue40401] pythoncore.vcxproj fails to load due to duplicated "..\Include\pyhash.h"

2020-04-26 Thread Ammar Askar
New submission from Ammar Askar : The pythoncore project currently fails to load in Visual Studio with: cpython\PCbuild\pythoncore.vcxproj : error : Cannot load project with duplicated project items: ..\Include\pyhash.h is included as 'ClInclude' and as 'ClInclude'

[issue40401] pythoncore.vcxproj fails to load due to duplicated "..\Include\pyhash.h"

2020-04-26 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch pull_requests: +19047 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19725 ___ Python tracker <https://bugs.python.org/issu

[issue40317] inspect.getsource() examines incorrect target

2020-04-28 Thread Ammar Askar
Ammar Askar added the comment: Did you mean to close this Karthik? -- nosy: +ammar2 ___ Python tracker <https://bugs.python.org/issue40317> ___ ___ Python-bug

[issue40439] Error in an external reference

2020-04-29 Thread Ammar Askar
Ammar Askar added the comment: Thank you for the report Patrick! For reference this is on the lexical analysis page: https://docs.python.org/3/reference/lexical_analysis.html > A non-normative HTML file listing all valid identifier characters for Unicode > 4.1 can be found at &

[issue35829] datetime: parse "Z" timezone suffix in fromisoformat()

2020-04-29 Thread Ammar Askar
Ammar Askar added the comment: There's been some additional discussion on https://discuss.python.org/t/parse-z-timezone-suffix-in-datetime/2220 -- nosy: +ammar2 ___ Python tracker <https://bugs.python.org/is

[issue40358] pathlib's relative_to should behave like os.path.relpath

2020-04-29 Thread Ammar Askar
Ammar Askar added the comment: Thank you for your work on this Domenico. For reviewing the code, would you mind creating a Github pull request for it as described here https://devguide.python.org/pullrequest/ -- nosy: +ammar2 ___ Python tracker

[issue40441] Plural typo in Design and History FAQ

2020-04-29 Thread Ammar Askar
Change by Ammar Askar : -- resolution: -> fixed status: open -> closed ___ Python tracker <https://bugs.python.org/issue40441> ___ ___ Python-bugs-list

[issue40446] pow(a, b, p) where b=int((p-1)/2) spits out gibbrish for big p

2020-04-29 Thread Ammar Askar
Ammar Askar added the comment: And just to add on, the reason this gives you the correct result in Python 2 is that `/` performs integer division whereas in Python 3 the `/` operator provides a float as a result. See https://docs.python.org/3/howto/pyporting.html#division for more details

[issue40543] Tamil locale is using outdated encoding

2020-05-13 Thread Ammar Askar
Ammar Askar added the comment: Hi Muthu, thanks for reporting this! Looks like this is related to issue20087 whereby the X11 locale data for TA_IN is using TSCII but the glibc supported file has the UTF-8 alias. Pending a resolution to that bug, I think your best course of action would be

[issue40551] PRs should be rebased on top of master before running the build/tests

2020-05-13 Thread Ammar Askar
Ammar Askar added the comment: Just like Travis, Github actions also automatically rebases pull requests onto the latest master. As you can see from a recent workflow run, it uses the special ref: "refs/remote/pull/20047/merge" https://github.com/python/cpython/pull/20047/checks?ch

[issue42574] Travis can't build the 3.8 branch right now

2020-12-07 Thread Ammar Askar
Ammar Askar added the comment: >From a quick glance at >https://github.com/python/cpython/pulls?page=2&q=base%3A3.8+-label%3Atype-documentation It looks like travis on 3.8 last passed at https://github.com/python/cpython/pull/23364 around 19 days ago The culprit commit is lik

[issue42574] Travis can't build the 3.8 branch right now

2020-12-07 Thread Ammar Askar
Ammar Askar added the comment: Oh whoops, got sniped by Brandt while investigating :) -- ___ Python tracker <https://bugs.python.org/issue42574> ___ ___ Pytho

[issue42660] _zoneinfo.c incorrectly checks bounds of `day` variable in calenderrule_new

2020-12-16 Thread Ammar Askar
Ammar Askar added the comment: > Some compilers complain about checking `day < 0`, because `day` is an > unsigned type Just my two cents, this isn't just "some compilers". Everything from gcc, msvc, C# to the rust compiler complain about this sort of code.

[issue42767] Review usage of atomic variables in signamodule.c

2020-12-28 Thread Ammar Askar
Ammar Askar added the comment: > For me, the most surprising part is Handlers[signum].tripped which is > declared as volatile *and* an atomic variable. I think it's just following this part of the C spec (Some background in bpo-12060): > or refers to any object with static st

[issue42770] Typo in email.headerregistry docs

2020-12-28 Thread Ammar Askar
Ammar Askar added the comment: Confirmed, the attribute under https://docs.python.org/3.10/library/email.headerregistry.html#email.headerregistry.ContentDispositionHeader is incorrect. bazwal, would you like to propose a patch to fix this? The code is here: https://github.com/python

[issue42739] Crash when try to disassemble bogus code object

2020-12-28 Thread Ammar Askar
Ammar Askar added the comment: This seems to be part 2 of the problems Mark mentioned in issue42562. Namely in this case the `co_lnotab` accessor uses PyLineTable_NextAddressRange which has that assertion. -- nosy: +ammar2 ___ Python tracker

[issue42773] build.yml workflow not testing on pushes

2020-12-28 Thread Ammar Askar
New submission from Ammar Askar : It looks like on pushes to Github, we currently aren't running tests. (Though this isn't too big of a concern since they get run on pull requests). Here's an example of a recent run https://github.com/python/cpython/runs/1609911031 ``` f

[issue42773] build.yml workflow not testing on pushes

2020-12-28 Thread Ammar Askar
Ammar Askar added the comment: Any commit that gets to pushed to the master, 3.9, 3.8 and 3.7 branches. e.g all the commits here https://github.com/python/cpython/commits/master, they end up failing the "Check for source changes" step and skipping even when there's non-docume

[issue42773] build.yml workflow not testing on pushes

2020-12-30 Thread Ammar Askar
Ammar Askar added the comment: Thank you Filipe and Mariatta, the fix looks good to me. I think it needs a backport to the 3.9 branch though. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2020-12-31 Thread Ammar Askar
New submission from Ammar Askar : It is possible to access all the frame objects in the interpret without triggering any audit hooks through the use of exceptions. Namely, through the traceback's tb_frame property. Ordinarily one would trigger the "sys._current_frames" or

[issue42825] Build libraries with "/OPT:REF" linker optimization on Windows

2021-01-05 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +eryksun title: Optimization opportunity on Windows -> Build libraries with "/OPT:REF" linker optimization on Windows ___ Python tracker <https://bugs.pytho

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2021-01-09 Thread Ammar Askar
Ammar Askar added the comment: `tb_frame` is documented under https://docs.python.org/3/reference/datamodel.html > Special read-only attributes: tb_frame points to the execution frame of the > current level `tb_code` can similarly be documented here and the note about the audit even

[issue42903] optimize lru_cache for functions with no arguments

2021-01-11 Thread Ammar Askar
Ammar Askar added the comment: Additional discussion on the same topic on discourse: https://discuss.python.org/t/reduce-the-overhead-of-functools-lru-cache-for-functions-with-no-parameters/3956 -- nosy: +ammar2 ___ Python tracker <ht

[issue42628] binascii doesn't work on some base64

2021-01-27 Thread Ammar Askar
Ammar Askar added the comment: It seems to me that your commands are just sequenced wrong, in Python you're performing (examples in parens): * base64 (ue==) -> decode to binary (0xB9) * binary (0xB9) -> encode to base64 (uQ==) whereas in your command line commands you're

[issue42773] build.yml workflow not testing on pushes

2021-02-04 Thread Ammar Askar
Change by Ammar Askar : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34013] Inconsistent SyntaxError for print

2021-02-18 Thread Ammar Askar
Ammar Askar added the comment: It's still one of the most common beginner mistakes, personally I think the trade-off in complexity at least for the grammar level fix is worth it here. -- nosy: +ammar2 ___ Python tracker <https://bugs.py

[issue43144] test_unicodedata: test_normalization uses network but doesn't depend on network resource

2021-02-25 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +ammar2 nosy_count: 3.0 -> 4.0 pull_requests: +23435 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24650 ___ Python tracker <https://bugs.python.org/i

[issue43403] Misleading statement about bytes not being able to represent windows filenames in documentation

2021-03-04 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +eryksun ___ Python tracker <https://bugs.python.org/issue43403> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40705] use-after-free in _zoneinfo.c's module_free function

2020-05-20 Thread Ammar Askar
New submission from Ammar Askar : This was caught on oss-fuzz's ASAN builder: Step #4: ==7656==ERROR: AddressSanitizer: heap-use-after-free on address 0x604001568ea0 at pc 0x7f603e4b974b bp 0x7ffe4f7e8f90 sp 0x7ffe4f7e8f88 Step #4: READ of size 8 at 0x604001568ea0 thread T0 Step #4:

[issue40705] use-after-free in _zoneinfo.c's module_free function

2020-05-20 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch pull_requests: +19557 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20280 ___ Python tracker <https://bugs.python.org/issu

[issue35808] Let's retire pgen

2020-05-25 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +ammar2 nosy_count: 7.0 -> 8.0 pull_requests: +19667 pull_request: https://github.com/python/cpython/pull/20405 ___ Python tracker <https://bugs.python.org/issu

[issue39943] Meta: Clean up various issues in C internals

2020-05-29 Thread Ammar Askar
Ammar Askar added the comment: For sre.c, this is definitely a bug in MSVC, see: * https://stackoverflow.com/questions/10403713/why-does-visual-c-warn-on-implicit-cast-from-const-void-to-void-in-c-but * https://godbolt.org/z/BpMqA_ I'm trying to get rid of MSVC warnings to unblock

[issue39943] Meta: Clean up various issues in C internals

2020-05-29 Thread Ammar Askar
Change by Ammar Askar : -- pull_requests: +19754 pull_request: https://github.com/python/cpython/pull/20508 ___ Python tracker <https://bugs.python.org/issue39

[issue40686] Compiler warnings in _zoneinfo.c on Windows build in 64-bit

2020-06-02 Thread Ammar Askar
Ammar Askar added the comment: There's still the "unknown pragma" warnings left, I pinged p-ganssle about it in the zoneinfo commit but it should probably be guarded like the ones in the ssl module: https://github.com/python/cpython/blob/a871f692b4a2e6c7d45579693e787edc0

[issue41030] Provide toList() method on iterators/generators (`list()` is a flow killer in REPL)

2020-06-19 Thread Ammar Askar
Ammar Askar added the comment: Julien, in the REPL "_" represents the last evaluated expression. So you can do: >>> iter(range(10)) >>> list(_) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] Do you feel like that covers what you're aski

[issue39699] Some CIs silence potentially useful output from make

2020-06-23 Thread Ammar Askar
Change by Ammar Askar : -- pull_requests: +20255 pull_request: https://github.com/python/cpython/pull/21089 ___ Python tracker <https://bugs.python.org/issue39

[issue39699] Some CIs silence potentially useful output from make

2020-06-23 Thread Ammar Askar
Ammar Askar added the comment: Thanks for finding this Mark, looks like this was accidentally introduced in the 3.8 backport for testing the changes: https://github.com/python/cpython/pull/18670 The master (6aa1f1ecf7142a4117eedb8c570f30da1598616c) and 3.7

[issue39699] Some CIs silence potentially useful output from make

2020-06-23 Thread Ammar Askar
Ammar Askar added the comment: Opened up a quick pull request to fix it: https://github.com/python/cpython/pull/21089 -- ___ Python tracker <https://bugs.python.org/issue39

[issue41257] mimetypes.guess_extension('video/x-matroska') return wrong value

2020-07-12 Thread Ammar Askar
Ammar Askar added the comment: This looks the same as issue38656, feel free to re-open if its not. -- nosy: +ammar2 resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41122] functools.singledispatchfunction has confusing error message if no positional arguments are passed in

2020-07-14 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch nosy: +ammar2 nosy_count: 1.0 -> 2.0 pull_requests: +20615 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21471 ___ Python tracker <https://bugs.python.org/i

[issue41275] Clarify whether Futures can be awaited multiple times

2020-07-14 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +aeros ___ Python tracker <https://bugs.python.org/issue41275> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41271] Add support for io_uring to cpython

2020-07-15 Thread Ammar Askar
Ammar Askar added the comment: See also: https://github.com/python-trio/trio/issues/932 which contains a link to a library with cffi bindings to io_uring -- nosy: +ammar2 ___ Python tracker <https://bugs.python.org/issue41

[issue41286] Built-in platform module does not offer to check for processor instructions

2020-07-15 Thread Ammar Askar
Ammar Askar added the comment: Your best bet then is probably using a library built for this purpose like https://github.com/workhorsy/py-cpuinfo Like Christian said, exposing this information in the standard library would be a fairly large maintenance burden for a feature that can't r

[issue41283] The parameter name for imghdr.what in the documentation is wrong

2020-07-15 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch nosy: +ammar2 nosy_count: 2.0 -> 3.0 pull_requests: +20642 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21501 ___ Python tracker <https://bugs.python.org/i

[issue40932] subprocess docs should warn of shlex use on Windows

2020-07-15 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch nosy: +ammar2 nosy_count: 7.0 -> 8.0 pull_requests: +20643 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21502 ___ Python tracker <https://bugs.python.org/i

[issue41286] Built-in platform module does not offer to check for processor instructions

2020-07-16 Thread Ammar Askar
Ammar Askar added the comment: Thanks for your understanding BoĊĦtjan, closing this as requested. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40932] subprocess docs should warn of shlex use on Windows

2020-07-20 Thread Ammar Askar
Ammar Askar added the comment: Hmm, it'd be hard to enumerate them all. The module does say, "...simple syntaxes resembling that of the Unix shell" but that's it. Distinguishing at the OS level for shlex does seem a bit weird given the existence of WSL and non-compliant

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +Mark.Shannon ___ Python tracker <https://bugs.python.org/issue41531> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41545] gc API requiring matching number of gc.disable - gc.enable calls

2020-08-14 Thread Ammar Askar
Ammar Askar added the comment: > I'd expected the GC to be truly enabled only on the second call to > `enable()`, but apparently it's enabled on the first call :( Both > `gc.enable()` and `gc.disable()` just write `1`/`0` to `gcstate->enabled`, > respectively. I d

[issue41610] Any Raspberry Pi Zero Projects to try?

2020-08-21 Thread Ammar Askar
Ammar Askar added the comment: Hi Supriya, this website is for reporting specific bugs about the Python language itself, not for general discussion. I'd suggest taking a look at https://www.python.org/community/ and https://www.reddit.com/r/learnpython/ to find people to chat with

[issue41650] .pyc file not running in cross python versions

2020-08-27 Thread Ammar Askar
Ammar Askar added the comment: .pyc files aren't meant to be portable, they contain raw bytecode and data specific to the version of Python they were compiled on. For example, search for "Changed in version 3.6" here and you'll see all the little changes to the by

[issue41670] Windows and Linux execute the same code differently

2020-08-30 Thread Ammar Askar
Ammar Askar added the comment: minimal reproducer without coverage: import sys def f(): try: for i in []: pass return 1 except: return 2 def tracer(frame, event, _): if event == 'line': print("executing line {}".format(frame.f

[issue41670] ceval traces code differently based with USE_COMPUTED_GOTOS

2020-08-30 Thread Ammar Askar
Ammar Askar added the comment: So I think this is a weird edge case with a set of opcode predictions (GET_ITER -> FOR_ITER -> POP_BLOCK) going outside of a line boundary. The disassembly of the reproducer above is: 4 0 SETUP_FINALLY 16 (to 18) 5

[issue41670] ceval traces code differently with USE_COMPUTED_GOTOS

2020-08-30 Thread Ammar Askar
Change by Ammar Askar : -- title: ceval traces code differently based with USE_COMPUTED_GOTOS -> ceval traces code differently with USE_COMPUTED_GOTOS ___ Python tracker <https://bugs.python.org/issu

[issue41685] make doctest on 3.10 (master branch) fails with setuptools 50.0.0

2020-09-01 Thread Ammar Askar
Ammar Askar added the comment: Victor's fix is now in the 50.0.2 release, should we bump the pinned version, remove its pinning or do nothing? https://github.com/pypa/setuptools/commit/edcf84faaf17e87e6e38796dd24f66d9236bf87c https://pypi.org/project/setuptools/#history --

[issue40624] add support for != (not-equals) in ElementTree XPath

2020-09-08 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch nosy: +ammar2 nosy_count: 3.0 -> 4.0 pull_requests: +21229 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22147 ___ Python tracker <https://bugs.p

[issue41743] Remove Unnecessarily Gendered Language from the Documentation

2020-09-08 Thread Ammar Askar
Ammar Askar added the comment: The other issue aside, changing "If the programmer wishes to move to the next iteration of an outer enclosing loop, or terminate multiple loops at once, he or she has a few less-than elegant options." to "If the programmer wishes to m

[issue41743] Remove Unnecessarily Gendered Language from the Documentation

2020-09-08 Thread Ammar Askar
Change by Ammar Askar : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue41743> ___ ___

[issue41688] Document how **= does not fall back on **

2020-09-09 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch nosy: +ammar2 nosy_count: 2.0 -> 3.0 pull_requests: +21241 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22172 ___ Python tracker <https://bugs.python.org/i

[issue41790] C-API documentation ignores heap types and says type objects must never be deallocated

2020-09-15 Thread Ammar Askar
Change by Ammar Askar : -- title: C-API documentation -> C-API documentation ignores heap types and says type objects must never be deallocated ___ Python tracker <https://bugs.python.org/issu

[issue41833] threading.Thread: use target name if the name parameter is omitted

2020-09-22 Thread Ammar Askar
Ammar Askar added the comment: Having the target in the thread name definitely seems like a good idea and would help ease debugging, not just for our tests but when printing thread objects in general. I would agree with the suggestion of placing the counter in there for when multiple

[issue41903] PyNumber_InPlacePower ignores o3 if o1 implements __ipow__

2020-10-01 Thread Ammar Askar
Ammar Askar added the comment: Huh, this is weird. I wonder why the data model provides the signature object.__ipow__(self, other[, modulo]) if the slot always seems to drop the third argument. Adding Brett to the nosy who found another issue around the special casing of pow/** recently

[issue41903] PyNumber_InPlacePower ignores o3 if o1 implements __ipow__

2020-10-01 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue41903> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41903] PyNumber_InPlacePower ignores o3 if o1 implements __ipow__

2020-10-01 Thread Ammar Askar
Ammar Askar added the comment: Also of note, there is actually no way to call `PyNumber_InPlacePower` from pure python from what I can tell. Even libraries like numpy don't implement the three-argument version of the nb_inplace_power

[issue41903] PyNumber_InPlacePower ignores o3 if o1 implements __ipow__

2020-10-01 Thread Ammar Askar
Ammar Askar added the comment: Whoops, forgot the numpy link: https://github.com/numpy/numpy/blob/33e1dbee8d9e11a3e96efaae822ff6f3c44e3cef/numpy/core/src/multiarray/number.c#L729-L741 -- ___ Python tracker <https://bugs.python.org/issue41

[issue41902] Micro optimization for range.index if step is 1

2020-10-01 Thread Ammar Askar
Ammar Askar added the comment: Out of curiosity, what is the motivation for this optimization? Is there reason to believe that range.index is performed often enough that it's worth the extra code and maintenance cost here? -- nosy: +a

[issue40202] Misleading grammatically of ValueError Message?

2020-10-03 Thread Ammar Askar
Change by Ammar Askar : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> More descriptive error message than "too many values to unpack" ___ Python tracker <https://b

[issue41952] sys.version has double space between month and date

2020-10-06 Thread Ammar Askar
Ammar Askar added the comment: For reference, this comes from https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Modules/getbuildinfo.c#L45-L46 and is set by the compiler `__DATE__` macro. GCC documentation says: > If the day of the month is less than 10, it

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-08 Thread Ammar Askar
Ammar Askar added the comment: It's available from the Github gist that Kevin posted. Here is a direct link that you can curl/wget: https://gist.github.com/Zeturic/7d0480a94352968c1fe92aa62e8adeaf/raw/6daebaabedaa903016810c2c04d0d1f0b1af1ed3/data.bin -- nosy: +a

[issue42005] profile/cProfile CLI should catch BrokenPipeError

2020-10-10 Thread Ammar Askar
Ammar Askar added the comment: Related: https://bugs.python.org/issue39828 -- nosy: +ammar2, vstinner ___ Python tracker <https://bugs.python.org/issue42

[issue38980] Compile libpython with -fno-semantic-interposition

2020-10-20 Thread Ammar Askar
Ammar Askar added the comment: Hey Victor, should we try to land this in Python 3.10? Given that no one has brought up any big concerns aside from LD_PRELOAD based hacks and how clang has already had this as the default I think it's relatively safe to make a default for with-optimiza

[issue42175] long lines from interactive stdin are truncated

2020-10-27 Thread Ammar Askar
Ammar Askar added the comment: This doesn't show up in piping so I think it might be a Linux terminal limitation. This thread claims a 4096 limit in cooked terminals, would you mind giving one of the work-arounds here a try and see if it that gets rid of it: https://unix.stackexchang

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2019-06-07 Thread Ammar Askar
Change by Ammar Askar : -- pull_requests: +13780 pull_request: https://github.com/python/cpython/pull/13907 ___ Python tracker <https://bugs.python.org/issue29

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2019-06-11 Thread Ammar Askar
Change by Ammar Askar : -- pull_requests: +13854 pull_request: https://github.com/python/cpython/pull/13991 ___ Python tracker <https://bugs.python.org/issue29

[issue37326] Python distributions do not contain libffi license

2019-06-17 Thread Ammar Askar
Ammar Askar added the comment: LICENSE.txt only contains Python's licensing information. You can find all the external licenses in https://docs.python.org/3/license.html?highlight=libffi#libffi On Windows, this is also distributed as part of Doc/pythonXXX.chm If you don't thi

[issue37326] Windows LICENSE.txt do not contain libffi license

2019-06-17 Thread Ammar Askar
Ammar Askar added the comment: Oh whoops, I was looking at my py2 folder. Let's reopen in that case. -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware resolution: not a bug -> stage: resolved -> status: closed -> open title: Python distri

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2019-06-19 Thread Ammar Askar
Change by Ammar Askar : -- pull_requests: +14085 pull_request: https://github.com/python/cpython/pull/14255 ___ Python tracker <https://bugs.python.org/issue29

[issue37644] Sphinx (Travis doc build) is blocking merging

2019-07-21 Thread Ammar Askar
Ammar Askar added the comment: This particular error used to be covered here: https://github.com/python/cpython/blob/master/Doc/tools/susp-ignored.csv but looks like a line number change has broken it. -- nosy: +ammar2 ___ Python tracker <ht

[issue37647] Wrong lineno in traceback when formatting strings with % and multilines

2019-07-21 Thread Ammar Askar
Ammar Askar added the comment: Please try this on the latest version of Python, there was a behavior change implemented in issue12458 that might make this a non-issue. -- nosy: +ammar2, serhiy.storchaka ___ Python tracker <https://bugs.python.

[issue29097] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6

2017-06-24 Thread Ammar Askar
Ammar Askar added the comment: Hey, sorry for the late response. I just ran: import datetime from dateutil.zoneinfo import get_zonefile_instance import dateutil.tz zonenames = list(get_zonefile_instance().zones) for tz in zonenames: tz = dateutil.tz.gettz(tz) for i in

[issue29097] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6

2017-06-24 Thread Ammar Askar
Changes by Ammar Askar : -- pull_requests: +2434 ___ Python tracker <http://bugs.python.org/issue29097> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29097] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6

2017-06-24 Thread Ammar Askar
Ammar Askar added the comment: Created a github pull request for the recommended patch along with a test: https://github.com/python/cpython/pull/2385 -- ___ Python tracker <http://bugs.python.org/issue29

[issue30062] datetime in Python 3.6+ no longer respects 'TZ' environment variable

2017-06-24 Thread Ammar Askar
Ammar Askar added the comment: Closing this since as you pointed out this behavior is already documented. As an aside, seeing as you guys already have pytz as a dependency. Instead of fixing this with tzset you can also just explicitly do datetime.datetime.fromtimestamp(time, pytz.timezone

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-06-24 Thread Ammar Askar
Ammar Askar added the comment: Looks like that error is coming from the fact that the Powershell on that buildbot is outdated. As the documentation notes: https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.utility/invoke-webrequest > This cmdlet was introduced

[issue29812] test for token.py, and consistency tests for tokenize.py

2017-07-11 Thread Ammar Askar
Ammar Askar added the comment: No problem, closing this in favor of issue 30455. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue30937] csv module examples miss newline='' when opening files

2017-07-15 Thread Ammar Askar
Changes by Ammar Askar : -- pull_requests: +2790 ___ Python tracker <http://bugs.python.org/issue30937> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30937] csv module examples miss newline='' when opening files

2017-07-15 Thread Ammar Askar
Changes by Ammar Askar : -- keywords: +easy, patch stage: -> patch review type: -> enhancement ___ Python tracker <http://bugs.python.org/issue30937> ___ __

[issue30883] test_urllib2net failed on s390x Debian 3.6: ftp.debian.org error, too many connections from your internet address

2017-07-18 Thread Ammar Askar
Changes by Ammar Askar : -- pull_requests: +2814 ___ Python tracker <http://bugs.python.org/issue30883> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22650] set up and use VM for net access in the test suite

2017-07-18 Thread Ammar Askar
Ammar Askar added the comment: Opened up https://github.com/python/cpython/pull/2755/ in order to address https://bugs.python.org/issue30883 This changes the ftp servers from debian.org to pythontest.net -- nosy: +ammar2 ___ Python tracker <h

[issue30883] test_urllib2net failed on s390x Debian 3.6: ftp.debian.org error, too many connections from your internet address

2017-07-18 Thread Ammar Askar
Changes by Ammar Askar : -- pull_requests: +2815 ___ Python tracker <http://bugs.python.org/issue30883> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30883] test_urllib2net failed on s390x Debian 3.6: ftp.debian.org error, too many connections from your internet address

2017-07-18 Thread Ammar Askar
Changes by Ammar Askar : -- pull_requests: +2816 ___ Python tracker <http://bugs.python.org/issue30883> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30883] test_urllib2net failed on s390x Debian 3.6: ftp.debian.org error, too many connections from your internet address

2017-07-18 Thread Ammar Askar
Changes by Ammar Askar : -- pull_requests: +2817 ___ Python tracker <http://bugs.python.org/issue30883> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30965] Unexpected behavior of operator "in"

2017-07-18 Thread Ammar Askar
Ammar Askar added the comment: Check out this section of the documentation, notably this part: "Note that comparisons, membership tests, and identity tests, all have the same precedence and have a left-to-right chaining feature" Chaining lets you write stuff like this: >>&

[issue30965] Unexpected behavior of operator "in"

2017-07-18 Thread Ammar Askar
Ammar Askar added the comment: Sorry, forgot the actual link. https://docs.python.org/3/reference/expressions.html#operator-precedence -- ___ Python tracker <http://bugs.python.org/issue30

[issue30998] faulthandler: Show C stacktrace

2017-07-23 Thread Ammar Askar
Ammar Askar added the comment: As the faulthandler documentation notes: > The fault handler is called on catastrophic cases and therefore can only use > signal-safe functions (e.g. it cannot allocate memory on the heap). Because > of this limitation traceback dumping is minimal co

[issue30998] faulthandler: Show C stacktrace

2017-07-23 Thread Ammar Askar
Ammar Askar added the comment: No need to close it off just yet, what I posted was just my opinion. We can wait for haypo's expert opinion seeing as he implemented faulthandler. Maybe it would be useful to have an option to say always generate a core dump? Something like the stuff l

[issue1732367] Document the constants in the socket module

2017-07-25 Thread Ammar Askar
Ammar Askar added the comment: Gonna take this and its dependencies on, eta 2-4 days. -- nosy: +ammar2 ___ Python tracker <http://bugs.python.org/issue1732

[issue31150] [EASY] test_thread: Warning -- reap_children() reaped child process

2017-08-08 Thread Ammar Askar
Changes by Ammar Askar : -- pull_requests: +3067 ___ Python tracker <http://bugs.python.org/issue31150> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31150] [EASY] test_thread: Warning -- reap_children() reaped child process

2017-08-09 Thread Ammar Askar
Changes by Ammar Askar : -- pull_requests: +3075 ___ Python tracker <http://bugs.python.org/issue31150> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31150] [EASY] test_thread: Warning -- reap_children() reaped child process

2017-08-09 Thread Ammar Askar
Changes by Ammar Askar : -- pull_requests: +3076 ___ Python tracker <http://bugs.python.org/issue31150> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    1   2   3   4   5   >