James Oakley added the comment:
load_verify_locations() is not available in Python 2.x. It was added in 3.x.
Also, there is no way to load a directory-based certificate store at all in
Python 2.x, which is why the bug was opened.
--
___
Python
James Oakley added the comment:
Fair enough. What about a patch to handle a directory store passed through the
ca_certs parameter? As it stands now, it's impossible to load the
distribution-supplied cert store on openSUSE.
--
___
Python tr
James Oakley added the comment:
Something like this perhaps?
--- a/Lib/urllib/request.py Fri May 11 13:11:02 2012 -0400
+++ b/Lib/urllib/request.py Fri May 11 11:03:02 2012 -0700
@@ -135,16 +135,19 @@
_opener = None
def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT
James Henstridge added the comment:
Benjamin: if you are after a use case for this feature, see
https://code.djangoproject.com/ticket/15901
In Django, there are multiple database backends, each of which currently catch
the adapter's DatabaseError and reraise it as Django's Databa
Changes by James Henstridge :
--
type: behavior -> enhancement
___
Python tracker
<http://bugs.python.org/issue12029>
___
___
Python-bugs-list mailing list
Un
James Lu added the comment:
thanks!
james
On Thu, Apr 26, 2012 at 1:02 AM, Brian Curtin wrote:
>
> Brian Curtin added the comment:
>
> James, since you attached a Windows executable I'll assume that's the
> platform you're on.
>
> Try the following:
&g
James Oakley added the comment:
Ok, here's a patch with a test and documentation updates.
--
Added file:
http://bugs.python.org/file25617/cpython-urllib_urlopen_cadefault.patch
___
Python tracker
<http://bugs.python.org/is
James Oakley added the comment:
Ok, perfect. I submitted a copy of the agreement.
--
___
Python tracker
<http://bugs.python.org/issue14780>
___
___
Python-bug
New submission from James Kyle :
This behavior is present on OS X 10.7 and framework builds.
In this case, the /Library/Python/ paths are included in every
install.
I would consider this behavior non-standard as in most manual python installs
only that installations library paths are
James Kyle added the comment:
Am I missing something or were the problems delineated in issue #4865 solvable
by simply sys.path.append("/Library/Python/2.7/site-packages")?
What would the process be for reopening this issue for discussion?
I'm not sure this is the right way
James Kyle added the comment:
Fair enough. Thanks!
--
___
Python tracker
<http://bugs.python.org/issue15048>
___
___
Python-bugs-list mailing list
Unsubscribe:
James Henstridge added the comment:
One problem I can see with using a fixed offset tzinfo for localtime is that it
might confuse people when doing date arithmetic. For example:
>>> d = datetime.localtime() + timedelta(days=7)
While it will give a correct answer as a point i
James Kyle added the comment:
I think Ned does have some good points regarding the minimal impact a reversion
would have.
The most poignant point is that /Library/ on OS X is not a user controlled
directory whereas ~/.local is. If ~/.local exists and has packages installed,
it's becaus
New submission from James King :
I'm working on increasing the line-coverage of the tests for the Set ABC in the
collections.abc module.
I encountered something a little funky IMO that I'm not sure is an issue or
bug... but the __and__ method passes a generator object to the cons
James King added the comment:
How about a working test instead? Let me know if it looks right.
--
Added file: http://bugs.python.org/file26267/set_abc_coverage.patch
___
Python tracker
<http://bugs.python.org/issue15
New submission from James Hutchison:
Following code deadlocks on Windows 7 64-bit, Python 3.2.3
If you have a pool issue a map operation over an empty iterable then try to
join later, it will deadlock. If there is no map operation or blah in the code
below isn't empty, it does not dea
New submission from James Hutchison:
Windows 7 64-bit, Python 3.2.3
This is a very odd issue and I haven't figured out what caused it. I have a
python script that runs continuously. When it receives a request to do a task,
it creates a new thread (not a new process), does the task, then
James Hutchison added the comment:
This is the traceback I was getting where it was just a script that simply made
an SMTP connection then closed it. This fails before it attempts to connect to
the server.
Traceback (most recent call last):
File "C:\tmp\manysmtptest.py",
James Hutchison added the comment:
That makes no sense. Why does:
s = socket.socket()
s.bind(('',50007))
s.listen(1);
s.close();
fix the issue then?
Re-opening, this issue should be understood because having such an operation
randomly fail is unacceptable for a production system
New submission from James Hutchison:
One issue I've encountered is someone else's software setting PYTHONPATH to
their install directory of python. We have some old software that installs and
uses python 2.3 scripts and unfortunately this prevents the IDLE shortcuts for
newer v
James Hutchison added the comment:
It's from the example.
http://docs.python.org/library/socket.html#example
--
___
Python tracker
<http://bugs.python.org/is
James Hutchison added the comment:
The firewall is disabled for my machine.
So the options are:
1. Port was in-use: possible except that is normally a different error
2. Port was firewalled: firewall was disabled
3. Port mis-use: not likely because this wouldn't be random
4. Port w
James Hutchison added the comment:
I can connect to all of the IPs for my server without issue.
Found this:
Another possible reason for the WSAEACCES error is that when the bind function
is called (on Windows NT 4.0 with SP4 and later), another application, service,
or kernel mode driver is
Changes by James Hutchison :
--
status: closed -> open
___
Python tracker
<http://bugs.python.org/issue15779>
___
___
Python-bugs-list mailing list
Unsubscri
James Hutchison added the comment:
Looks to me like python grabs an outgoing port number via unrandom means and if
it happens to map to a port taken by a service that demands exclusive access,
then it returns the WSAEACCESS error instead of WSAEADDRINUSE. Because this is
a fairly new "fe
Changes by James Hutchison :
--
components: +Windows
___
Python tracker
<http://bugs.python.org/issue15779>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from James Hutchison:
This might even be a bug I've stumbled upon but I'm listing it as an
enhancement for now.
I really feel that relative imports in Python should just work. Regardless of
the __name__, I should be able to import below me. Likewise, it should wor
James Salt added the comment:
This diff shows a correction of the documentation to reflect the name for the
csv file used in the implementation - this change seemed like the easiest and
simplest thing to do and avoids potential backwards incompatibility issues.
--
nosy: +James.Salt
Changes by James Lu :
--
status: pending -> closed
___
Python tracker
<http://bugs.python.org/issue14667>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by James Lu :
--
resolution: -> works for me
___
Python tracker
<http://bugs.python.org/issue14667>
___
___
Python-bugs-list mailing list
Unsubscri
James Teh added the comment:
This issue is much nastier than it seems when dealing with character sets that
contain multi-byte characters in Python 2.7 on Windows. For example, on a
Japanese system:
1. The ANSI code page is cp932 and Python 2.7 will return the TEMP environment
variable as a
New submission from James Lu:
>>>x="y"
>>>y=x
>>>x=y
>>>print x
x
>>>print y
x
It should raise a RuntimeError
--
components: None
messages: 174086
nosy: James.Lu
priority: normal
severity: normal
status: open
t
Changes by James Lu :
--
versions: -Python 2.6
___
Python tracker
<http://bugs.python.org/issue16352>
___
___
Python-bugs-list mailing list
Unsubscribe:
James Lu added the comment:
srry
--
resolution: invalid -> rejected
___
Python tracker
<http://bugs.python.org/issue16352>
___
___
Python-bugs-list mai
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 cont
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
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
<http://bugs.python.
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
-
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 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'
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
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, Marti
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 tr
James Lu added the comment:
Oh, yes,yes,yes!
--
___
Python tracker
<http://bugs.python.org/issue19318>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 :
--
keywords: +patch
Added file: http://bugs.python.org/file32717/decorator-syntax.patch
___
Python tracker
<http://bugs.python.org/issue19
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 of the
Changes by James Powell :
Added file: http://bugs.python.org/file32745/decorator-syntax.patch
___
Python tracker
<http://bugs.python.org/issue19660>
___
___
Python-bug
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
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.
--
c
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 moc
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
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)] on
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
frozense
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
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 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 requ
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] on
Changes by James Dominy :
--
title: BZ2File does decompress some .bz2 files correctly -> BZ2File doesn't
decompress some .bz2 files correctly
___
Python tracker
<http://bugs.python.org
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 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
<http://bugs.python.org/is
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
James Broadhead added the comment:
+1 to the above.
(imo, this is a bugfix, not a new feature)
--
___
Python tracker
<http://bugs.python.org/issue1424
New submission from James Abbatiello :
test_print_function_option is failing on Windows. Patch attached.
Output of failure:
C:>python test.py
test_all_project_files (lib2to3.tests.test_all_fixers.Test_all) ...
\2to3\lib2to3\refactor.py:194: DeprecationWarning: the
'print_function
James Abbatiello added the comment:
The --no-diffs option was recently added which looks like a good workaround.
Here's an attempt at a solution. If sys.stdout has an encoding set then
use that, just as is being done now. If there is no encoding (implying
"ascii") then use
James Abbatiello added the comment:
In what case(s) do you propose the output to be encoded in UTF-8? If
output is to a terminal and that terminal is set to Latin-1 or cp437 or
whatever then outputting UTF-8 in that case will only show garbage
characters to the user.
If output is to a file
James Abbatiello added the comment:
Since there's no good way to disable the assertion (see issue4804),
checking the validity of the argument beforehand looks like an option.
The checking that's currently being done in the strftime()
implementation looks useful but it is not en
James Abbatiello added the comment:
Further investigation shows that MS asctime() doesn't like leap seconds
and causes an assertion when passing (2008, 12, 31, 23, 59, 60, 2, 366,
-1) -> 'Wed Dec 31 23:59:60 2008'.
Given that and since asctime() is such a simple function I t
New submission from James Lingard :
def f((x)=0): pass
gives the following incorrect error message:
SyntaxError: non-default argument follows default argument
"def f((x)): pass" is treated exactly the same as "def f(x): pass", so
it would seem sensible for the same to
New submission from James Lingard :
The following python file:
lambda a, a: 0
when executed gives the following backtrace:
File "/tmp/test.py", line 0
SyntaxError: duplicate argument 'a' in function definition
Note that the line number is 0, not 1. (It's al
New submission from James Henstridge :
The documentation for the weakref module contains an example that uses
WeakValueDictionary to implement a id2obj() lookup function that doesn't
store strong references to those objects.
This example implicitly assumes that the id() of an object wi
James Henstridge added the comment:
Forgot to include a link to the documentation I was talking about:
http://docs.python.org/library/weakref#example
This example also appears in the 2.7a0 and 3.2a0 documentation.
--
___
Python tracker
<h
New submission from James Henstridge :
The datetime module does not support time zones whose offset from UTC is
not an integer number of minutes.
The Olson time zone database (used by most UNIX systems and Mac OS X)
has a number of time zones with historic offsets that use second
resolution
New submission from James Henstridge :
The IMAP4rev1 specification allows for non-ASCII mailbox names using a
modified UTF-7 encoding (section 5.1.3 of RFC 2060 or 3501). However,
the imaplib routines taking a mailbox name just pass the string straight
through without any encoding.
It would be
James Henstridge added the comment:
I'll have a go at implementing the algorithm. It looks like the
modifications to UTF-7 are large enough that you can't do a search and
replace on the output of the existing UTF-7 codec, so it'll probably
require new code.
Would Str
Changes by James Mills :
--
nosy: +prologic
___
Python tracker
<http://bugs.python.org/issue5322>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from James McDermott :
I found the documentation for the multiprocessing.Pool.map() method to
be a little misleading, because it claims to be equivalent to the built-
in map(), but it's not quite.
When the function to be applied takes just one argument, both map()s
behav
James Andrewartha added the comment:
I'm jhbuilding GNOME on Solaris, and the attached patch fixes the
problem for me, having compiled Python with it I can now compile
dbus-python, pycairo and pyorbit against it.
--
nosy: +trs80
___
Python tr
James Broadhead added the comment:
Has there been any progress on this since January?
It is causing/affecting:
http://www.selenic.com/mercurial/bts/issue967
--
nosy: +jamesbroadhead
___
Python tracker
<http://bugs.python.org/issue1424
Changes by Alex James :
--
components: IO, Windows
nosy: ac.james
severity: normal
status: open
title: Pipes fail to return subprocess output on Windows
type: behavior
versions: Python 2.6
___
Python tracker
<http://bugs.python.org/issue6
New submission from Alex James :
When calling p=subprocess.Popen(findstr "string" filename, stdout=PIPE)
both p.stdout.read() and p.communicate()[0] are returning None even when
the shell process has output (ie string was found in filename).
Further, redirecting stdout to a file wil
Alex James added the comment:
>>> import subprocess
>>> fileName = 'test_a5.py.out'
>>> locator = 'step 5200 '
>>> p = subprocess.Popen('findstr /O /B /C:"' + locator + '" '+
fileName, stdout=subprocess.PI
Alex James added the comment:
Um, nevermind.
I completely missed cwd=os.path.split(sys.argv[0])[0] so the shell
command wasn't operating in the same relative path as the script.
And that never mattered on Unix because we always ran from commandline,
not IDLE, so the shell inherite
New submission from James Abbatiello :
The tests for 2to3 currently fail on Windows. Data is read from a file
in binary mode and then written to a temporary file in text mode which
doubles up the carriage returns.
Additionally, several files are missing the svn:eol-style property. The
New submission from Alex James :
When calling multithreading.Pool().map() to distribute computational
load I've recently got system crashes.
The attached minimalist script exhibits this issue.
On a Windows Vista home premium sp1 running Python 2.6.2 on a dual-core
laptop, the script
Alex James added the comment:
Ok Jesse, that did stop the bomb problem.
Unfortunately the real code belongs in a scientific research
distributable module that is called by another function in the module
where both have been imported into the script that is run. So it isn't
being call
New submission from James Abbatiello :
regrtest.py test__locale fails with:
test__locale
test test__locale crashed -- : cannot
import name
RADIXCHAR
1 test failed:
test__locale
The attached patch backports the fix from issue5643
--
components: Tests, Windows
files
New submission from James Abbatiello :
test_float fails on Windows with:
==
FAIL: test_format_testfile (test.test_float.IEEEFormatTestCase)
--
Traceback (most
New submission from James Abbatiello :
test_unittest fails on Windows with:
==
FAIL: test_find_tests_with_package (test.test_unittest.TestDiscovery
New submission from James Abbatiello :
test_winreg fails with:
==
ERROR: testLocalMachineRegistryWorks (test.test_winreg.WinregTests)
--
Traceback (most recent
New submission from James Abbatiello :
The file Lib/test/doctest_aliases.py is used by test_doctest to check
the handling of duplicate removal. The "g = f" line in this file is one
indent too far to the right so instead of creating an alias for f called
g it is just unreachable code i
New submission from James Abbatiello :
Python currently emits bytecode for code that is unreachable (e.g.
following a return statement). This doesn't hurt anything but it takes
up space doing nothing.
This patch attempts to avoid generating any bytecode in this situation.
There's a
James Abbatiello added the comment:
I should add that the patch doesn't only address dead user-code. It
also eliminates code that the compiler generates itself but that would
be unreachable at runtime. Consider the following function:
def foo(x):
if x:
raise Something
else:
James Abbatiello added the comment:
Raymond, I've updated peephole.c to allow code to terminate with any of
RETURN_VALUE, END_FINALLY or RAISE_VARARGS [0-3]. I also added tests to
test_peepholer.py to make sure the peepholer still works in these
New submission from Alex James :
When using cPickle to pickle / unpickle an object instance whose
__dict__ contains a dictionary of NumPy Arrays (on a windows32 system),
some of the array elements have the wrong type raising a ValueError:
could not convert string to float.
On UNIX platform
Alex James added the comment:
I have now pinpointed the error to a list of infinities (see attached).
When using pickle.py to read the cPickle'd data we get a different, and
more, informative error:
ValueError: invalid literal for float(): 1.#INF
--
Added file: http://bugs.pytho
Alex James added the comment:
Your test prints:
'(1p1\nF1.#INF\naF-1.#INF\naF-1.IND\na.'
[inf, -inf, nan]
My installation is Python 2.6.2 as currently distributed.
Specifying protocol 1 or 2 does circumvent the error.
Thank you.
--
components: +Documentation, Extensi
Changes by Alex James :
--
components: +Library (Lib) -Documentation, Extension Modules, Windows
___
Python tracker
<http://bugs.python.org/issue6290>
___
___
New submission from James Abbatiello :
Start a process with os.popen() and then try to get its exit code by
closing the resulting file handle. The value returned is inconsistent
between 2.x and 3.x. Example:
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
(Intel)] on win32
301 - 400 of 579 matches
Mail list logo