[issue19482] _pickle build warnings on Fedora 19

2014-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: They all look as false positive. For example: if (_Unpickler_Read(self, &pdata, size) < 0) return -1; value = _PyLong_FromByteArray((unsigned char *)pdata, (size_t)size, 1 /* little endian */ ,

[issue22515] Implement partial order on Counter

2014-10-03 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: I mentioned my wording for the comment about lesser than partial ordering using the code review tool. In the attached patch(based on issue22515.stoneleaf.patch.01), I have added test for the case when the other object is not a mapping. I have also tried t

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-10-03 Thread Matej Cepl
Matej Cepl added the comment: ping? Could I ask for a review of the refreshed patch, please? -- ___ Python tracker ___ ___ Python-bugs

[issue22552] ctypes.CDLL returns singleton objects, resulting in usage conflicts

2014-10-03 Thread Ned Deily
Changes by Ned Deily : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19796] urllib2.HTTPError.reason is not documented as "Added in 2.7"

2014-10-03 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22552] ctypes.CDLL returns singleton objects, resulting in usage conflicts

2014-10-03 Thread eryksun
eryksun added the comment: The ctypes global LibraryLoader instances are convenient for Windows scripts and applications. Actually what they cache is the library (a CDLL instance), which in turn caches function pointers. Python packages, on the other hand, shouldn't use these particular loade

[issue22194] access to cdecimal / libmpdec API

2014-10-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'd like to focus this issue a bit. Antoine originally proposed that non-Python code might want to access libmpdec. However, given that this is now a separate project (as it seems), I don't think it's Python's task to make the API available. If it is a separa

[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2014-10-03 Thread eryksun
eryksun added the comment: When sizeof(c_wchar) == 2, it can just count the number of non-BMP ordinals in the string. Another approach would be to use size = pythonapi.PyUnicode_AsWideChar(init, None, 0), but then the whole function may as well be implemented in the _ctypes extension module.

[issue22552] ctypes.CDLL returns singleton objects, resulting in usage conflicts

2014-10-03 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: Another possible solution is to prohibit settings attributes of vanilla _FuncPtr objects, requiring a library to make a private copy to be able to do that. -- ___ Python tracker __

[issue22552] ctypes.CDLL returns singleton objects, resulting in usage conflicts

2014-10-03 Thread Ivan Pozdeev
Changes by Ivan Pozdeev : -- title: ctypes.LibraryLoader returns singleton objects, resulting in usage conflicts -> ctypes.CDLL returns singleton objects, resulting in usage conflicts ___ Python tracker __

[issue22552] ctypes.LibraryLoader returns singleton objects, resulting in usage conflicts

2014-10-03 Thread Ivan Pozdeev
Changes by Ivan Pozdeev : -- keywords: +patch Added file: http://bugs.python.org/file36795/cdll_dont_cache.patch ___ Python tracker ___ __

[issue22552] ctypes.LibraryLoader returns singleton objects, resulting in usage conflicts

2014-10-03 Thread Ivan Pozdeev
New submission from Ivan Pozdeev: a LibraryLoader returns the same _FuncPtr object for a given function every time. This way, if two libraries set its attributes (most possibly, `argtypes') to incompatible values (both representing the same C-level entities), one of them will stop working. I'

[issue13378] ET: add custom namespaces to serialization methods

2014-10-03 Thread R. David Murray
R. David Murray added the comment: This patch no longer applies to the tip of default. Whoever updates it should also address Eli's comment about expanding the register_namespace doc. I'm adding the 'easy' tag because Florent already did the hard work, and at this point it is just a patch up

[issue19796] urllib2.HTTPError.reason is not documented as "Added in 2.7"

2014-10-03 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2014-10-03 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue11501] distutils.archive_util should handle absence of zlib module

2014-10-03 Thread R. David Murray
R. David Murray added the comment: If this is still wanted for python2, someone should create a 2.7 specific patch. -- keywords: +easy nosy: +r.david.murray stage: commit review -> needs patch type: crash -> behavior versions: -Python 3.1, Python 3.2, Python 3.3 ___

[issue14056] Misc doc changes for tarfile

2014-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 378f3d237ac2 by R David Murray in branch '2.7': #14056: Small improvements to the tarfile documentation. https://hg.python.org/cpython/rev/378f3d237ac2 -- ___ Python tracker

[issue14056] Misc doc changes for tarfile

2014-10-03 Thread R. David Murray
R. David Murray added the comment: Committed Éric's patch. -- nosy: +r.david.murray resolution: -> fixed stage: commit review -> resolved status: open -> closed versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker

[issue18216] gettext doesn't check MO versions

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Jakub does this apply to all Python versions and OSes? -- nosy: +BreamoreBoy, loewis ___ Python tracker ___

[issue18119] urllib.FancyURLopener does not treat URL fragments correctly

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: Slipped under the radar? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue18131] Tkinter Variables require a proper master

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: Just a gentle reminder. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ __

[issue18043] No mention of `match.regs` in `re` documentation

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Ram Rachum can you provide a patch for this? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python

[issue18060] Updating _fields_ of a derived struct type yields a bad cif

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: A one line change is given in msg189992 so is this correct or isn't it? -- nosy: +BreamoreBoy, amaury.forgeotdarc, belopolsky, meador.inge versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker

[issue14056] Misc doc changes for tarfile

2014-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a486b673b57f by R David Murray in branch '3.4': #14056: Small improvements to the tarfile documentation. https://hg.python.org/cpython/rev/a486b673b57f New changeset ab8282b2 by R David Murray in branch 'default': Merge: #14056: Small improvemen

[issue11491] dbm.open(..., flag="n") raises dbm.error if file exists and is rejected by whichdb

2014-10-03 Thread R. David Murray
R. David Murray added the comment: Given that this has some backward compatibility implications (files getting overwritten that previously wouldn't have been), I think we should just leave 2.7 alone, so I'm closing this. -- nosy: +r.david.murray resolution: -> fixed stage: commit revi

[issue22515] Implement partial order on Counter

2014-10-03 Thread Ethan Furman
Ethan Furman added the comment: New patch attached. -- Added file: http://bugs.python.org/file36794/issue22515.stoneleaf.patch.01 ___ Python tracker ___ _

[issue19895] Cryptic error when subclassing multiprocessing classes

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Richard have you had any thoughts about this? -- nosy: +BreamoreBoy versions: +Python 3.5 ___ Python tracker ___ ___

[issue19695] Clarify how to use various import-related locks

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: Has there been any discussion regarding this elsewhere or is this as far as we've got? -- nosy: +BreamoreBoy ___ Python tracker ___

[issue19119] duplicate test name in Lib/test/test_heapq.py

2014-10-03 Thread Ben Roberts
Ben Roberts added the comment: That is one approach, of course, but imo pretty incomplete. A test that is named "test_get_only" presumably would be expected to test __getitem__, not __cmp__. Confusingly there is still a GetOnly item declared in the module, but it is not used. Compare to tes

[issue17518] urllib2 cannnot handle https and BasicAuth via Proxy.

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: Slipped under the radar? Note the patch suggested in msg184958. -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue7291] urllib2 cannot handle https with proxy requiring auth

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: Is there any work still needed here? Surely the 2.6.x patches can't be applied unless there are security issues? -- nosy: +BreamoreBoy ___ Python tracker __

[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: I can confirm that this problem still exists so can someone take a look please, thanks. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker _

[issue19745] TEST_DATA_DIR for out-of-tree builds

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: Can someone answer Christian's question please. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ __

[issue22515] Implement partial order on Counter

2014-10-03 Thread Ram Rachum
Ram Rachum added the comment: Yes, correct. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22515] Implement partial order on Counter

2014-10-03 Thread Ethan Furman
Changes by Ethan Furman : -- stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22515] Implement partial order on Counter

2014-10-03 Thread Ethan Furman
Ethan Furman added the comment: I am not a mathematician -- feel free to include the answer with your hints. ;) If my analogy is correct, this situation is similar to {1} < {1, 2} Which is True. Can someone verify that I am correct? -- ___ Pyth

[issue22515] Implement partial order on Counter

2014-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Counter(a=1) < Counter(a=1, b=1) Do an analogy with sets and the answer will be obvious. -- ___ Python tracker ___

[issue22515] Implement partial order on Counter

2014-10-03 Thread Ethan Furman
Ethan Furman added the comment: In going through the tests I have found an edge-case that I am unsure of how to handle: Counter(a=1) < Counter(a=1, b=1) On the one hand, they both have the same value for 'a'; on the other hand, the second counter has more elements... So should the result b

[issue19119] duplicate test name in Lib/test/test_heapq.py

2014-10-03 Thread Berker Peksag
Berker Peksag added the comment: In the 2.7 branch, the test was removed in issue 7871 (changeset https://hg.python.org/cpython/rev/0130e574f5be). -- components: +Tests -Library (Lib) nosy: +berker.peksag ___ Python tracker

[issue19725] Richer stat object

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Philip could you provide a reference to (say) discussions on python-dev for lesser mortals such as myself? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue19796] urllib2.HTTPError.reason is not documented as "Added in 2.7"

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: The patch just adds the version added tag to urllib2.rst. Can someone commit this please. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue19511] lib2to3 Grammar file is no longer a Python 3 superset

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: Anybody volunteering but please don't look at me :) -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ __

[issue19482] _pickle build warnings on Fedora 19

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: Still a problem or out of date? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mai

[issue19476] Add a dedicated specification for module "reloading" to the language reference

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: Just a gentle prod in the ribs guys. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ _

[issue8110] subprocess.py doesn't correctly detect Windows machines

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: Just to note that this is referenced from #19453 pydoc and ironpython. -- ___ Python tracker ___ ___ P

[issue19453] pydoc.py doesn't detect IronPython, help(foo) can hang

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: There's a two line patch inline in msg201750. If it's acceptable I'll do a formal patch myself unless someone else wants to pick this up. -- nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue22515] Implement partial order on Counter

2014-10-03 Thread Ethan Furman
Ethan Furman added the comment: Testing the patch... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue22551] Anything results in a SyntaxError after -u on 2.7.8 on Windows 7

2014-10-03 Thread Taylor Marks
Taylor Marks added the comment: I found someone else describing the same behavior in 2.4 here, I guess the conclusion is it isn't a bug: http://bytes.com/topic/python/answers/162599-windows-python-2-4-unbuffered-flag-causes-syntaxerror-interactive-sessions -- resolution: -> not a bug

[issue22449] SSLContext.load_verify_locations behavior on Windows and OSX

2014-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9c52836aec8 by Benjamin Peterson in branch '2.7': also use openssl envvars to find certs on windows (closes #22449) https://hg.python.org/cpython/rev/d9c52836aec8 New changeset e1f453e13f8d by Benjamin Peterson in branch '3.4': also use openssl env

[issue22551] Anything results in a SyntaxError after -u on 2.7.8 on Windows 7

2014-10-03 Thread Taylor Marks
Taylor Marks added the comment: Sorry for multiple consecutive posts... I don't see a way to edit prior posts. The stack trace I posted in my first message has the arrow in the wrong spot. It should actually be pointing to the first space after the closing brace. Here's a simpler (and correct)

[issue22551] Anything results in a SyntaxError after -u on 2.7.8 on Windows 7

2014-10-03 Thread Taylor Marks
Taylor Marks added the comment: I checked a few other combinations of flags: -i -c works fine. -u has the same issue as described in my opening message. This occurs in both cmd and PowerShell, running as admin. -- title: Anything results in a SyntaxError after -i -u -c on 2.7.8 on Wind

[issue22550] issubclass can fail after module reloading

2014-10-03 Thread Yury Selivanov
Yury Selivanov added the comment: I don't think it a bug or that it's possible to do something about it. Reloading modules in Python should usually be just avoided by all means. -- nosy: +brett.cannon, yselivanov ___ Python tracker

[issue22549] bug in accessing bytes, inconsistent with normal strings and python 2.7

2014-10-03 Thread Kevin Hendricks
Kevin Hendricks added the comment: Thanks for letting me know this was expected behaviour. I see the same "issue" holds true while using: for c in b'0123456789': print(ord(c)) I ended up using slices nearly everyplace. Still ran into iterator issues. Horrible hack really. I think I

[issue22526] file iteration SystemError for huge lines (2GiB+)

2014-10-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: How much memory does that whatever is running that test have? On Fri, Oct 3, 2014, at 17:17, Matthias Klose wrote: > > Matthias Klose added the comment: > > maybe, but then you should skip the test, or expect at least a > MemoryError. > > -- > > _

[issue22526] file iteration SystemError for huge lines (2GiB+)

2014-10-03 Thread Matthias Klose
Matthias Klose added the comment: maybe, but then you should skip the test, or expect at least a MemoryError. -- ___ Python tracker ___ __

[issue19472] inspect.getsource() raises a wrong exception type

2014-10-03 Thread Yury Selivanov
Yury Selivanov added the comment: > @Yury do you agree with this? I think it's a perfectly normal behaviour. OSError is raised for valid kind of objects, and TypeError is raised when you're passing something weird. That's a pretty common practice is Python. -- ___

[issue19472] inspect.getsource() raises a wrong exception type

2014-10-03 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue22547] Implement an informative `BoundArguments.__repr__`

2014-10-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: .arguments returns a mutable (ordered) dict that can be modified. See the example in the doc https://docs.python.org/3.4/library/inspect.html#inspect.BoundArguments -- ___ Python tracker

[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows

2014-10-03 Thread Steve Dower
Steve Dower added the comment: As much as I like the idea of using OS handles everywhere, the compatibility issues are probably too significant, and you can't mix CRT methods with OS methods because the CRT does its own buffering. Of course, you can open a file with the Win32 API and immediate

[issue22547] Implement an informative `BoundArguments.__repr__`

2014-10-03 Thread Yury Selivanov
Yury Selivanov added the comment: > Another thing I proposed in python-ideas is to have `__getitem__` delegate to > `.arguments`, so this proposal is similar in spirit, because I want to have > `__repr__` show information from `.arguments`. Big -1 on __getitem__ > To be honest I don't see the

[issue18903] IDLE file-completion is case-sensitive in Windows

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Terry can you comment on Westley's patch please. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker ___

[issue22547] Implement an informative `BoundArguments.__repr__`

2014-10-03 Thread Ram Rachum
Ram Rachum added the comment: Another thing I proposed in python-ideas is to have `__getitem__` delegate to `.arguments`, so this proposal is similar in spirit, because I want to have `__repr__` show information from `.arguments`. To be honest I don't see the point in having to access `.argume

[issue22547] Implement an informative `BoundArguments.__repr__`

2014-10-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Context: inspect.signature returns an inspect.Signature instance. Its .bind and .bind_partial methods return ab inspect.BoundArguments instance with a standard <...@ 0x...> representation. >>> import inspect >>> def foo(a, b=10): pass >>> ba = inspect.signatu

[issue22449] SSLContext.load_verify_locations behavior on Windows and OSX

2014-10-03 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch also adds a test -- I'm not convinced this is the best way to test this, but I don't see any other way either. -- Added file: http://bugs.python.org/file36793/issue22449.diff ___ Python tracker

[issue22515] Implement partial order on Counter

2014-10-03 Thread Ram Rachum
Ram Rachum added the comment: Fixed patch attached. Still needs someone to run it and see whether there are any bugs. -- Added file: http://bugs.python.org/file36792/patch2.patch ___ Python tracker ___

[issue22551] Anything results in a SyntaxError after -i -u -c on 2.7.8 on Windows 7

2014-10-03 Thread Taylor Marks
New submission from Taylor Marks: On Python 2.7.8, on Windows 7, if I start up the Python interactive console using the flags -i -u -c, nothing else will be considered valid syntax from that point forward. My understanding is: -i tells Python to enter interactive mode after it's done running

[issue19119] duplicate test name in Lib/test/test_heapq.py

2014-10-03 Thread Ben Roberts
Ben Roberts added the comment: Any thoughts/reviews on the patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: This is one of several Windows file related issues, see also #12939, #21859, #15244 and possibly others. How can we take this forward? If it's of any use I can help with testing as I've a new Windows 8.1 HP laptop with 8G of memory. -- nosy: +BreamoreB

[issue16700] Document that bytes OS API can returns unusable results on Windows

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: As #13247 has been closed "not a bug" and #16656 "won't fix" shouldn't this be done sooner rather than later? -- nosy: +BreamoreBoy ___ Python tracker _

[issue22526] file iteration SystemError for huge lines (2GiB+)

2014-10-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: For insufficient memory not an incorrect fix, though? -- nosy: +benjamin.peterson ___ Python tracker ___

[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows

2014-10-03 Thread Mark Lawrence
Mark Lawrence added the comment: How do we take this forward, also considering #12939, #21859 and #14243 and possibly others? -- nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue22546] Wrong default precision in documentation for format

2014-10-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: "The precision is a decimal number indicating how many digits should be displayed ... before and after the decimal point for a floating point value formatted with 'g' or 'G'. It seems that str, repr, and '' are using precision 16, and the doc should be changed

[issue22526] file iteration SystemError for huge lines (2GiB+)

2014-10-03 Thread Matthias Klose
Matthias Klose added the comment: no, it doesn't. at least when testing the installed python installation, it just fails: https://jenkins.qa.ubuntu.com/job/utopic-adt-python2.7/39/? -- nosy: +doko resolution: fixed -> status: closed -> open ___ Pyt

[issue16066] Truncated POST data in CGI script on Windows 7

2014-10-03 Thread Eyal Gruss
Eyal Gruss added the comment: i can confirm on win 7 and python 3.4.1 -- nosy: +Eyal.Gruss ___ Python tracker ___ ___ Python-bugs-list

[issue22550] issubclass can fail after module reloading

2014-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: How would Decimal know that someone has swapped the decimal module in sys.modules? -- ___ Python tracker ___ __

[issue22549] bug in accessing bytes, inconsistent with normal strings and python 2.7

2014-10-03 Thread R. David Murray
R. David Murray added the comment: Agreed, but that is a design decision that was taken long ago (regretted by more than a few but defended by others). You can find a number of discussions of this by searching the python-dev archives, including some more recent discussions on possibilities fo

[issue22550] issubclass can fail after module reloading

2014-10-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22550] issubclass can fail after module reloading

2014-10-03 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Inspired by test failure in issue22540. This is still looks as a bug to me: >>> import sys, decimal, numbers >>> issubclass(decimal.Decimal, numbers.Number) True >>> del sys.modules['numbers'] >>> import numbers >>> issubclass(decimal.Decimal, numbers.Number

[issue22445] Memoryviews require more strict contiguous checks then necessary

2014-10-03 Thread Stefan Krah
Stefan Krah added the comment: Okay, the whole thing isn't that urgent either. Sorry for the confusion w.r.t slicing: I misremembered what the latest numpy version did: a) >>> x = np.array([[1,2,3,]]) >>> x.strides (9223372036854775807, 8) b) >>> x = np.array([[1,2,3], [4,5,6]

[issue22548] Bogus parsing of negative zeros in complex literals

2014-10-03 Thread Mark Dickinson
Mark Dickinson added the comment: > It doesn't cover the "sum with like signs" Ah, sorry, yes it does; it's in the previous paragraph. """ [...] the sign of a sum, or of a difference x−y regarded as a sum x+(−y), differs from at most one of the addends’ signs """ --

[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

2014-10-03 Thread Mark Dickinson
Mark Dickinson added the comment: > How did you detect a leak Mark? Um. It was four years ago. I have no idea. :-) I suspect I was just looking at the C code and being my usual nasty suspicious self. -- ___ Python tracker

[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

2014-10-03 Thread Mark Dickinson
Mark Dickinson added the comment: Whoops; make that two years ago, not four. The rest stands, though. -- ___ Python tracker ___ ___ Py

[issue15108] ERROR: SystemError: ./../Objects/tupleobject.c:118: bad argument to internal function

2014-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: What is tracd doing? This issue should only appear when calling one of the debugging functions in the gc module, AFAICT. -- ___ Python tracker

[issue22548] Bogus parsing of negative zeros in complex literals

2014-10-03 Thread Mark Dickinson
Mark Dickinson added the comment: > Oops, I get it now. Okay. :-) Just for the record, for anyone encountering this issue in the future, here's the relevant extract from section 6.3 of IEEE 754-2008: """ When the sum of two operands with opposite signs (or the difference of two operands with

[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

2014-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: How did you detect a leak Mark? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue22548] Bogus parsing of negative zeros in complex literals

2014-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, the last part is ok. It's the preceding parts that are a bit surprising. -- ___ Python tracker ___

[issue22548] Bogus parsing of negative zeros in complex literals

2014-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops, I get it now. Sorry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22548] Bogus parsing of negative zeros in complex literals

2014-10-03 Thread Mark Dickinson
Mark Dickinson added the comment: Nope, no float issue here. :-) Which part of the output do you think is wrong? Your last (z - z) is doing ((-0.0) - (-0.0)), not (-0.0 - 0.0). This is all following the IEEE 754 rules. -- ___ Python tracker

[issue22545] incomplete complex repr() with negative zeroes

2014-10-03 Thread Mark Dickinson
Mark Dickinson added the comment: Ah yes, that would make sense. I vaguely remember fixing this between Python 2.6 and Python 2.7. -- ___ Python tracker ___ ___

[issue22548] Bogus parsing of negative zeros in complex literals

2014-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: FTR, a similar issue with regular floats: >>> -0.0-0.0 -0.0 >>> (-0.0)-0.0 -0.0 >>> z = -0.0 >>> z - z 0.0 -- ___ Python tracker ___ __

[issue22545] incomplete complex repr() with negative zeroes

2014-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, I realize it's not even Anaconda. I was just using a 2.6 interpreter, which apparently had a differently complex repr(). -- ___ Python tracker __

[issue22549] bug in accessing bytes, inconsistent with normal strings and python 2.7

2014-10-03 Thread Kevin Hendricks
New submission from Kevin Hendricks: Hi, I am working on porting my ebook code from Python 2.7 to work with both Python 2.7 and Python 3.4 and have found the following inconsistency I think is a bug ... KevinsiMac:~ kbhend$ python3 Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 00:54:21) [G

[issue22548] Bogus parsing of negative zeros in complex literals

2014-10-03 Thread Mark Dickinson
Mark Dickinson added the comment: P.S. The C standardisation folks tried to introduce the Imaginary type (optional for a conforming implementation) to get around exactly this type of problem, but it doesn't seem to have caught on in most mainstream compilers. -- _

[issue22548] Bogus parsing of negative zeros in complex literals

2014-10-03 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry; that should be: complex(-0.0, 0.0) - complex(0.0, 0.0) The imaginary part is then worked out as (0.0 - 0.0), which (in all rounding modes but round-towards-negative) is 0.0. -- ___ Python tracker

[issue22548] Bogus parsing of negative zeros in complex literals

2014-10-03 Thread Mark Dickinson
Mark Dickinson added the comment: This is not a bug, but a known and difficult-to-avoid issue with signed zeros and creating complex numbers from real and imaginary parts. The safe way to do it is to use the `complex(real_part, imag_part)` construction. In the first example, you're subtractin

[issue15108] ERROR: SystemError: ./../Objects/tupleobject.c:118: bad argument to internal function

2014-10-03 Thread lkraav
lkraav added the comment: I may be seeing this running tracd-1.1.2b1 on python 2.7.7 http://trac.edgewall.org/ticket/11772 -- versions: +Python 2.7 ___ Python tracker ___ __

[issue22548] Bogus parsing of negative zeros in complex literals

2014-10-03 Thread Antoine Pitrou
New submission from Antoine Pitrou: This may be a parser limitation... >>> z = -0.-0.j >>> z (-0+0j) >>> z.imag 0.0 >>> z = 0.-0.j >>> z.imag 0.0 -- components: Interpreter Core messages: 228343 nosy: benjamin.peterson, mark.dickinson, pitrou priority: low severity: normal status: open

[issue15108] ERROR: SystemError: ./../Objects/tupleobject.c:118: bad argument to internal function

2014-10-03 Thread lkraav
Changes by lkraav : -- nosy: +lkraav ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue22545] incomplete complex repr() with negative zeroes

2014-10-03 Thread Mark Dickinson
Mark Dickinson added the comment: Out of interest, what caused Anaconda to behave differently? Is there some fragility that needs fixing in the Python core code? -- ___ Python tracker

[issue21831] integer overflow in 'buffer' type allows reading memory

2014-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5ef28c22dc24 by doko in branch '2.7': - Add CVE number for Issue #21831 https://hg.python.org/cpython/rev/5ef28c22dc24 -- ___ Python tracker __

  1   2   >