James Corbett added the comment:
I think this would have been a better fit for a StackOverflow issue:
https://stackoverflow.com/questions/tagged/python. Also, it's not a compilation
error and it doesn't have anything to do with CPython's testing framework.
Anyway, I don
James Corbett added the comment:
I would love to get this issue resolved; it seems like everyone agrees that
it's a bug. It came up for me recently: https://bugs.python.org/issue41047.
Judging from the comments above, the consensus is that the relevant line,
`self._check_value(action,
James Gray added the comment:
Bonjour, je vois que nous ne sommes pas les seuls dans ce cas, nous avons
besoin que les robots indexent nos pages html mais qu'elles n'indexent pas
celles en /*.php$ ainsi que les ressources PC en PDF. Nous avons tenté en vain
plusieurs solutions en p
James Franks added the comment:
Hope this helps:
I'm running Python Shell 3.8.5 on MacOSx 10.15.6 (Catalina). I can reproduce
this hang easily.
Open any existing module or create a new one. Can save the existing module or
a new one just fine under the same name. (File menu - Save)
Change by James Barrett :
--
keywords: +patch
pull_requests: +20979
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21852
___
Python tracker
<https://bugs.python.org/issu
James Barrett added the comment:
https://github.com/python/cpython/pull/21852
--
___
Python tracker
<https://bugs.python.org/issue40782>
___
___
Python-bug
James Addison added the comment:
No problem, and thanks for the heads-up Tal! I'll raise this as a topic on
python-dev if it still seems worth pursuing, after collecting some more
thoughts about it.
--
___
Python tracker
&
James Addison added the comment:
Thanks Senthil; please take your time. This isn't urgent, and would likely
benefit from further standardization of the URL query string and/or
form-encoded data formats (outside the Python project) to achieve consensus.
A fully-considered answer at a
New submission from James Sanders :
At present, the built-in constants Ellipsis (...) and NotImplemented cannot be
pickled. Perhaps there is a good reason for this, but the only discussion I
can find is at msg<108957>, where it is stated that these values (along with
their types, an
James Sanders added the comment:
I've submitted a patch that just uses save_global to pickle Ellipsis and
NotImplemented, so the resulting pickle should be unpicklable anywhere. I'm
completely new to the C API so not sure if the way I am building python strings
(to pass to save_
New submission from James Lekas :
logging.Formatter.format() creates a cache called exc_text with a copy of the
traceback text which it uses for all log handlers (I think). When this cache
is set, format() does not call formatException to format the
exception/traceback data.
Unfortunately
New submission from James Pickering :
If you run pkgutil.iter_zipimport_modules with a prefix parameter, and the
module in question is a package, then the prefix parameter is ignored.
The most visible symptom of this is when running pkgutil.walk_packages for a
zipfile. Imagine we have a
New submission from James Hutchison :
Tested on 3.2
Note that I noticed that Decimal is supposed to be faster in 3.3 but I thought
I would bring this to light just in case its still relevant
Decimal hashing is very slow, even for simple numbers. I found by caching the
hash result, there is
James Hutchison added the comment:
If I increase the cycles increased 10x with 3.2 I get:
int: 0.421313354492
Decimal: 24.20299983024597
CachingDecimal: 1.7809998989105225
The sample you have provided is basically what I'm using. See attached
What about worst case hash calcul
James Hutchison added the comment:
100x should be e100
--
___
Python tracker
<http://bugs.python.org/issue14478>
___
___
Python-bugs-list mailing list
Unsub
James Hutchison added the comment:
I presume you mean in 3.2? Have you looked at the source code for that
decorator? It's fundamentally a try/except but with a lot more unnecessary
bloat than is needed for caching a single int result from a function with no
arguments. Its actually
James Hutchison added the comment:
This is an issue for me (Python 3.2). I have a custom pool that sends arguments
for a function call over a pipe. I cannot send another pipe as an argument.
Tim's workaround also does not work for me (win xp 32bit and 64bit)
>From what I can tell,
James Hutchison added the comment:
err, is it possible to edit out those file paths? I didn't intend them to be in
the message. I'd appreciate it if someone with the privileges to do so could
remove them.
--
___
Python trac
James Hutchison added the comment:
@pitrou
You can just delete my original post. I'll repost an edited version here for
reference
original post with paths removed:
This is an issue for me (Python 3.2). I have a custom pool that sends arguments
for a function call over a pipe. I cannot
James Hutchison added the comment:
Shouldn't reduce_pipe_connection just be an alias for reduce_connection in unix
so that using reduce_pipe_connection would work for both win and unix? My
understanding after looking at the code is that reduce_pipe_connection isn't
defined for
James Hutchison added the comment:
In the patch:
This:
+except AttributeError:
+pass
should be:
+except:
Checking for the AttributeError is very slightly slower. Not by a lot, but I
think if we're going for speed we might as well be as fast as possible. I
New submission from James Xu :
While working on our project, we have noticed that for
`subprocess.Popen(command, ...)`, when `command` is a string that contains
escaped double quote, for example, `command = '"path to executable" --flag
arg'`, this works fine. However, whe
New submission from Brandon James :
When using the ipaddress library, all multicast addresses and networks return
True when using the is_global method for their respective classes. I believe
their are two possible fixes for this.
1) In practice no multicast addresses are globally routable
Change by Brandon James :
--
keywords: +patch
pull_requests: +14833
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15088
___
Python tracker
<https://bugs.python.org/issu
Change by Rhodri James :
--
pull_requests: +14841
pull_request: https://github.com/python/cpython/pull/15094
___
Python tracker
<https://bugs.python.org/issue1047
Change by Rhodri James :
--
nosy: +Rhodri James, ethan.furman
___
Python tracker
<https://bugs.python.org/issue10879>
___
___
Python-bugs-list mailing list
Unsub
Change by Rhodri James :
--
nosy: +Rhodri James, ethan.furman
___
Python tracker
<https://bugs.python.org/issue9968>
___
___
Python-bugs-list mailing list
Unsub
Change by Rhodri James :
--
nosy: +Rhodri James, ethan.furman
___
Python tracker
<https://bugs.python.org/issue21705>
___
___
Python-bugs-list mailing list
Unsub
New submission from James Lin:
Even though http://bugs.python.org/issue4057 was rejected (which I think is
fair), I think it would be worth mentioning something about PWD in the Python
docs for subprocess.Popen's cwd parameter (and possibly for os.chdir):
1. It's pretty common for
James Shewey added the comment:
According to the man page for gethostbyaddr "The gethostbyname*() and
gethostbyaddr*() functions are obsolete. Applications should use getaddrinfo(3)
and getnameinfo(3) instead." - so perhaps using the correct API call might be a
good start to reso
James Lin added the comment:
Yes, but the Python docs have scary-looking warnings about using shell=True, so
people (rightly) should avoid using shell=True if they don't think that they
need it. And in this case, people might not even know that they're invoking
some binary that e
Changes by James Tocknell :
--
pull_requests: +2628
___
Python tracker
<http://bugs.python.org/issue23835>
___
___
Python-bugs-list mailing list
Unsubscribe:
James Crowther added the comment:
Hi Ronald, I've replied to your comments below
>My gut feeling is that this is some issue with your system or environment.
I Doubt it, happens with another MacBook air which is literally out of the box,
no mods.
>Some more questions:
>
New submission from James Davis :
I have two regexes: /(a|ab)*?b/ and /(ab|a)*?b/.
If I re.search the string "ab" for these regexes, I get inconsistent behavior.
Specifically, /(a|ab)*?b/ matches with capture "a", while /(ab|a)*?b/ matches
with an empty capture group.
I
James Davis added the comment:
Thanks for your thoughts, Raymond. I understand that the alternation has
"short-circuit" behavior, but I still find it confusing in this case.
Consider these two:
Regex patternmatched? matched string capture
New submission from James O:
PEP 420 says "Allowing implicit namespace packages means that the requirement
to provide an __init__.py file can be dropped completely..."
(as described here:
http://stackoverflow.com/questions/37139786/is-init-py-not-required-for-packages-in-pyth
James O added the comment:
Ah, I didn't realize some tools depended on it. Should I set the status to
closed? (like I said, I'm new to this)
--
___
Python tracker
<http://bugs.python.o
New submission from James Triveri:
reply from james.triv...@gmail.com
--
messages: 289962
nosy: jtrive84
priority: normal
severity: normal
status: open
title: My reply
___
Python tracker
<http://bugs.python.org/issue29
New submission from James Lu:
- Shorten the Copyright statement from a list of years (`2001, 2002, 2003, ...
2017`) into `2001-2017`
- Extend copyright date at end of README from 2016 to 2017
- Ensure that there are two newlines before every header throughout the file
(this was the original
James Edwards added the comment:
It may be worth also addressing the fact that IPv6Network makes no restriction
on it's netmask (when specified as a tuple).
--
nosy: +jedwards
___
Python tracker
<https://bugs.python.org/is
New submission from James Edwards :
Consider:
from collections.abc import *
class DefinitelyNotAList:
def __init__(self, backer):
self.backer = backer
def __getitem__(self, key):
return self.backer[key]
def __len__(self
James Edwards added the comment:
This was tagged as 3.7, but the issue still exists AFAICT in the latest github
master: https://github.com/python/cpython/blob/master/Lib/_collections_abc.py
--
___
Python tracker
<https://bugs.python.
James Edwards added the comment:
Edit conflict -- indeed -- self closing.
---
I should point out that this could be fixed with something like the following:
@classmethod
def __subclasshook__(cls, C):
if cls is Sequence:
return _check_methods(C, "__rever
james stone added the comment:
I encountered this issue as well when using python 3.6.7 and psycopg2. Postgres
tries to sort rows by the primary key field and if the returned type is a
memoryview an the error is thrown: "TypeError: '<' not supported between
instances o
Change by James Socol :
--
nosy: -jamessocol
___
Python tracker
<https://bugs.python.org/issue9883>
___
___
Python-bugs-list mailing list
Unsubscribe:
James Saryerwinnie added the comment:
I ran into this as well also using the embedded distribution for windows
(https://docs.python.org/3/using/windows.html#the-embeddable-package).
socket.getaddrinfo() will encode unicode hostnames using idna and trigger this
error if you call this
James Bailey added the comment:
Agreed with ruffsl's concerns about the overly aggressive detection of infinite
recursion.
I also wonder if the hrefs should be normalized or canonized for the check? The
check may miss infinite recursions if the hrefs happen to be written in
non-matchin
New submission from James Davis :
Hi Python security team,
My name is James Davis. I'm a security researcher at Virginia Tech.
The python core (cpython) has 2 regular expressions vulnerable to catastrophic
backtracking that look like potential DOS vectors.
The vulnerable expression
New submission from James Davis :
The decoder regex used to parse numbers in the fpformat module is vulnerable to
catastrophic backtracking.
'^([-+]?)0*(\d*)((?:\.\d*)?)(([eE][-+]?\d+)?)$'
The substructure '0*(\d*)' is quadratic.
An attack string like '+0000++
Change by James Davis :
--
keywords: +patch
pull_requests: +5750
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32997>
___
___
Python-
James Davis added the comment:
Equivalent, probably cleaner. Comment on the PR if you want a change.
--
___
Python tracker
<https://bugs.python.org/issue32
Change by James Lu :
--
nosy: +tacocat
___
Python tracker
<https://bugs.python.org/issue33090>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by James Lu :
--
nosy: +tacocat
___
Python tracker
<https://bugs.python.org/issue32533>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from James Stevens :
Even if the mount-point directory is empty, "copytree" refuses to copy to a it
becuase it will not perform a copy if the destination directory already exists
- although it will accept any of the parents of destination existing, or not.
Therefore,
New submission from James Stevens :
bugs.python.org silently refuses registration if the user's "homepage" does not
match some undisclosed URL validation test.
The fact of the validation failure of the "homepage" is not disclosed at any
time, including both the in
New submission from James Stevens :
As per the underlying "libc" call, the node created with "mknod" is subjected
to the user's current umask setting.
This is not made clear in the Python documentation, but the "libc"
documentation makes this clear (see at
James Edwards added the comment:
This came up in a StackOverflow question[1] today, so I took a stab at
addressing the error. The changes don't restore the 2.x behavior, but just do
as R. David Murray suggested and coerce the keys to strings prior to sorting to
prevent the error.
Change by James Edwards :
--
keywords: +patch
pull_requests: +7617
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue25457>
___
___
Py
New submission from James Emerton :
We use locale.format('%.2f', x, True) to convert Decimal values to strings for
display. Unfortunately, the locale module is using %-formatting to generate the
initial string before applying locale specific formatting. As a result, any
value which
Change by James Emerton :
--
nosy: +jemerton
___
Python tracker
<https://bugs.python.org/issue33731>
___
___
Python-bugs-list mailing list
Unsubscribe:
James Emerton added the comment:
Certainly adding another letter to the format spec would solve my issue and
would in fact be somewhat preferable to using local.format directly.
I think this could be fixed in the locale module by transforming the format
spec and using new-style formatting
James Emerton added the comment:
So far, I've implemented this for Decimal
--
___
Python tracker
<https://bugs.python.org/issue33731>
___
___
Python-bugs-l
James Emerton added the comment:
@rhettinger See #34311 about formatting Decimals using locale.format(). I'd
like to see the problem fixed in one place or the other.
Also, this is seems relatively straightforward to implement as it's really just
a combination of the fixed precisi
Change by James Emerton :
--
keywords: +patch
pull_requests: +8166
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34311>
___
___
Py
Change by James Emerton :
--
pull_requests: -8166
___
Python tracker
<https://bugs.python.org/issue34311>
___
___
Python-bugs-list mailing list
Unsubscribe:
James Emerton added the comment:
It looks like a bot got a bit excited when I mentioned this issue in the PR for
bpo-33731. I unlinked the PR but this issue still got flagged for review.
--
___
Python tracker
<https://bugs.python.org/issue34
New submission from James Campbell :
When using the FTP library to transfer a binary file to a Microsoft FTP server
using TLS, then the library will hang when unwinding the connection until it
finally times out.
The storbinary method calls conn.unwind which seems to have an issue with SSL
Change by James Lu :
--
nosy: +tacocat
___
Python tracker
<https://bugs.python.org/issue22499>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from James Hewitt :
Having 'import logging.config' in an if statement in a function causes a
namespace issue, despite the fact that the import is not reached.
Example code:
---
#!/usr/bin/env python3
# Test weird import bug
import logging
config = {}
c
James Hewitt added the comment:
Sure, it's at https://pastebin.com/L1RMPD7K
-James
On 10/25/2018 12:30 PM, Stéphane Wirtel wrote:
>
> Stéphane Wirtel added the comment:
>
> Could you share a pastebin? Thank you
>
>> Le 25 oct. 2018 à 21:28, James Hewitt a écrit
James Hewitt added the comment:
I don't quite follow... the 'import logging.config' statement should
never be executed, and if it is commented out the program works fine as
written. It's as if the mere presence of the statement in the code
causes 'logging
James Hewitt added the comment:
So just the fact that somewhere in the function a name is referenced,
even if that code isn't actually executed, is enough to change the local
namespace. I think I knew that, but didn't know that's what it meant :)
I guess the moral is, p
James Crowther added the comment:
Hi guys, I am the OP for the stack overflow issue question that sparked this
bug report.
In response to Ned's question about configuration of the system:
MacOS 10.14.1
Installed x-code and command line tools
python versions used, varies, 3.5.3, 3.
New submission from James Lu:
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/index.html#dSFMT
You might want to use a better algorithm
--
components: Library (Lib)
files: dSFMT-src-2.2.1.zip
messages: 192469
nosy: James.Lu
priority: normal
severity: normal
status: open
title
Changes by James Lu :
--
nosy: -James.Lu
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue18386>
___
___
Python-bugs-list mailing list
Un
James Bennet added the comment:
I have observed this bug under CentOS 5.9 using the version of
python-setuptools from the official CentOS repository. -ba is not a valid
option for that version of RPM. I am able to get further by installing the
rpm-build package.
--
nosy
New submission from James Lu:
if you assign a lambda to a object and call it,you get this:
Traceback (most recent call last):
File "", line 1, in
n.__div__(3)
TypeError: () takes exactly 2 arguments (1 given)
The full test is here:
>>> n = num()
>>> n.__d
Changes by James Lu :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue18474>
___
___
Python-bugs-list mailing list
Unsubscri
James Lu added the comment:
2.5,new-style
--
___
Python tracker
<http://bugs.python.org/issue18474>
___
___
Python-bugs-list mailing list
Unsubscribe:
James Lu added the comment:
instance,assinged during __init__
--
___
Python tracker
<http://bugs.python.org/issue18474>
___
___
Python-bugs-list mailing list
Unsub
James Lu added the comment:
Also,there were some bugs, but after I fixed them, it would only work if I did
this:
n.__div__(n,3)
--
___
Python tracker
<http://bugs.python.org/issue18
New submission from James Lu:
dis.dis fails on one letter strings.
dis.dis("t")
Traceback (most recent call last):
File "", line 1, in
dis.dis("t")
File "C:\python 25\lib\dis.py", line 44, in dis
disassemble_string(x)
File "C:\python 25
New submission from James Lu:
the bool type should have a toggle() function
--
messages: 193608
nosy: James.Lu
priority: normal
severity: normal
status: open
title: bool.toggle()
type: enhancement
versions: Python 3.5
___
Python tracker
<h
James Lu added the comment:
I mean, return a value, some people like this style.
james
On Tue, Jul 23, 2013 at 12:10 PM, Eric V. Smith wrote:
>
> Eric V. Smith added the comment:
>
> bool instances are immutable, so all "value.toggle()" could do is the same
> as "
James Lu added the comment:
well, filter() could take the function not lambda x:not x
james
On Tue, Jul 23, 2013 at 12:23 PM, Eric V. Smith wrote:
>
> Eric V. Smith added the comment:
>
> Since it would be the same as "not value", I can't imagine this would
New submission from James Lu:
I have attached a *possible* new version of threading.py
that returns the value of the target.
--
components: Library (Lib)
files: threading.py
messages: 193899
nosy: James.Lu
priority: normal
severity: normal
status: open
title: threading.Thread.run
James Lu added the comment:
run's calling function needs to return.
--
___
Python tracker
<http://bugs.python.org/issue18591>
___
___
Python-bugs-list m
New submission from James Laver:
Traceback (most recent call last):
File "/Users/jlaver/retest.py", line 6, in test_escape
self.assertEquals(re.escape('-'), '-')
AssertionError: '\\-' != '-'
The only place you can do bad things with h
James Laver added the comment:
Quite right, it does say that in the documentation. The documentation is
perfectly correct, but the behaviour is wrong in my opinion and as you suggest,
we should be escaping metacharacters only.
--
___
Python tracker
James Laver added the comment:
I looked up quotemeta with perldoc and you're right, it will quote the hyphen.
Given that python's regex engine correctly deals with unnecessarily quoted
characters, I suppose this is fine.
--
resolution: -> wont fix
status: o
James Sanders added the comment:
I recently got hit by this bug on 64-bit ubuntu 13.04, with python 3.3.1 and
tcl/tk 8.5.13 installed from the Ubuntu repositories. However, I tried
building the same versions of tcl, tk, and python locally, and couldn't
reproduce the bug. I also built p
James Sanders added the comment:
I did a bit more digging and I think I've worked out what is going on. The
particular bit of tcl initialization code that triggers the problem if it is
run before the fork is Tcl_InitNotifier in tclUnixNotify.c. It turns out there
is a known problem
New submission from James Lu:
It will show invalid html inside of script tags, for example, at the learners
dictionary:
function output_creative (id)
{ document.write
("" +
James Lu added the comment:
2.5, but I don't think the library has changed since.
james
On Fri, Sep 6, 2013 at 12:29 PM, Ezio Melotti wrote:
>
> Ezio Melotti added the comment:
>
> What version of Python are you using?
>
> -
New submission from James Lu :
No IDLE 3.26
need badly!
High prriority
--
components: IDLE
files: python.exe
messages: 159243
nosy: James.Lu
priority: normal
severity: normal
status: open
title: No IDLE
type: resource usage
versions: Python 3.2
Added file: http://bugs.python.org
James Lu added the comment:
1,looked for python IDLE
2.NO python
#.use text editor (hard)
james
On Wed, Apr 25, 2012 at 2:17 AM, Martin v. Löwis wrote:
>
> Martin v. Löwis added the comment:
>
> Please structure your bug report as follows:
>
> 1. this is what you did
James Hutchison added the comment:
See attached, which will open a zipfile that contains one file and reads it a
bunch of times using unbuffered and buffered idioms. This was tested on windows
using python 3.2
You're in charge of coming up with a file to test it on. Sorry.
Example o
New submission from James Oakley :
OpenSSL provides a method, SSL_CTX_set_default_verify_paths(), for loading a
default certificate store, which is used by many distributions.
In openSUSE, the default store is not a bundle, but a directory-based store,
which is not supported at all by the SSL
James Oakley added the comment:
Here's the patch for Python 3.
--
Added file:
http://bugs.python.org/file25534/python-3.2.3-ssl_default_certs.patch
___
Python tracker
<http://bugs.python.org/is
James Henstridge added the comment:
The documentation for ABCMeta.register() says that it makes the other class a
"virtual subclass". That would make the ABC a "virtual base class".
So whether the current behaviour is correct depends on whether you consider a
"vi
201 - 300 of 579 matches
Mail list logo