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
___
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
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.
--
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
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
priority: normal - critical
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20191
___
___
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
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
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
___
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
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
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
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
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)
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
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)
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
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:
-
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
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
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
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?
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
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
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
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
Georg Brandl added the comment:
Rietveld doesn't like your new patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20226
___
___
Georg Brandl added the comment:
Thx! (without soundcheck)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20226
___
___
Python-bugs-list mailing
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
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
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
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19936
___
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
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
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.
--
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
___
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
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
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
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
___
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.
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
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
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,
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.
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
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
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
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()
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.
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
Chris Morgan added the comment:
Testing passed on OSX Mavericks.
--
nosy: +drpotato
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19974
___
___
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
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
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
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
Changes by Ali Ebrahim aliebrahim...@gmail.com:
--
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20286
___
___
Python-bugs-list
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
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
Changes by Reuben Garrett reubengarr...@gmail.com:
--
nosy: +RubyTuesdayDONO
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8557
___
___
Nick Coghlan added the comment:
Looking now.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20189
___
___
Python-bugs-list mailing list
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
___
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
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
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
___
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
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
___
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
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
___
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
___
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
___
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
___
101 - 171 of 171 matches
Mail list logo