Larry Hastings added the comment:
If in C you define
static char a[5] = abcde
C suppresses the trailing '\0'. That it continued to work okay was a lucky
break--you must not have looked in many docstrings, or you lucked out and they
happened to be padded with zeroes.
--
Larry Hastings added the comment:
I had to throw it in a struct to prevent gcc from rearranging the variables.
But this demonstrates the problem--when it prints the string, it doesn't stop
at the end.
-
#include stdio.h
typedef struct
{
int a;
char b[8];
int c;
}
Changes by Glenn Langford glenn.langf...@gmail.com:
--
nosy: +bquinlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20297
___
___
Changes by Glenn Langford glenn.langf...@gmail.com:
--
nosy: +bquinlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20319
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19920
___
___
New submission from Renaud Blanch:
% python3
Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type help, copyright, credits or license for more information.
help(bytes)
bytes constructor accepts more than one argument even of the
Larry Hastings added the comment:
Serhiy: I'm going to add PEP 457 features to the text signature, because
without them the inspect.Signature objects will be wrong. So __doc__ and
__text_signature__ would have to remove those first before handing the string
to ast.parse.
I wasn't seriously
Florent Xicluna added the comment:
Then we can forget it. Thank you for your input.
--
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20280
___
Mark Lawrence added the comment:
This shows the report to be wrong, you either have to pass an iterable of ints
or a single int. Even the title is wrong, it doesn't accept more than one
argument if the first one isn't a string, it raises a TypeError.
Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18
Roundup Robot added the comment:
New changeset 5c4f4db8107c by Stefan Krah in branch '3.3':
Issue #20246: Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.
http://hg.python.org/cpython/rev/5c4f4db8107c
New changeset 9bbc3cc8ff4c by Stefan Krah in branch 'default':
Issue #20246: Fix
Stefan Krah added the comment:
Thanks Ryan. As you say, the original segfault is also triggered with the
shortened message.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20246
___
Changes by Renaud Blanch rndbl...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file33600/bytesobject.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20335
___
Changes by Renaud Blanch rndbl...@gmail.com:
--
title: bytes constructor accepts more than one argument even of the first one
is not a string - bytes constructor accepts more than one argument even if the
first one is not a string
___
Python
Tal Einat added the comment:
Attached updated patch for bytes and bytearray.
In the previous patch I missed the 'clear' and 'copy' bytearray methods. This
patch is a replacement for the previous one, with the additional conversion of
these two methods.
--
Added file:
New submission from Stefan Krah:
It seems that the relaxed timings in some tests are still not
sufficient:
http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/7417/steps/test/logs/stdio
==
FAIL:
New submission from KV:
bdist_rpm should support handling %config(noreplace) to help with packaging.
Patch attached.
--
components: Build
files: bdist_rpm-add-config-file.diff
keywords: patch
messages: 208715
nosy: kv
priority: normal
severity: normal
status: open
title: bdist_rpm
New submission from Terry J. Reedy:
Idle calltips are currently limited to 75 (signature) or 70 (doc line) chars.
This is insufficient for some stdlib signatures. Example:
from http.client import HTTPConnection
import inspect
fob=HTTPConnection.__init__
Terry J. Reedy added the comment:
Meant to mention that wrapping is a possible alternative to truncation,
although a limit of say, 200, would make either alternative rare.
--
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
On further thought, I think the best place to truncate lines is in get_argspec,
after being split from the docstring and before rejoined.
--
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
See #20338 for why I think 70 (or even 79, the limit in CallTipWindow) is too
low a limit.
The purpose of grabbing multiple lines is to get the signature lines of
builtins. I believe the max number of lines needed is 5, for bytes. however,
identifying likely
R. David Murray added the comment:
It looks like the doc for get_ca_certs wasn't missing, so now it appears twice
in the docs. I'm not sure which is the preferred wording, so I'll leave it to
Christian to fix it.
--
nosy: +r.david.murray
status: closed - open
Nikolay Bogoychev added the comment:
Hey,
Just a reminder friendly reminder that there hasn't been any activity for a
month and I have released a v2, pending for review (:
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 6d1372237607 by Florent Xicluna in branch '3.3':
Issue #17825: Cursor ^ is correctly positioned for SyntaxError and
IndentationError.
http://hg.python.org/cpython/rev/6d1372237607
--
nosy: +python-dev
Roundup Robot added the comment:
New changeset aeb204b8f6c4 by Florent Xicluna in branch 'default':
Issue #17825: Cursor ^ is correctly positioned for SyntaxError and
IndentationError.
http://hg.python.org/cpython/rev/aeb204b8f6c4
--
___
Python
Gregory P. Smith added the comment:
For those four libffi files in msg208964, do what you want with them. I
ignored executable bits entirely (didn't set or unset) when importing the code
as there is zero need to execute any of them.
IMNSHO, I think executable bits should _not_ be set on most
Roundup Robot added the comment:
New changeset 0041be34edbf by Florent Xicluna in branch '2.7':
Issue #17825: Cursor ^ is correctly positioned for SyntaxError and
IndentationError.
http://hg.python.org/cpython/rev/0041be34edbf
--
___
Python tracker
New submission from Neil Schemenauer:
While poking around at bytes() related things, I noticed that the
tp_richcompare method for bytes does not use the tp_as_buffer
interface. Making it use it is quite easy, probably even makes the
code simpler
Florent Xicluna added the comment:
Done.
The alignment error with non-ASCII chars should be fixed too, thanks to the
work of Serhiy on issue #2382.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
components: +Interpreter Core
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20339
___
Tal Einat added the comment:
Attaching a new patch for complete conversion of Objects/unicodeobject.c.
This is to replace the previous patch for this file.
This new patch also converts all other possible unicode methods,
including those not using PyArg_* functions. This includes various
methods
Larry Hastings added the comment:
/*[clinic input]
brett_is_stinky_and_wrong
l: long
[clinic start generated code]*/
PyDoc_STRVAR(brett_is_stinky_and_wrong__doc__,
brett_is_stinky_and_wrong(l));
#define BRETT_IS_STINKY_AND_WRONG_METHODDEF\
{brett_is_stinky_and_wrong,
Larry Hastings added the comment:
Is this waiting on something? I agree that we can't change the behavior
of existing functions. But your new converters should raise ValueError.
--
___
Python tracker rep...@bugs.python.org
Larry Hastings added the comment:
Also, you didn't remove the _ in front of Converter in the names, e.g
_PyLong_UnsignedShort_Converter should be _PyLong_UnsignedShortConverter.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 6b62c923c0ef by Terry Jan Reedy in branch '2.7':
Issue #16638: Include up to 5 docstring header lines (before first blank) in
http://hg.python.org/cpython/rev/6b62c923c0ef
New changeset 5b6c3760714e by Terry Jan Reedy in branch '3.3':
Issue #16638:
Terry J. Reedy added the comment:
Main change is using a custom function (2.7) or bytes instead of int for test
and using maxsplit parameter to not needlessly split a 100-line docstring into
100 pieces.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open -
Larry Hastings added the comment:
Actually, here's another data point to consider. The underlying implementation
of PyArg_Parse* is the function convertsimple() in Python/getargs.c. For all
the non-bitwise integer format units ('bhi'), if they overflow or underflow the
native integer they
Terry J. Reedy added the comment:
I deleted truncation code in CallTipWindow.py, all three versions, but messed
up issue number.
2.7 http://hg.python.org/cpython/rev/c28e07377b03
changeset: 88630:c28e07377b03
3.3 (same) http://hg.python.org/cpython/rev/1b89fd73c625
changeset:
New submission from Arfrever Frehtes Taifersar Arahesis:
-bb option does not have different behavior than -b option since Python 3.2.
http://docs.python.org/3.4/using/cmdline.html#cmdoption-b says:
Issue a warning when comparing str and bytes. Issue an error when the option
is given twice
Larry Hastings added the comment:
Well, they're going to have to change somehow, because the concepts of left
and right are going away (see #20303). However, your suggested new name for
these functions would be awful for large groups. Consider
curses.window.overlay:
Larry Hastings added the comment:
When I fix #20303, the new rules will be:
* You can have top-level optional groups anywhere.
* You may nest up to one nested group in a group.
* Whenever you nest a group in another group, all nested groups in that
stack must favor the same side (left or
Larry Hastings added the comment:
That problem will be irrelevant, once builtin classes support signatures
(#20189).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20294
___
New submission from Larry Hastings:
Attached is a *preliminary* patch for Argument Clinic that adds nullable ints.
If you use the converter int(nullable=True), then:
* The type you get back is not int but nullable_int_t, a structure
containing three fields: error, is_null, and i. error is
Larry Hastings added the comment:
I should have mentioned--a sample using nullable ints is in itertoolsmodule.c.
longobject.{ch} changed to add the converters, and obviously clinic.py changed
to add support for the converters.
--
___
Python
Changes by Zachary Ware zachary.w...@gmail.com:
Added file: http://bugs.python.org/file33606/088095387caf.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20172
___
Zachary Ware added the comment:
Ok, new conglomerate patch is posted; includes a few more return conversions
(particularly in msvcrt) and a few other minor changes compared to the previous
conglomerate. I would call this one a commit candidate, pending your review.
I don't plan to commit
Terry J. Reedy added the comment:
If no one else pipes up here, perhaps ask on pydef about changing C names to
match documented names.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20283
Christopher Welborn added the comment:
Ram Rachum: If I actually had a say in the matter, I wouldn't be totally
against it. (so far I only lurk the lists/tracker looking for things to work
on.) I was just offering you a solution that you can use _today_.
I do think that if something like
Guido van Rossum added the comment:
I won't have time to fix this (and bardly to even review a fix) but this seems
a straightforward fix and you can go ahead without me -- maybe you can get
someone else with some asyncio experience to review your patch (e.g. Antoine or
Victor).
--
Nikolaus Rath added the comment:
As discussed on devel, here's an updated patch for timemodule.c that
uses a custom C converter to handle the parse_time_t_args() utility
function. The only function I did not convert is mktime, because I did
not find a way to do so without duplicating the
Vajrasky Kok added the comment:
Here is the patch addressing some of Serhiys concerns. Thanks for the review.
There are some things that I could not make it up:
1. The test for unencodable tarinfo.linkname is not done yet, because maybe it
is better to be done in a separate ticket. To make the
Nikolaus Rath added the comment:
The patches look fine to me. They are only docpatches, so no testcase is needed.
I have rebased them on current hg tip to avoid fuzz, but otherwise left them
unchanged.
I think this is ready to be committed.
--
nosy: +ezio.melotti, georg.brandl
Changes by Vajrasky Kok sky@speaklikeaking.com:
Removed file:
http://bugs.python.org/file33608/fix_tarfile_list_print_lone_surrogate_v3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19920
Changes by Vajrasky Kok sky@speaklikeaking.com:
Added file:
http://bugs.python.org/file33610/fix_tarfile_list_print_lone_surrogate_v3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19920
Zachary Ware added the comment:
Marking #20189 as a dependency; winreg.HKEYType and _winapi.Overlapped need the
signature fixes provided by #20189 before commit.
--
dependencies: +inspect.Signature doesn't recognize all builtin types
___
Python
Zachary Ware added the comment:
And scratch v3 being commit-candidate. I forgot to add an HKEY return
converter to winreg (could have sworn I had done that, but I have no record of
it), and my return converters in msvcrt are messy.
--
___
Python
Vajrasky Kok added the comment:
itertools.repeat.__doc__
'repeat(object, times=None)\nReturns an iterator which returns the object the
specified number of times.\n\nIf times is None, returns the object endlessly.'
itertools.repeat('a', times=None)
Traceback (most recent call last):
File
Georg Brandl added the comment:
The first sentence of the second new paragraph is a bit ungrammatical, right?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11448
___
karl added the comment:
ooops right, my bad.
s/on port 8080. We first/on port 8080, we first/
better?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11448
___
Gregory P. Smith added the comment:
Not all cases of this were fixed by the existing patch. subimports still
trigger the bug via a different code path. attaching an updated unittest that
demonstrates that.
--
resolution: fixed -
status: closed - open
Added file:
Laurent Mazuel added the comment:
Thanks for your answer.
I think you can't transcode internal zip filenames to FS encoding. Actually, in
Unix the FS only stores bytes for filename, there is no FS encoding. Then, if
you change your locale, the filename printed will change too in your console.
201 - 260 of 260 matches
Mail list logo