New submission from Joshua :
Traceback:
Traceback (most recent call last):
File "/Users/user/PycharmProjects/phys2/main.py", line 5, in
from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections'
(/Library/Frameworks/Pyth
Joshua added the comment:
Update: I'm just dumb, should have used "from collections.abc import Iterable"
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https:/
New submission from Joshua :
pip3.11 install numpy failed on a fresh install of python 3.11.0a on macOS 11.6.
pip3.11 install numpy
Collecting numpy
Downloading numpy-1.21.1.zip (10.3 MB)
|| 10.3 MB 14.1 MB/s
Installing build dependencies ... done
New submission from Joshua :
I was attempting to look through hashlib to try and understand more about
python's built-in hash functions. As part of this, I ran 'help(_hashlib)' which
returns this text: 'MODULE REFERENCE
https://docs.python.org/3.11/library/_hashl
Joshua added the comment:
I think that option 4 would work best but instead of putting any logic in
(Lib/pydoc_data/topics.py)[https://github.com/python/cpython/blob/main/Lib/pydoc_data/topics.py]
we could put the logic for working with private modules as well and other edge
cases in
(Lib
New submission from Joshua :
Attempting to parse specific keys in zoneinfo.ZoneInfo with tzdata installed
will raise unhandled exceptions
e.g. on windows
>>> import zoneinfo
>>> zoneinfo.ZoneInfo('Pacific')
PermissionError: [Errno 13] Permission denied: '
Joshua added the comment:
tzdata was installed as an admin user, however this behaviour was
reproducible on a linux installation where for the ZoneInfo.('Pacific')
instance an IsADirectoryError would instead be raised.
On Wed, Aug 12, 2020 at 9:50 PM STINNER Victor
wrote:
>
>
Joshua added the comment:
I had opened a PR which just caught IsADirectoryError and PermissionError
but closed it as you'd mentioned that handling PermissionError that way
probably would not be the best, and I agree. I can reopen and modify to
check path on OSerror if you'd like othe
Joshua added the comment:
I'll reopen the PR with an attempted resolution of the OSError related
issues however. In my quick testing it seems at least on Linux
backports.zoneinfo segfaults when trying `ZoneInfo('__init__.py')` so that
might be a larger issue for Pa
New submission from Joshua:
Process: Python [13106]
Path:
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:Python
Version: 2.7.10 (2.7.10)
Code Type: X86-64 (Native
New submission from Joshua:
trying to install the following on macos sierra 10.12.5. I am trying to install
the python-redmine module. i ran the following:
sudo easy_install pip
pip install python-redmine
i get the following output when trying to run a python script:
Joshuas-MacBook-Pro
New submission from Joshua:
The Modulus doesn't seem to pull the proper remainder from simple calculations.
Look at the difference below between the remainder of a regular division
calculation and the modulus:
Am I missing something???
>>> print (str(10.2 / 2))
5.1
>>&
Joshua added the comment:
never mind, long day sorry!
--
resolution: -> works for me
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
New submission from Joshua:
I am using the book, Beginning Programming with Python For Dummies and I am
stuck. On chapter 10 of the book, there is a dialog box that says"Changing the
current python directory". Inside the dialog box there is an instruction on how
to change director
Joshua Insel added the comment:
According to the documentation for pprint, it is supposed to print objects on a
single line if possible. See the second paragraph here:
https://docs.python.org/3/library/pprint.html
--
nosy: +joshinsel
___
Python
New submission from Joshua Insel :
math.log(536870912, 2) should return 29.0, because 2^29 = 536870912. However,
it instead returns 29.004.
--
messages: 408986
nosy: joshinsel
priority: normal
severity: normal
status: open
title: math.log() returns improper output
type
Joshua Insel added the comment:
The same problem occurs with the log function from the C standard library,
which Python uses to implement its same-named function.
--
stage: -> resolved
status: open -> closed
___
Python tracker
Joshua Root added the comment:
PR has been marked stale; friendly ping.
--
___
Python tracker
<https://bugs.python.org/issue45863>
___
___
Python-bugs-list m
Joshua Bronson added the comment:
Dear Raymond,
Thanks so much for the detailed response!
I wonder if you could explain how this case is different from the following:
>>> c = collections.ChainMap({1: 1}, {1: 2})
>>> iter(c)
>>> isinstance(c, dict) # it'
New submission from Joshua Bronson :
collections.abc.Set provides a _hash() method that includes the following in
its docstring:
"""
Note that we don't define __hash__: not all sets are hashable.
But if you define a hashable set type, its __hash__ should
call this functi
Joshua Bronson added the comment:
Thanks for the explanation, Raymond.
Regarding:
> Lastly, pure python hashable sets based on the ABC are not common
This would have implications for other use cases though, that are perhaps more
common.
See, for example, the following code:
ht
New submission from Joshua Bronson :
As suggested by @rhettinger in https://bugs.python.org/msg409443, I'm creating
a feature request for C implementations of collections.abc.KeysView,
ValuesView, and ItemsView.
Because these do not currently benefit from C speedups, they're a
Joshua Bronson added the comment:
Thank you for confirming that ChainMap.__iter__() would be in the same boat as
bidict if a similar .mapping attribute were ever added to dict_keyiterators.
The specifics of this issue are interesting, but even more interesting to me is
whatever learnings we
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue46771>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Joshua Bronson :
This issue was originally opened in the PyPI tracker but was dismissed on the
theory that it's a bug in Python:
https://sourceforge.net/tracker/index.php?func=detail&aid=3396924&group_id=66150&atid=513503
"""
If in
New submission from Joshua Chia :
What steps will reproduce the problem?
1. Make a script containing this code:
parser = argparse.ArgumentParser()
parser.add_argument('-i', '--input-base-directory',
type=argparse.FileType('r'),
New submission from Joshua Landau :
When setting defaults to keyword-only arguments in lambdas which are inside
non-global scopes, cPython doesn't push the name to it's closure's co_freevars.
EXAMPLE:
global_variable = None
(lambda: (lambda *, keyword_only=global_variable: No
Joshua Landau added the comment:
Glad to help :)
It's made my day. I get to boast at school now!
--
___
Python tracker
<http://bugs.python.org/is
Joshua Root added the comment:
The fix that was committed doesn't work if CC is a full path like
/usr/bin/clang.
--
nosy: +jmr
___
Python tracker
<http://bugs.python.org/is
New submission from Joshua Landau :
Inside the grammar for classes[1], the documentation states that the
inheritance list can be of type:
"(" [argument_list [","] | comprehension] ")"
The "comprehension" part seems to be superfluous, especially as it is
Joshua Bronson added the comment:
Thanks for the great additions.
--
___
Python tracker
<http://bugs.python.org/issue7734>
___
___
Python-bugs-list mailin
Joshua Purcell added the comment:
Sorry I've not replied to anyones thoughts until now but nothing seems to fix it
--
components: +Windows -IDLE
resolution: works for me ->
status: closed -> open
___
Python tracker
<http://b
New submission from Joshua Purcell :
There is a complete FAIL in this versionand all other versions like 3.*
THEY ALL FREEZE UP MY SYSTEM (Windows) HELP
--
components: Windows
messages: 121227
nosy: 08jpurcell
priority: normal
severity: normal
status: open
title: The whole thing is NOT
New submission from Joshua Logan :
Hello,
It is mentioned in the documentation for input() (
http://docs.python.org/py3k/library/functions.html#input ) that the newline is
stripped from the end of the returned string. However, on Windows, it used to
trim '\r\n'. Now it no longer
Changes by Joshua Lock :
--
nosy: +joshual
___
Python tracker
<http://bugs.python.org/issue8194>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Joshua Arnold :
In 'Doc/reference/datamodel.rst', the 'Invoking Descriptors' documentation
specifies the following behavior for super objects:
[snip]
Super Binding
If ``a`` is an instance of :class:`super`, then the binding ``super(B,
obj).
New submission from Joshua Blount :
When I get a stack traceback, it would be very handy if the traceback gave me
the relevant class name (along with all the current information).
--
components: Interpreter Core
messages: 127015
nosy: stickwithjosh
priority: normal
severity: normal
Joshua Blount added the comment:
Yes!
--
___
Python tracker
<http://bugs.python.org/issue11007>
___
___
Python-bugs-list mailing list
Unsubscribe:
Joshua Uziel <[EMAIL PROTECTED]> added the comment:
Or slightly better:
from operator import mul
def factorial(num):
return reduce(mul, range(2, num+1), 1)
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Joshua Uziel <[EMAIL PROTECTED]> added the comment:
It's a simplified version, but why not something like this:
import operator
def factorial(num):
return reduce(operator.mul, range(1, num+1))
A product() function could also be done similarly.
--
New submission from Joshua Kugler <[EMAIL PROTECTED]>:
According to a discussion on comp.lang.python, re.findall and
re.finditer scan strings from left to right, and returns them in the
order it found them. It would be nice to note that in documentation.
--
assignee: georg.
Joshua Kugler <[EMAIL PROTECTED]> added the comment:
That looks good. Thanks!
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3384>
___
__
New submission from Joshua Logan <[EMAIL PROTECTED]>:
Python 3.0b2 will not parse the XML file located at
http://rubyquiz.com/SongLibrary.xml.gz
It complains of a UnicodeEncodeError
'charmap' codec can't encode character '\xc8' in position 45: ch
aracter maps t
New submission from Joshua Bronson :
Though the heapq module does not support changing the priority of a particular
element of the heap (a necessary operation for the A* search family of
algorithms), such an element can be marked as invalid and a new element can be
added with different
New submission from Joshua Bronson :
os.makedirs' mode argument defaults to a hardcoded value of 511 (0777 in
octal). This forces the caller to either pass in a different hardcoded value
(commonly 0750), or to implement a workaround that calculates the expected
mode based on the pr
Joshua Bronson added the comment:
Ah, I was misunderstanding the behavior of mkdir, thank you for the
explanation.
My misunderstanding stemmed from recently coming across two widely-used
packages which both pass mode=0750 to os.makedirs. I have no idea why
they would be doing this (as it
Joshua Bronson added the comment:
> My suspicion is that people setting explicit file permissions
> typically know what they are doing, and that you will find that
> your tickets get closed as invalid, explaining to you that this
> mode usage is fully intentional.
For what it'
Joshua Cannon added the comment:
> it may explain why negative indices or slices were initially not implemented:
> It already looks like the result of a slice.
Sure the values of the sequence could be thought of as being increasingly
smaller slices of some other sequence, however I
Joshua Cannon added the comment:
Pretty much the same reason you would want to slice any other sequence. You
want some range of values.
top_most_3_dirs = myPath.parents[-3:]
grandparents_and_beyond = myPath.parents[1:]
The same goes for negative indexes
New submission from Joshua Root :
The path associated with the -isysroot compiler flag can be supplied either as
a separate argument or in the same argument as -isysroot itself. The places in
library code that do special handling of this flag should support both forms,
but currently only
Joshua Root added the comment:
The crash reported by BMinas is reputedly related to the -fstack-check option,
which is said to be on by default when MACOSX_DEPLOYMENT_TARGET=10.15. I've
been unable to confirm whether there was just a bug in the beta, or if it's
still a problem on
Joshua Root added the comment:
Ping?
--
___
Python tracker
<https://bugs.python.org/issue38360>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Joshua Root :
The `-undefined dynamic_lookup` option can only be used in LDSHARED on Mac OS X
10.3 and later. There is a fallback to explicitly linking with the framework
for 10.2 and earlier. I'm pretty sure that currently supported Python versions
don't build
Change by Joshua Root :
--
keywords: +patch
pull_requests: +23702
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24941
___
Python tracker
<https://bugs.python.org/issu
Joshua Root added the comment:
Here's the PR for pypa/distutils, which is just relaxing the MDT check since it
has to work with older Python versions:
https://github.com/pypa/distutils/pull/36
--
___
Python tracker
<https://bugs.py
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue27815>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue43751>
___
___
Python-bugs-list mailing list
Unsubscribe:
Joshua Root added the comment:
Thanks Ned. Would it be OK to backport just the distutils change to 3.9?
--
___
Python tracker
<https://bugs.python.org/issue43
Joshua Root added the comment:
The part that is a bug is that the whole version was checked, not just the
major version--you couldn't target macOS 11.0 if your Python was built for
11.3, for example. MacPorts users getting an error in that situation was the
original motivation for comi
Change by Joshua Root :
--
pull_requests: +24654
pull_request: https://github.com/python/cpython/pull/26001
___
Python tracker
<https://bugs.python.org/issue43
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue43468>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Joshua Root :
The download page lists the following:
Filenamemd5 size
Python-3.10.0rc1.tgzc051bf7a52a45cb0ec2cefbe915417e1 40764776
Python-3.10.0rc1.tar.xz 2861cdd4cf71c6425fde1fedc14bb283 28197832
The downloaded files
Change by Joshua Root :
--
title: 3.1.10rc1 published md5 and size do not match for source archives ->
3.10.0rc1 published md5 and size do not match for source archives
___
Python tracker
<https://bugs.python.org/issu
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue44963>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Joshua Bronson :
--
nosy: +jab
nosy_count: 6.0 -> 7.0
pull_requests: +27187
pull_request: https://github.com/python/cpython/pull/28892
___
Python tracker
<https://bugs.python.org/issu
New submission from Joshua Bronson :
As of bpo-40890 (released in Python 3.10), dict views now provide a public
.mapping attribute, intended to allow users to recover a mappingproxy pointing
to the original mapping.
However, this new attribute can actually point to the wrong mapping for some
New submission from Joshua Root :
When using the pax format, tarfile will zero out the field in the ustar header
for any values that are represented with a float, setting the correct value
only in the pax header. This mainly seems to apply to the mtime. This behaviour
doesn't cause pro
Change by Joshua Root :
--
keywords: +patch
pull_requests: +27931
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29693
___
Python tracker
<https://bugs.python.org/issu
New submission from Joshua Kinard :
Inside a MIPS O32 chroot, based on uclibc-ng-1.0.32, if python-27 or python-3.7
are built against ncurses-6.2, then after compilation, there is a crash in the
'_curses' module. Specific to Python-3.7, the crash is in
Modules/_cursesmod
Joshua Y added the comment:
I am hitting a possibly related issue.
System is running Centos6.9 and SQLite 3.10.0.
Python 3.8.2 built successfully (using pyenv / python-build), and I can import
the sqlite3 lib with seemingly no issue...
% python3
Python 3.8.2 (default, Mar 21 2020, 20:15:25
Joshua Y added the comment:
It always a good idea to sleep on these things before I comment.
Because I compiled SQLite3 under prefix /usr/local, I rebuilt Python 3.8.2 with
`-L /usr/local/lib64` added to my LDFLAGS and now things are working fine (so
far
Change by Joshua Merchant :
--
nosy: +Joshua Merchant
___
Python tracker
<https://bugs.python.org/issue36753>
___
___
Python-bugs-list mailing list
Unsubscribe:
Joshua Root added the comment:
That ValueError I mentioned causes build failures for extension modules
whenever the CFLAGS in sysconfig contains an -isysroot flag in the single arg
form. We ran into it a lot in MacPorts on Mojave and Catalina. So I would
consider it a bug, and would prefer
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue31122>
___
___
Python-bugs-list mailing list
Unsubscribe:
Joshua Root added the comment:
Looks like this is fixed as of 3.9.1.
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Joshua Root :
There are several cases in the configure script of exit being used without
including stdlib.h, and one case of close being used without including
unistd.h. A compiler that does not allow implicit function declaration, such as
clang in Xcode 12, will error
Change by Joshua Root :
--
keywords: +patch
pull_requests: +22558
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23690
___
Python tracker
<https://bugs.python.org/issu
Joshua Root added the comment:
Confirmed fixed in 3.9.1 and 3.10.0a3. Thanks Victor!
--
___
Python tracker
<https://bugs.python.org/issue41617>
___
___
Pytho
Joshua Root added the comment:
Are there plans to backport PR 22855 to any branches older than 3.9?
--
nosy: +jmr
___
Python tracker
<https://bugs.python.org/issue41
Change by Joshua Bronson :
--
pull_requests: +22708
pull_request: https://github.com/python/cpython/pull/23847
___
Python tracker
<https://bugs.python.org/issue31
Joshua Bronson added the comment:
Please see https://github.com/python/cpython/pull/23847 for the C
implementation of aiter and anext added to builtins, as requested.
--
title: add aiter() and anext() functions to operator module -> add aiter() and
anext() functi
New submission from Joshua Root :
The line in posixmodule.c that checks for __builtin_available is rejected by
compilers that don't have __has_builtin. The second check needs to be in a
nested #if.
--
components: Build, macOS
messages: 383437
nosy: jmr, ned.deily, ronaldous
Change by Joshua Root :
--
keywords: +patch
pull_requests: +22735
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23873
___
Python tracker
<https://bugs.python.org/issu
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue14757>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Joshua Bronson :
If I understand correctly, it should be an invariant that in the code below,
for all "Parent" classes, for all "method"s, Child1.method should return the
same result as Child2.method:
```
class Parent:
def __init__(self, value):
Joshua Walden added the comment:
I am interesting in contributing and would like to claim this issue.
--
nosy: +Joshua Walden
___
Python tracker
<https://bugs.python.org/issue40
New submission from Joshua Oreman :
The current async generator finalization hooks are per-thread, but sometimes
you want different async generator semantics in different async tasks in the
same thread. This is currently challenging to implement using the thread-level
hooks. I'm propos
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue32884>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue32561>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue13322>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue22239>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue40816>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Joshua Bronson :
This appears to be a bug in Python 3.6 that I hit while trying to add type
hints to my bidirectional mapping library (https://bidict.rtfd.io).
Pasting a working, minimal repro below for easier inline viewing, and also
attaching for easier downloading and
Joshua Bronson added the comment:
It turns out that this bug reproduces with any subclass of the generic type
with a weakref slot, even without any multiple inheritance going on.
For example:
class Invertible2(Invertible[KT1, KT2]): pass
is enough to trigger this bug along with the
Joshua Bronson added the comment:
Whittled this down to an even more minimal repro:
"""Repro for Python 3.6 slots + weakref + typing.Generic subclass bug."""
from typing import Generic, TypeVar
from weakref import ref
T = TypeVar("T")
class MyGen
Joshua Oreman added the comment:
The problem appears to be occurring when the base class is subscripted, not
when it's inherited. I can reproduce this issue on Python 3.6.10 by just
evaluating Base[T].
'del Base.__slots__' after Base is constructed seems to work around the is
Joshua Bronson added the comment:
Thanks so much, @oremanj! Indeed, merely subscripting the class triggers the
bug, and your 'del slots' workaround does the trick!
For completeness, there is an updated (yet more minimal) repro below/attached.
"""Repro for P
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue41303>
___
___
Python-bugs-list mailing list
Unsubscribe:
Joshua Oreman added the comment:
This doesn't appear to have been backported to 3.7, even though it's in 3.6.6
and 3.8.0a0.
--
nosy: +Joshua Oreman, lukasz.langa
___
Python tracker
<https://bugs.python.o
Change by Joshua Merchant :
--
nosy: +Joshua Merchant
___
Python tracker
<https://bugs.python.org/issue14527>
___
___
Python-bugs-list mailing list
Unsubscribe:
1 - 100 of 343 matches
Mail list logo