[issue46091] IndendationError from multi-line indented statements

2021-12-15 Thread Jeremy
New submission from Jeremy : At some point in 3.9 Python appears to have stopped accepting source that starts with an indent, then a '\', then the indented statement. From the lexical analysis [1] "Indentation cannot be split over multiple physical lines using backslashes; th

[issue46091] IndendationError from multi-line indented statements

2021-12-15 Thread Jeremy
Jeremy added the comment: Wow, this was a fast turnaround! I was going to spin some cycles on this, but would have not seen the solution in 50m. -- ___ Python tracker <https://bugs.python.org/issue46

[issue46274] backslash creating statement out of nothing

2022-01-05 Thread Jeremy
New submission from Jeremy : A source of one or more backslash-escaped newlines, and one final newline, is not tokenized the same as a source where those lines are "manually joined". The source ``` \ \ \ ``` produces the tokens NEWLINE, ENDMARKER when piped to the tokenize module

[issue38044] unittest causing segfaults with string malloc in c++ module

2019-09-06 Thread Jeremy
New submission from Jeremy : If a unittest is written which accesses a module written in C++ (I used Pybind11 to allow Python access) which uses malloc for a string, a segmentation fault is caused. This is not replicated when malloc is used for some other data types such as int, char or char

[issue44675] Cross-platform issues with private methods and multiprocessing

2021-07-19 Thread Jeremy
New submission from Jeremy : While writing a program using the multiprocessing library I stumbled upon what appears to be a bug with how different platforms deal with private methods. When a class has a private method which is the target for a multiprocessing process, this name is correctly

[issue45545] chdir __exit__ is not safe

2021-10-20 Thread Jeremy
New submission from Jeremy : The way that contextlib.chdir currently restores the old working directory, an exception is raised if the program was already close to or beyond a system's PATH_MAX. The context manager has no issue crafting the path in __enter__ because os.getcwd() can ret

[issue45545] chdir __exit__ is not safe

2021-10-20 Thread Jeremy
Jeremy added the comment: Yes, precisely. Besides being an unreachable long abs path, it might have been deleted since last visited. I’m working on a few more odd test cases. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45545] chdir __exit__ is not safe

2021-10-21 Thread Jeremy
Jeremy added the comment: >If os.chdir is in os.supports_fd, the context manager can use dirfd = >os.open(os.getcwd(), os.O_RDONLY). Using an fd should also work around the >deleted directory case, though POSIX doesn't specify whether fchdir() succeeds >in this case. It d

[issue45545] chdir __exit__ is not safe

2021-10-25 Thread Jeremy
Change by Jeremy : -- keywords: +patch pull_requests: +27481 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29218 ___ Python tracker <https://bugs.python.org/issu

[issue45545] chdir __exit__ is not safe

2021-10-25 Thread Jeremy
Jeremy added the comment: A LBYL won't always raise errors early as you point out. It will give earlier warnings for a lot of cases, but makes contextlib.chdir usable in less places than os.chdir. Some return paths will always be errors, and some will be technically recoverable bu

[issue45545] chdir __exit__ is not safe

2021-10-26 Thread Jeremy
Jeremy added the comment: > How common do you expect such errors to be though? Do you expect them to be > more or less common than with os.chdir()? Do you expect the mitigations to > be any different than with a failing os.chdir()? It has come up for me with some frequency. But

Re: [ python-Bugs-1569998 ] 2.5 incorrectly permits break inside try statement

2006-10-03 Thread Jeremy Hylton
I'm working on this bug now, but can't get an SF login to update the bug report. Jeremy On 10/3/06, SourceForge.net <[EMAIL PROTECTED]> wrote: > Bugs item #1569998, was opened at 2006-10-03 14:04 > Message generated for change (Settings changed) made by gbrandl > Yo

[issue46716] regrtest didn't respect the timeout when running test_subprocess on AMD64 Windows11 3.x

2022-02-10 Thread Jeremy Kloth
Jeremy Kloth added the comment: The test only completed once I purposefully terminated the offending Python process. The only identifying information I noticed was the command-line of `-c "while True: pass"`, indicating it was stuck in either test_call_timeout() or test_ti

[issue46716] regrtest didn't respect the timeout when running test_subprocess on AMD64 Windows11 3.x

2022-02-12 Thread Jeremy Kloth
Jeremy Kloth added the comment: I've been able locally to reproduce the test_subprocess hang. The responsible function is subprocess.run(). The test case, test_timeout(), uses a small timeout value (0.0001), which, when given enough load, can cause the run() call to hang. A judiciou

[issue46716] regrtest didn't respect the timeout when running test_subprocess on AMD64 Windows11 3.x

2022-02-13 Thread Jeremy Kloth
Jeremy Kloth added the comment: > > the fix should be as simple as coercing the timeout values to >= 0. > > Popen._remaining_time() should return max(endtime - _time(), 0). That was my first initial instinct as well, however, that change would also affect more of the Popen beha

[issue46778] Enable parallel compilation on Windows builds

2022-02-17 Thread Jeremy Kloth
New submission from Jeremy Kloth : While the current build does enable building of projects in parallel (msbuild -m), the compilation of each project's source files is done sequentially. For large projects like pythoncore or _freeze_module this can take quite some time. This simp

[issue46778] Enable parallel compilation on Windows builds

2022-02-17 Thread Jeremy Kloth
Change by Jeremy Kloth : -- keywords: +patch pull_requests: +29535 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31390 ___ Python tracker <https://bugs.python.org/issu

[issue46788] regrtest fails to start on missing performance counter names

2022-02-18 Thread Jeremy Kloth
New submission from Jeremy Kloth : When attempting to run the test harness, I receive the following: Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Public\Devel\cpython\main\Lib\test\__main__.

[issue46788] regrtest fails to start on missing performance counter names

2022-02-18 Thread Jeremy Kloth
Change by Jeremy Kloth : -- nosy: +vstinner ___ Python tracker <https://bugs.python.org/issue46788> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46789] Restore caching of externals on Windows buildbots

2022-02-18 Thread Jeremy Kloth
New submission from Jeremy Kloth : A recent change to the buildmaster config effectively disabled the caching of the externals for Windows buildbots: https://github.com/python/buildmaster-config/pull/255 If the caching is desired, a simple change to the buildmaster config is needed

[issue46789] Restore caching of externals on Windows buildbots

2022-02-18 Thread Jeremy Kloth
Change by Jeremy Kloth : -- nosy: +pablogsal, vstinner ___ Python tracker <https://bugs.python.org/issue46789> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46790] Normalize handling of negative timeouts in subprocess.py

2022-02-18 Thread Jeremy Kloth
New submission from Jeremy Kloth : As a follow on to bpo-46716, the various timeout parameters currently deal with negative values differently in POSIX and Windows. On POSIX, a negative value is treated the same as 0; check completion and raise TimeoutExpired is still running. On Windows

[issue46790] Normalize handling of negative timeouts in subprocess.py

2022-02-18 Thread Jeremy Kloth
Change by Jeremy Kloth : -- nosy: +eryksun, vstinner ___ Python tracker <https://bugs.python.org/issue46790> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46790] Normalize handling of negative timeouts in subprocess.py

2022-02-18 Thread Jeremy Kloth
Jeremy Kloth added the comment: Oh, I forgot to add that I'm in favor of following the threading.py behavior of allowing <=0 to mean "non-blocking" (i.e., just check). This would probably also benefit from a documentation

[issue46789] Restore caching of externals on Windows buildbots

2022-02-18 Thread Jeremy Kloth
Jeremy Kloth added the comment: I personally would like to see caching restored so as to keep the duration of buildbot runs as low as possible. The repeated fetching effectively doubles compilation time for my Win11 builder. -- ___ Python

[issue46789] Restore caching of externals on Windows buildbots

2022-02-21 Thread Jeremy Kloth
Jeremy Kloth added the comment: > Would it be possible to create a download cache somewhere outside the Python > source tree, so "git clean -fdx" would not remove this cache? I was thinking of locating it next to the checkout directory. The current structure is: [worker r

[issue46857] Python leaks one reference at exit on Windows

2022-02-25 Thread Jeremy Kloth
Jeremy Kloth added the comment: Good news, the difference on Windows was easy enough to find, bad news total refs are now negative! --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -3647,8 +3647,7 @@ _PyBuiltins_AddExceptions(PyObject *bltinmod) #define INIT_ALIAS(NAME, TYPE

[issue46857] Python leaks one reference at exit on Windows

2022-02-25 Thread Jeremy Kloth
Jeremy Kloth added the comment: Note that an allocated block is still leaking. Strange as well, when using dump_refs, the total refs are much more negative (-12 linux, -13 Windows) -- ___ Python tracker <https://bugs.python.org/issue46

[issue46857] Python leaks one reference at exit on Windows

2022-02-25 Thread Jeremy Kloth
Jeremy Kloth added the comment: > Oh wow. How did you find this leak? Did you read all C files and check for > code specific to Windows? How did you proceed? Well spotted! Initially, I modified Py_INCREF to dump the object (addr & tp_name) on initial inc (ob_refcnt == 1) and Py

[issue46857] Python leaks one reference at exit on Windows

2022-02-25 Thread Jeremy Kloth
Jeremy Kloth added the comment: > ./configure --enabled-shared --with-py-debug --with-trace-refs (that's what I get for typing from memory): ./configure --enable-shared --with-pydebug --with-trace-refs > > I proposed GH-31594 to fix this macro. > > Even using that

[issue46857] Python leaks one reference at exit on Windows

2022-02-26 Thread Jeremy Kloth
Jeremy Kloth added the comment: Did you also modify initconfig.c? That part is required as the usual processing of the environment variable PYTHONDUMPREFS needed to enable tracing output is ignored with -I -- ___ Python tracker <ht

Re: sys.settrace closure interaction bug

2007-03-12 Thread Jeremy Hylton
matter of terminology, there is no currying going on. It's just a problem with closures. Jeremy On 10/1/06, Scott Marks <[EMAIL PROTECTED]> wrote: > The code below exhibits different behavior depending on whether it invokes > sys.settrace ('-t' option) or not. This mea

[issue12785] list_distinfo_file is wrong

2011-09-13 Thread Jeremy Kloth
Jeremy Kloth added the comment: The attached patch seems to work as-is. That is, just testing for `self.path` as the prefix. On Windows, at least, the paths in RECORD are always absolute. Further changes will be necessary, of course, once changes for alternative paths (--prefix, --home

[issue13102] xml.dom.minidom does not support default namespaces

2011-10-04 Thread Jeremy Kloth
Jeremy Kloth added the comment: Please read the link which you posted. Quoting the second paragraph, second sentence: "Default namespace declarations do not apply directly to attribute names;" and from the third paragraph, third sentence: "The namespace name for an unpre

[issue12569] sqlite3 segfaults and bus errors when given certain unicode strings as queries

2011-07-14 Thread Jeremy Banks
New submission from Jeremy Banks : I was experimenting with the sqlite3 library and noticed that using certain strings as identifiers cause bus errors or segfaults. I'm not very familiar with unicode, but after some Googling I'm pretty sure this happens when I use non-characters or

[issue12569] sqlite3 segfaults and bus errors when given certain unicode strings as queries

2011-07-14 Thread Jeremy Banks
Jeremy Banks added the comment: I'm using OS X 10.6.7. The bus error is occurring with my Python 3.1 installation: path: /Library/Frameworks/Python.framework/Versions/3.1/bin/python3 sqlite3.version == 2.4.1 sqlite3.sqlite_version = 3.6.11. But now that you mention it, my Mac

[issue12569] sqlite3 segfaults and bus errors when given certain unicode strings as queries

2011-07-14 Thread Jeremy Banks
Jeremy Banks added the comment: I'll try that, thank you. If it works without exception in Python 2, isn't the behaviour in Python 3 a regression bug, even if it doesn't crash? If so, should I create a new/separate issue fo

[issue12627] Implement PEP 394: The "python" Command on Unix-Like Systems

2011-08-03 Thread Jeremy Bicha
Changes by Jeremy Bicha : -- nosy: +jbicha ___ Python tracker <http://bugs.python.org/issue12627> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

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

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-19 Thread Jeremy Kloth
Jeremy Kloth added the comment: The failure was due to the sdist command having different default formats for each platform (i.e., POSIX: gztar, Win32: zip). Patch attached. -- keywords: +patch nosy: +jkloth Added file: http://bugs.python.org/file22952/test_sdist.diff

[issue12895] In MSI/EXE installer, allow installing Python modules in free path

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

[issue11805] package_data only allows one glob per-package

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

[issue9217] 2to3 crashes with some doctests

2010-09-04 Thread Jeremy Thurgood
Jeremy Thurgood added the comment: This seems to be fixed in 3.2 and the 2.7 maintenance branch, but here's a (one-liner) patch for people who want to fix their local installations. -- keywords: +patch nosy: +jerith Added file: http://bugs.python.org/file18750/2to3_log_fix.

[issue9997] function named 'top' gets unexpected namespace/scope behaviour

2010-09-30 Thread Jeremy Hylton
Jeremy Hylton added the comment: Let me fix that. -- nosy: +Jeremy.Hylton ___ Python tracker <http://bugs.python.org/issue9997> ___ ___ Python-bugs-list mailin

[issue9997] function named 'top' gets unexpected namespace/scope behaviour

2010-10-01 Thread Jeremy Thurgood
Changes by Jeremy Thurgood : -- nosy: +jerith ___ Python tracker <http://bugs.python.org/issue9997> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6792] Distutils-based installer does not detect 64bit versions of Python

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

[issue10175] vs version for win32 compilation of extension modules is undocumented.

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

[issue10175] vs version for win32 compilation of extension modules is undocumented.

2010-10-22 Thread Jeremy Kloth
Jeremy Kloth added the comment: A quick look with Dependency Walker gives me the following: Python 2.4,2.5 -- MSVC .NET 2003 (7.1) Python 2.6,2.7,3.0,3.1 -- MSVC 2008 (9.0) Note these are only for the official python.org builds. Each version can also be built using other MSVC versions. To

[issue10217] python-2.7.amd64.msi install fails

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

[issue11921] distutils2 should be able to compile an Extension based on the Python implementation version

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

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-20 Thread Jeremy Thurgood
Jeremy Thurgood added the comment: Attached a patch to test for and fix the first two issues described in this ticket. Basically, it modifies SimpleHTTPRequestHandler.send_head() to operate on a path already stripped of the query string and fragment rather than the completely unparsed URL

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-20 Thread Jeremy Thurgood
Jeremy Thurgood added the comment: The weird behaviour is caused by newlines being treated as normal whitespace characters and not actually causing _wrap_chunks() to break the line. This means that it builds "lines" of up to 'width' characters which may contain

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-20 Thread Jeremy Thurgood
Jeremy Thurgood added the comment: Here's a doc patch for py3k. A similar patch for 2.7 (and other versions?) might be a good idea. -- keywords: +patch Added file: http://bugs.python.org/file19676/issue1859_docs.diff ___ Python tracker

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-20 Thread Jeremy Thurgood
Jeremy Thurgood added the comment: Thanks for the comments. There are two separate things here: the URL and the filesystem path. The only part of the URL we care about is the path section, but the fragment ("#anchor") and query parameters ("?foo") are valid -- SimpleHTT

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-20 Thread Jeremy Thurgood
Jeremy Thurgood added the comment: Updated patch as per previous comment. -- Added file: http://bugs.python.org/file19701/issue10231_v2.diff ___ Python tracker <http://bugs.python.org/issue10

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-21 Thread Jeremy Thurgood
Jeremy Thurgood added the comment: On Sun, Nov 21, 2010 at 10:37, Senthil Kumaran wrote: > Now, what happens when you type "http://bugs.python.org?10231"; [1] in > your browser? According to this bug report, the server should 301 > redirect it to "http://bugs.python.

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-21 Thread Jeremy Thurgood
Jeremy Thurgood added the comment: On Sun, Nov 21, 2010 at 17:11, Senthil Kumaran wrote: >>I can't see any situation in which redirecting >> "/something?foo" to "/something?foo/" is the correct behaviour. > As I explained, in the previous post, this wou

[issue10937] WinPE 64 bit execution results with errors

2011-01-18 Thread Jeremy Langley
New submission from Jeremy Langley : old versions of python worked on old versions of winpe by copying the c:\python25\ directory over to the mounted (iso,usb) filesystem, then rebooting with the media and running the python.exe from the ramdrive. This formula no longer works with 64 bit

[issue2885] Create the urllib package

2008-06-16 Thread Jeremy Hylton
Jeremy Hylton <[EMAIL PROTECTED]> added the comment: Oops. Let me look at this tomorrow. It was down to one failing test that last time I checked. Jeremy On Wed, Jun 11, 2008 at 10:10 PM, Barry A. Warsaw <[EMAIL PROTECTED]> wrote: > > Barry A. Warsaw <[EMAIL PROTECTE

[issue3377] Invalid child node access in ast.c

2008-07-17 Thread Jeremy Hylton
Changes by Jeremy Hylton <[EMAIL PROTECTED]>: -- assignee: -> jhylton nosy: +jhylton ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue3377] Invalid child node access in ast.c

2008-07-17 Thread Jeremy Hylton
Jeremy Hylton <[EMAIL PROTECTED]> added the comment: Committed revision 65064. -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue3347] urllib.robotparser doesn't work in Py3k

2008-07-18 Thread Jeremy Hylton
Jeremy Hylton <[EMAIL PROTECTED]> added the comment: Committed revision 65118. I applied a simple version of this patch and added a unittest. -- assignee: -> jhylton nosy: +jhylton status: open -> closed ___ Python tracker <[EMAIL PR

[issue1540] Refleak tests: test_doctest and test_gc are failing

2010-02-18 Thread Jeremy Hylton
Jeremy Hylton added the comment: I'm trying to figure out the attached script. If I run Python 3.0, the script doesn't run because of the undefined gc.DEBUG_OBJECTS. If I just remove that, the script runs without error. Does that mean the problem is fixed? Or is running withou

[issue1540] Refleak tests: test_doctest and test_gc are failing

2010-02-18 Thread Jeremy Hylton
Jeremy Hylton added the comment: I spent some time to understand the example script today. The specific issue is that a set of objects get put into the list of unreachable objects with finalizers (both Immutable and Finalizer instances). When Cycle's __dict__ is cleared, it also de

[issue1540] Refleak tests: test_doctest and test_gc are failing

2010-02-18 Thread Jeremy Hylton
Jeremy Hylton added the comment: One last thought on this bug. The problem is that after we try to delete garbage, we really can't know much about the state of the objects in the finalizers list. If any of the objects that are cleared end up causing a finalizer to run, then any o

[issue1540] Refleak tests: test_doctest and test_gc are failing

2010-02-19 Thread Jeremy Hylton
Jeremy Hylton added the comment: Amaury-- I think that will work. I put together a small patch that seems to pass all the tests, but it too messy. We need some care to make sure we don't spin forever if there's some degenerate case where we never

Re: [issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-19 Thread Jeremy Hylton
I don't think the HTTPConnection class was designed to work with sockets that don't follow the Python socket API. If you want to use a different socket, you should create some wrapper that emulates the Python socket ref count behavior. Jeremy On Mon, Feb 1, 2010 at 5:23 PM, Rober

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-19 Thread Jeremy Hylton
Jeremy Hylton added the comment: On Fri, Feb 19, 2010 at 6:22 PM, R. David Murray wrote: > > R. David Murray added the comment: > > But a goal is for the standard library to work with Python implementations > other than CPython, and the reference counting behavior described

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-21 Thread Jeremy Hylton
Jeremy Hylton added the comment: On Sat, Feb 20, 2010 at 12:06 AM, R. David Murray wrote: > > R. David Murray added the comment: > > But the docs (which presumably describe the API) say that the socket is > unusable after the call to close, which argues that the param

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-21 Thread Jeremy Hylton
Jeremy Hylton added the comment: In particular, I mean this part of the socket API: socket.makefile([mode[, bufsize]]) Return a file object associated with the socket. (File objects are described in File Objects.) The file object references a dup()ped version of the socket file descriptor, so

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-21 Thread Jeremy Hylton
Jeremy Hylton added the comment: On Sun, Feb 21, 2010 at 5:38 PM, Robert Buchholz wrote: > > Robert Buchholz added the comment: > > almost... HTTPConnection is calling close() on the socket object, but > HTTPResponse still has an open file-like object from a previous makefile(

Re: [issue4617] SyntaxError when free variable name is also an exception target

2010-02-22 Thread Jeremy Hylton
___ > ___ > Python-bugs-list mailing list > Unsubscribe: > http://mail.python.org/mailman/options/python-bugs-list/jeremy%40alum.mit.edu > > ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

[issue4617] SyntaxError when free variable name is also an exception target

2010-02-22 Thread Jeremy Hylton
Jeremy Hylton added the comment: On Mon, Feb 22, 2010 at 6:10 PM, Guido van Rossum wrote: > > Guido van Rossum added the comment: > > All examples so far (*) have to do with our inability to have properly nested > blocks. If we did, I'd make the except clause a block, an

[issue4617] SyntaxError when free variable name is also an exception target

2010-02-23 Thread Jeremy Hylton
Jeremy Hylton added the comment: The patch looks pretty good. I'd factor out the common error-checking code (common between LOAD_DEREF and DELETE_DEREF) into a helper function. It would also be good to add some test cases. Jeremy On Tue, Feb 23, 2010 at 9:38 AM, Guido van Rossum

[issue4199] add shorthand global and nonlocal statements

2010-02-23 Thread Jeremy Hylton
Jeremy Hylton added the comment: Is deferred blocker a higher priority? Jeremy On Tue, Feb 23, 2010 at 4:37 PM, Georg Brandl wrote: > > Georg Brandl added the comment: > > "High" is not high enough :) > > -- > pri

[issue4199] add shorthand global and nonlocal statements

2010-02-23 Thread Jeremy Hylton
Jeremy Hylton added the comment: On Sat, Dec 6, 2008 at 1:28 PM, Benjamin Peterson wrote: > > Benjamin Peterson added the comment: > > I think I may have been merging add_ast_fields when I wrote the patch. > > Here's a new patch that handles "global x, = (5,)"

Re: [issue4199] add shorthand global and nonlocal statements

2010-02-23 Thread Jeremy Hylton
does have the downside that you need to enforce this unwritten constraint of the AST in ast.c and in the ast module. It also means that the AST will change in a non-backwards compatible way. I don't see how to do that given that we're also changing the language spec. (Do you want to

[issue4199] add shorthand global and nonlocal statements

2010-02-24 Thread Jeremy Hylton
Jeremy Hylton added the comment: I guess there's some question about whether the syntax in the PEP was considered carefully when it was approved. If so, I'm not sure that we want to re-open the discussion. On the other hand, it's been a long time since the PEP was approved a

[issue6500] urllib2 maximum recursion depth exceeded

2010-03-01 Thread Jeremy Hylton
Jeremy Hylton added the comment: Ok. I'll take a look, too. Jeremy On Sat, Feb 27, 2010 at 4:30 AM, Ezio Melotti wrote: > > Changes by Ezio Melotti : > > > -- > nosy: +orsenthil > status: pending -> open > > __

[issue8069] struct documentation problem and suggestion to add fixed size formats

2010-03-05 Thread Jeremy Sanders
New submission from Jeremy Sanders : The struct documentation at http://docs.python.org/library/struct.html says: Standard size and alignment are as follows: no alignment is required for any type (so you have to use pad bytes); short is 2 bytes; int and long are 4 bytes; long long (__int64 on

[issue8069] struct documentation problem and suggestion to add fixed size formats

2010-03-05 Thread Jeremy Sanders
Jeremy Sanders added the comment: Sorry - I didn't read the docs clearly enough. This probably isn't a bug then. Can you mark it invalid? -- ___ Python tracker <http://bugs.python.

[issue2531] float compared to decimal is silently incorrect.

2008-04-01 Thread Jeremy Dunck
New submission from Jeremy Dunck <[EMAIL PROTECTED]>: Within python 2.5.2: >>> from decimal import Decimal >>> x = 3.0 >>> y = Decimal('0.25') >>> x > y False (expected error, as in 2.4, or True) -- components: Library (Lib) mes

[issue2531] float compared to decimal is silently incorrect.

2008-04-01 Thread Jeremy Dunck
Changes by Jeremy Dunck <[EMAIL PROTECTED]>: -- type: -> behavior __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2531> __ ___ Python-b

[issue2775] Implement PEP 3108

2008-05-06 Thread Jeremy Hylton
Jeremy Hylton <[EMAIL PROTECTED]> added the comment: I'm working on the new urllib package. -- nosy: +jhylton __ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue1346238] A constant folding optimization pass for the AST

2008-05-08 Thread Jeremy Hylton
Changes by Jeremy Hylton <[EMAIL PROTECTED]>: -- nosy: +jhylton _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1346238> _ ___ Python-bugs

[issue1524825] ConfigParser: accept leading whitespace on options+comments

2008-05-10 Thread Jeremy Thurgood
Jeremy Thurgood <[EMAIL PROTECTED]> added the comment: This looks very much like a duplicate of issue 1714. Perhaps the two should be merged? -- nosy: +jerith _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue2775] Implement PEP 3108

2008-05-10 Thread Jeremy Hylton
Jeremy Hylton <[EMAIL PROTECTED]> added the comment: I think we should move robotparser into the urllib package. Anyone disagree? Jeremy __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-05-10 Thread Jeremy Thurgood
Jeremy Thurgood <[EMAIL PROTECTED]> added the comment: Added handling for "Expect: 100-continue" header to BaseHTTPRequestHandler. By default, any request that has this header gets a 100 Continue response (with no other headers) before do_WHATEVER() is called. By overriding h

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-05-10 Thread Jeremy Thurgood
Jeremy Thurgood <[EMAIL PROTECTED]> added the comment: The above patch adds a set of tests for BaseHTTPServer, although the only tests actually written were those around the areas touched by the work done for this issue. __ Tracker <[EMAIL PROTECTE

[issue1348] httplib closes socket, then tries to read from it

2008-05-10 Thread Jeremy Hylton
Changes by Jeremy Hylton <[EMAIL PROTECTED]>: -- nosy: +jhylton __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1348> __ ___ Python-bugs-list mailin

[issue4291] Allow Division of datetime.timedelta Objects

2008-11-09 Thread Jeremy Banks
Jeremy Banks <[EMAIL PROTECTED]> added the comment: Sorry, allowing for conversion to int/float is probably a more sensible solution. This idea was brought to my mind when I was making a very very simple script for a friend to display how far through a time range we currently are. For e

[issue4291] Allow Division of datetime.timedelta Objects

2008-11-09 Thread Jeremy Banks
New submission from Jeremy Banks <[EMAIL PROTECTED]>: It would be convenient if it were possible to divide one datetime.timedelta object by another to determine their relative durations. Were the datetime module pure Python a crude solution would just be to add two methods lik

[issue4291] Allow Division of datetime.timedelta Objects

2008-11-09 Thread Jeremy Banks
Jeremy Banks <[EMAIL PROTECTED]> added the comment: Thanks, I should have paid more attention to the results when I searched for duplicates. I think that Christian's suggestion of enabling float() and int() for timedeltas is worth having here, though. -- nosy: -chris

[issue4327] Patch: simplify complex constant assignment statements

2008-11-24 Thread Jeremy Hylton
Jeremy Hylton <[EMAIL PROTECTED]> added the comment: It seems generally useful to have a helper function to replace a range of nodes in a sequence of statements with another sequence of nodes. A general API like that would allow you to insert or delete nodes as well as replacing one node

Re: [issue4327] Patch: simplify complex constant assignment statements

2008-11-24 Thread Jeremy Hylton
hink this added > complexity is worth it? Or we could add parent pointers in the tree, right? Jeremy > > ___ > Python tracker <[EMAIL PROTECTED]> > <http://bugs.python.org/issue4327> > ___ &

[issue4336] Fix performance issues in xmlrpclib

2008-11-24 Thread Jeremy Hylton
Jeremy Hylton <[EMAIL PROTECTED]> added the comment: This patch makes sense in principle, but some of the details need to change. The _send_output() method is used by some clients, merely because it can be used :-(. It's fairly easy to preserve this API for backwards compatibility.

[issue4336] Fix performance issues in xmlrpclib

2008-11-24 Thread Jeremy Hylton
Jeremy Hylton <[EMAIL PROTECTED]> added the comment: Just wanted to mention that the best solution is to update as much code as possible to use HTTPConnection instead of HTTP. I'm not sure how easy it is to do for xmlrpclib, since it exposes methods like send_content(). I guess we c

[issue4327] Patch: simplify complex constant assignment statements

2008-11-24 Thread Jeremy Hylton
Jeremy Hylton <[EMAIL PROTECTED]> added the comment: I haven't thought about the code in a while, but what code that modifies the AST are we worried about? There are lots of modifications in ast.c, since it is being created there. The case we really care about is sequences, where

Re: [issue4336] Fix performance issues in xmlrpclib

2008-11-24 Thread Jeremy Hylton
d for efficiency. Jeremy On Mon, Nov 24, 2008 at 12:32 PM, Jeremy Hylton <[EMAIL PROTECTED]> wrote: > > Jeremy Hylton <[EMAIL PROTECTED]> added the comment: > > This patch makes sense in principle, but some of the details need to > change. The _send_output() method

[issue1208304] urllib2's urlopen() method causes a memory leak

2008-11-24 Thread Jeremy Hylton
Jeremy Hylton <[EMAIL PROTECTED]> added the comment: Python 2.4 is now in security-fix-only mode. No new features are being added, and bugs are not fixed anymore unless they affect the stability and security of the interpreter, or of Python applications. http://www.python.org/download/re

  1   2   3   4   5   6   >