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'
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
Ammar Askar added the comment:
Did you mean to close this Karthik?
--
nosy: +ammar2
___
Python tracker
<https://bugs.python.org/issue40317>
___
___
Python-bug
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
&
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
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
Change by Ammar Askar :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue40441>
___
___
Python-bugs-list
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
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
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
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
Ammar Askar added the comment:
Oh whoops, got sniped by Brandt while investigating :)
--
___
Python tracker
<https://bugs.python.org/issue42574>
___
___
Pytho
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.
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
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
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
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
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
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
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
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
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
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
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
Change by Ammar Askar :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
Change by Ammar Askar :
--
nosy: +eryksun
___
Python tracker
<https://bugs.python.org/issue43403>
___
___
Python-bugs-list mailing list
Unsubscribe:
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:
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
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
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
Change by Ammar Askar :
--
pull_requests: +19754
pull_request: https://github.com/python/cpython/pull/20508
___
Python tracker
<https://bugs.python.org/issue39
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
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
Change by Ammar Askar :
--
pull_requests: +20255
pull_request: https://github.com/python/cpython/pull/21089
___
Python tracker
<https://bugs.python.org/issue39
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
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
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
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
Change by Ammar Askar :
--
nosy: +aeros
___
Python tracker
<https://bugs.python.org/issue41275>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
Change by Ammar Askar :
--
nosy: +Mark.Shannon
___
Python tracker
<https://bugs.python.org/issue41531>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
--
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
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
Change by Ammar Askar :
--
resolution: -> third party
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue41743>
___
___
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
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
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
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
Change by Ammar Askar :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue41903>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
Ammar Askar added the comment:
Related:
https://bugs.python.org/issue39828
--
nosy: +ammar2, vstinner
___
Python tracker
<https://bugs.python.org/issue42
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
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
Change by Ammar Askar :
--
pull_requests: +13780
pull_request: https://github.com/python/cpython/pull/13907
___
Python tracker
<https://bugs.python.org/issue29
Change by Ammar Askar :
--
pull_requests: +13854
pull_request: https://github.com/python/cpython/pull/13991
___
Python tracker
<https://bugs.python.org/issue29
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
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
Change by Ammar Askar :
--
pull_requests: +14085
pull_request: https://github.com/python/cpython/pull/14255
___
Python tracker
<https://bugs.python.org/issue29
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
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.
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
Changes by Ammar Askar :
--
pull_requests: +2434
___
Python tracker
<http://bugs.python.org/issue29097>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Changes by Ammar Askar :
--
pull_requests: +2790
___
Python tracker
<http://bugs.python.org/issue30937>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ammar Askar :
--
keywords: +easy, patch
stage: -> patch review
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue30937>
___
__
Changes by Ammar Askar :
--
pull_requests: +2814
___
Python tracker
<http://bugs.python.org/issue30883>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Ammar Askar :
--
pull_requests: +2815
___
Python tracker
<http://bugs.python.org/issue30883>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ammar Askar :
--
pull_requests: +2816
___
Python tracker
<http://bugs.python.org/issue30883>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ammar Askar :
--
pull_requests: +2817
___
Python tracker
<http://bugs.python.org/issue30883>
___
___
Python-bugs-list mailing list
Unsubscribe:
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:
>>&
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
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
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
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
Changes by Ammar Askar :
--
pull_requests: +3067
___
Python tracker
<http://bugs.python.org/issue31150>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ammar Askar :
--
pull_requests: +3075
___
Python tracker
<http://bugs.python.org/issue31150>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ammar Askar :
--
pull_requests: +3076
___
Python tracker
<http://bugs.python.org/issue31150>
___
___
Python-bugs-list mailing list
Unsubscribe:
201 - 300 of 461 matches
Mail list logo