[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-27 Thread Ned Deily
Ned Deily added the comment: I'll be doing backports to 2.7 for this and some other things shortly. -- ___ Python tracker ___

[issue29915] Drop Mac OS X Tiger support in Python 3.7?

2017-03-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Is there any downside to keeping this code? -- nosy: +rhettinger ___ Python tracker ___

[issue20552] Use specific asserts in bytes tests

2017-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Close? -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29921] datetime validation is stricter in 3.6.1 than previous versions

2017-03-27 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list

[issue29915] Drop Mac OS X Tiger support in Python 3.7?

2017-03-27 Thread Ned Deily
Ned Deily added the comment: >The Tiger buildbot fails since many years: >http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/479/steps/test/logs/stdio That's not true. The one failing test, test_uuid, was just added last month. Note that the 3.5 Tiger buildbot has not test

[issue29572] Upgrade installers to OpenSSL 1.0.2k

2017-03-27 Thread Ned Deily
Ned Deily added the comment: > It seems like all pull requests are merged. Can the issue be closed now? Not quite yet. -- ___ Python tracker ___

[issue29782] Use __builtin_clzl for bits_in_digit if available

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: The change is an optimization, so it requires a benchmark, think you provided. Ok. But the speedup is a few nanoseconds on a function which takes currently 40 nanoseconds. It's not really what I would call significant: $ ./python -m perf compare_to ref.json

[issue29782] Use __builtin_clzl for bits_in_digit if available

2017-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are not good reasons to optimize this case at compile time. This is very obscure way of writing True. -- ___ Python tracker

[issue28718] '*' matches entire path in fnmatch

2017-03-27 Thread Aaron Whitehouse
Aaron Whitehouse added the comment: Posted to the [Python-ideas] mailing list, as it is proposing a change to a standard library: https://mail.python.org/pipermail/python-ideas/2017-February/044880.html Nobody has responded so far, however. I take this as at least no vehement objection to the

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread R. David Murray
R. David Murray added the comment: This is a specific example of the general problem reported in issue 25538. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Traceback from __exit__ method is misleading

[issue19382] tabnanny unit tests

2017-03-27 Thread Jaysinh shukla
Changes by Jaysinh shukla : -- pull_requests: +751 ___ Python tracker ___ ___

[issue29915] Drop Mac OS X Tiger support in Python 3.7?

2017-03-27 Thread Ned Deily
Ned Deily added the comment: Here's where the Tiger 3.x buildbot started failing: http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/363 with this commit 0b8432538acf45d7a605fe68648b4712e8d9cee3 -- nosy: +benjamin.peterson ___ Python

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread Yury Selivanov
Yury Selivanov added the comment: > This is a specific example of the general problem reported in issue 25538. It's a bit different code path/problem. But I agree, we should work on making both `with` and `async with` a bit more usable. > Would it be possible to change this so it indicates

[issue11913] sdist refuses README.rst

2017-03-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: wont fix -> stage: resolved -> needs patch status: closed -> open ___ Python tracker ___

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread Tadhg McDonald-Jensen
New submission from Tadhg McDonald-Jensen: When creating a asynchronous context manager if the __aexit__ method is not labeled as async (so it returns None instead of a coroutine) the error has a generic error message: TypeError: object NoneType can't be used in 'await' expression Would it

[issue29894] Deprecate returning a subclass of complex from __complex__

2017-03-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29917] Wrong link target in PyMethodDef documentation

2017-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree. I noticed this when making a review of PR 831, but forgot to open an issue. -- nosy: +serhiy.storchaka stage: -> needs patch type: -> behavior versions: +Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___

[issue29887] test_normalization doesn't work

2017-03-27 Thread Brett Cannon
Brett Cannon added the comment: Benjamin did the update to 9.0.0. We should probably update Tools/unicode/makeunicodedata.py to print out in the end that the appropriate file needs to be added to pythontest.net **before** merging an update to unicodedata. --

[issue24739] allow argparse.FileType to accept newline argument

2017-03-27 Thread AlbertZhuang
Changes by AlbertZhuang : -- pull_requests: +750 ___ Python tracker ___ ___

[issue29506] Incorrect documentation for the copy module

2017-03-27 Thread R. David Murray
R. David Murray added the comment: Looking over the PR, and especially in the context of Serhiy's point about this being about 'deep copy' and not 'deepcopy', I think this would be clearer if it were shortened even further, to just: "Because deep copy copies everything, it may copy data that

[issue25538] Traceback from __exit__ method is misleading

2017-03-27 Thread R. David Murray
R. David Murray added the comment: See also issue 29922. -- nosy: +Tadhg McDonald-Jensen, yselivanov ___ Python tracker ___

[issue29144] Implicit namespace packages in Python 3.6

2017-03-27 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Bumped upon a similar issue today where a package I was working on couldn't import a module from one of its dependencies (which was not the case in python 3.5). One of the lines that fail is this [0] with: ModuleNotFoundError: No module named

[issue11913] sdist refuses README.rst

2017-03-27 Thread Ryan Gonzalez
Changes by Ryan Gonzalez : -- pull_requests: +754 ___ Python tracker ___ ___

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread Yury Selivanov
Yury Selivanov added the comment: > Would it maybe make sense to implement this as adding an argument to > GET_AWAITABLE to indicate whether it was called from await, __anext__, > __aenter__ or __aexit__? Yes, but it will make it a tad slower (which will also affect await performance). I'll

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: duplicate -> stage: resolved -> needs patch status: closed -> open ___ Python tracker

[issue29923] PEP487 __init_subclass__ incompatible with abc.ABCMeta

2017-03-27 Thread Brian Petersen
Changes by Brian Petersen : -- components: -Library (Lib) type: -> behavior ___ Python tracker ___

[issue1234] semaphore errors on AIX 5.2

2017-03-27 Thread Michael Seifert
Changes by Michael Seifert : -- pull_requests: +753 ___ Python tracker ___ ___

[issue1234] semaphore errors on AIX 5.2

2017-03-27 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread Tadhg McDonald-Jensen
Tadhg McDonald-Jensen added the comment: > This is a specific example of the general problem reported in issue 25538. Definitely related, although the part of giving an error "... can't be used in 'await' expression" when no await expression is used isn't covered by that thread so I'm not

[issue29912] Overlapping tests between list_tests and seq_tests

2017-03-27 Thread Brett Cannon
Brett Cannon added the comment: New changeset d702c50049207d825c1d5925fbc7306514fa9a0a by Brett Cannon (Jim Fasarakis-Hilliard) in branch 'master': bpo-29912: Remove redundant tests in list_tests that are found in seq_tests (GH-847)

[issue29867] Add asserts in PyXXX_GET_SIZE macros

2017-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be enough to compile them. New macros produce compiler error when used as lvalue. But I afraid it will take too much time on my netbook. -- ___ Python tracker

[issue29878] Add global instances of int 0 and 1

2017-03-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +752 ___ Python tracker ___ ___

[issue29923] PEP487 __init_subclass__ incompatible with abc.ABCMeta

2017-03-27 Thread Brian Petersen
New submission from Brian Petersen: First time issue reporter here. I really love PEP 487, but I'm finding the new __init_subclass__ functionality is not playing nicely with existing abstract class functionality. For example, taking the Quest example given in PEP 487 but simply adding

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-03-27 Thread Christian Heimes
Christian Heimes added the comment: Raymond, I think Richard's approach is problematic at best. Richard, you cannot use a NamedTempFile with an external process like that. At least you have to flush the file to disk. Even flushing is not safely portable. The safest and most portable approach

[issue29908] Inconsistent crashing with an access violation

2017-03-27 Thread Cameron Mckain
Cameron Mckain added the comment: No, my PyCharm issue has not been responded to by any of their people. Here is the link: https://youtrack.jetbrains.com/issue/PY-23297 Also, I have uploaded a screenshot of VS's debugging of the crash if it will be helpful. -- Added file:

[issue29912] Overlapping tests between list_tests and seq_tests

2017-03-27 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29782] Use __builtin_clzl for bits_in_digit if available

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: > $ ./python -m timeit "12345678 == 12345678.0" > 500 loops, best of 5: 40 nsec per loop By the way, I check the bytecode to make sure that the compiler doesn't optimize that. I'm suprised that it's not replaced with True! Is there a reason to perform the

Re: C-Python and Endianness

2017-03-27 Thread Antoon Pardon
Op 26-03-17 om 08:47 schreef Ganesh Pal: > Hello Team , > > > > > I want to write the hexadecimal string that is passed from python as it > is on disk in C , my problem is that the values are getting stored in > little endian and Are you sure you are passing a string? Or are you passing a

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Sanjay
Sanjay added the comment: yes but compare_networks is not used to implement equality check. __eq__ correctly returns False when we do 1.1.1.0/24 == 1.1.1.0/25. If compare_networks works exactly like __eq__ then it seems a bit redundant. -- ___

[issue29915] Drop Mac OS X Tiger support in Python 3.7?

2017-03-27 Thread STINNER Victor
New submission from STINNER Victor: Hi, Last september I already proposed the same thing for Python 3.6 (issue #28099), but Ned Deily asked to keep OS X Tiger supper. The Tiger buildbot fails since many years:

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Xiang Zhang
Xiang Zhang added the comment: I still hold my opinion that the current behaviour is correct. You are comparing two networks and you should count the mask in. And notice that `neta == netb` is not totally equal to `neta.compare_networks(netb)`. The former can only results True or False but

[issue29914] Incorrect signatures of object.__reduce__() and object.__reduce_ex__()

2017-03-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The special method __reduce__() doesn't take arguments, the special method __reduce_ex__() takes one mandatory argument. But default implementations in the object class takes one optional argument. This looks as an oversign. Proposed patch fixes

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ncoghlan, pmoody ___ Python tracker ___

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Xiang Zhang
Xiang Zhang added the comment: In my mind this is the wanted behaviour. `compare_networks` means compare one network to another and a network should count its mask in. Your example would look rather weird if 1.1.1.0/24 == 1.1.1.0/25. Maybe make the doc from 'network addresses' to 'network

Re: Escaping confusion with Python 3 + MySQL

2017-03-27 Thread Νίκος Βέργος
Thank you very much Johann. i was using print(update wuery here) and i was seeing that print was able to parser the query and that consused me as to why execute wont do the same since with print all values was gettign substituted. of course pymysql doesnt behave the same with print but until i

[issue27425] Tests fail because of git's newline preferences on Windows

2017-03-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +741 ___ Python tracker ___ ___

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Nick Coghlan
Nick Coghlan added the comment: Looking into it, this appears to be a holdover from the original ipaddr design where rather than being modelled as separate objects, host interfaces are modelled as denormalised network objects (i.e. a host address with a netmask). So the stdlib equivalent of

[issue29916] No explicit documentation for PyGetSetDef and getter and setter C-API

2017-03-27 Thread Michael Seifert
New submission from Michael Seifert: A copy of the struct definition can be found in the typeobject documentation [1]. There is also some explanation of the "closure" function pointer in the extending tutorial [2]. However the struct isn't explicitly defined as "c:type" so the 6 links to it

Re: Escaping confusion with Python 3 + MySQL

2017-03-27 Thread Johann Spies
Νίκος, I am glad that you solved the problem. I am not using mysql but postgresql. When I get a problem using python to communicate with the database, one of my first steps will be to determine whether the error is a python (maybe psycopg-related) related error or a database error. What I do

EuroPython 2017: Call for Proposals is open

2017-03-27 Thread M.-A. Lemburg
We’re looking for proposals on every aspect of Python: programming from novice to advanced levels, applications and frameworks, or how you have been involved in introducing Python into your organization. EuroPython is a community conference and we are eager to hear about your experience. Please

pgcopy 1.2.0

2017-03-27 Thread altaurog
pgcopy 1.2.0 is now available! pgcopy is a small utility for fast inserts to postgresql using binary copy. features: * Support for many datatypes * Tested with python 2.7 and 3.3 - 3.6 * Works with postgresql versions 8.4 - 9.6 * Cache data on disk or in

[issue20774] collections.deque should ship with a stdlib json serializer

2017-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems there are reference leaks. And I afraid that importing a module for every serialized object can significantly hit the performance. Can you run some benchmarks? > An __json__ attribute would have to convert to a list first. Adding support > directly

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Sanjay
New submission from Sanjay: according to the docs compare_networks only checks the network address but the implementation is also taking the mask length into account. It returns '0' only if both the network address and the mask are equal but this can be done with just equality check ( ip1 ==

[issue29910] Ctrl-D eats a character on IDLE

2017-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > (Not having side by side diffs as with Rietveld makes this much harder.) Click on the "Files changed" tab on the PR page: https://github.com/python/cpython/pull/825/files . You can add inline comments when click on the "+" button that follows your mouse

[issue29162] pyshell.py: name 'sys' is not defined

2017-03-27 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Sanjay
Changes by Sanjay : -- pull_requests: +739 ___ Python tracker ___ ___ Python-bugs-list

[issue29914] Incorrect signatures of object.__reduce__() and object.__reduce_ex__()

2017-03-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +740 ___ Python tracker ___ ___

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2017-03-27 Thread ioanatia
Changes by ioanatia : -- nosy: +ioanatia ___ Python tracker ___ ___

[issue18059] Add multibyte encoding support to pyexpat

2017-03-27 Thread Walter Dörwald
Walter Dörwald added the comment: This looks to me like a limited reimplementation of the codec machinery. Why not use incremental codecs as a preprocessor? Would this be to slow? -- ___ Python tracker

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Nick Coghlan
Nick Coghlan added the comment: Right, I agree compare_networks() is behaving correctly according to its original design. However: - it was designed for Python 2, where cmp() style idioms were still more common. Those idioms have largely been removed in Python 3 (no cmp() builtin, no __cmp__

[issue29899] zlib missing when --enable--optimizations option appended

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: Can you please attach config.log file? And maybe also redirect the output of "make" into a log file and then attach this log file as well? Example: make 2>&1 >make.log. -- nosy: +haypo ___ Python tracker

[issue23241] shutil should accept pathlib types

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce the bug on Python 3.6: --- from pathlib import Path import shutil import os def touch(name): with open(name, "x"): pass os.mkdir('a') touch('a/x') touch('a/y') touch('a/z') os.mkdir('b') source_path = Path('a')

[issue21071] struct.Struct.format is bytes, but should be str

2017-03-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +743 ___ Python tracker ___ ___

[issue29918] Missed "const" modifiers in C API documentation

2017-03-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch adds missed "const" modifiers in C API documentation. -- assignee: docs@python components: Documentation messages: 290588 nosy: docs@python, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title:

[issue29899] zlib missing when --enable--optimizations option appended

2017-03-27 Thread kyren
kyren added the comment: This is make.log. -- Added file: http://bugs.python.org/file46758/make.log ___ Python tracker ___

[issue29899] zlib missing when --enable--optimizations option appended

2017-03-27 Thread kyren
kyren added the comment: This is the config.log. -- Added file: http://bugs.python.org/file46757/config.log ___ Python tracker ___

[issue29899] zlib missing when --enable--optimizations option appended

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: Strange, I don't see any obvious error related to the C "z" lib or to the Python "zlib" module. Example on my system: haypo@selma$ python3 Python 3.5.2 (default, Sep 14 2016, 11:28:32) [GCC 6.2.1 20160901 (Red Hat 6.2.1-1)] on linux Type "help", "copyright",

[issue29918] Missed "const" modifiers in C API documentation

2017-03-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue29917] Wrong link target in PyMethodDef documentation

2017-03-27 Thread Michael Seifert
New submission from Michael Seifert: The `link`-target of the "type" struct member is the python built-in "type". See [1]. I think it should not be a link at all. [1] https://docs.python.org/3.7/c-api/structures.html#c.PyMemberDef -- assignee: docs@python components: Documentation

[issue11989] deprecate shutil.copy2

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: I like proposed changed. -- nosy: +haypo status: pending -> open ___ Python tracker ___

[issue20552] Use specific asserts in bytes tests

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 604e74c6beb2585c81083fa85f0e5a4d46965cbc by Victor Stinner (Serhiy Storchaka) in branch 'master': bpo-20552: Use specific asserts in bytes tests (#790) https://github.com/python/cpython/commit/604e74c6beb2585c81083fa85f0e5a4d46965cbc --

[issue21071] struct.Struct.format is bytes, but should be str

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: I created https://github.com/python/cpython/pull/845 to change struct.Struct.format type to str (Unicode). struct.Struct() accepts bytes and str format strings, so it's not really a backward incompatible change. It's just a minor enhancement to help

Nikola v7.8.4 is out!

2017-03-27 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.8.4. It fixes some bugs and adds new features. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use Mako and Jinja2 templates, and input in many

[issue29720] potential silent truncation in PyLong_AsVoidPtr

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: I closed the issue. @Oren: Please reopen the issue with a pull request if you consider that the assertion is worth it. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Xiang Zhang
Xiang Zhang added the comment: +1 for the doc change. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12414] getsizeof() on code objects is wrong

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: code_sizeof() must be updated to take in account co_extra memory: co_extra.ce_size * sizeof(co_extra.ce_extras[0]) bytes. -- nosy: +haypo ___ Python tracker

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: Chi Hsuan Yen confirmed that "python3.7m -m test test_curses -u curses" now pass on Android, so I close the issue. Thanks. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue29720] potential silent truncation in PyLong_AsVoidPtr

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: "I am not sure whether such a platform exists, but on a platform where SIZEOF_VOID_P < SIZEOF_LONG, PyLong_AsVoidPtr ..." I'm suite sure that every C function of CPython breaks if this assumption becomes wrong :-) Such platform doesn't exist. You can add the

[issue29918] Missed "const" modifiers in C API documentation

2017-03-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +744 ___ Python tracker ___ ___

[issue29572] Upgrade installers to OpenSSL 1.0.2k

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: FYI I started to track OpenSSL versions in my "Python security" documentation: http://python-security.readthedocs.io/ssl.html#openssl-versions It seems like all pull requests are merged. Can the issue be closed now? -- nosy: +haypo

[issue29912] Overlapping tests between list_tests and seq_tests

2017-03-27 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Correction: test_index *partially* duplicates the base class method. It too can be modified to use super like test_imul. -- ___ Python tracker

[issue21071] struct.Struct.format is bytes, but should be str

2017-03-27 Thread Martin Panter
Martin Panter added the comment: Hi Victor, I’m not sure about changing the data type. As Python 3 grows older, there is potentially more code being written that you break by fixing a bug like this. It is incompatible if you used to write >>> print(struct.Struct('hi').format.decode()) hi I

[issue21071] struct.Struct.format is bytes, but should be str

2017-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This should be discussed on Python-Dev first. I already raised this issue on Python-Dev, but don't remember what is the result. -- ___ Python tracker

EuroPython 2017: Call for Proposals is open

2017-03-27 Thread M.-A. Lemburg
We’re looking for proposals on every aspect of Python: programming from novice to advanced levels, applications and frameworks, or how you have been involved in introducing Python into your organization. EuroPython is a community conference and we are eager to hear about your experience. Please

[issue29720] potential silent truncation in PyLong_AsVoidPtr

2017-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, you are right. I don't know whether Python supports such platform after dropping support of DOS. But in any case I don't see any issue here. Oren will be not active until August, so we should make the decision about closing the issue or changing the

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: The 3.5, 3.6 and master branches of Python have a new sys._git attribute and lost their sys._mercurial attribute. But the 2.7 branch is still stuck at sys._mercurial: version and tag are empty. Should we backport sys._git from master to 2.7 and remove

[issue21071] struct.Struct.format is bytes, but should be str

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: Ok, I opened a thread on python-dev: https://mail.python.org/pipermail/python-dev/2017-March/147688.html Martin: "At a minimum you should acknowledge it in the “porting” section of What’s New." I wasn't sure if the change was worth it to be mentionned in

[issue29680] gdb/libpython.py does not work with gdb 7.2

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: @belopolsky: Tools/gdb/libpython.py still uses gdb.error in gdb.selected_frame(): try: frame = cls.get_selected_frame() except gdb.error: # No frame: Python didn't start yet return None See my commit

[issue29720] potential silent truncation in PyLong_AsVoidPtr

2017-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I'm suite sure that every C function of CPython breaks if this assumption > becomes wrong :-) Such platform doesn't exist. Did you meant 64-bit Windows? ;-) -- ___ Python tracker

[issue29720] potential silent truncation in PyLong_AsVoidPtr

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: > Did you meant 64-bit Windows? ;-) On Windows 64-bit, sizeof(void*) > sizeof(long), not the opposite. -- ___ Python tracker

[Release] Pyo 0.8.4 (Python dsp library)

2017-03-27 Thread Olivier Bélanger
Hello all, On this day that marks my forty years of existence, I made myself a small gift, a new version of pyo which, thanks to the correction of a major bug, is undoubtedly the most stable version ever produced! I'm glad to announce the release of pyo 0.8.4, available for python 2.7 and 3.5.

[issue29899] zlib missing when --enable--optimizations option appended

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: See also the issue #29641 "make install failure when using ./configure --enable-optimizations". -- ___ Python tracker

Using/compiling pyuno with Python 3.6

2017-03-27 Thread filtered
I am running CentOS 7.1 with LibreOffice 5.0.6.2. I have installed the official pyuno package from CentOS. I installed Python 3.6.1 from the sources and now I am trying to import pyuno which fails with aj...@dev.zopyx.com:~/src/docx> bin/python Python 3.6.1 (default, Mar 27 2017, 13:27:24) [GCC

[issue29677] clarify docs about 'round()' accepting a negative integer for ndigits

2017-03-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'm new to contributing. Can I work on this one? -- nosy: +csabella ___ Python tracker ___

[issue29925] test_uuid fails on OS X Tiger

2017-03-27 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/363/steps/test/logs/stdio == FAIL: test_uuid1_safe (test.test_uuid.TestUUID)

[issue29251] Class __dict__ is only a mapping proxy

2017-03-27 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Isn't the fact that it's read-only a CPython implementation detail? That is, shouldn't that just read: "gives a :term:`mapping` object representing the class's namespace" so as to not enforce anything on any other implementations? -- nosy:

[issue29921] datetime validation is stricter in 3.6.1 than previous versions

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: > The change in issue #29100 - intended AFAICS simply to fix a regression in > 3.6 - seems to have made datetime validation via certain code paths stricter > than it was in 2.7 or 3.5. What do you mean by "stricter than 2.7 & 3.5"? The year 30828 was never

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread SylvainDe
New submission from SylvainDe: Very uninteresting issue I've found while looking at the code. In Objects/call.c, in _PyMethodDef_RawFastCallDict(PyMethodDef *method, PyObject *self, PyObject **arg...), we have no_keyword_error: PyErr_Format(PyExc_TypeError,

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread SylvainDe
SylvainDe added the comment: I forgot to copy the link but here is a description of what I had in mind for the first idea. -- ___ Python tracker ___

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread SylvainDe
SylvainDe added the comment: http://julio.meroh.net/2011/06/validating-format-strings-in-custom-c.html -- ___ Python tracker ___

  1   2   >