Jeff Allen added the comment:
I worked out that the essence of the test is to insert an extra \n at the end
of a GET request line. The request is syntactically invalid for HTTP. The
\n\r\n appears like two blank lines, implying no headers, but the headers then
follow where no data should
Jeff Allen added the comment:
Thanks for adding to the evidence here. As discussed above, disabling the
security product (which is Bitdefender) on my PC didn't stop the problem for
me, and I'm reluctant to uninstall. I narrowed it to the Windows Base Filtering
Engine, but perhaps
Jeff Allen added the comment:
Actual patch for your convenience. I'm not set up to build CPython from source,
so I've tested this with my installed CPython 2.7.6, and it's clean.
[As for keeping the tests in sync, yes that's our aim. Jython's Lib contains
only the customised versions
Jeff Edwards added the comment:
It's interesting how long this issue has been around. It seems to be because
the form-urlencoded spec is specified as url-percent-encoding EXCEPT for ' ' -
'+', which does seem to be unintuitive.
To note, there are a few known cases where the exception does
New submission from Jeff Allen:
When I run:
start python -m test.test_httpservers
test_request_line_trimming reports ERROR, and the test hangs at
test_version_none. If I run a copy of the test in which the latter test is
skipped with @unittest.skipIf(sys.platform == win32, ...), the error
Changes by Jeff Hardy jdha...@gmail.com:
--
nosy: +jeff.hardy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19453
___
___
Python-bugs-list mailing
New submission from Jeff Tratner:
One of the examples for assertRaisesRegex(p) is wrong by one character.
Current is:
self.assertRaisesRegexp(ValueError, 'invalid literal for.*XYZ$',
int, 'XYZ')
The $ at the end is wrong because the actual error message is ValueError
Changes by Jeff Hardy jdha...@gmail.com:
--
nosy: +jeff.hardy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17994
___
___
Python-bugs-list mailing
New submission from Jeff Ramnani:
The changeset for subtests in #16997 cause some tests in test_socket to fail on
OS X.
Specifically, they cause some tests that were marked as expected failures to be
run and be marked as failures.
I'm experiencing the same test failures as the OS X Mountain
Jeff Kaufman added the comment:
What would it take to get this moving again?
--
nosy: +Jeff.Kaufman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2292
Jeff Knupp added the comment:
Was this discovered when you were trying to tell urlopen not to check the
hostname for https connections? If so, that should be reflected in the title
so others know what the observable effect is. Referencing specific variables is
less useful both for searching
Jeff Ramnani added the comment:
I've added tests for this behavior by un-sorting the test inputs for
test_find_tests, and adding comments that the results should be sorted for
reliable test execution.
Attaching an updated patch.
--
nosy: +jramnani
Added file: http://bugs.python.org
Jeff Knupp added the comment:
I think Piotr's point is the wording of the last sentence is ambiguous. The
second statement reads It is customary *but not required* to place all import
statements at the beginning of a module The third seems to state that
regardless of whether or not you
Jeff Knupp added the comment:
Of the two different things, the first (the scope of imported names) is never
covered in the documentation. As a result, the text in question seems to imply
an import statement can *only* be in module scope.
From the reader's perspective: If I wanted to import
New submission from Jeff Mansfield:
Python-2.3.5.exe seems to be corrupt.
I’ve tried downloading Python-2.3.5.exe a number of times in the past week, and
so have a few of my colleagues. It always transfers in an incomplete manner,
resulting in only 4.7 out of 9.1 MB. I have tried from several
Jeff Mansfield added the comment:
Ezio,
It is what was in use on my old machine, and I don't want to move versions.
Thanks,
Jeff
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17241
Jeff Knupp added the comment:
This is not a bug.
The 'PARSER' nargs choice is an implementation detail as a way to handle
subparsers. The parser needs to know that the first value should be handled,
but everything that follows will be handled by the subparser.
By using a subparser, you're
Jeff Knupp added the comment:
Attached a patch. Rather than altering choices or making a special check for
string instances, I just changed the if statement to
if action.choices is not None and value not in list(action.choices):
from
if action.choices is not None and value
Jeff Knupp added the comment:
Patch uploaded.
Note that updating the test_distutils.core test revealed that the test was
importing DEBUG from the wrong module (which only existed because
distutils.core use the 'from ... import DEBUG' form). I've corrected the import
and updated the test
Jeff Knupp added the comment:
The only time this would be an issue is for infinite sequences via range or a
generator, which doesn't work anyway.
p = argparse.ArgumentParser()
a = p.add_argument('a', choices=itertools.count(0), type=int)
p.parse_args(['1'])
... hangs
Are there any
Jeff Knupp added the comment:
Previous patch had unintentional local changes. Uploaded correct patch.
--
Added file: http://bugs.python.org/file28382/new_patch.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16687
Changes by Jeff Knupp jkn...@gmail.com:
Removed file: http://bugs.python.org/file28318/patch.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16687
New submission from Jeff Knupp:
test_urllib2_localnet is concerned with testing connections only using
'localhost' or '127.0.0.1' hosts. If a user has the http_proxy environment
variable set, these test will likely fail as the proxy won't have any idea
where to send a request for 'localhost
Jeff Knupp added the comment:
I'm assuming this is the patch you were looking for. However, there are a
couple of unrelated issues with http.client.send that jumped out at me:
1. Encoding a file handed directly to send() seems wrong. If a client wants to
send a file encoded using something
New submission from Jeff Knupp:
Original text is:
Feeding string objects is to update is not supported
Should be ... objects in to update instead of is to
Also, mark GIL as a :term: to provide a link to its definition, as it's used
without much context in the following note:
.. note
Changes by Jeff Knupp jkn...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15743
Jeff McNeil added the comment:
Reverting of the len(block) back to 'bs' here aside, does it even make sense to
include block information at all?
That's the attempted read size, so it might not be an accurate representation
of the size of the data actually read. Thus the reason
Jeff McNeil added the comment:
Ah, disregard. I followed up on the other bug. The legacy interface indeed
should have stayed consistant.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10050
New submission from Jeff McNeil:
mcjeff@martian:~/cpython$ ./python -V
Python 3.4.0a0
When an SSLSocket is created via SSLContext.wrap_socket, it is passed a
_context parameter directly. SSLSocket.__init__ sets self.context at this
point, but it does not set self.keyfile or self.certfile
Jeff McNeil added the comment:
Ak! Yes, cut and paste error.
Python 3.4.0a0 (default:57a33af85407, Oct 27 2012, 21:26:30)
[GCC 4.4.3] on linux
Type help, copyright, credits or license for more information.
import ssl
c = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
c.load_cert_chain('Lib
Jeff McNeil added the comment:
Updated to pass in the parent context only actually, as it doesn't look like
all of the attributes on SSLSocket will be set if a context was initially
passed in.
--
Added file: http://bugs.python.org/file27784/ssl_context_2.patch
Jeff McNeil added the comment:
I've hacked this support in myself a few times with a simple socket wrap call
in SimpleXMLRPCServer's __init__. I'd be happy to put a quick patch together
if that's a viable approach.
Is there any desire to support client authentication or advanced features
Jeff McNeil added the comment:
Attached... worked in the way I've done it in the past and updated documents.
--
keywords: +patch
Added file: http://bugs.python.org/file27773/ssl_xmlrpc_server.patch
___
Python tracker rep...@bugs.python.org
http
Jeff McNeil added the comment:
Gave this a go myself...
$ ./python
Python 3.4.0a0 (default:57a33af85407, Oct 27 2012, 21:26:30)
[GCC 4.4.3] on linux
Type help, copyright, credits or license for more information.
import socket
socket.getfqdn()
'host.domain.com'
$ hostname -f
Jeff McNeil added the comment:
Yeah clearly the wrong behavior on Winders.
I think that moving to 'normpath' instead of 'normcase' is likely the right
thing to do. Patch is attached, so if someone with commit powers could review
real quick I'll address whatever needs to be addressed.
IMHO
Changes by Jeff Knupp jkn...@gmail.com:
--
nosy: +Jeff.Knupp
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15316
___
___
Python-bugs-list mailing
New submission from Jeff Knupp:
patch to test_json to not use assert(Raises)Regexp, which has been deprecated
in favor of assert(Raises)Regex.
--
components: Tests
files: json_deprecated.patch
keywords: patch
messages: 168750
nosy: Jeff.Knupp
priority: normal
severity: normal
status
New submission from Jeff Knupp:
urllib was updated to deprecate a number of Request methods for 3.3. The
test_urllib2 and test_urllib tests still use some of the deprecated methods.
--
components: Tests
messages: 168692
nosy: Jeff.Knupp
priority: normal
severity: normal
status: open
Jeff Knupp added the comment:
Attaching patch.
--
keywords: +patch
Added file: http://bugs.python.org/file26935/test_urllib.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15743
Changes by Jeff Knupp jkn...@gmail.com:
Removed file: http://bugs.python.org/file26935/test_urllib.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15743
Jeff Knupp added the comment:
Updated with correct patch file.
--
Added file: http://bugs.python.org/file26936/test_urllib.patch.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15743
Jeff Knupp added the comment:
Senthil, sorry, missed your comment and hadn't realized anyone had seen the
patch yet. I replaced it with an updated version (had missed a few places
deprecated functions were used). Could you review the new patch instead
Jeff Knupp added the comment:
Yes, that was part of the original patch which was incorrectly uploaded. The
current patch (2) should be correct wrt get_method.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15743
Jeff Knupp added the comment:
This is a duplicate of http://bugs.python.org/issue12157, which was fixed.
--
nosy: +Jeff.Knupp
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15702
Jeff Knupp jkn...@gmail.com added the comment:
Fixed for 3.3. Does this need to be back ported as well?
--
keywords: +patch
nosy: +Jeff.Knupp
Added file: http://bugs.python.org/file26244/exit_code.patch
___
Python tracker rep...@bugs.python.org
http
Jeff Knupp jkn...@gmail.com added the comment:
And by 'Fixed' I of course meant 'Patched, awaiting review'.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15033
Jeff Knupp jkn...@gmail.com added the comment:
Adding patch. If I misunderstood the issue, let me know.
--
keywords: +patch
nosy: +Jeff.Knupp
Added file: http://bugs.python.org/file26170/imp.patch
___
Python tracker rep...@bugs.python.org
http
Jeff Ramnani j...@jefframnani.com added the comment:
Hynek,
I would indeed like to update this patch. I will make the updates you have
suggested.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7719
Jeff Ramnani j...@jefframnani.com added the comment:
Attached the updated patch. I have added a .nfs file to test_prune_file_list
in test_sdist. I've also cleaned up the documentation to read a little better
(IMO).
--
Added file: http://bugs.python.org/file25668/issue7719
Jeff McNeil j...@jmcneil.net added the comment:
Yeah, that's a good point too. I still personally favor the transport
encapsulation and related unit testing, but I think that's a call for someone
with a snake icon next to their tracker name.
Your English is just fine
Jeff McNeil j...@jmcneil.net added the comment:
I would think it might make more sense just to make the change to the Transport
object. Since there's an argument for a transport on ServerProxy already, that
seems more straightforward and keeps the network layer isolated.
Otherwise, it seems
Jeff McNeil j...@jmcneil.net added the comment:
I went through the patch real quick and I noticed that your using single
element tuples in your string formatting. That makes sense in situations where
the argument might itself be a tuple, however, not on calls to len() as that
will return
Jeff Laing jeffla...@gmail.com added the comment:
@Jesús, as has been pointed out already, the Berkeley DB stuff is not part of
Python 3 so I don't see any point in discussing this with Oracle.
We don't actually use or need the bsddb module, it's just part of the standard
runtime library
New submission from Jeff Laing jeffla...@gmail.com:
As part of an audit of license compliance, I was looking at the terms in the
LICENSE.txt that describe the Berkeley DB product. I had thought this would be
under the standard Berkeley license, but Oracle have added their own zinger.
* 3
Jeff Laing jeffla...@gmail.com added the comment:
With all due respect, I think that the 2.7.3 License Page is still being
actively used by people as a reference, and it should be accurate. I agree that
the code developers can't do anything, but the documentation for all releases
New submission from Jeff Dean python.x@xoxy.net:
Spun off from Issue3561:
I recently saw Brian Curtin's Pycon 2012 presentation. If a goal is to make it
easy for new Windows users to run python, consider (optionally) installing a
desktop shortcut. This would make it easy for new users
Jeff McNeil j...@jmcneil.net added the comment:
I looked at doing this. The empty() and full() methods are marked with a
disclaimer stating they're likely to be removed at some point?
I'm curious, does just checking the value of Queue.unfinished_tasks satisfy
the requirement? It could still
Jeff Robbins je...@livedata.com added the comment:
I'm happy to try another build of apsw, but am not up-to-speed with how to
get development copies of Python. As a user, I typically download the
latest Windows .msi file and install it. If you can point me to a document
on how to proceed
Jeff Robbins je...@livedata.com added the comment:
Thanks for the pointer to the .msi.
The fix solved my apsw build problem.
I installed Python 3.3.a2 and apsw-3.7.11-r1. I ran this build:
C:\Temp\apsw-3.7.11-r1c:\Python33\python setup.py fetch --all
build --enable-all-extensions install
Jeff Dean chima...@gmail.com added the comment:
I just saw Brian Curtin's Pycon 2012 presentation. If a goal is to make it
easy for new users to run python, consider installing a desktop shortcut. This
would make it very easy for new users (easier than starting up a shell
Jeff McNeil j...@jmcneil.net added the comment:
Quick little patch to change the default to None and update the corresponding
documentation.
--
keywords: +patch
nosy: +mcjeff
Added file: http://bugs.python.org/file25044/urllib_urlopen_default.patch
Jeff Knupp jkn...@gmail.com added the comment:
I'm unable to reproduce on either 2.7 or 3.3. Running the following:
from zipfile import ZipFile
z=ZipFile('test.zip','a')
z.comment='Create a new comment'
z.close()
produces the output:
Archive: test.zip
Create a new comment
with the comment
New submission from Jeff Knupp jkn...@gmail.com:
ccbench.py warns about unclosed sockets in the bandwidth test. Fix to close
socket properly at end of test.
--
components: Demos and Tools
files: ccbench.patch
keywords: patch
messages: 156891
nosy: Jeff.Knupp
priority: normal
severity
Jeff McNeil j...@jmcneil.net added the comment:
I was looking at a somewhat unrelated issue and I bumped up against a similar
situation with the warnings system.
I didn't look too much into it, but it appeared that warnings didn't get added
to __warningregistry__ correctly. Though, when I
Jeff McNeil j...@jmcneil.net added the comment:
Disregard. That was in concert with ntpath, which uses a funky approach to
testing.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10050
New submission from Jeff Robbins je...@livedata.com:
Windows.h includes RpcNdr.h which does this:
#define small char
accu.h in Python\Include (Python 3.2.3rc2) has this in it:
typedef struct {
PyObject *large; /* A list of previously accumulated large strings */
PyObject *small
Jeff Robbins je...@livedata.com added the comment:
The easiest fix would be to rename the small field in accu.h (and of course
in any file that references that field.) I have no idea who uses this file.
Perhaps the 2nd easiest fix would be to put this after the #include of Windows.h
#ifdef
Jeff Knupp jkn...@gmail.com added the comment:
Patch to default character set to utf8 if non-ascii characters are found in the
input string. Please let me know if this is what you had in mind.
--
nosy: +Jeff.Knupp
___
Python tracker rep
Changes by Jeff Knupp jkn...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file24997/mailutf8.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14380
Jeff Robbins je...@livedata.com added the comment:
re Stefan Krah's posting:
I am sorry if I've caused any confusion. I am building a Python extension
(APSW), and it includes the sqlite amalgamation and also includes Python.h.
Sqlite includes Windows.h. Which then causes the problem when
Jeff Knupp jkn...@gmail.com added the comment:
Understood. Please take a look at the updated patch. Also, removed the
unrelated diffs that somehow were hanging around in my hg mq.
--
Added file: http://bugs.python.org/file24999/mimeutf8.patch
Jeff Robbins je...@livedata.com added the comment:
Stefan asked
'Did you include Python.h before or after Windows.h? Extensions
are supposed to include Python.h before anything else. '
I downloaded http://code.google.com/p/apsw/ to test it out on the latest sqlite
release. I followed
Jeff Knupp jkn...@gmail.com added the comment:
I don't know that this is a bug. Rather, the string '--' means different things
to argparse and optparse. In argparse, '--' is a psuedo-argument taken to mean
everything after this is a postional argument and not stop processing
arguments, which
Jeff Knupp jkn...@gmail.com added the comment:
In that case, wouldn't you use 'parse_known_args' instead of 'parse_args'
and pass the remaining arguments to the next script? This case is
explicitly mentioned in the argparse documentation. Again it seems to me
that the meaning of '--' has changed
Jeff Knupp jkn...@gmail.com added the comment:
Added patch so that only the first '--' is removed by an argparse.PARSE or
argparse.REMAINDER argument. Note that, as Steven said, argparse.REMAINDER
should be used in the OP's issue (and the added test makes sure all remaining
arguments
Jeff McNeil j...@jmcneil.net added the comment:
Here's a tiny patch that just changes normcase-normpath. This fixes the
casing issue at the 'gettempdir' level, though it doesn't address the
'normcase' function itself.
Note that *both* macpath.py and ntpath.py use s.lower, which obviously
Jeff McNeil j...@jmcneil.net added the comment:
It doesn't seem to me that the right approach on either platform is to simply
downcase. Maybe just deprecate the call altogether as its not doing anything
normpath isn't if the s.lower call is removed
Jeff McNeil j...@jmcneil.net added the comment:
The normcase call isn't exactly a no-op in ntpath.py as it also swaps / for \\.
Removing the .lower() seems to simply make it a watered down version of
normpath.
There are a couple of options I guess. We could simply keep the altsep
Jeff McNeil j...@jmcneil.net added the comment:
I don't see why we'd need to make these _private -- they're just
accessors/mutators for the most part. I'd be happy to help clean this up if
you need it.
--
___
Python tracker rep...@bugs.python.org
Jeff McNeil j...@jmcneil.net added the comment:
Did this ever get committed? Is there anything left for me to do here?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12890
Jeff McNeil j...@jmcneil.net added the comment:
I made the change suggested in the last comment, patch is attached. Trying to
clean up any bugs I've got my name on!
--
keywords: +patch
Added file: http://bugs.python.org/file24816/makedirs_function.patch
Jeff McNeil j...@jmcneil.net added the comment:
Documentation patch to outline the use of context manager protocol attached.
Trying to cleanup any bugs with my name on them.
--
keywords: +patch
Added file: http://bugs.python.org/file24817/urllib_request_doc.patch
Changes by Jeff McNeil j...@jmcneil.net:
--
nosy: -mcjeff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10050
___
___
Python-bugs-list mailing
Jeff McNeil j...@jmcneil.net added the comment:
In an effort to walk through bugs in my nosy list, I dug into this and tried to
reproduce it to no avail.
Also, as the handle_error method is supposed to handle problems gracefully,
calling shutdown on handle_error exception is probably
Jeff McNeil j...@jmcneil.net added the comment:
Ah, understood. I kind of like the idea of having the added functionality
behind a custom callable, but if it's generally just a bug then copystat is a
good solution, too.
--
___
Python tracker rep
Jeff Ramnani j...@jefframnani.com added the comment:
I've updated SilentGhost's patch to include a test and documentation.
--
nosy: +jramnani
Added file: http://bugs.python.org/file24828/issue7719-nfs_silly_rename.patch
___
Python tracker rep
Jeff McNeil j...@jmcneil.net added the comment:
Yeah, updated with different wording and proper caps. I left the piece in
regarding the use without the context manager as I think that's probably the
more common use case still.
--
Added file: http://bugs.python.org/file24832
Jeff McNeil j...@jmcneil.net added the comment:
I'd be happy to do that (URLopener, to begin with), though I'm not familiar
with the usual approach. Is it simply a matter of warning in __init__?
--
nosy: +mcjeff
___
Python tracker rep
Jeff McNeil j...@jmcneil.net added the comment:
The actual implementation calls os.path.normcase from
tempfile._get_default_tempdir. In this scenario here, that resolves to the
ntpath module triggers a lowercase conversion.
On the other hand, the posixpath module is simply an identity
Jeff Yurkiw j...@cyan.com added the comment:
That would probably work too.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13685
___
___
Python
New submission from Jeff Yurkiw j...@cyan.com:
I discovered this while programming the command line interface for a python
program that can take a passed argument and throw it into the 'where like'
clause of a SQL expression (intended for a postgresql database).
The wildcard character
Changes by Jeff McNeil j...@jmcneil.net:
Added file: http://bugs.python.org/file23743/head-cgitb-display.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12890
Jeff McNeil j...@jmcneil.net added the comment:
Added everything to one file. Updated tests to also include a logdir argument
as that is required to trigger the original bug. Weeded out a spurious write
that occurred when format was set to text.
--
Added file: http://bugs.python.org
Jeff McNeil j...@jmcneil.net added the comment:
Is there anything else needed here?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12890
Jeff McNeil j...@jmcneil.net added the comment:
I didn't add one initially as I was just changing output format and not actual
behavior. I guess I could add something to ensure it doesn't regress? I'll
make sure there's coverage to begin
Jeff McNeil j...@jmcneil.net added the comment:
Test to ensure html isn't included when the formatting is text. I don't seem
to be able to update the stage.
--
Added file: http://bugs.python.org/file23731/head-cgitb-display-tests.patch
___
Python
New submission from Jeff McNeil j...@jmcneil.net:
If cgitb.enable is ran with a logdir set and a format='text' argument, then a
trailing message is printed that includes p tags. This should only happen if
the format requested is HTML.
The following tiny script shows the problem:
import
Jeff Blaine cjbla...@gmail.com added the comment:
FWIW, this same problem exists with 2.7.1, compiled by myself, and only on some
Solaris 10 boxes of ours that have not had a lot of recent patching.
==
On an old-ish Solaris 10
Changes by Jeff Blaine cjbla...@gmail.com:
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12013
___
___
Python-bugs-list
Jeff McNeil j...@jmcneil.net added the comment:
Isn't that snippet (contextlib.closing(...)) passing the result of
urllib.urlopen to closing? The urlopen call is a factory function of sorts, so
there's really no context to manage on its part? Maybe it's just a matter of
making that clear
101 - 200 of 306 matches
Mail list logo