[issue15529] PyIter_Check evaluates to 0 for Python list object

2012-08-01 Thread Tom Tromey
New submission from Tom Tromey: I was debugging this bug reported against gdb: http://sourceware.org/bugzilla/show_bug.cgi?id=14386 It turns out that what went wrong in this code was that PyIter_Check evaluates to 0 when its argument is a Python list. This happens because the PyIter_Check

[issue15858] tarfile missing entries due to omitted uid/gid fields

2012-09-03 Thread Tom Lynn
New submission from Tom Lynn: The tarfile module silently truncates the list of entries when reading a tar file if it sees an entry with a uid/gid field containing only spaces/NULs. I got such a tarball from Java Maven/plexus-archiver. I don't know whether they write such f

[issue15858] tarfile missing entries due to omitted uid/gid fields

2012-09-04 Thread Tom Lynn
Tom Lynn added the comment: I think the default has to be 0 for consistency with how other empty numeric fields are handled. In theory spaces and NULs are supposed to be equivalent terminators in numeric fields, but I've just noticed that plexus-archiver is also using leading spaces r

[issue15858] tarfile missing entries due to omitted uid/gid fields

2012-09-05 Thread Tom Lynn
Tom Lynn added the comment: See attached bad.tar. $ less bad.tar | cat drwxr-xr-x 0/0 0 2012-09-05 20:04 foo/ -rw-rw-r-- uname/gname 0 2012-09-05 20:04 foo/a $ python -c 'import tarfile; print(tarfile.open("bad.tar").getnames())' ['foo'] $ py

[issue15858] tarfile missing entries due to omitted uid/gid fields

2012-09-05 Thread Tom Lynn
Tom Lynn added the comment: patch.py attached - what I'm using as a workaround at the moment. -- Added file: http://bugs.python.org/file27130/patch.py ___ Python tracker <http://bugs.python.org/is

[issue11798] Test cases not garbage collected after run

2012-09-30 Thread Tom Wardill
Tom Wardill added the comment: Patch attached using setting test to None after execution. -- keywords: +patch nosy: +tomwardill Added file: http://bugs.python.org/file27352/11798.patch ___ Python tracker <http://bugs.python.org/issue11

[issue15505] unittest.installHandler incorrectly assumes SIGINT handler is set.

2012-09-30 Thread Tom Wardill
Changes by Tom Wardill : -- nosy: +michael.foord ___ Python tracker <http://bugs.python.org/issue15505> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11770] inspect.dir_static

2012-09-30 Thread Tom Wardill
Changes by Tom Wardill : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue11770> ___ ___ Python-bugs-list mailing list Unsub

[issue13476] Simple exclusion filter for unittest autodiscovery

2012-09-30 Thread Tom Wardill
Changes by Tom Wardill : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue13476> ___ ___ Python-bugs-list mailing list Unsub

[issue16368] error when logging message

2012-10-30 Thread Tom Kuiper
New submission from Tom Kuiper: This error comes from the logging module when a message is logged, but only when I also import another module which does use logging at all: Traceback (most recent call last): File "/usr/lib/python2.6/logging/__init__.py", line 776, in em

[issue16368] error when logging message

2012-10-30 Thread Tom Kuiper
Tom Kuiper added the comment: Give me a few moments to dig further. I may have found the submodule culprit. Checking. Tom On 10/30/2012 05:29 PM, R. David Murray wrote: > R. David Murray added the comment: > > Do none of those submodules import logging? > > It is unlikely

[issue16368] error when logging message

2012-10-30 Thread Tom Kuiper
Tom Kuiper added the comment: On 10/30/2012 05:29 PM, R. David Murray wrote: > R. David Murray added the comment: > > Do none of those submodules import logging? > > It is unlikely that this is a Python bug. Somewhere _fmt is getting set to > an integer. The way to pro

[issue16460] Strange results for floor division ("//") with non-integer divisors

2012-11-12 Thread Tom Pohl
New submission from Tom Pohl: According to the documentation of the floor division (http://docs.python.org/2/reference/expressions.html#binary-arithmetic-operations), x//y should be equal to math.floor(x/y). However, the result of 1//0.1 is 9.0 (tested on 2.6, 2.7, 3.2). It might be related

[issue16460] Strange results for floor division ("//") with non-integer divisors

2012-11-12 Thread Tom Pohl
Tom Pohl added the comment: Thanks for your comments. From a technical/numerical point of view I agree with you that the computed result is correct given the floating-point limitations. >From a user's point of view (and the documentation seems to agree with me) the >result is

[issue16460] Strange results for floor division ("//") with non-integer divisors

2012-11-12 Thread Tom Pohl
Tom Pohl added the comment: Thanks for all the explanations why Python's floor division (FD) works as specified. And I agree, it does work as specified, but still, I think this is not the behavior that most people would expect and is therefore dangerous to provide/use. What do I expect

[issue16460] Strange results for floor division ("//") with non-integer divisors

2012-11-12 Thread Tom Pohl
Tom Pohl added the comment: Martin: Ok, just as you suggested, I did the calculations on a sheet of paper: floor(1 mathematically-divided-by 0.1) = floor(10) = 10 qed ;-) -- ___ Python tracker <http://bugs.python.org/issue16

[issue16460] Strange results for floor division ("//") with non-integer divisors

2012-11-12 Thread Tom Pohl
Tom Pohl added the comment: Since nobody seems to share my point of view, I give up. :-) Thanks for your support and for working on Python (the best programming language as we all know), Tom -- ___ Python tracker <http://bugs.python.org/issue16

[issue16460] Strange results for floor division ("//") with non-integer divisors

2012-11-13 Thread Tom Pohl
Tom Pohl added the comment: You still get me wrong. Thanks to your explanations and to my personal knowledge about this topic (programming for 28 years now; PhD in CS/numerics/HPC) I now fully understand the technical details about the current implementation of FD. The problem I see is that

[issue16460] Strange results for floor division ("//") with non-integer divisors

2012-11-13 Thread Tom Pohl
Tom Pohl added the comment: This is "a fact-of-life for anyone using binary floating point": x = 0.0 while x != 1.0: print(x); x += 0.1 # so long This is not: 1 // 0.1 = 9.0 because math.floor(1/0.1) is able to come up with the result that is expected from an operator called "

[issue16460] Strange results for floor division ("//") with non-integer divisors

2012-11-14 Thread Tom Pohl
Tom Pohl added the comment: Mark, thanks for explaining the connection of // and %. Finally, I can see why somebody would want to stick to the current behavior of FD. It renders FD useless for all of my use cases, but there are simple alternatives. Thanks for your time, Tom

[issue15516] exception-handling bug in PyString_Format

2012-12-06 Thread Tom Tromey
Tom Tromey added the comment: It sure would. Here's a new patch. -- Added file: http://bugs.python.org/file28223/P ___ Python tracker <http://bugs.python.org/is

[issue15516] exception-handling bug in PyString_Format

2013-01-02 Thread Tom Tromey
Tom Tromey added the comment: It does fail without the patch: test_format XXX undetected error test test_format failed -- Traceback (most recent call last): File "/home/tromey/Space/Python/cpython/Lib/test/test_format.py", line 251, in test_format def test_exc(formatstr, args,

[issue6696] Profile objects should be documented

2013-02-05 Thread Tom Pinckney
Tom Pinckney added the comment: Thanks for the feedback! I'll incorporate it this weekend and make a new patch, though also feel free to just go ahead and make the changes yourself if you'd rather not wait for me. -- ___ Python trac

[issue6696] Profile objects should be documented

2013-02-10 Thread Tom Pinckney
Tom Pinckney added the comment: Draft of new updates based on Eric's feedback. I haven't done a final proof-reading over this patch as I wanted to upload it and see if I'm heading in the right direction first. -- Added file: http://bugs.python.org/file29

[issue18092] Python 2.7.5 installation broken on OpenSuse 12.2

2013-10-01 Thread Tom Gross
Tom Gross added the comment: I guess you are on a 64bit os an the issue is a variant of issue1294959. Some of the components (scripts) are installed in the $PREFIX/lib folder and some are (libs) installed in the $PREFIX/lib64 folder. a workaround which worked for me (on OpenSuse 12.3 which

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2013-10-29 Thread Tom Tromey
Changes by Tom Tromey : -- nosy: +tromey ___ Python tracker <http://bugs.python.org/issue10112> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10685] trace does not ignore --ignore-module

2013-10-31 Thread Tom Hines
Tom Hines added the comment: The trace module ignores the --ignore-dir option for both the --listfuncs and --trackcalls modes. I have attached a patch. -- keywords: +patch nosy: +tomhines Added file: http://bugs.python.org/file32437/trace.diff

[issue19560] PEP 8 operator precedence across parens

2013-11-12 Thread Tom Lynn
New submission from Tom Lynn: PEP 8 currently has:: Yes:: ... c = (a+b) * (a-b) No:: ... c = (a + b) * (a - b) That looks wrong to me -- surely the parens are a sufficient precedence hint, and don't need further squashing inside? This will be worse with an

[issue19560] PEP 8 operator precedence across parens

2013-11-12 Thread Tom Lynn
Tom Lynn added the comment: FWIW, this pair of examples differs from the others in this section as they were both explicitly okayed in the first version of PEP 8 <http://hg.python.org/peps/rev/4c31c25bdc03?revcount=120>:: - Use your better judgment for the insertion of spaces

[issue11410] Use GCC visibility attrs in PyAPI_*

2013-12-02 Thread Tom Tromey
Changes by Tom Tromey : -- nosy: +tromey ___ Python tracker <http://bugs.python.org/issue11410> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22044] Premature Py_DECREF while generating a TypeError in call_tzinfo_method

2014-07-22 Thread Tom Flanagan
New submission from Tom Flanagan: call_tzinfo_method in Modules/_datetimemodule.c:900 calls Py_DECREF(offset) before trying to use offset to generate a TypeError message. This causes a crash if that was the last reference to offset and Py_DECREF clears it. -- components: Library (Lib

[issue22044] Premature Py_DECREF while generating a TypeError in call_tzinfo_method

2014-07-22 Thread Tom Flanagan
Tom Flanagan added the comment: Included python test case which causes a segmentation fault on Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 bit (AMD64)] on win32 Python 3.4.0 (default, Apr 11 2014, 13:05:11) [GCC 4.8.2] on linux Python 3.5.0a0 (default

[issue16177] Typing left parenthesis in IDLE causes intermittent Cocoa Tk crash on OS X

2014-10-07 Thread Tom Goddard
Tom Goddard added the comment: I've seen this crash about 50 times in the UCSF Chimera molecular visualization package, same traceback, and it is caused when a tooltip is raised, but not from IDLE. The key observation is that it only happens on dual display systems where the second di

[issue16177] Typing left parenthesis in IDLE causes intermittent Cocoa Tk crash on OS X

2014-10-07 Thread Tom Goddard
Tom Goddard added the comment: More testing shows that this Mac Tk crash with dual displays only happens when the second display is partly or entirely above the primary display in the Mac display system preferences. An attempt to show the tooltip on the second display above the top of the

[issue16177] Typing left parenthesis in IDLE causes intermittent Cocoa Tk crash on OS X

2014-10-08 Thread Tom Goddard
Tom Goddard added the comment: Ok I reported this as a Mac Tk bug and gave a very simple way to reproduce it. http://core.tcl.tk/tk/tktview?name=3Dc84f660833 -- ___ Python tracker <http://bugs.python.org/issue16

[issue15858] tarfile missing entries due to omitted uid/gid fields

2014-01-15 Thread Tom Lynn
Tom Lynn added the comment: The secondary issue, which the patch doesn't address, is that TarFile.next() seems unpythonic; it treats any {Invalid,Empty,Truncated}HeaderError after offset 0 as EOF rather than propagating the exception. It looks deliberate, but I'm not sure why i

[issue17213] ctypes loads wrong version of C runtime, leading to error message box from system

2014-01-26 Thread Tom Edwards
Tom Edwards added the comment: Still an issue in 3.3.3. Igor's fix still works, thankfully. -- nosy: +Artfunkel versions: +Python 3.3 -Python 2.7 ___ Python tracker <http://bugs.python.org/is

[issue17213] ctypes loads wrong version of C runtime, leading to error message box from system

2014-01-26 Thread Tom Edwards
Changes by Tom Edwards : -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue17213> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20725] Fail to build on Windows x64 with VS Express

2014-02-21 Thread Tom Brander
New submission from Tom Brander: Trying to build a Win 32 version using VS express on Win 7 (since it cannot do x64) Rev 89320 tried to build python 3.4 from source using VS 2010 express no dice. It complains about solutions folder that is not supported in VS 2010 express. While this is

[issue6637] non-empty defaultdict .copy() fails returning empty dict

2009-08-03 Thread Tom Clarke
New submission from Tom Clarke : The enclosed script when run under 2.6.2 IDLE standard distribution on x86 shows that shallow copy (.copy()) of a non-empty defaultdict object returns an empty defaultdict! Other ways to copy, e.g. defaultdict(none, d.items()), work fine. Bug appears under

[issue6637] non-empty defaultdict .copy() fails returning empty dict

2009-08-03 Thread Tom Clarke
Changes by Tom Clarke : Added file: http://bugs.python.org/file14641/bug.py ___ Python tracker <http://bugs.python.org/issue6637> ___ ___ Python-bugs-list mailin

[issue6637] non-empty defaultdict .copy() fails returning empty dict

2009-08-04 Thread Tom Clarke
Tom Clarke added the comment: NB - (discussion of significance of this bug) Defaultdict called with no argument is anomalous & this problem can be avoided in such cases by using dict. However this is not possible if default value can change and the documentation specifically def

[issue6808] python 3.1 documentation tutorial classes

2009-08-30 Thread Tom Morse
New submission from Tom Morse : Thank you for the most excellent documentation and notes on classes in python: http://docs.python.org/3.1/tutorial/classes.html I found the following minor typos and provide feedback on the above web page: 1. Where "unpacked again" occurs there is no

[issue6900] Sub-optimal "Locate" button behaviour in Windows CHM file

2009-09-13 Thread Tom Seddon
New submission from Tom Seddon : Behaviour of "Locate" in latest Windows CHM file for Python 2.6.2 is sub-optimal. I first spotted this with the optparse module, so this bug refers to the optparse module. It looks as if this is a global problem, though. First, ensure one has late

[issue7158] os.path.basename/split fails

2009-10-16 Thread Tom Kuiper
New submission from Tom Kuiper : Normal behavior: >>> from os import path >>> filename = "/home/kuiper/Projects/microdischarges/Observing/2009-09-01/STATS_NP2000_VSR1A.1W1.09-244-193632" >>> print filename /home/kuiper/Projects/microdischarges/Observing/200

[issue7158] os.path.basename/split fails

2009-10-17 Thread Tom Kuiper
Tom Kuiper added the comment: That's a good point, Marco. I'd forgotten about the distinction. Converting 'filename' to a Python string with 'str()' fixed the problem. > However, when I tried to run your example, newWF.py, and tried to open a

[issue7158] os.path.basename/split fails

2009-10-17 Thread Tom Kuiper
Tom Kuiper added the comment: Do I have to do that? I've never used the Python bug tracking system before. > BTW: I'm happy you solved this bug. > I guess we could consume a few beers over whether it's a bug or not. Cheers Tom -- _

[issue2746] ElementTree ProcessingInstruction uses character entities in content

2009-10-24 Thread Tom Lynn
Changes by Tom Lynn : -- nosy: +tlynn ___ Python tracker <http://bugs.python.org/issue2746> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2009-11-19 Thread Tom Lynn
Tom Lynn added the comment: This bug should be re-opened, since there is definitely a bug here. I think the patch was incorrectly rejected. If I can expand palfrey's example: from textwrap import * T = TextWrapper(replace_whitespace=False, width=75) text = '''\ a aaa

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2009-12-04 Thread Tom Switzer
Tom Switzer added the comment: I am not sure I understand the reasoning behind removing the cmp parameter (and agree with Lea Wiemann). Trying to wedge a proper comparison into the key parameter is clumsy and unreadable (as can be seen in the 2to3 example above). The intrinsic ordering on

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2009-12-06 Thread Tom Switzer
Tom Switzer added the comment: Mark: I think your example actually helps illustrate my point. My point was that computing the angle directly is less efficient or not as nice numerically. For instance, if you are sorting points by angle relative to an extreme point you could do something like

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2009-12-07 Thread Tom Switzer
Tom Switzer added the comment: If the equal min y-coords are handled, I think it'd be quicker too. As Guido noted, O(n) function calls is better then O(n log n) =] Though the general case is still unhandled. And, though it doesn't help my case, the Graham Scan can also be performed

[issue5557] Byte-code compilation uses excessive memory

2009-03-24 Thread Tom Goddard
New submission from Tom Goddard : Bytecode compiling large Python files uses an unexpectedly large amount of memory. For example, compiling a file containing a list of 5 million integers uses about 2 Gbytes of memory while the Python file size is about 40 Mbytes. The memory used is 50 times

[issue5557] Byte-code compilation uses excessive memory

2009-03-25 Thread Tom Goddard
Tom Goddard added the comment: I agree that having such large Python code files is a rare circumstance and optimizing the byte-code compiler for that should be a low priority. Thanks for the cpickle suggestion. The Chimera session file Python code is mostly large nested dictionaries and

[issue6900] Sub-optimal "Locate" button behaviour in Windows CHM file

2010-05-22 Thread Tom Seddon
Tom Seddon added the comment: Yes, this new version looks to do the job! (Regarding the CSS, I'm not so sure about the serifs yet, but I'll let it sink in and see how I feel :) -- ___ Python tracker <http://bugs.python.

[issue7936] sys.argv contains only scriptname

2010-06-15 Thread Tom Zych
Tom Zych added the comment: The problem went away by itself after a while. I suspect a Windows update. -- ___ Python tracker <http://bugs.python.org/issue7

[issue9441] increase logging handlers test coverage

2010-07-31 Thread Tom Dunham
New submission from Tom Dunham : Some regression tests for logging handlers, brings coverage up from 37% to 52%. Mainly tests to rotating file handlers. -- components: Library (Lib) files: rotating_file_handlers.patch keywords: patch messages: 112171 nosy: Tom priority: normal severity

[issue9441] increase logging handlers test coverage

2010-08-01 Thread Tom Dunham
Tom Dunham added the comment: Good point, thank you. I've updated the patch. -- Added file: http://bugs.python.org/file18313/rotating_file_handlers.patch ___ Python tracker <http://bugs.python.org/i

[issue16899] Add support for C99 complex type (_Complex) as ctypes.c_complex

2017-01-21 Thread Tom Krauss
Tom Krauss added the comment: I'm trying to add support for this in cffi, which uses ctypes... apparently this is now supported in libffi (https://github.com/libffi/libffi, v3.2 Nov 2014). It would be nice if this issue could be re-opened, or another one created for the same pu

[issue29376] threading._DummyThread.__repr__ raises AssertionError

2017-01-25 Thread Tom Myers
New submission from Tom Myers: _DummyThread objects have _is_stopped = False, but _tstate_lock = None. This causes an AssertionError in is_alive and __repr__ . File ".../cp34/lib/python3.4/threading.py", line 814, in __repr__ self.is_alive() # easy way to get ._is_stoppe

[issue29602] complex() on object with __complex__ function loses sign of zero imaginary part

2017-02-19 Thread Tom Krauss
New submission from Tom Krauss: Consider the following simple class that provides a "__complex__" method. class C(object): def __init__(self, x): self.x = x def __complex__(self): return self.x x=C(-0j) PYTHON 2.7.13 >>> x.x -0j >>> complex(x) 0

[issue27564] 2.7.12 Windows Installer package broken.

2016-07-18 Thread Tom Middleton
New submission from Tom Middleton: I was running: Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. I downloaded the msi for Python 2.

[issue27564] 2.7.12 Windows Installer package broken.

2016-07-18 Thread Tom Middleton
Tom Middleton added the comment: @Steve, I think my pip install was fine? I was using pip pretty regularly with 2.7.11. I had to do a restore to get 2.7.11 working again, and after an install of 2.7.12 failed again with the same issue

[issue27564] 2.7.12 Windows Installer package broken.

2016-07-18 Thread Tom Middleton
Tom Middleton added the comment: @Zachary, I tried to uninstall (the C:\python27\ directory seemed to persist after) the install of 2.7.12 failed again same message. -- ___ Python tracker <http://bugs.python.org/issue27

[issue27564] 2.7.12 Windows Installer package broken.

2016-07-18 Thread Tom Middleton
Tom Middleton added the comment: Ok, so really bizarre. I uninstalled 2.7.11, then I was getting the same error with the 2.7.11 msi. So I was thinking that I should go back to the original version I had installed (2.7.10) the installer showed a "repair" option so I did that, then

[issue21718] sqlite3 cursor.description seems to rely on incomplete statement parsing for detection

2016-08-21 Thread Tom Tanner
Tom Tanner added the comment: will the fix be backported to 2.7? -- ___ Python tracker <http://bugs.python.org/issue21718> ___ ___ Python-bugs-list mailin

[issue6696] Profile objects should be documented

2013-04-05 Thread Tom Pinckney
Tom Pinckney added the comment: Updated based on Ezio's comments. -- Added file: http://bugs.python.org/file29683/patch3.diff ___ Python tracker <http://bugs.python.org/i

[issue6696] Profile objects should be documented

2013-04-09 Thread Tom Pinckney
Tom Pinckney added the comment: Another update based on comments. Removed links to cProfile.py and _lsof.c. -- Added file: http://bugs.python.org/file29756/patch4.diff ___ Python tracker <http://bugs.python.org/issue6

[issue6696] Profile objects should be documented

2013-04-10 Thread Tom Pinckney
Tom Pinckney added the comment: Great! Just signed the contributor agreement. On Apr 10, 2013, at 1:06 PM, Ezio Melotti wrote: > > Ezio Melotti added the comment: > > Last patch LGTM (except a couple of minor whitespace issues). > Tom, can you sign the contributor agr

[issue16309] "PYTHONPATH=" different from no PYTHONPATH at all

2013-04-12 Thread Tom Vaughan
Tom Vaughan added the comment: PATHONPATH=/tmp: will also be interpreted as "/tmp" and ".". Do the patches also address this case? PYTHONPATH=:/tmp and PYTHONPATH=/foo::/bar are also problematic. -- nosy: +tvaughan ___ P

[issue16309] "PYTHONPATH=" different from no PYTHONPATH at all

2013-04-12 Thread Tom Vaughan
Tom Vaughan added the comment: Oh wow. That is not what I remembered/assumed about sh and PATH. Mind. Blown. -- ___ Python tracker <http://bugs.python.org/issue16

[issue6696] Profile objects should be documented

2013-04-12 Thread Tom Pinckney
Tom Pinckney added the comment: Thanks everyone for helping me through my first python patch submission. -- ___ Python tracker <http://bugs.python.org/issue6

[issue21718] sqlite3 cursor.description seems to rely on incomplete statement parsing for detection

2014-10-16 Thread Tom Tanner
Tom Tanner added the comment: this patch fixes the bug. It parses the with WITH statement. -- keywords: +patch nosy: +tanner Added file: http://bugs.python.org/file36950/with.diff ___ Python tracker <http://bugs.python.org/issue21

[issue21718] sqlite3 cursor.description seems to rely on incomplete statement parsing for detection

2014-10-16 Thread Tom Tanner
Changes by Tom Tanner : Removed file: http://bugs.python.org/file36950/with.diff ___ Python tracker <http://bugs.python.org/issue21718> ___ ___ Python-bugs-list mailin

[issue21718] sqlite3 cursor.description seems to rely on incomplete statement parsing for detection

2014-10-16 Thread Tom Tanner
Changes by Tom Tanner : Added file: http://bugs.python.org/file36952/with2.diff ___ Python tracker <http://bugs.python.org/issue21718> ___ ___ Python-bugs-list mailin

[issue22668] memoryview.format is corrupted due to dangling shared pointer

2014-10-18 Thread Tom Flanagan
New submission from Tom Flanagan: When slicing or cloning a memoryview object that has been previously cast to change its format string, the new memoryview's format shares a pointer to the parent's format string, which may be deleted at any time. This manifests as a corrupt format

[issue22668] memoryview.format is corrupted due to dangling shared pointer

2014-10-18 Thread Tom Flanagan
Tom Flanagan added the comment: Fix memoryview object allocations to copy format string -- keywords: +patch Added file: http://bugs.python.org/file36966/22668patch.diff ___ Python tracker <http://bugs.python.org/issue22

[issue22767] `separators` argument to json.dumps() behaves unexpectedly across 2.x vs 3.x

2014-10-30 Thread Tom Christie
New submission from Tom Christie: This is one of those behavioural issues that is a borderline bug. The seperators argument to `json.dumps()` behaves differently across python 2 and 3. * In python 2 it should be provided as a bytestring, and can cause a UnicodeDecodeError otherwise. * In

[issue22767] `separators` argument to json.dumps() behaves unexpectedly across 2.x vs 3.x

2014-10-30 Thread Tom Christie
Tom Christie added the comment: Not too fussed if this is addressed or not, but I think this is closed a little prematurely. I don't think there's a problem under Python 3, that's entirely reasonable. However under Python 2, `json.dumps()` will normally handle *either* by

[issue22767] `separators` argument to json.dumps() behaves unexpectedly across 2.x vs 3.x

2014-10-30 Thread Tom Christie
Tom Christie added the comment: > But only if you use non-ascii in the binary input, in which case you get an > encoding error, which is a correct error. Kind of, except that this (python 2.7) works just fine: >>> data = {'snowman': '☃'} >

[issue22767] `separators` argument to json.dumps() behaves unexpectedly across 2.x vs 3.x

2014-10-30 Thread Tom Christie
Tom Christie added the comment: > So, as soon as (but only as soon as) you mix unicode with your non-ascii > data, your program blows up. Indeed. For context tho my example of running into this the unicode literals used as seperators weren't even in the same package as the non-A

[issue21718] sqlite3 cursor.description seems to rely on incomplete statement parsing for detection

2014-11-20 Thread Tom Tanner
Tom Tanner added the comment: ping I'd appreciate a review of my patch. -- ___ Python tracker <http://bugs.python.org/issue21718> ___ ___ Python-bugs-list m

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2014-11-26 Thread Tom Tanner
Tom Tanner added the comment: I confirm this fixes a bug. To reproduce it just add, e.g. X-Multline-Header: foo bar to your request. It has been fixed in Python 3 with https://github.com/python/cpython/commit/67dcb80f6e102622e4aa888930d3017fed9834de -- nosy: +tanner

[issue18290] json encoder does not support JSONP/JavaScript safe escaping

2014-12-02 Thread Tom Christie
Tom Christie added the comment: I believe the status of this should be reassessed and that python should default to escaping '\u2028' and '\u2029'. *Strictly* speaking this isn't a bug and is per the JSON spec. *However* this *is* a bug in the JSON spec - which *shoul

[issue18290] json encoder does not support JSONP/JavaScript safe escaping

2014-12-02 Thread Tom Christie
Tom Christie added the comment: > There is explicit note in the documentation about incompatibility with > JavaScript. That may be, but we're still unnecessarily making for a poorer user experience. There's no good reason why we shouldn't just treat \u2028 and \u2029 a

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2014-12-09 Thread Tom Tanner
Tom Tanner added the comment: This is actually more complicated than I initially thought. According to https://www.python.org/dev/peps/pep-/#the-start-response-callable "Each header_value must not include any control characters, including carriage returns or linefeeds, either embedd

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2014-12-10 Thread Tom Tanner
Tom Tanner added the comment: attached is the updated patch, which unfolds multiline headers but not validate them (tests included). -- Added file: http://bugs.python.org/file37409/wsgi2.diff ___ Python tracker <http://bugs.python.org/issue21

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2015-01-13 Thread Tom Tanner
Tom Tanner added the comment: ping -- ___ Python tracker <http://bugs.python.org/issue21114> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue23463] Incorrect behaviour when opening files containing colons on Windows

2015-02-14 Thread Tom Edwards
New submission from Tom Edwards: Consider this script: f = open("bug>test.txt",'w') f.write("hello") f.close() On Windows the first line will throw an OSError exception because the character '>' is not valid in an NTFS filename. This is

[issue23463] Incorrect behaviour when opening files containing colons on Windows

2015-02-14 Thread Tom Edwards
Tom Edwards added the comment: Ha! What a feature. Thanks for the link. Maybe I'm rehashing old arguments, but I still think that Python's behaviour in this case is wrong. This is very surprising behaviour to anyone who isn't intimately familiar with NTFS and should not be so

[issue10685] trace does not ignore --ignore-module

2015-05-26 Thread Tom Hines
Tom Hines added the comment: Test attached. Paste into test/test_trace.py. I tested in 2.7 and 3.4. Feel free to modify it. -- Added file: http://bugs.python.org/file39503/test_ignoredir.py ___ Python tracker <http://bugs.python.org/issue10

[issue24823] ctypes.create_string_buffer does not add NUL if len(init) == size

2015-08-07 Thread Tom Pohl
New submission from Tom Pohl: >From the ctypes.create_string_buffer docs: """If a bytes object is specified as first argument, the buffer is made one item larger than its length so that the last element in the array is a NUL termination character. An integer can be passed

[issue24823] ctypes.create_string_buffer does not add NUL if len(init) == size

2015-08-07 Thread Tom Pohl
Tom Pohl added the comment: I agree: not every buffer is null-terminated. But the function name suggests that it creates a _string_ buffer which will most likely be used as an input to a C function. There, it can easily trigger a buffer overflow without a null termination which can be

[issue24823] ctypes.create_string_buffer does not add NUL if len(init) == size

2015-08-07 Thread Tom Pohl
Tom Pohl added the comment: If one needs to set a general buffer (i.e. not a null-terminated string buffer) one could always use: >>> string = (ctypes.c_char*4)() >>> string.raw = b'abcd' -- ___ Python tracker <ht

[issue25559] signal.siginterrupt description has typo

2015-11-05 Thread Tom Meagher
New submission from Tom Meagher: "if flag is False, system calls will be restarted when interrupted by signal signalnum, otherwise system calls will be interrupted." This sentence doesn't make any sense as written. I assume there should be a "not" in there some

[issue16198] IDLE - tabbing in a string always brings up file completion window

2015-11-24 Thread Tom F
Tom F added the comment: I've found this to be annoying as well especially in docstrings, hopefully this will help in the meantime. If you SHIFT + Tab it will at least resolve the problem of bringing up files and remains as the usual tab function. It makes me wonder if it is a bug a

[issue15858] tarfile missing entries due to omitted uid/gid fields

2015-12-08 Thread Tom Lynn
Tom Lynn added the comment: I think issue24514 (fixed in Py2.7.11) is a duplicate of this issue. -- ___ Python tracker <http://bugs.python.org/issue15858> ___ ___

[issue26084] HTMLParser mishandles last attribute in self-closing tag

2016-01-11 Thread Tom Anderl
New submission from Tom Anderl: When the HTMLParser encounters a start tag element that includes: 1. an unquoted attribute as the final attribute 2. an optional '/' character marking the start tag as self-closing 3. no space between the final attribute and the '/&

[issue26183] 2.7.11 won't clean install on Windows 10 x64

2016-01-27 Thread Tom Parker
Tom Parker added the comment: FYI, I ran into this same issue, I believe this was caused by my selecting Python tools when installing Visual Studio 2015 Community edition. But I removed it and the issued didn't go away. Then I deleted some empty python registry keys and voila the inst

[issue26183] 2.7.11 won't clean install on Windows 10 x64

2016-01-27 Thread Tom Parker
Tom Parker added the comment: Ah OK :) I had done a W10 reset to wipe my PC before reinstalling VS so I could't imagine where else the python registry keys could have come from. My install sequence was: SQL Server 2012 Developer Visual Studio 2015 Community Edition Office 365 Inkscape -

<    1   2   3   4   5   >