[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2014-04-28 Thread akira
akira added the comment: Antoine, thank you for reviewing. I appreciate the patience. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-28 Thread Stefan Krah
Stefan Krah added the comment: The order of the nelem/elsize matters for readability. Otherwise it is not intuitive what happens after the jump to redirect in _PyObject_Alloc(). Why would you assert that 'nelem' is one? -- ___ Python tracker

[issue20355] -W command line options should have higher priority than PYTHONWARNINGS environmental variable

2014-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 78c0d80a04f9 by Antoine Pitrou in branch 'default': Issue #20355: -W command line options now have higher priority than the PYTHONWARNINGS environment variable. Patch by Arfrever. http://hg.python.org/cpython/rev/78c0d80a04f9 New changeset 925c0b6

[issue20355] -W command line options should have higher priority than PYTHONWARNINGS environmental variable

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed. Thanks, Arfrever! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue20361] -W command line options and PYTHONWARNINGS environmental variable should not override -b / -bb command line options

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch is a bit problematic, because Py_BytesWarningFlag may also be set by e.g. an application embedding Python, but then Python's main.c won't be executed. -- ___ Python tracker

[issue21137] Better repr for threading.Lock()

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The repr of threading._RLock contains owner and count, but not > lock/unlock status. The repr of locks from _dummy_thread also should > contain lock/unlock status. And it would be nice to have the > open/closed status in the repr of other synchronization primit

[issue10203] sqlite3.Row doesn't support sequence protocol

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Issue #13583 ("sqlite3.Row doesn't support slice indexes") is partly related. -- nosy: +jesstess, pitrou ___ Python tracker ___

[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2014-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6ab3193e890e by Antoine Pitrou in branch '3.4': Issue #9815: assertRaises now tries to clear references to local variables in the exception's traceback. http://hg.python.org/cpython/rev/6ab3193e890e New changeset 553fe27521be by Antoine Pitrou in b

[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed an alternate patch using traceback.clear_frames(). -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker _

[issue1615158] POSIX capabilities support

2014-04-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue7105] weak dict iterators are fragile because of unpredictable GC runs

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Since this is backported, shouldn't it be closed? -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-28 Thread Nathaniel Smith
Nathaniel Smith added the comment: > It would be interesting to see some NumPy benchmarks (Nathaniel?). What is it you want to see? NumPy already uses calloc; we benchmarked it when we added it and it made a huge difference to various realistic workloads :-). What NumPy gets out of this isn't

[issue9307] Py_TPFLAGS_LONG_SUBCLASS is not documented

2014-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 37786ae8cc1c by Antoine Pitrou in branch '3.4': Issue #9307: document the various Py_TPFLAGS_*_SUBCLASS flags. Patch by Yury V. Zaytsev. http://hg.python.org/cpython/rev/37786ae8cc1c New changeset d1a03834cec7 by Antoine Pitrou in branch 'default'

[issue9307] Py_TPFLAGS_LONG_SUBCLASS is not documented

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is committed, thank you. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed versions: +Python 3.4 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue20064] PyObject_Malloc is not documented

2014-04-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue18616] enable more ssl socket options with get_server_certificate

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: To be frank, it's quite easy to open the connection and read the cert yourself, so I don't think complicating this API is very useful. Still, I'm leaving this open so that other developers can chime in. -- nosy: +christian.heimes, dstufft, giampaolo.rod

[issue18400] Minor increase to Pickle test coverage

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why only test the _Pickler class and not both the Python and C versions? -- nosy: +pitrou ___ Python tracker ___ ___

[issue19767] pathlib: iterfiles() and iterdirs()

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Having an `iterdirs()` method next to `iterdir()` is very confusing. We should find something else, so how about `files()` and `subdirs()`? -- nosy: +pitrou ___ Python tracker

[issue19420] Leak in _hashopenssl.c

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: 3.3 is in security mode now, so this can be closed IMO. -- nosy: +pitrou resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.4 -Python 3.3 ___ Python tracker

[issue13248] deprecated in 3.2/3.3, should be removed in 3.4

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Apparently we missed some of the stuff here. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18564] Integer overflow in socketmodule

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Michele, do you plan to update this patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue18727] test for writing dictionary rows to CSV

2014-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2502843dbedf by Antoine Pitrou in branch 'default': Issue #18727: improve test coverage of the csv module by testing for DictWriter.writerows. http://hg.python.org/cpython/rev/2502843dbedf -- nosy: +python-dev _

[issue18727] test for writing dictionary rows to CSV

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hi Muhammad, Sorry, I had forgotten about this issue. I have now committed the patch to 3.5. Thanks for your contribution! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.5 -Python 3.4 ___

[issue15088] PyGen_NeedsFinalizing is public, but undocumented

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, PyGen_NeedsFinalizing still exists but it isn't used anymore in the code base (following PEP 442). -- nosy: +pitrou ___ Python tracker

[issue13248] deprecated in 3.2/3.3, should be removed in 3.4

2014-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2cceb8cb552b by Giampaolo Rodola' in branch 'default': fix isuse #13248: remove previously deprecated asyncore.dispatcher __getattr__ cheap inheritance hack. http://hg.python.org/cpython/rev/2cceb8cb552b --

[issue10872] Add mode to TextIOWrapper repr

2014-04-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue21381] python build crash on Mavericht

2014-04-28 Thread Christian Tismer
New submission from Christian Tismer: Building python on OSX Mavericks (10.9) of Python 3.4 crashes when this is set: MACOSX_DEPLOYMENT_TARGET=10.7 This happens with OSX 10.9.2, all current updates installed, as of 2014-04-28. Demo script: You can use my attached script to validate this error.

[issue21381] python build crash on Mavericht

2014-04-28 Thread Ned Deily
Ned Deily added the comment: In general, we don't test or claim to support building for a deployment target lower than the system being built on. It's always safer to build on the same version as the deployment target. I'll take a look at it, though. -- nosy: +ned.deily

[issue21381] python build crash on Mavericht

2014-04-28 Thread Christian Tismer
Christian Tismer added the comment: Ned: """In general, we don't test or claim to support building for a deployment target lower than the system being built on.""" This is not convincing, because the cpython builds are always against <$ MACOSX_DEPLOYMENT_TARGET=10.6> . Other builds use the cur

[issue9253] argparse: optional subparsers

2014-04-28 Thread paul j3
paul j3 added the comment: Another Stackoverflow question triggered by this issue http://stackoverflow.com/questions/23349349/argparse-with-required-subparser -- ___ Python tracker _

[issue20951] SSLSocket.send() returns 0 for non-blocking socket

2014-04-28 Thread Nikolaus Rath
Changes by Nikolaus Rath : Added file: http://bugs.python.org/file35082/issue20951_r3.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

2014-04-28 Thread Nikolaus Rath
Changes by Nikolaus Rath : Added file: http://bugs.python.org/file35083/issue_21057_r3.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue21380] timezone support in strftime methods broken

2014-04-28 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : -- nosy: +sahutd ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21377] PyBytes_Concat could try to concat in-place

2014-04-28 Thread Nikolaus Rath
Nikolaus Rath added the comment: Tentative patch attached. The test suite still passes, but I'm not sure if it actually exerts the new code path. Is there a standard way to test the C api? -- keywords: +patch Added file: http://bugs.python.org/file35084/issue_21377.diff ___

[issue18314] Have os.unlink remove junction points

2014-04-28 Thread Kim Gräsman
Kim Gräsman added the comment: Aha, that might cause trouble. I think you should add a memset() to sero out the newly allocated buffer also, I think I may have used calloc to be able to assume it was initialized with zeros. -- ___ Python tracker <

[issue21377] PyBytes_Concat could try to concat in-place

2014-04-28 Thread Nikolaus Rath
Changes by Nikolaus Rath : Added file: http://bugs.python.org/file35085/issue_21377_r2.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue18314] Have os.unlink remove junction points

2014-04-28 Thread Kim Gräsman
Kim Gräsman added the comment: Sorry, that wasn't clear. I mean if you change allocator _from_ calloc, make sure the buffer is zeroed out after allocation. -- ___ Python tracker ___

[issue21026] Document sitecustomize.py problems with pythonw

2014-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 79a4560a702f by Terry Jan Reedy in branch '2.7': Closes #21026: Augment site doc based on experiments. Patch by Carol Willing. http://hg.python.org/cpython/rev/79a4560a702f New changeset 3fef95842314 by Terry Jan Reedy in branch '3.4': Issue #21026:

[issue21352] improve documentation indexing

2014-04-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue21048] Index 'as' in import and with statements

2014-04-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I forgot the # in commit message. Changeset: 90501 (9a0fc12991e2) Closes 21048: Index 'as' in import and with statements. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tr

[issue21055] Index (augmented) assignment symbols

2014-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset d32b6900da6f by Terry Jan Reedy in branch '2.7': Closes #21055: Index (augmented) assignment symbols. http://hg.python.org/cpython/rev/d32b6900da6f New changeset 0b946c8d7837 by Terry Jan Reedy in branch '3.4': Issue #21055: Index (augmented) assign

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2014-04-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Is accessing _fields a common operation? Not common at all -- it is used for introspection. That said, there is nearly zero savings from generating the tuple upon look-up. I would say that using a PyGetSetDef is a false optimization. -- ___

[issue21054] Improve indexing of syntax symbols

2014-04-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +Derby: Convert the _sre module to use Argument Clinic, Index (augmented) assignment symbols ___ Python tracker ___

[issue21054] Improve indexing of syntax symbols

2014-04-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +Index 'as' in import and with statements -Derby: Convert the _sre module to use Argument Clinic ___ Python tracker ___

[issue17861] put opcode information in one place

2014-04-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: It would be possible to have the daily DMG builder run "make touch". -- ___ Python tracker ___ ___

[issue21305] PEP 466: update os.urandom

2014-04-28 Thread STINNER Victor
STINNER Victor added the comment: Le 29 avr. 2014 00:22, "Donald Stufft" a écrit : > Well except random.SystemRandom doesn't keep the file open (At least in 2.7) and actually it just calls os.urandom under the covers, also it doesn't make it very nice to get a glob of random bytes. Yes, I'm pro

[issue18314] Have os.unlink remove junction points

2014-04-28 Thread Kim Gräsman
Kim Gräsman added the comment: By the way, is PyMem_RawMalloc/PyMem_RawFree preferred for memory allocation across the board? If so, I can just prepare a new patch for you with that changed, zero-initialization in place and the prefix-overrun fixed. I might get to it tonight. -- ___

[issue21305] PEP 466: update os.urandom

2014-04-28 Thread Charles-François Natali
Charles-François Natali added the comment: > Yes, I'm proposing to enhance this class. The problem is AFAICT there's currently no way to get a file descriptor to the underlying /dev/urandom (and I don't know how it works on Windows). Also, this would duplicate the work which has already been do

[issue21037] add an AddressSanitizer build option

2014-04-28 Thread Charles-François Natali
Charles-François Natali added the comment: I'd like to move this forward: it could IMO be a great way to proactively detect potential security defects, and nasty stack/heap/memory corruption in general. The remaining - missing - part is buildbot integration: AFAICT the only specific thing to

[issue21321] itertools.islice() doesn't release reference to the source iterator when the slice is exhausted

2014-04-28 Thread Anton Afanasyev
Anton Afanasyev added the comment: Hi Antoine, my test works for me. It can be either >>> a = [1, 2, 3] or >>> a = iter([1, 2, 3]) , no matter: both objects will be +1 referenced after taking >>> b = islice(a, 1) . My test failed without patch and passed with one. But your test is more straight

[issue21321] itertools.islice() doesn't release reference to the source iterator when the slice is exhausted

2014-04-28 Thread Anton Afanasyev
Changes by Anton Afanasyev : Added file: http://bugs.python.org/file35087/issue21321_3.4_8c8315bac6a8_4.diff ___ Python tracker ___ ___ Python

[issue21321] itertools.islice() doesn't release reference to the source iterator when the slice is exhausted

2014-04-28 Thread Anton Afanasyev
Changes by Anton Afanasyev : Added file: http://bugs.python.org/file35086/issue21321_2.7_e3217efa6edd_4.diff ___ Python tracker ___ ___ Python

[issue8776] Bytes version of sys.argv

2014-04-28 Thread Nick Coghlan
Nick Coghlan added the comment: Makes sense to me. Assuming we eventually manage to resolve the POSIX locale issue, the bytes variant will become even less useful. -- resolution: later -> rejected status: open -> closed ___ Python tracker

[issue21305] PEP 466: update os.urandom

2014-04-28 Thread Donald Stufft
Donald Stufft added the comment: One of the reasons the PEP was done the way it was done was it allowed you to write 2/3 compatible code without version checks. Enhancing that class won't land until 3.5 which is 18+ months away. Further more the os.urandom persistent FD's already exists and is

[issue21379] StopIteration is silenced when raised by generator within context manager

2014-04-28 Thread Nick Coghlan
Nick Coghlan added the comment: This is expected behaviour - "raise StopIteration" in a generator is equivalent to "return", except it can occur inside a called function. The bug here is in the given context manager definition - it should be taking appropriate action if the "next" call failing

<    1   2