New submission from James Salter:
Encountered trying to build numpy with python 3.5b3, visual studio 2015.
From distutils/_msvccompiler.py:MSVCCompiler.link:
if self._need_link(objects, output_filename):
ldflags = (self.ldflags_shared_debug if debug
New submission from James Salter:
For python 3.5, PC/pyconfig.h contains the following for vs2015 support:
/* VS 2015 defines these names with a leading underscore */
#if _MSC_VER = 1900
#define timezone _timezone
#define daylight _daylight
#define tzname _tzname
#endif
This breaks any python
James added the comment:
What is the status of these changes? Apparently they were slated for inclusion
in 3.5 but it looks as though they haven't hit yet - is there a reason for
this, or was it just forgotten?
--
nosy: +JamesGuthrie
___
Python
James Luscher added the comment:
Eric,
I am not familiar with the 'g' format and did not know it was the default, but
the documentation, read fully, is correct. It just took the response of
Christopher Welborn to wake me up (it was a LONG day and I was struggling
to understand the problem
New submission from James Luscher:
Doc for 3.4: at 6.1.3.1. Format Specification Mini-Language
indicates that:
The precision is a decimal number indicating how many digits should be
displayed after the decimal point for a floating point value
Yet I find that I get this behavior:
Python 3.4.3
Changes by James Tocknell aragilar+pythonb...@gmail.com:
--
nosy: +aragilar
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18391
___
___
Python
Changes by James Edwards jh...@jheiv.com:
--
nosy: +pitrou, yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24078
___
___
Python-bugs
James Edwards added the comment:
Added Yury (inspect module) and Antoine (PEP 3155) to nosy -- apologies if
you're not interested.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24078
James Edwards added the comment:
Inspect could probably be updated to use 3.3's __qualname__ in the case of
classes-in-classes; classes-in-functions or functions-in-functions would likely
be harder, but I'm not sure it's impossible.
--
nosy: +jedwards
James added the comment:
When I start the interpreter with the -S switch, the problem goes away.
Thanks for looking into it, and I apologize for the false alarm!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24035
Changes by James james.triv...@gmail.com:
--
resolution: - not a bug
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24035
James Edwards added the comment:
It looks like this is a bug in pyreadlines as suggested by eryksun, but for a
different reason.
Even though the Caps Lock + Shift combination is recognized correctly (as lower
case), the logic in the pyreadlines module forces it to upper case.
See lines 44-45
James Edwards added the comment:
If you start the interactive interpreter with the -S switch, e.g.
python.exe -S
Do you still see this behavior?
--
nosy: +jedwards
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24035
New submission from James:
Referring to Python 2.7 running on Windows (7/8):
At the interactive interpreter, if either 1) Caps are Locked OR 2) Shift is
held while an alpha-character is selected, the character is output and
displayed as uppercase, as one would expect. However, in Python 2.7
James Edwards added the comment:
What about:
For the list and tuple types, ``x in y`` is true if and only if there exists an
-index *i* such that ``x == y[i]`` is true.
+index *i* such that either ``x == y[i]`` or ``x is y[i]`` is true.
Seems to address your issue, and match the semantics
James Edwards added the comment:
It seems like this issue has morphed over time.
At the beginning, it looked like you expected perfectly reasonable (but odd)
definitions of __call__ attributes, where the logic inside raised an Exception,
to be somehow determined to be uncallable.
This does
James Edwards added the comment:
Attaching revised patch per reviews.
Notable changes:
* Reverted howto/curses.rst multiple inline statements - multi-target
assignment (curses.rst is now unchanged)
* Reverted library/subprocess.rst == to # == changes since there are
other
James Edwards added the comment:
Thanks for the review Serhiy.
I'll prepare a revised patchset, given the comments from you and Berker and
have it uploaded today.
Thanks again.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
James Powell added the comment:
See attached patch for unittest.
For 3.4, test that inspect.signature(str) raises TypeError.
For 3.5, this can be improved to use _testcapi.matmulType
--
Added file: http://bugs.python.org/file38949/issue_23934-test.patch
James Edwards added the comment:
Thanks Berker, I responded to most of your comments in rietveld.
A few of your comments suggested we should get rid of X, and while I can't
say I disagree, I really tried to limit the scope of the changes to whitespace
and formatting.
As far as the script
James Powell added the comment:
Discussed with Nick Coghlan.
See attached patch to return `signature(object)` only if both `__new__` and
`__init__` are shared with `object`.
Otherwise, raise TypeError indicating built-in types not supported.
https://docs.python.org/3/library/inspect.html
James Powell added the comment:
See attached patch to clarify this in the docs.
--
keywords: +patch
Added file: http://bugs.python.org/file38910/issue_17380.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17380
Changes by James Powell ja...@dontusethiscode.com:
--
nosy: +james
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17380
___
___
Python-bugs-list
James Powell added the comment:
We investigated this issue with pdmccormick r.david.murray.
The behaviour appears to be intentional. If the trace function raises an
Exception, system tracing is disabled entirely.
See attached documentation patch to clarify this.
--
keywords: +patch
Changes by James Powell ja...@dontusethiscode.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17380
___
___
Python
Changes by James Powell ja...@dontusethiscode.com:
--
nosy: +james, r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10933
New submission from James Edwards:
I realize this is a huge patch, I'd be happy to split it to multiple little
patches (one per file, one per documentation directory, etc.) to make things
easier. Just let me know.
The patch attempts to do a few things (with exceptions, as noted below
Changes by James Edwards jh...@jheiv.com:
--
versions: +Python 3.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23921
___
___
Python-bugs-list
New submission from James Edwards:
There's inconsistent leading whitespace between the two classes in the 4th code
snippet of the Special Method Lookup section.
https://docs.python.org/3/reference/datamodel.html#special-method-lookup
The (very substantial :) included patch makes both classes
James Tocknell added the comment:
Here's a patch for 2.7 (based of the head of the 2.7 branch), something similar
could be done for 3.4 (I wasn't sure what branch I was supposed to base the
patch off, since 3.4 is inactive). The string requirement was already noted in
the docstring
New submission from James Tocknell:
ConfigParser(defaults={1:2.4}) and ConfigParser(defaults={a:5.2}) cause an
exception when configparser tries to perform string operations on 1 and 5.2. I
didn't see it documented that defaults must only contain strings, and using
ConfigParser['DEFAULT
James Rutherford added the comment:
Updated docs look good to me, thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23539
___
___
Python
James Rutherford added the comment:
Python 3 patch attached. The documentation has changed structure a little so
I've adapted (simplified) this from the original. Otherwise, it's pretty much
the same, except with python3 fixes, and incorporated feedback. I'll upload an
updated 2.7 patch
James Rutherford added the comment:
Updated 2.7 patch attached.
--
Added file: http://bugs.python.org/file38570/issue23539-py27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23539
James Rutherford added the comment:
Hi all, apologies for the spam, but I just wanted to confirm that no-one is
waiting on anything from me... I'm happy to consolidate the final minor points
make the patch against python3 if that would simplify things
James Rutherford added the comment:
Ok I'll have a go at a consolidated python3 patch tomorrow.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23539
James Rutherford added the comment:
Single patch against default makes sense and I'll do that in future.
As for the review comments, I'm happy to go with all of your suggestions but
have offered a tweak to the docstring that you can take or leave at your
discretion
James Rutherford added the comment:
OK, sounds like we're approaching consensus? And I believe that the patch as-is
captures that consensus, so should I proceed and make another for 3.X for
review?
--
___
Python tracker rep...@bugs.python.org
http
James Rutherford added the comment:
My feeling is that '' implies present but empty (so should have a
content-length set to zero), whereas None implies missing (so should only
have a content-length header set to zero if the method is expecting a body.
...
In light of that, I think
James Rutherford added the comment:
I actually consider this a fix for the fix in 14721, rather than a new feature.
The only new behaviour here is setting content length to be zero if body is
None on PATCH, POST, or PUT. Happy to change the labeling if that's the
consensus but IMO it's
James Rutherford added the comment:
Happy to remove OPTIONS from the list of methods that gets a content-length
where body is None, but do we also want to consider behaviour if it's the empty
string? My feeling is that '' implies present but empty (so should have a
content-length set to zero
James Rutherford added the comment:
Thanks for setting up the new issue, I'll cook up a patch. I'm assuming this
affects all Python 3.X versions but I've specifically encountered it on Python
2.7.
--
nosy: +jimr
versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4
James Rutherford added the comment:
OK, thanks.
--
versions: -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23539
James Rutherford added the comment:
Patch attached for the 2.7 branch, including updated tests. All tests pass. Let
me know if this looks like a sensible approach and I'll produce something
comparable for 3.X.
The logic now is as it was before, except that we set a content length of zero
James Rutherford added the comment:
OK, I've got a patch but it's failing on 'test_send_file'[1], which is sending
a body on a GET request. According to the IETF memo[2]:
Bodies on GET requests have no defined semantics. Note that sending
a body on a GET request might cause some
James Rutherford added the comment:
The first patch should actually be modified so the condition reads (update
attached):
if body is None and method_expects_body:
thelen = 0
elif body is not None:
...
Demian, I believe this is equivalent to your 'expecting_len
James Rutherford added the comment:
The fix for this still doesn't set Content-Length to zero when body is None,
but I don't see any reason why this should be the case. For example, the
following snippet would work for any 'empty' body:
if 'content-length' not in header_names:
self
Changes by James Teh ja...@nvaccess.org:
--
nosy: +jteh
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20916
___
___
Python-bugs-list mailing list
New submission from James Wahlman:
The app is not code signed properly so when using Python 2.7.9 on OS X 10.10 or
any version or OS X I imagine when a user enables the built in OS X firewall
and runs Python it complains about allowing the app thru the firewall. The only
way to fix since
New submission from James Wahlman:
The app is not code signed properly so when using Python 2.7.9 on OS X 10.10 or
any version of OS X I imagine when a user enables the built in OS X firewall
and runs Python it complains about allowing the app thru the firewall. The only
way to fix since
James Burke added the comment:
I'm also getting this error.
It appears to me to be caused by the length of the module name rather than case.
mp_bug.py will run fine for me, but if I change it to mp_bug_longname.py then I
will get this error.
import multiprocessing
import time
class MP_Bug
James added the comment:
I've written several languages, I'm no novice but, I also know when to brush
up.Its just how I started, it looks like an opening for others.
-Original Message-
From: R. David Murray
Sent: Wednesday, October 22, 2014 6:25 AM
To: geek.mo...@gmail.com
Subject
New submission from James:
Hello,
I really think that Microsoft’s last release of Quick Basic 4.5 really had
the ultimate of all help files. Here’s why, you could cut and copy the code to
the program you were working on, and then alter it to your program. It was one
of the nicer things
New submission from James:
Hello,
Now, I really want you to think about the hunt and pick method of
programming and learning how to program. Being self taught, isn’t something
that can happen unless, the authors of the software want people to learn how to
use it. Help files
New submission from James:
Just the General Help that is in Python, doesn't really help. Here's what
would help, if every Module, had an example in code of how it was used instead
of the Trees. I mean, word trees, well that's what the writing reminds me of,
is word trees like you'd produce
James added the comment:
Just the General Help that is in Python, doesn't really help. Here's what
would help, if every Module, had an example in code of how it was used instead
of the Trees. I mean, word trees, well that's what the writing reminds me of,
is word trees like you'd produce
New submission from James Goodwin:
The IMAP4 Example for Python 3.4 (Section 21.15.2) does not show the
appropriate host information for the example to work.
Suggested fix would be to change the line M = imaplib.IMAP4() to M =
imaplib.IMAP4('localhost') This will bring the example inline
James Goodwin added the comment:
I do see that. I agree that this is a duplicate of that one.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22658
James Spurin added the comment:
With both the kernel parameters defined and undefined, I get the following
output -
# /local/0/opt/python-3.4.1/bin/python
Python 3.4.1 (default, Sep 29 2014, 13:31:39)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux
Type help, copyright, credits or license
James Spurin added the comment:
fcntl doesnt seem to like the parameter you mentioned -
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
# /local/0/opt/python-3.4.1/bin/python
Python 3.4.1 (default, Sep 24 2014, 12:23:21)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4
New submission from James Paget:
The operator -= modifies a frozenset (this should not be possible),
instead of signaling a TypeError. Contrast with the += operator.
f=frozenset([1,2])
f
frozenset([1, 2])
f -= frozenset([1])
f
frozenset([2])
f -= frozenset([2])
f
frozenset([])
f
James Spurin added the comment:
I encountered similar issues to those discussed in this issue whilst compiling
3.4.1 on 'Red Hat Enterprise Linux Server release 6.5 (Santiago)'
In particular, the following tests were failing -
[root@lonlx90800 ~]# /local/0/python-3.4.1/bin/python3
/local/0
New submission from James Westby:
Hi,
I'm looking in to the memory usage of our testsuite, which does a fair amount of
def setUp():
patcher = patch.multiple(...)
self.mock_whatever = patcher.start()
self.addCleanup(patcher.stop)
or other ways of creating a mock
New submission from James Paget:
In Python 3.4, type:
import itertools
list(itertools.repeat(1))
The system will hang, and a cold reboot is necessary (at least on Windows). I
expected some sort of infinite list exception to be thrown.
--
components: Extension Modules
messages
James Y Knight added the comment:
Reverting the incorrect commit which caused the regression would be a good
start.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21652
New submission from James Y Knight:
The change done for issue9291 in Python 2.7.7 caused the mimetypes.types_map
dict to change to contain a mixture of str and unicode objects, rather than
just str, as it always had before.
This causes twisted.web to crash when serving static files on Windows
James Meneghello added the comment:
Yeah, I didn't have a lot of time so I chose just to work around it. When I get
a chance I'll have a better look.
Good point: I didn't think to try it with SSL off (SSL is enabled for all
connections by default with this application). I'll test this and see
New submission from James Meneghello:
After establishing an NNTP connection for a long-running process (up to hours
at a time), the connection will eventually die and start producing infinite
random garbage output, a small part of which is seen below. Any subsequent
calls to the connection
James Brewer added the comment:
It seems like this issue lost traction, so I decided to go ahead and apply
Eric's feedback. I've attached the relevant patch.
With that said, I agree with Senthil that sections 2.2.4 and 2.2.5 would be
better off between sections 13.1 and 13.2
--
nosy
James Bostock added the comment:
I have not compiled Python from source code for many years and no longer have
access to Solaris machines so I cannot say whether or not this is still a
problem.
--
___
Python tracker rep...@bugs.python.org
http
James Emerton added the comment:
Attached is an implementation of BufferedReader.readprevline(), as suggested by
Antoine.
At this point, it seems to be working but I would like to improve the tests
when a single result spans multiple chunks. I would particularly like to ensure
correct
New submission from James Bailey:
After xml.etree.ElementInclude.include inserts an Xinclude'd href it does not
walk the just-inserted subtree to see if it contains any Xincludes itself.
I think the behaviour should be modified to walk the included subtree and
perform any Xincludes contained
James Dominy added the comment:
Ah, I did some digging. It turns out pbzip2 is installed on the system in
question, and more annoyingly, /usr/bin/bzip2 is a symlink to pbzip2. I didn't
realise the file was compressed by pbzip2.
Thanks for the help
James Dominy added the comment:
How does one create a multi-stream bzip2 file in the first place? And how do I
tell it's multi-stream.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20781
New submission from James Dominy:
bz2.BZ2File does not decompress a file (see attached) correctly. This file can
be decompressed and compressed via stadard unix tools (bzip2 and bunzip2)
without change.
Consider ...
$ python
Python 2.7.6 (default, Dec 7 2013, 22:49:16)
[GCC 4.8.2
Changes by James Dominy jgdom...@gmail.com:
--
title: BZ2File does decompress some .bz2 files correctly - BZ2File doesn't
decompress some .bz2 files correctly
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20781
James Dominy added the comment:
Whoops, forget to add the output from the standard binutils
$ bzcat example-file.csv.bz2 | wc -c
909602
$ bzcat example-file.csv.bz2 | md5sum
48f4b69b2b8bb0b171ebc36313eb6616 -
As you can see file sizes and hashes do not match
James Skinner added the comment:
Ok, I'm not sure when I got the idea they should return ids instead of the
names :) But raising NotImplementedError is certainly an improvement on
ImportError.
As to implementing it on Windows, the answer by eryksun on this page works
without requiring
New submission from James Skinner:
When using the Path class in Lib/pathlib.py under Windows, calling p.owner() or
p.group() fails with an ImportError due to importing the pwd and grp modules
respectively, as neither of those exist. The documentation doesn't mention this
behaviour
James Cook added the comment:
This problem still exists with the version of turtle bundled with python 3.3.3
and ActiveState ActiveTcl8.5.15.1. While it may be an issue with the
underlying platform, it's unfortunate for young beginners just learning python
who don't understand the underlying
James Powell added the comment:
I see this as removing a restriction and a special-case from the
decorator syntax (noting, of course, that these were introduced
deliberately.)
In terms of whether the new forms are improvements, my preference is to
leave this up to the judgement
Changes by James Powell ja...@dontusethiscode.com:
Added file: http://bugs.python.org/file32745/decorator-syntax.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19660
New submission from James Powell:
Decorator syntax currently allows only a dotted_name after the @. As far as I
can tell, this was a gut-feeling decision made by Guido. [1]
I spoke with Nick Coghlan at PyTexas about this, and he suggested that if
someone did the work, there might be interest
Changes by James Powell ja...@dontusethiscode.com:
--
keywords: +patch
Added file: http://bugs.python.org/file32717/decorator-syntax.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19660
New submission from James Lu:
break 2 would break out of one loop then break out of another.
break
break
would just break once and not execute the second break.
break 2 when there are only 1 thing to break would raise raise a SyntaxError:
Can only break 1 time, need to break 2 times
James Lu added the comment:
You would have to do this:
for i in range(1,10):
broke = True
for x in range(2,5):
break
else:
broke = False
if broke:
break
to break twice, and you can't break only once
James Lu added the comment:
Big example:
pygame, event proccessing loop running. the user clicks Quit, you do
break 2.
psuedocode:
while True:
for event in pygame.events.get():
if event.type==pygame.QUIT:
break 2
james
On Sun, Oct 20, 2013 at 2:36 PM, Martin Matusiak
James Lu added the comment:
Every new feature takes on new challenges and harder ways to debug.
But what about using that very confusing code that I showed that only let's you
break one amount, that would be harder to debug!
--
___
Python tracker
James Lu added the comment:
Oh, yes,yes,yes!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19318
___
___
Python-bugs-list mailing list
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
(div id=' + id + ' +
scr
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 rep...@bugs.python.orgwrote:
Ezio Melotti added the comment:
What version of Python are you using?
--
nosy: +ezio.melotti
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
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 python
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: open - closed
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 hyphens is in a character class. I
fail to see how you'd
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
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 rep...@bugs.python.org
http://bugs.python.org/issue18591
___
___
Python-bugs
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 rep
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 rep...@bugs.python.orgwrote:
Eric V. Smith added the comment:
bool instances are immutable, so all value.toggle() could do is the same
as not value
201 - 300 of 572 matches
Mail list logo