New submission from Joshua Root :
Older clang versions don't have __builtin_bswap16, but it's always used when
compiling with clang, which means the build fails with those older versions.
The code should use __has_builtin to check.
--
components: Build
messages: 375806
Change by Joshua Root :
--
keywords: +patch
pull_requests: +21052
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21942
___
Python tracker
<https://bugs.python.org/issu
Change by Joshua Root :
--
versions: +Python 3.10
___
Python tracker
<https://bugs.python.org/issue41617>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Joshua Root :
--
pull_requests: +21053
pull_request: https://github.com/python/cpython/pull/21943
___
Python tracker
<https://bugs.python.org/issue41
Joshua Root added the comment:
> I'm curious. Can I ask you on which platform do you use clang older than 3.2?
Mac OS X 10.7 / Xcode 4.6.3. I'm not using it personally, but we have automated
builds on that platform.
Unfortunately the patch ultimately committed did not fix th
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue7946>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Joshua Oreman :
On Python 3.9.0 with the new PEG parser, the following statement produces a
SyntaxError:
with contextlib.nullcontext(range(1, 5)) as (first, *rest, last):
print(first, rest, last)
On 3.8.x, or 3.9.0 with -X oldparser, it succeeds and prints "1 [2,
Joshua Bronson added the comment:
Nice to see there is still interest in this from someone else! Thanks, John.
Are any core developers still interested in this?
If I can get a new PR together that adds C implementations of `aiter` and
`anext` to builtins, would a committer still be
New submission from Joshua Li:
See my SO answer and the corresponding question for detail:
https://stackoverflow.com/a/45602760/5348393
Essentially, given two datetime.datetime instances t1 and t2, the following two
syntactically different lines of code should be logically equivalent, but in
New submission from Joshua Cannon :
I would expect the following to work:
```
>>> import pathlib
>>> pathlib.Path.cwd().parents[0:1]
Traceback (most recent call last):
File "", line 1, in
File "...\Python36\lib\pathlib.py", line 593, in __getit
Change by Joshua Cannon :
--
keywords: +patch
pull_requests: +10401
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35498>
___
___
Py
Joshua Cannon added the comment:
If it is deemed a bug which needs to be fixed, I've gone ahead and attached the
PR to fix it.
CLA signage is pending approval at the company I work for, with most people out
for the holidays (so it might be a day or two turna
Joshua Cannon added the comment:
I created issue35498 about .parents rejecting slices as well. (It was pointed
out this discussion would probably decide that issue's fate)
I think that .parents looking like a duck, but not quacking like one isn't very
pythonic.
Besides, the
Joshua Oreman added the comment:
I also ran into this. My workaround was to use gc.get_referents() on the
async_generator_asend object, which returns a one-element list containing the
async generator object. I don't know if this is guaranteed or just happened to
work in the cases
Joshua Shields added the comment:
I ran into this issue as well. I think it is something cgi.py will need to
handle correctly when this type of file is uploaded from a browser's file input.
--
nosy: +jshields
___
Python tracker
Joshua Bronson added the comment:
If the deciders prefer to have these in the operator module for 3.8 (as Yury
and Jelle requested above), my PR from a few months ago which implements this
(https://github.com/python/cpython/pull/8895) can still be merged with no
conflicts. I don't thin
Joshua Root added the comment:
The follow-up fix (AC_CHECK_FUNC -> AC_CHECK_FUNCS) still needs to be
backported to 2.7. Currently the lack of it causes lchmod to be disabled on all
platforms, not just Linux.
--
nosy: +jmr
___
Python trac
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue36054>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Joshua Li :
"Python HOWTOs are documents that cover a single, specific topic, and attempt
to cover it fairly completely."
It would be quite helpful if the section "non-capturing-and-named-groups" in
the regex HOWTO contained at least a mention and sh
Change by Joshua Li :
--
keywords: +patch
pull_requests: +5597
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32913>
___
___
Python-
Change by Joshua Bronson :
--
pull_requests: +5780
___
Python tracker
<https://bugs.python.org/issue32999>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue32999>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Joshua Bronson :
Creating this issue by request of INADA Naoki to discuss my proposed patch in
https://github.com/python/cpython/pull/5944.
Copy/pasting from that PR:
If you try something like issubclass('not a class', str), you get a helpful
error me
Joshua Bronson added the comment:
I'll share the use case that prompted me to submit this PR in the first place.
I am the author of bidict (https://pypi.python.org/pypi/bidict), which provides
a bidirectional dict class. A bidict is just like a dict, except it
automatically maintain
Joshua Kinard added the comment:
I have to disagree rather strongly with closing this as "not a bug". If the
issue really boils down to incorrectly passing a single string when there is
only one item in 'values', and a single-item tuple should be used instead, then
New submission from Joshua Root :
The futimens and utimensat functions are available in High Sierra but not
previous versions of macOS. Building against the 10.13 SDK and deploying to an
earlier version will result in a crash when the dynamic linker can't find the
symbols at ru
New submission from Joshua Ringer :
Exception instance args for decimal errors are supposed to be a descriptive
string. However, in the c module, they are currently a list of one containing
the underlying exception class. The pure python module is correct.
See the following interpreter output
New submission from Joshua Kinard :
I think I've found another bug with Tkinter's string handling in Python 2.7.14,
before it passes off to the TCL interpreter when inserting items into a
ttk.Treeview widget. Specifically, it doesn't handle strings containing
semi-colons ve
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue31861>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Joshua Avalon :
from shutil import move
from pathlib import Path
a = Path("s")
b = Path("a.txt")
move(b, a)
This will throw AttributeError: 'WindowsPath' object has no attribute 'rstrip'
>From the document, it should able
Joshua Kinard added the comment:
I was able to modify eryksun's patch for Python-2.7.15, at least the bulk of
it. It looks like the '_PyOS_SigintEvent' function is new to the 3.x branch,
and despite it being a fairly simple function, it's used in a few core Python
modul
Change by Joshua Bronson :
--
pull_requests: +8266
___
Python tracker
<https://bugs.python.org/issue20849>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<https://bugs.python.org/issue20849>
___
___
Python-bugs-list mailing list
Unsubscribe:
Joshua Bronson added the comment:
I submitted a new PR in https://github.com/python/cpython/pull/8792 that
addresses the outstanding concerns in @ofekmeister's original PR. It includes
passing tests and passes all the GitHub PR status checks. Does it look ok to
merge? T
Change by Joshua Bronson :
--
keywords: +patch
pull_requests: +8368
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31861>
___
___
Py
Joshua Bronson added the comment:
Updating the issue title to reflect the decision to add these to the operator
module rather than to built-ins.
Submitted a PR here: https://github.com/python/cpython/pull/8895
--
title: aiter() and anext() built-in functions -> add aiter() and an
Joshua Bronson added the comment:
Interesting, thanks Yury!
I only saw the discussion here which implied these wouldn't go directly into
builtins for 3.8 (and I searched here and in GitHub, and couldn't find the PR
you mentioned either), so I'm curious if that was tracked som
Joshua Bronson added the comment:
This was so surprising to me that I had to check some other languages that I
had handy. It turns out that not one of JavaScript, Ruby, Perl, C++, Java, Go,
or Rust agrees with Python. In fact they all agreed with one another that 2.5
should round to 3
Joshua Bronson added the comment:
Thanks Serhiy, I read the Python-Dev thread you linked to, but that doesn't
resolve the issues:
- Its topic is Python 2.6 (where this behavior does not occur) rather than
Python 3 (where it does).
- A few messages into the thread Guido does address P
Joshua Bronson added the comment:
Thanks, Mark. Yes, I saw where Tim said round-half-even should be the default,
but I didn't see any proposal to expose it as e.g. math.round_half_even()
instead, nor a more complete look at what other languages do. That, along with
the subject being 2.
Joshua Bronson added the comment:
I spent a few minutes with git blame/checkout/show and so far have found
https://bugs.python.org/issue1869 (via
https://github.com/python/cpython/commit/e6a076d). Still reading -- looks like
there were a number of different changes made to round() at the
New submission from Joshua Honeycutt :
In python 2 documentation 19.7.1.6
(https://docs.python.org/2/library/xml.etree.elementtree.html#parsing-xml-with-namespaces)
a second argument (ns) is passed to find and findall.
However 19.7.3.2
(https://docs.python.org/2/library
Joshua Root added the comment:
This isn't just a cross-build issue, or rather (depending on how you look at
it) cross-builds are increasingly the norm due to Apple only providing a newer
SDK on older OS versions. For example the latest version of Xcode available for
10.12 only comes
Joshua Landau added the comment:
http://www.python.org/dev/peps/pep-0448/ is out; see what you think.
See http://mail.python.org/pipermail/python-ideas/2013-July/021872.html for all
the juicy discussion so far.
--
nosy: +Joshua.Landau
___
Python
New submission from Joshua Johnston:
This is strange behavior. When you encode nulls in other languages you don't
get the string 'null' you usually get an empy string. Shouldn't str(None) == ''?
If not str(None) == 'None' and the string representation o
Joshua Johnston added the comment:
Hi David,
That is what I would expect it to do as well. I'm relatively new to Python but
this is causing all kinds of problems with oauth signing using ims_lti_py as
well as my own code using urle
New submission from Joshua Olson:
In TimedRotatingFileHandler if you have a low volume logger than hasn't written
to the log within the interval time doRollover will fail because there is no
file to rotate.
os.rename(self.baseFilename, dfn)
should be something like
if os.path.e
New submission from Joshua Olson:
For low volume loggers RotatingFileHandler and TimedRotatingFileHandler will
create possibly unnecessary files on doRollover, since they don't check the
value of delay when opening the new self.stream.
self.stream = self._open()
should be something lik
Joshua Olson added the comment:
Here is a patch for the logging file from the cpython hg repo.
--
keywords: +patch
Added file: http://bugs.python.org/file31621/doRollover.patch
___
Python tracker
<http://bugs.python.org/issue18
Changes by Joshua Olson :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue18940>
___
___
Python-bugs-list mailing list
Unsubscrib
Changes by Joshua Olson :
Removed file: http://bugs.python.org/file31620/logging_test.py
___
Python tracker
<http://bugs.python.org/issue18940>
___
___
Python-bugs-list m
Changes by Joshua Olson :
Removed file: http://bugs.python.org/file31621/doRollover.patch
___
Python tracker
<http://bugs.python.org/issue18940>
___
___
Python-bugs-list m
Joshua Olson added the comment:
This fixes the issue in both RotatingFilerHandler classes.
--
title: TimedRotatingFileHandler fails to doRollover if a logger has delay=True
and no logs in that time. -> TimedRotatingFileHandler and RotatingFileHandler
fail to doRollover if a logger
Changes by Joshua Olson :
Added file: http://bugs.python.org/file31623/logging_test.py
___
Python tracker
<http://bugs.python.org/issue18940>
___
___
Python-bugs-list m
Joshua Olson added the comment:
Demonstrate the bug
--
Added file: http://bugs.python.org/file31624/logging_test.py
___
Python tracker
<http://bugs.python.org/issue18
Joshua Olson added the comment:
If delay is set then don't automatically open the new file.
--
keywords: +patch
Added file: http://bugs.python.org/file31625/delay_rollover.patch
___
Python tracker
<http://bugs.python.org/is
New submission from Joshua Cogliati :
In Python/pythonrun.c the following definition exists:
static wchar_t *progname = L"python";
This is then used by Py_GetProgramName which is used by calculate_path in
Modules/getpath.c
Since in python 3, the default executable is python3, and
Joshua Cogliati added the comment:
Here is a part of an strace where Python fails to find python3:
(This would work if progname=L"python3" )
...
23249 stat("/opt/python/3.2.2.3/bin/python", 0x7fff2881cbf0) = -1 ENOENT
(No such file or directory)
23249 readlink("/usr
Changes by Joshua Cogliati :
--
title: Poor default value for progname in pythonrun.c -> default value for
progname in pythonrun.c should be python3 for Python 3
___
Python tracker
<http://bugs.python.org/issu
Joshua Cogliati added the comment:
> Joshua: what command did you run under strace?
A program I created that embeds python3. I could create a minimum piece of
code that triggered the bug if needed.
> Maybe it would be better to use L"python3.2" for Python 3.2 and L"pyt
Joshua Cogliati added the comment:
> Joshua, if you are embedding Python, why don't you simply call Py_SetPath to
> set the search path appropriately? Or is it not enough? (I've lost memory of
> the mazy details of how we calculate paths :-S).
Setting Py_SetPath manua
New submission from Joshua Landau:
http://www.python.org/about/ section "Python plays well with others", last
paragraph, link "extension modules" links to
http://www.python.org/doc/ext/intro.html, a 404 page.
http://www.python.org/doc/ext/ redirects to http://docs.
New submission from Joshua Biagio:
There seems to be a very minor bug in the ElementTree.py file, for the
so-called 'empty' elements that are serialized without a closing tag. The
HTML_EMPTY tuple/set is used to lookup these tags.
In the Lib/xml/etree/ElementTree.py file, the HTML_E
New submission from Joshua Landau:
"a¹ = None" is not valid, even though unicodedata.normalize("NFKC", "¹") == "1".
One would expect "a¹ = None" and "a1 = None" to be equivalent in this case, as
with "aⁱ = None" and "ai
Changes by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<http://bugs.python.org/issue18652>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Joshua Knights:
This is a Python Path Issue:
/root/samba-master/bin/samba-tool domain join AAF.ECPI DC -Uadministrator
--realm=AAF.ECPI I get the following Error:
Traceback (most recent call last):
File "/root/samba-master/bin/samba-tool", line 33,
Joshua Knights added the comment:
Correction, this Might be a python path issue and I am not sure what version of
python the samba.git is using.
--
versions: -Python 3.5
___
Python tracker
<http://bugs.python.org/issue21
New submission from Joshua Landau:
In the docs for 2.x about the formatting syntax:
https://docs.python.org/2/library/string.html#format-string-syntax
it says
"Two conversion flags are currently supported: '!s' which calls str() on
the value, and '!r' whic
New submission from Joshua Landau:
There are tabs in the source:
http://hg.python.org/cpython/file/5c8d71516235/Include/listobject.h#l49
I don't really know, but this seems like a release blocker to me ;).
--
messages: 219183
nosy: Joshua.Landau
priority: normal
severity: n
New submission from Joshua Landau:
The documentation for re.search does not state that it returns the first match.
This should be added, or a clarification added if this is
implementation-defined.
https://docs.python.org/3/library/re.html#re.search
---
See also
http://stackoverflow.com
New submission from Joshua Landau:
By the docs,
Except at the beginning of a logical line or in
string literals, the whitespace characters space,
tab and formfeed can be used interchangeably to
separate tokens. Whitespace is needed between two
tokens only if their
Joshua Landau added the comment:
Here's a minimal example of the difference:
1e
#>>> ... etc ...
#>>> SyntaxError: invalid token
1t
#>>> ... etc ...
#>>> SyntaxError: invalid syntax
--
Joshua Johnston added the comment:
I know that languages like php will treat ?josh= the same as ?josh
Using the attached test form in Google Chrome, you will see the data passed as
josh= when empty in both GET and POST requests. This is probably the way to go,
key=str(value) if value is not
Joshua Johnston added the comment:
Hi Senthil,
You can open the html file with a browser and inspect the data posting to
itself without a web server running. That is how I tested.
--
___
Python tracker
<http://bugs.python.org/issue18
Joshua Johnston added the comment:
I still believe that since None represents the absence of a value it should not
be urlencoded as the string 'None'. I am not sure what they best way to url
encode it is, but I know that 'None' is not it.
--
st
Joshua Johnston added the comment:
I agree with True == 'True' and False == 'False' but None should be empty since
it represents the absence of a value akin to null, Nil, etc in other languages.
Ultimately it is not my decision make so I can only agree to disagree.
Th
New submission from Joshua Landau:
All code referred to is from bltinmodule.c, Python 2.7.8:
https://github.com/python/cpython/blob/2.7/Python/bltinmodule.c
filter implements and optimization for PyBool_Type, making it equivalent to
PyNone:
# Line 303
if (func == (PyObject
Joshua Landau added the comment:
It's solely a speed thing. I think it was an oversight that the optimisation
was only applied to lists. I didn't expect the optimisation to break when
applied to tuples.
--
___
Python trac
Joshua Landau added the comment:
That sounds OK to me. It's a bit of a non-issue once you know about it.
--
___
Python tracker
<http://bugs.python.org/is
New submission from Joshua Chia:
When using bz2.BZ2File to read an input file that is growing slowly, repeated
read()ing eventually catches up to the end and subsequently fails to produce
any more data while the input file continues growing.
In 2.7, the symptom is that read() keeps returning
Joshua Johnston added the comment:
In this exact example it would be an empty string. It was a fake setup to
illustrate a real problem.
This is the important part:
params = dict(screen_name=None,count=300)
url = "https://api.twitter.com/1.1/friends/ids.json?"; + urllib.urlencode(par
Joshua Johnston added the comment:
If this was a function to encode a dict into something then I would see your
point and agree. urlencode is specifically designed to work within the domain
or URIs. In this domain, it is acceptable to have an empty value for a key in a
query string. None is a
Joshua Johnston added the comment:
I'm sorry to reopen this but after it biting me quite a few times more I still
cannot think of a valid use-case for this behavior that someone would be
depending on 'None' being passed.
I think your backwards compatibility concerns are artific
Joshua Johnston added the comment:
While the RFC makes no mention of empty values either way, it has become
standard practice to either omit the key-value completely or pass a key
(optional = sign) by itself in these situations so I would consider that as
standard behavior.
While I stand by
New submission from Joshua Bronson :
>From http://docs.python.org/library/heapq.html:
> The latter two functions (nlargest and nsmallest) perform best for
> smaller values of n. For larger values, it is more efficient to use
> the sorted() function. Also, when n==1, it is more effi
Joshua Bronson added the comment:
Oh, that's great!
(I also noticed that the previously inutile line "_heappushpop = heappushpop"
is now doing something in the heapq.py you linked to, nice.)
It looks like the docs haven't been updated yet though. For instance,
http:/
Joshua Bronson added the comment:
> I prefer the docs the way they are. They help the reader understand
> the relationship between min, max, nsmallest, nlargest, and sorted.
Except that it's no longer true that "when n==1, it is more efficient to use
the
builtin min() and
Joshua Bronson added the comment:
One more thing:
> I prefer the docs the way they are. They help the reader understand
> the relationship between min, max, nsmallest, nlargest, and sorted.
The docs still use the unspecific language "for smaller values of n" and
"for la
Joshua Bronson added the comment:
> That is in the pure python version of nsmallest() and that
> code is not used (it is overriden by the C version).
So just because it isn't used by CPython it should remain in there even
though as you said yourself it's completely without b
Changes by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<http://bugs.python.org/issue6626>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Joshua Bronson :
--
nosy: +jab
___
Python tracker
<http://bugs.python.org/issue6763>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Joshua Root :
Building Python 2.6.2 on Mac OS X 10.6 (final version, 10A432) fails. Full
build transcript is attached.
Other system details: Xcode 3.2, hardware is MacPro1,1
--
assignee: ronaldoussoren
components: Build, Macintosh
files: py26-snowleopard.log
Joshua Root added the comment:
Note that this problem appears to be x86_64-specific (caused by "-
arch_only i386"), and only happens if you configure with --enable-
framework.
--
___
Python tracker
<http://bugs.python.
Joshua Root added the comment:
Noting for completeness that:
* 3.0.1 behaves the same as 3.1.1 (works without --enable-framework).
* 2.5.4 fails with 'cc1: error: unrecognized command line option "-Wno-
long-double"'. Once this is removed from the configure scrip
Joshua Root added the comment:
I tried release26-maint just now (r74683) and it errored out during make
install. New log attached.
--
Added file: http://bugs.python.org/file14846/release26-maint.log
___
Python tracker
<http://bugs.python.
Joshua Root added the comment:
Tried again after ensuring that ~/test was completely empty; no
difference.
--
___
Python tracker
<http://bugs.python.org/issue6
Joshua Root added the comment:
Should line 110 of Lib/plat-mac/macresource.py say 'isinstance' rather
than 'instance'?
--
___
Python tracker
<http://bu
Joshua Root added the comment:
It works now. Thanks!
--
___
Python tracker
<http://bugs.python.org/issue6802>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Joshua Purcell :
--
nosy: 08jpurcell
severity: normal
status: open
title: Help
versions: Python 2.6
___
Python tracker
<http://bugs.python.org/issue6
New submission from Joshua Purcell :
My IDLE (Python GUI) Will NOT open It says socket error which is really
annoying me because it doesnt open IDLE (AT ALL)
--
components: +IDLE
type: -> performance
Added file: http://bugs.python.org/file14926/python_icon.
101 - 200 of 343 matches
Mail list logo