[issue20277] default __debug__ value and asserts

2014-01-16 Thread xwild
xwild added the comment: Yes it's acceptable, but why the debug mode is enabled by default? It's a not expected behavior. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20277 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-16 Thread Vajrasky Kok
Vajrasky Kok added the comment: With little modification: class PID_converter(int_converter): type = 'pid_t' format_unit = ' _Py_PARSE_PID ' It works. Thanks! But I got unnecessary empty string: if (!PyArg_ParseTuple(args, _Py_PARSE_PID i:prlimit, pid, resource)) It should be: if

[issue20277] default __debug__ value and asserts

2014-01-16 Thread Michael Foord
Michael Foord added the comment: Having __debug__ True by default is unintuitive and not particularly useful. However it is relatively well known, so although it is rarely used that probably only means hundreds of thousands of piece of code. So it isn't going to change I'm afraid. --

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is known bug in prlimit (issue20191). -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20191] resource.prlimit(int, int, str) crashs

2014-01-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- priority: normal - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20191 ___ ___

[issue20191] resource.prlimit(int, int, str) crashs

2014-01-16 Thread STINNER Victor
STINNER Victor added the comment: There is another option: modify the function to use argument clinic and implement something in argument clinic to hold a reference on borrowed references O and hold a reference on (...) sequence. Holding a reference on borrowed references O would make Python

[issue20279] bytearray.fromhex does not work with some hexes generated by hex

2014-01-16 Thread Anatoly Belikov
New submission from Anatoly Belikov: bytearray.fromhex(hex(434)[2:]) throws ValueError: non-hexadecimal number found in fromhex() arg at position 2 Strangely it works with leading zero: bytearray.fromhex('0' + hex(438)[2:]) -- components: Library (Lib) messages: 208273 nosy: Anatoly

[issue20279] bytearray.fromhex does not work with some hexes generated by hex

2014-01-16 Thread Anatoly Belikov
Anatoly Belikov added the comment: ok i gave it half byte -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20279 ___

[issue20262] Convert some debugging prints in zipfile to warnings

2014-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, then I should only ask Benjamin. -- nosy: +benjamin.peterson versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20262

[issue19936] Executable permissions of Python source files

2014-01-16 Thread Matthias Klose
Matthias Klose added the comment: I like this, and I'm doing this in the Debian/Ubuntu packaging anyway. But I would like to see some check script which maybe can be run before a release, that points out regressions or wrong permissions for newly introduced files. -- nosy: +doko

[issue20280] add predicate to the glossary

2014-01-16 Thread Florent Xicluna
New submission from Florent Xicluna: This term is used in various places in the documentation. http://docs.python.org/dev/search.html?q=predicate Probably it deserves an entry in the glossary, even if it is not specific to Python: http://en.wikipedia.org/wiki/Predicate_%28mathematical_logic%29

[issue19936] Executable permissions of Python source files

2014-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9062a8695c89 by Stefan Krah in branch '3.3': Issue #19936: Disable shebang lines in order to prevent using a random http://hg.python.org/cpython/rev/9062a8695c89 -- nosy: +python-dev ___ Python tracker

[issue20278] Wrong URL to the pysqlite web page

2014-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset b73b35d1c58d by Benjamin Peterson in branch '3.3': update pysqlite website (closes #20278) http://hg.python.org/cpython/rev/b73b35d1c58d New changeset 40289a03569f by Benjamin Peterson in branch '2.7': update pysqlite website (closes #20278)

[issue20278] Wrong URL to the pysqlite web page

2014-01-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: Done. Of course, the Python version of sqlite hasn't been updated in ages (and has probably diverged!), so it might not be that relevant anymore. -- nosy: +benjamin.peterson ___ Python tracker

[issue20272] chain.from_iterable in the overview table not linking to the function

2014-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa88c8265e94 by Benjamin Peterson in branch '3.3': linkify chain.from_iterable (closes #20272) http://hg.python.org/cpython/rev/aa88c8265e94 New changeset 58cac9967cf0 by Benjamin Peterson in branch 'default': merge 3.3 (#20272)

[issue6128] Consequences of using Py_TPFLAGS_HAVE_GC are incompletely explained

2014-01-16 Thread Christian Aichinger
Christian Aichinger added the comment: I concur that this aspect of writing Python types in C/C++ needs better documentation. For a new extension writer (like me), it is not obvious when PyObject_GC_Track/PyObject_GC_UnTrack must be called or not. Similarly, it is not clear from the current

[issue19936] Executable permissions of Python source files

2014-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a script. It lists text files with executable bits and without shebangs and files with .py, .pyw, or .sh suffix which have shebang but have not with executable bits. As far as it searches not only Python files, now it found such files: -

[issue20227] Argument Clinic: rename arguments in generated C?

2014-01-16 Thread Zachary Ware
Zachary Ware added the comment: The nested scope trick makes me happy. There are still a lot of cases in the conversions I've worked on where a variable had to be renamed due to having documented a different name for the parameter, but in the vast majority of those cases the new name makes

[issue19936] Executable permissions of Python source files

2014-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 92fd0df03823 by Serhiy Storchaka in branch '3.3': Issue #19936: Added executable bits or shebang lines to Python scripts which http://hg.python.org/cpython/rev/92fd0df03823 New changeset 83009d70bc9c by Serhiy Storchaka in branch 'default': Issue

[issue19936] Executable permissions of Python source files

2014-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 085a0ea2015f by Serhiy Storchaka in branch '3.3': Issue #19936: Remove executable bits from C source files and several forgotten http://hg.python.org/cpython/rev/085a0ea2015f New changeset 6baeee39195b by Serhiy Storchaka in branch 'default': Issue

[issue20226] Argument Clinic: support for simple expressions?

2014-01-16 Thread Larry Hastings
Larry Hastings added the comment: Py_buffer is currently inflexible. The only default value it accepts is None. If you want it to be required, give it no default value. If you want it to be optional, give it a default value of None. Do you have a use case for any other default value?

[issue19936] Executable permissions of Python source files

2014-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 334116bb2939 by Serhiy Storchaka in branch '2.7': Issue #19936: Added executable bits or shebang lines to Python scripts which http://hg.python.org/cpython/rev/334116bb2939 -- ___ Python tracker

[issue19936] Executable permissions of Python source files

2014-01-16 Thread Stefan Krah
Stefan Krah added the comment: Somehow Modules/_decimal/tests/bench.py and Modules/_decimal/tests/deccheck.py are now executable, which (I think) they should not be. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org

[issue20226] Argument Clinic: support for simple expressions?

2014-01-16 Thread Larry Hastings
Larry Hastings added the comment: Third patch, changes based on Georg's review. Thanks, Georg! -- Added file: http://bugs.python.org/file33499/larry.clinic.rollup.patch.two.diff.3.txt ___ Python tracker rep...@bugs.python.org

[issue20226] Argument Clinic: support for simple expressions?

2014-01-16 Thread Larry Hastings
Larry Hastings added the comment: Sorry, forgot to update trunk, here you go. -- Added file: http://bugs.python.org/file33500/larry.clinic.rollup.patch.two.diff.4.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20226

[issue20226] Argument Clinic: support for simple expressions?

2014-01-16 Thread Georg Brandl
Georg Brandl added the comment: Rietveld doesn't like your new patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20226 ___ ___

[issue20226] Argument Clinic: support for simple expressions?

2014-01-16 Thread Georg Brandl
Georg Brandl added the comment: Thx! (without soundcheck) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20226 ___ ___ Python-bugs-list mailing

[issue20275] asyncio: remove debug code from BaseEventLoop

2014-01-16 Thread STINNER Victor
STINNER Victor added the comment: I don't understand the purpose of these timing information, (...) By the way, it's not documentation how to enable asyncio logs I added a new page in the asyncio documentation to start documenting common traps with asynchronous programming and to document

[issue20281] time.strftime %z format specifier is the same as %Z

2014-01-16 Thread Mike Owens
New submission from Mike Owens: When using strftime from the time module on 64bit Python for Windows the format specifier %z gives the time zone name instead of the time zone offset as stated in the documentation. eg strftime(%z) 'US Mountain Standard Time' strftime(%Z) 'US Mountain

[issue20281] time.strftime %z format specifier is the same as %Z

2014-01-16 Thread Mike Owens
Mike Owens added the comment: Expected output should be -0700. I checked Python 3.3.1 and 2.7.4 on Linux and the output is as expected. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20281

[issue19936] Executable permissions of Python source files

2014-01-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19936 ___

[issue20135] FAQ need list mutation answers

2014-01-16 Thread Fran Bull
Fran Bull added the comment: I read the FAQ last night and I couldn't see these answered there either. I would like to try submitting a patch for this one, probably this evening. It will likely be two FAQs in the programming section that go something like: Why does changing one list change

[issue20281] time.strftime %z format specifier is the same as %Z

2014-01-16 Thread R. David Murray
R. David Murray added the comment: Please see the footnote on the 'time' documentation page. It sounds like Windows is treating %z as if was %Z. There should be a reference to that footnote from the %z table entry, so that's a doc bug. Might also be worth explicitly mentioning this weird

[issue20281] time.strftime %z format specifier is the same as %Z

2014-01-16 Thread Mike Owens
Mike Owens added the comment: Documentation doesn't have a foot note for either %z or %Z but there is generic footnote talking about C lib behavior and that %z is deprecated. I guess if there were a foot note in the table for %z that would save some time for everyone. --

[issue20281] time.strftime %z format specifier is the same as %Z

2014-01-16 Thread Mike Owens
Mike Owens added the comment: The datetime.strftime function produces no output for %z or %Z. Very irritating. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20281 ___

[issue20281] time.strftime %z format specifier is the same as %Z

2014-01-16 Thread SilentGhost
SilentGhost added the comment: Mike, the note is at the very bottom of the page. datetime.strftime produces empty strings with this specifiers for naïve objects, are the object you're testing timezone-aware? -- nosy: +SilentGhost ___ Python tracker

[issue20226] Argument Clinic: support for simple expressions?

2014-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset abf87e1fbc62 by Larry Hastings in branch 'default': Issue #20226: Major improvements to Argument Clinic. http://hg.python.org/cpython/rev/abf87e1fbc62 -- nosy: +python-dev ___ Python tracker

[issue20226] Argument Clinic: support for simple expressions?

2014-01-16 Thread Larry Hastings
Larry Hastings added the comment: Done! Georg: Thanks for the suggestion, and for the reviews! Argument Clinic is improved this day. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20226

[issue20226] Argument Clinic: support for simple expressions?

2014-01-16 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- resolution: - fixed stage: patch review - commit review status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20226 ___

[issue20282] Argument Clinic: int with boolean default

2014-01-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently in many functions boolean argument parsed as int, with 'i' code. When converting this to Argument Clinic we can't write just interactive: int = False because C default becomes Py_False. Instead we need explicitly specify c_default.

[issue20135] FAQ need list mutation answers

2014-01-16 Thread R. David Murray
R. David Murray added the comment: Thanks for working on this. Technically, defaults are evaluated when the 'def' statement is executed, which is normally, but not always, at the time that the module is first imported (counterexample: nested function definitions). The answer should also

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-01-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Current behaviors 3.4b2 itertools.repeat('a', -1) repeat('a', 0) itertools.repeat('a', times=-1) repeat('a') # forever itertools.repeat('a', times=-2) repeat('a', -2) My opinions (same as what Raymond says -- negative == 0) The first line is correct in both

[issue20280] add predicate to the glossary

2014-01-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: -0 To me, this seems like unnecessary noise. The more random entries we add to the glossary, the less usable it becomes. There are many computing terms that could be added such as recursion, stack overflow, buffer, header, packet, basic block, token,

[issue20281] time.strftime %z format specifier is the same as %Z

2014-01-16 Thread R. David Murray
R. David Murray added the comment: The %z table entry exists only in the 3.4 (dev) docs, not the 3.3 docs. There is no doc change needed for 3.3, since it doesn't mention %z except in the footnote. And yes, I should have mentioned that the datetime versions only work with aware timezones.

[issue20281] time.strftime %z format specifier is the same as %Z

2014-01-16 Thread Mike Owens
Mike Owens added the comment: I'm looking right at the 3.3 docs right now. %z is in the table. 8.1.8. strftime() and strptime() Behavior -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20281

[issue20281] time.strftime %z format specifier is the same as %Z

2014-01-16 Thread R. David Murray
R. David Murray added the comment: Ah, you are correct. I'm not sure what page I was looking at before. Maybe I hadn't switched away from the python2 page. -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue20283] Wrong keyword parameter name in regex pattern methods

2014-01-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Documented (in docstring and in ReST documentation) signatures of the match, search and (since 3.4) fullmatch methods of regex pattern object are: match(string[, pos[, endpos]]) search(string[, pos[, endpos]]) fullmatch(string[, pos[, endpos]]) However in

[issue20135] FAQ need list mutation answers

2014-01-16 Thread Fran Bull
Fran Bull added the comment: Perhaps a 3rd FAQ something like this?: Why is changing a list in one instance of a class also changing it in another instance of the same class? This happens: class A(object): ... def __init__(self, fruit=[]): ... self.fruit = fruit ... an_A = A()

[issue20284] proof for concept patch for bytes formatting methods

2014-01-16 Thread Neil Schemenauer
New submission from Neil Schemenauer: This is a very rough, proof of concept patch that implements %-style formatting for bytes objects. Currently it calls __format__ with a bytes argument and expects a bytes result. I've only implemented support for bytes formatting for the 'long' object.

[issue20226] Argument Clinic: support for simple expressions?

2014-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd3fdf21a6e4 by Larry Hastings in branch 'default': Issue #20226: Added tests for new features and regressions. http://hg.python.org/cpython/rev/cd3fdf21a6e4 -- ___ Python tracker rep...@bugs.python.org

[issue19974] tarfile doesn't overwrite symlink by directory

2014-01-16 Thread Chris Morgan
Chris Morgan added the comment: Testing passed on OSX Mavericks. -- nosy: +drpotato ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19974 ___ ___

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-16 Thread Larry Hastings
Larry Hastings added the comment: Whoever does the review, could you post here? I feel bad enough asking y'all, maybe we don't need multiple people doing it ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20189

[issue20284] proof for concept patch for bytes formatting methods

2014-01-16 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20284 ___ ___ Python-bugs-list

[issue20285] Improve object.__doc__ and help(object) output

2014-01-16 Thread Terry J. Reedy
New submission from Terry J. Reedy: object.__doc__ 'The most base type' Since 'most base' can be interpreted as 'least desireable', several people on Python list (2013 Dec, interactive help on the base object) agree that this should be improved. Even is 'most base' is interpreted as a

[issue20286] Segfault when using internal DictProxy

2014-01-16 Thread Ali Ebrahim
New submission from Ali Ebrahim: Demonstration in this gist: https://gist.github.com/aebrahim/840 Crash info in this gist: https://gist.github.com/aebrahim/8466749 The code runs without issue on Ubuntu 12.04 (Python 2.7.3), and Windows 7 (Python 2.7.6). It also ran fine on MacOS X 10.8

[issue20286] Segfault when using internal DictProxy

2014-01-16 Thread Ali Ebrahim
Changes by Ali Ebrahim aliebrahim...@gmail.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20286 ___ ___ Python-bugs-list

[issue20286] Segfault when using internal DictProxy

2014-01-16 Thread Vajrasky Kok
Vajrasky Kok added the comment: It happens on Python 3.3 and 3.4 as well. Tested on Fedora 20. -- nosy: +vajrasky versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20286

[issue20286] Segfault when using internal DictProxy

2014-01-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: s/rettype/restype/ and don't use the internal function _PyObj_FromPointer. -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8557] subprocess PATH semantics and portability

2014-01-16 Thread Reuben Garrett
Changes by Reuben Garrett reubengarr...@gmail.com: -- nosy: +RubyTuesdayDONO ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8557 ___ ___

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-16 Thread Nick Coghlan
Nick Coghlan added the comment: Looking now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20189 ___ ___ Python-bugs-list mailing list

[issue20135] FAQ need list mutation answers

2014-01-16 Thread Fran Bull
Changes by Fran Bull fran.b...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file33502/20135.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20135 ___

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-16 Thread Nick Coghlan
Nick Coghlan added the comment: Larry clarified that the signature(min) change in this patch was actually restoring the Python 3.3 behaviour, so I think with the addition of some relevant test cases to the test suite, go for it :) -- ___ Python

[issue20086] test_locale fails with Turkish locale

2014-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset bac50f54d357 by Serhiy Storchaka in branch '2.7': Issue #20086: Restored the use of locale-independing mapping instead of http://hg.python.org/cpython/rev/bac50f54d357 -- ___ Python tracker

[issue1776674] glob.glob inconsistent

2014-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Amaury, could you provide corrected patch? -- components: -Windows versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1776674 ___

[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-16 Thread Larry Hastings
New submission from Larry Hastings: The long-awaited, highly desirable buffer patch is here! With features I figured would never see the light of day. Changes in this patch: * New directive output: output field destination redirects a field (subsection of Clinic's generated code) to

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-16 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Added file: http://bugs.python.org/file33504/8cf882d09d3f.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20172 ___

[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-16 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20287 ___ ___ Python-bugs-list

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-16 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33411/issue20172.winreg.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20172 ___

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-16 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33412/issue20172.winsound.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20172 ___

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-16 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33439/issue20172._winapi.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20172 ___

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-16 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33415/issue20172.msvcrt.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20172 ___

<    1   2