[issue15496] harden directory removal for tests on Windows

2012-08-02 Thread Jeremy Kloth
Jeremy Kloth added the comment: OK, here is another patch that uses just os.listdir -- Added file: http://bugs.python.org/file26663/support.diff ___ Python tracker <http://bugs.python.org/issue15

[issue15556] os.stat fails for file pending delete on Windows

2012-08-04 Thread Jeremy Kloth
New submission from Jeremy Kloth: os.stat fails when called on a file that is pending delete but is still in the directory listing. This in turn causes os.path.exists to return the wrong result. Attached is a test case demonstrating this broken behavior. -- components: Library (Lib

[issue15556] os.stat fails for file pending delete on Windows

2012-08-04 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +brian.curtin, loewis, pitrou, tim.golden -jkloth ___ Python tracker <http://bugs.python.org/issue15556> ___ ___ Python-bug

[issue15556] os.stat fails for file pending delete on Windows

2012-08-04 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue15556> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15556] os.stat fails for file pending delete on Windows

2012-08-04 Thread Jeremy Kloth
Jeremy Kloth added the comment: Traceback (most recent call last): File "stat-bug.py", line 12, in print('stat', os.stat(pathname)) PermissionError: [Error 5] Access is denied: '\\Users\\Jeremy\\test.tmp' -- ___

[issue15556] os.stat fails for file pending delete on Windows

2012-08-04 Thread Jeremy Kloth
Jeremy Kloth added the comment: > Why do you think the behavior is broken? It looks right to me - it's not > possible to get file information for a file that is scheduled for deletion. However you can when using MSVCRT's stat() function or even FindFirstFile directly.

[issue15496] harden directory removal for tests on Windows

2012-08-04 Thread Jeremy Kloth
Jeremy Kloth added the comment: I've updated the comment in the patch to reflect Martin's concern. Martin is partially correct in that the handle opened in the stat() call will not prolong the pending status. It is due to the fact that it does not open the handle with any sharin

[issue15496] harden directory removal for tests on Windows

2012-08-04 Thread Jeremy Kloth
Jeremy Kloth added the comment: With the latest changes, is there anything left preventing the inclusion of this patch? Without some change, the Win64 buildbot is relatively irrelevant as it is nearly always in a state of failure due to these errors

[issue15496] harden directory removal for tests on Windows

2012-08-04 Thread Jeremy Kloth
Jeremy Kloth added the comment: > Not that some change isn't necessary, but what else are you running on your > build slave? I ran a Windows 2008 R2 x64 slave for some time and it never had > issues around file/directory removal. I only had to decommission it because > the

[issue15526] test_startfile crash on Windows 7 AMD64

2012-08-18 Thread Jeremy Kloth
Jeremy Kloth added the comment: Unfortunately, this is a legitimate failure of the test. The test (actually the support code) is attempting to remove a directory that is the current directory of an active process. The test has documented this issue and attempted to work around it by adding a

[issue15526] test_startfile crash on Windows 7 AMD64

2012-08-19 Thread Jeremy Kloth
Jeremy Kloth added the comment: > I think the reason that it is only this buildbot which fails is that the > other Windows buildbots don't use multiple processes. Therefore they don't > use a different dir for each test. That might be it. Also the failure possibly only ha

[issue15526] test_startfile crash on Windows 7 AMD64

2012-08-19 Thread Jeremy Kloth
Jeremy Kloth added the comment: However #1 is the reason that is bug exists in the first place. The designer of the test guessed wrong on the "magic value" for the timeout. There will never be a correct timeout value as it varies from machine to machine and from workload to workload

[issue15526] test_startfile crash on Windows 7 AMD64

2012-08-21 Thread Jeremy Kloth
Jeremy Kloth added the comment: Here is the patch implementing option #2 -- keywords: +patch nosy: +jkloth Added file: http://bugs.python.org/file26947/test_startfile.diff ___ Python tracker <http://bugs.python.org/issue15

[issue15792] Fix compiler options for x64 builds on Windows

2012-08-27 Thread Jeremy Kloth
New submission from Jeremy Kloth: The attached patch fixes the compiler options used for building the x64 platform. - In VC10 the passing /GS- as an additional option has been replaced by the MSBuild BufferSecurityCheck command - The /USECL:xxx option is only for the VSExtComp plugin for

[issue15792] Fix compiler options for x64 builds on Windows

2012-08-27 Thread Jeremy Kloth
Jeremy Kloth added the comment: I did forgot t mention that this change also silences a compiler warning: cl : Command line warning D9025: overriding '/GS' with '/GS-' The /USECL:xxx option does not provoke a warning is it is being evaluated as '/U "SECL:xxx"

[issue15526] test_startfile crash on Windows 7 AMD64

2012-09-15 Thread Jeremy Kloth
Jeremy Kloth added the comment: This test is still intermittently failing on the AMD64 Windows7 SP1 buildbot: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/630 Any chance the patch could be committed? -- ___ Python

[issue15963] Improve ./configure's support for 32/64-bit debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary UNIX systems (Solaris/HP-UX/AIX et al).

2012-09-18 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue15963> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2012-09-18 Thread Jeremy Kloth
New submission from Jeremy Kloth: This patch incorporates Tcl/Tk/Tix into the MSVC build in the same fashion as OpenSSL has been done. Highlights: - A new project, tcltk, is added that simply calls the Python script build_tkinter.py to build the externals. - New helper module PCbuild

[issue16047] Tools/freeze no longer works in Python 3

2012-09-25 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue16047> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

2012-09-25 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue16049> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16131] Pylauncher is being installed in Windows system folder

2012-10-04 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue16131> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue16175> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16188] Windows C Runtime Library Mismatch

2012-10-10 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue16188> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16218] Python launcher does not support non ascii characters

2012-10-13 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue16218> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10740] sqlite3 module should allow DDL statements in transactions

2012-10-18 Thread Jeremy Banks
Changes by Jeremy Banks : -- nosy: +Jeremy Banks ___ Python tracker <http://bugs.python.org/issue10740> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2012-10-22 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- keywords: +patch Added file: http://bugs.python.org/file27660/029d1cdf6422.diff ___ Python tracker <http://bugs.python.org/issue15

[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2012-10-22 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +brian.curtin, loewis, tim.golden ___ Python tracker <http://bugs.python.org/issue15968> ___ ___ Python-bugs-list mailin

[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2012-10-24 Thread Jeremy Brock
New submission from Jeremy Brock: Recently I have been working on a project to utilize the new FTP_TLS library from ftplib in Python 2.7.3. What I found is that no matter what I try, when prot_p() is called prior to transferring files to 2008 Server R2 running FTP7.5, the python client

[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2012-10-25 Thread Jeremy Brock
Jeremy Brock added the comment: Hello Giampaolo, It is the same timeout in PASV with Prot_P, please see attached documentation. Something I did not mention before is that the file being written shows up on the server but I can't view it because it is being used by another process. Whe

[issue21622] ctypes.util incorrectly fails for libraries without DT_SONAME

2014-05-31 Thread Jeremy Huntwork
New submission from Jeremy Huntwork: On my system, the C library (musl) intentionally does not include a SONAME entry. This method in particular fails: http://hg.python.org/cpython/file/076705776bbe/Lib/ctypes/util.py#l133 The function seems to jump through some hoops which may not be

[issue16532] AMD64 Windows 7 build failures

2012-11-23 Thread Jeremy Kloth
Jeremy Kloth added the comment: On Thu, Nov 22, 2012 at 3:11 PM, Antoine Pitrou wrote: > The AMD64 Windows 7 buildbot shows weird build failures in ctypes: > http://buildbot.python.org/all/buildslaves/kloth-win64 The _ctypes_d.pyd was considered to be in use by the system (although P

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2012-12-04 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue16612> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16656] os.walk ignores international dirs on Windows

2012-12-10 Thread Jeremy Kloth
Jeremy Kloth added the comment: The problem exhibited is not coming from the os.walk() implementation, but from the use of a byte-string as the argument to it. The directories are created with unicode literals and therefore the argument must also be a unicode literal (u'.') for

[issue16668] Remove python3dll.vcxproj from pcbuild.sln

2012-12-12 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue16668> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16769] Remove some old Visual Studio versions from PC/ directory

2012-12-24 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue16769> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16779] Fix compiler warning when building extension modules on 64-bit Windows

2012-12-25 Thread Jeremy Kloth
New submission from Jeremy Kloth: The 64-bit linker doesn't mangle the dllexport'ed module init function (from PyMODINIT_FUNC) so it causes an exported name conflict. We cannot just remove that name from export_symbols as the module may not have used PyMODINIT_FUNC on its init func

[issue17064] Fix sporadic buildbot failures for test_mailbox

2013-01-28 Thread Jeremy Kloth
New submission from Jeremy Kloth: Attached is an attempt at fixing the sporadic failures of test_mailbox on the AMD64 Windows buildbot. It fails due to access errors on some directories which leads me to believe the helper functions in test.support should fix the problem

[issue17065] Fix sporadic buildbot failures for test_winreg

2013-01-28 Thread Jeremy Kloth
New submission from Jeremy Kloth: test_winreg fails sporadically on the AMD64 Windows buildbot. Looking at the test, it appears that concurrent runs of the test would fail if different processes attempted to modify the test key at the same time. The attached patch resolves this by using a

[issue17064] Fix sporadic buildbot failures for test_mailbox

2013-01-28 Thread Jeremy Kloth
Jeremy Kloth added the comment: Actually, the support functions (as of 3.3) attempt to work around the access errors. They attempt to wait (to a point) for a successful operation before returning to the caller. See issue15496 for details. It is usually the case that the previous operation

[issue17077] Fix test_tools hangs

2013-01-29 Thread Jeremy Kloth
New submission from Jeremy Kloth: Attached is a patch to test_tools that gets it back to a run-able state. -- components: Tests files: test_tools.diff keywords: patch messages: 180925 nosy: jkloth, serhiy.storchaka priority: normal severity: normal status: open title: Fix test_tools

[issue17077] Fix test_tools hangs

2013-01-30 Thread Jeremy Kloth
Jeremy Kloth added the comment: It hangs on both my Windows buildbot and development machine. The patch is tested and works correctly on Windows. -- ___ Python tracker <http://bugs.python.org/issue17

[issue16903] subprocess.Popen.communicate with universal_newlines=True doesn't accept strings on 3.2

2013-01-30 Thread Jeremy Kloth
Jeremy Kloth added the comment: I would suggest that this be bumped to release blocker as currently passing bytes to communicate with universal_newlines=True on Windows causes the process to hang (see issue17077). The backported test case passes on Windows without any changes to subprocess.py

[issue19143] Finding the Windows version getting messier

2013-10-01 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue19143> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19629] support.rmtree fails on symlinks under Windows

2013-11-17 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue19629> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-18 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue19638> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19629] support.rmtree fails on symlinks under Windows

2013-11-27 Thread Jeremy Kloth
Jeremy Kloth added the comment: The attached patch changes support.rmtree to use os.lstat() instead of the builtin _isdir() to test for directory-ness of a path. -- keywords: +patch Added file: http://bugs.python.org/file32875/symlink.patch

[issue21908] Grammatical error in 3.4 tutorial

2014-07-02 Thread Jeremy Fusco
New submission from Jeremy Fusco: https://docs.python.org/3/tutorial/controlflow.html Sentence states 'most such' where either would suffice. current: In most such cases, however, it is convenient to use the enumerate() function, see Looping Techniques Proposed: In

[issue21908] Grammatical error in 3.4 tutorial

2014-07-02 Thread Jeremy Fusco
Jeremy Fusco added the comment: I do, however I feel I'm not the only one that would be thrown by this wording. Perhaps wording such as 'In cases like the above it is more convenient to utilize the enumerate()'. Thanks for the

[issue21907] Update Windows build batch scripts

2014-07-04 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue21907> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22024] Add to shutil the ability to wait until files are definitely deleted

2014-07-21 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue22024> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22400] Stable API broken on Windows for PyUnicode_*

2014-09-13 Thread Jeremy Kloth
New submission from Jeremy Kloth: When using any of the PyUnicode_* functions in an extension module compiled with Py_LIMITED_API defined, the resulting module cannot be imported due to: ImportError: DLL load failed: The specified procedure could not be found. Upon investigation, the error is

[issue22400] Stable API broken on Windows for PyUnicode_*

2014-09-16 Thread Jeremy Kloth
Jeremy Kloth added the comment: Ah, yes indeeed. Sorry for the noise as it was that my local repos were having some syncing issues so I had out of date sources. Marking as closed (fixed) and duplicate of issue17432. -- resolution: -> duplicate status: open ->

[issue20101] Determine correct behavior for time functions on Windows

2014-01-01 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue20101> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20139] Python installer does not install a "pip" command (just "pip3" and "pip3.4")

2014-01-06 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue20139> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20144] Argument Clinic doesn't support named constants as default values

2014-01-06 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue20144> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20168] Derby: Convert the _tkinter module to use Argument Clinic

2014-01-07 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue20168> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20326] Argument Clinic should use a non-error-prone syntax to mark text signatures

2014-01-21 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue20326> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20341] Argument Clinic: add "nullable ints"

2014-01-22 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue20341> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20441] Test_tcl.TclTest.test_split(list) failures on Windows, 2.7.

2014-01-29 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue20441> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19320] Tkinter tests ran with wantobjects is false

2014-01-29 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue19320> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20166] window x64 c-extensions not works on python3.4.0b2

2014-02-02 Thread Jeremy Kloth
Jeremy Kloth added the comment: Issue #16779 has a patch that suppresses the warning for 64-bit builds that would also "fix" #9709. -- nosy: +jkloth ___ Python tracker <http://bugs.python.o

[issue16895] Batch file to mimic 'make' on Windows

2014-02-03 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue16895> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20485] Enable non-ASCII extension module names

2014-02-05 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker <http://bugs.python.org/issue20485> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2014-03-12 Thread Jeremy Kloth
Jeremy Kloth added the comment: I'm curious as to the issues that arose in getting 'build_tkinter.py' to work within the Visual Studio IDE, as that is what I used to develop the patches to start with. I would like to look over the new changes, but will not have any time to do so

Re: [issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2009-08-18 Thread Jeremy Hylton
Not that we've removed the try one more time branch of the code, because it was causing other problems. Jeremy On Sun, Aug 16, 2009 at 6:24 PM, Gregory P. Smith wrote: > > Gregory P. Smith added the comment: > > btw, when using async io (poll, select, etc) I -think- your so

[issue4870] ssl module is missing SSL_OP_NO_SSLv2

2010-01-12 Thread Jeremy Kloth
Jeremy Kloth added the comment: I have developed a patch that adds the ability to disable SSLv2, SSlv3 and TLSv1 when using the SSLv23 method. It changes Modules/_ssl.c, Lib/ssl.py and Doc/library/ssl.rst. -- keywords: +patch nosy: +jeremy.kloth Added file: http://bugs.python.org

[issue2531] float compared to decimal is silently incorrect.

2009-03-19 Thread Jeremy Dunck
Jeremy Dunck added the comment: I hear you on the 2.x to 3.x transition-- I'm not really asking for mixed-mode arithmetic. I'd be perfectly happy if float > decimal raised TypeError, as float + decimal does. My complaint is that it is s

[issue5468] urlencode does not handle "bytes", and could easily handle alternate encodings

2009-03-26 Thread Jeremy Hylton
Jeremy Hylton added the comment: I'm not sure I understand the part of the code that deals with binary strings. I agree the current behavior is odd. RFC 2396 says that non-ascii characters must be encoded as utf-8 and then percent escaped. In the test case you started with, you enco

[issue4773] HTTPMessage not documented and has inconsistent API across 2.6/3.0

2009-03-26 Thread Jeremy Hylton
Jeremy Hylton added the comment: No deep thought was given to the HTTPMessage API. Here's the extent of the discussion that I can find. I've changed the names, but you can find the full discussion at http://bugs.python.org/issue2848 A: mimetools.Message is compa

[issue4773] HTTPMessage not documented and has inconsistent API across 2.6/3.0

2009-03-26 Thread Jeremy Hylton
Jeremy Hylton added the comment: A plausible solution is to pick some core set of functionality that we think people need and document that API. We can modify one or both of the current implementations to include that functionality. What do we need

[issue5418] urllib.response.addinfourl does not support __exit__

2009-03-26 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- assignee: -> jhylton nosy: +jhylton resolution: -> accepted ___ Python tracker <http://bugs.python.org/issue5418> ___ ___

[issue5418] urllib.response.addinfourl does not support __exit__

2009-03-26 Thread Jeremy Hylton
Jeremy Hylton added the comment: Makes sense to me. Committed revision 70625. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue5314] http client error

2009-03-26 Thread Jeremy Hylton
Jeremy Hylton added the comment: I'm not sure what to do here. I guess changing to utf-8 is safe insofar as the current code only accepts ascii, so the only code that breaks will be code that depends on the encode() call raising an exception. It seems like the client out to specif

[issue5468] urlencode does not handle "bytes", and could easily handle alternate encodings

2009-03-27 Thread Jeremy Hylton
Jeremy Hylton added the comment: Indeed, I think I confused some other character encoding issues related to HTTP with the URI issue. The discussion in RFC 3986 is length and only occasionally clarifying for this issue. That is, it doesn't say anything definitive like applications are fr

[issue5314] http client error

2009-03-27 Thread Jeremy Hylton
Jeremy Hylton added the comment: The documentation is pretty vague on this point. If you send something other than plain ascii, it gets a bit tricky to figure out what other headers need to be added. It would be safer for the client to pick an encoding (e.g. utf-8) and encode the string

[issue5314] http client error

2009-03-27 Thread Jeremy Hylton
Jeremy Hylton added the comment: Ok. Discovered that RFC 2616 says that iso-8859-1 is the default charset, so I will use that to encode strings instead of ascii. If you want utf-8, you could encode the string yourself before calling request(). Presumably, you should also add a content-type

[issue5314] http client error

2009-03-27 Thread Jeremy Hylton
Jeremy Hylton added the comment: Committed revision 70638. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue5542] Socket is closed prematurely in httplib, if server sends response before request body has been sent

2009-03-27 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- assignee: -> jhylton nosy: +jhylton ___ Python tracker <http://bugs.python.org/issue5542> ___ ___ Python-bugs-list mai

[issue5542] Socket is closed prematurely in httplib, if server sends response before request body has been sent

2009-03-27 Thread Jeremy Hylton
Jeremy Hylton added the comment: Wow! Old issue. This behavior was present in Greg's original version of the code. -- ___ Python tracker <http://bugs.python.org/i

[issue5542] Socket is closed prematurely in httplib, if server sends response before request body has been sent

2009-03-27 Thread Jeremy Hylton
Jeremy Hylton added the comment: I think it makes sense to leave the socket open in this case. (In general, I think httplib is too aggressive about closing the socket.) I'm checking in a version for py3k, and will get around to backporting it later. Committed revision

[issue3243] Support iterable bodies in httplib

2009-03-28 Thread Jeremy Hylton
Jeremy Hylton added the comment: Seems like a reasonable feature request. I'm going to apply a variant of the patch in 3.1 first. -- assignee: -> jhylton nosy: +jhylton resolution: -> accepted ___ Python tracker <http://bugs.python

[issue1153027] http_error_302() crashes with 'HTTP/1.1 400 Bad Request

2009-03-28 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- nosy: +jhylton ___ Python tracker <http://bugs.python.org/issue1153027> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue918368] urllib doesn't correct server returned urls

2009-03-28 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- nosy: +jhylton ___ Python tracker <http://bugs.python.org/issue918368> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4773] HTTPMessage not documented and has inconsistent API across 2.6/3.0

2009-03-30 Thread Jeremy Hylton
Jeremy Hylton added the comment: The attached file is vaguely related to the current discussion. I'd like to document the API for the urllib response, but I'd also like to simplify the implementation on the py3k side. We can document the simple API on the py3k side, then support so

[issue5578] unqualified exec in class body

2009-03-30 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- assignee: -> jhylton nosy: +jhylton resolution: -> accepted type: -> behavior ___ Python tracker <http://bugs.python.o

[issue4962] urlparse & nfs url (rfc 2224)

2009-03-30 Thread Jeremy Hylton
Jeremy Hylton added the comment: looks good to me -- nosy: +jhylton ___ Python tracker <http://bugs.python.org/issue4962> ___ ___ Python-bugs-list mailin

[issue4675] urllib's splitpasswd does not accept newline chars in passwords

2009-03-30 Thread Jeremy Hylton
Jeremy Hylton added the comment: looks good to me -- nosy: +jhylton ___ Python tracker <http://bugs.python.org/issue4675> ___ ___ Python-bugs-list mailin

[issue1659410] Minor AST tweaks

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- nosy: +jhylton ___ Python tracker <http://bugs.python.org/issue1659410> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4315] On some Python builds, exec in a function can't create shadows of variables if these are declared "global" in another function of the same module

2009-03-31 Thread Jeremy Hylton
Jeremy Hylton added the comment: Committed revision 70809 (trunk). Needs to be backported. -- nosy: +jhylton resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue1153622] eval does not bind variables in lambda bodies correctly

2009-03-31 Thread Jeremy Hylton
Jeremy Hylton added the comment: The current docs cover this case: http://docs.python.org/reference/executionmodel.html#interaction-with-dynamic-features It basically says that code compiled via exec / eval can't access free variables. -- resolution: -> wont fix stat

[issue991196] An inconsistency with nested scopes

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- assignee: -> jhylton nosy: +jhylton ___ Python tracker <http://bugs.python.org/issue991196> ___ ___ Python-bugs-list mai

[issue991196] An inconsistency with nested scopes

2009-03-31 Thread Jeremy Hylton
Jeremy Hylton added the comment: This code behaves as intended. The module-level execution environment is different than other environments. The global scope and local scope are the same dictionary. Assignments at the top-level become globals because of this behavior of the execution

[issue4831] exec() behavior - revisited

2009-03-31 Thread Jeremy Hylton
Jeremy Hylton added the comment: I think this bug ran out of steam. Python is behaving as intended, and I think Georg addressed all of David's questions. -- nosy: +jhylton resolution: -> works for me status: open -> closed ___ Pyt

[issue5578] unqualified exec in class body

2009-03-31 Thread Jeremy Hylton
Jeremy Hylton added the comment: exec is allowed in a class statement -- resolution: accepted -> rejected status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue5524] execfile() removed from Python3

2009-03-31 Thread Jeremy Hylton
Jeremy Hylton added the comment: It doesn't seem helpful to leave this issue open, particularly since the title suggest there's a problem with execfile being removed and that's not going to change. -- nosy: +jhylton status: open -> closed

[issue4199] add shorthand global and nonlocal statements

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- nosy: +jhylton ___ Python tracker <http://bugs.python.org/issue4199> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1346238] A constant folding optimization pass for the AST

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- priority: high -> normal ___ Python tracker <http://bugs.python.org/issue1346238> ___ ___ Python-bugs-list mailing list Unsubscri

[issue2344] Using an iteration variable outside a list comprehension needs a Py3K warning

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- nosy: +jhylton ___ Python tracker <http://bugs.python.org/issue2344> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2344] Using an iteration variable outside a list comprehension needs a Py3K warning

2009-03-31 Thread Jeremy Hylton
Jeremy Hylton added the comment: Seemed like a good idea, but no one knew how to do it. -- resolution: -> wont fix status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue5628] TextIOWrapper fails with SystemError when reading HTTPResponse

2009-03-31 Thread Jeremy Hylton
New submission from Jeremy Hylton : import io import urllib.request f_bytes = urllib.request.urlopen("http://www.python.org/";) f_string = io.TextIOWrapper(f_bytes, "iso-8859-1") print(f_string.read()) -- components: Library (Lib) messages: 84840 nosy: jhylton sev

<    1   2   3   4   5   6   >