Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2986
___
___
Python-bugs-list
Changes by Dirkjan Ochtman dirk...@ochtman.nl:
--
nosy: +djc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9520
___
___
Python-bugs-list mailing
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
I was going to commit this patch, but decided to ask for a second opinion. I
think module names in section titles should be marked up with :mod:.
--
assignee: belopolsky
components: Documentation
files:
New submission from Antoine Pitrou pit...@free.fr:
Y:\py3k\__svn__\PCbuild\python_d.exe -m test.regrtest -R 3:2 test_os
[1/1] test_os
[33558 refs]
beginning 5 repetitions
12345
[33558 refs]
.[33558 refs]
.[33558 refs]
.[33558 refs]
.[33558 refs]
.
test_os leaked [3, 3] references, sum=6
1 test
Terry J. Reedy tjre...@udel.edu added the comment:
Tim told me to continue with this as he has no time.
rev86401 - apply 3.1 doc fix
--
assignee: tim_one - terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2986
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I am attaching a patch that seems to fix the issue. Note that I considered
fixing the problem in parsetok.c where offset is originally computed, but this
is part of pgen which has to be compiled without unicode support.
STINNER Victor victor.stin...@haypocalc.com added the comment:
r86399 fixes the code checking PyUnicode_AsWideChar() failure.
The following change is useless, it cannot overflow:
-if (n + k MAXPATHLEN)
+if (k MAXPATHLEN - n)
k = MAXPATHLEN - n;
n and k maximum values are
Eli Bendersky eli...@gmail.com added the comment:
Attaching a new patch for 2.7 freshly generated vs. current 2.7 maintenance
branch from SVN.
--
Added file: http://bugs.python.org/file19569/issue2986.fix27.5.patch
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
3.1 was released before 2.7, so there are some features in 2.7 that aren’t in
3.1. Tests are probably candidate for backport.
(BTW, I don’t understand the fix :) I guess I fail at boolean logic tonight.)
--
nosy: +eric.araujo
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10358
___
___
Terry J. Reedy tjre...@udel.edu added the comment:
Tim told me to continue with this as he has no time.
rev86401 - apply 3.1 doc fix
I cannot apply 2.7 patch. I has different header lines. In particular,
TortoiseSVN cannot fetch nonexistent revision Mon Aug 30 06:37:52 2010 +0300.
Please
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
¡™£¢∞§¶•ªº
File stdin, line 1
¡™£¢∞§¶•ªº
^
SyntaxError: invalid character in identifier
It looks like strlen() is used instead of number of characters in the decoded
string.
--
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10382
___
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7434
___
___
Python-bugs-list
Changes by Jesús Cea Avión j...@jcea.es:
Removed file: http://bugs.python.org/file19356/z
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10142
___
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
dependencies: +Command line error marker misplaced on unicode entry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10384
STINNER Victor victor.stin...@haypocalc.com added the comment:
Here is a patch. It moves warnings initialization after
io initialization (the latter being arguably more critical
than the former). Also adds two tests.
initstdio() and initmain() may emit warnings. Eg. issue #8766 (which now
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: +ezio.melotti, haypo, lemburg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10382
___
Jesús Cea Avión j...@jcea.es added the comment:
Please, review this. I had changed IO to support the new flags too. To do it, I
must relax error control in IO, a bit.
So, the new flag are supported both in os.lseek() and in standard file
objects.
Please, Antoine, could you review?.
I have
Antoine Pitrou pit...@free.fr added the comment:
Committed in r86395 (3.x); I've only backported the tests to 2.7 and 3.1.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment:
STINNER Victor writes:
The following change is useless, it cannot overflow:
-if (n + k MAXPATHLEN)
+if (k MAXPATHLEN - n)
k = MAXPATHLEN - n;
n and k maximum values are MAXPATHLEN (and the maximum value of
anatoly techtonik techto...@gmail.com added the comment:
Should we escalate this issue to CVA for Python 2.x?
--
nosy: +techtonik
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1589
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Sun, Oct 31, 2010 at 8:00 PM, Éric Araujo rep...@bugs.python.org wrote:
..
“Python” is lower-cased only when referring to the executable (as a
file) itself. When talking about the language, the implementation or
the
Martin Dunschen mdunsc...@gmail.com added the comment:
I have identified 5 cases where objects of type PyThread_type_lock are
allocated but never freed again:
import.c:
import_lock
pystate.c:
head_mutex
thread.c:
key_mutex
ceval.c:
interpreter_lock
zliblock.c:
zlib_lock
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
The token module appears to be designed to be used with import *. In fact it
is used this way in the tokenize module. However it does not define __all__
and as a result, from token import * leaks symbol main:
import
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also #2382: I wrote patches two years ago for this issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10382
___
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
With timezone class added to datetime module, C API should be extended to at
the minimum support efficient creation of timezone instances and access to the
singleton UTC instance.
I am not sure whether
Jesús Cea Avión j...@jcea.es added the comment:
import os
f=open(XX,w+b)
f.seek(1024*1024)
1048576
f.write(bhello)
5
f.seek(1024*1024*2)
2097152
f.write(bbye)
3
f.seek(0,os.SEEK_HOLE)
0
f.seek(0,os.SEEK_DATA)
1048576
f.seek(1048576,os.SEEK_HOLE)
1179648
f.seek(1179648,os.SEEK_DATA)
R. David Murray rdmur...@bitdance.com added the comment:
Yeah, obviously that language can be improved. 'exactly' was meant to imply
'nothing but', but clearly it doesn't.
If we want to restore more stringent backward compatibility and allow trailing
text, it would be possible to make format
Barry A. Warsaw ba...@python.org added the comment:
Attached is the remaining patch against py3k. This installs the symlinks,
fixes the distutils 'install_headers' location, and uses abiflags in the
python3.pc path.
I think this branch is done, pending approval and commit.
--
Added
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
Can you see the error in the following?
invalid = 5
File stdin, line 1
invalid = 5
^
SyntaxError: invalid character in identifier
The problem is that an invisible space character crept into the
Łukasz Langa luk...@langa.pl added the comment:
Please use the deprecation process when possible. That would mean creating an
alias for the function you want to remove somewhat like this (taken from
configparser):
def readfp(self, fp, filename=None):
Deprecated, use
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7434
___
___
Hi all,
I found a bug in Python 2.7 involving dictionary comprehensions. I repeatedly
tried to register on the Issue Tracker (http://bugs.python.org/) but never
received a confirmation email, so I still can't log in and post it there. Maybe
someone on this list can post it on my behalf:
Changes by Terry J. Reedy tjre...@udel.edu:
--
Removed message: http://bugs.python.org/msg120925
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2986
___
Łukasz Langa luk...@langa.pl added the comment:
Committed in r86402.
Documentation changes pending, to be made after Fred's detailed review. Fred,
you can review using trunk. Reassigned as a reminder.
--
assignee: lukasz.langa - fdrake
keywords: +needs review -patch
stage: unit test
New submission from Felix Laurie von Massenbach fantasi...@gmail.com:
If the config file has a boolean formatted as either True or False, python
raises an attribute error when doing str.lower() on it. In my code I've worked
around this in the following way:
class
Felix Laurie von Massenbach fantasi...@gmail.com added the comment:
Oops, that was the broken first version. Let's try again:
class MyConfigParser(ConfigParser.RawConfigParser):
def getboolean(self, section, option):
result = self.get(section, option)
try:
trues
Antoine Pitrou pit...@free.fr added the comment:
Should we escalate this issue to CVA for Python 2.x?
It's more of a missing feature than a security issue in itself, although
the missing feature has to do with security.
--
___
Python tracker
Changes by Georg Brandl ge...@python.org:
--
assignee: - lukasz.langa
nosy: +lukasz.langa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10387
___
david db.pub.m...@gmail.com added the comment:
On 11 November 2010 23:31, Antoine Pitrou rep...@bugs.python.org wrote:
Antoine Pitrou pit...@free.fr added the comment:
Should we escalate this issue to CVA for Python 2.x?
It's more of a missing feature than a security issue in itself,
Antoine Pitrou pit...@free.fr added the comment:
It's more of a missing feature than a security issue in itself, although
the missing feature has to do with security.
Still it would be nice to see in python 2.x at some point don't you think?
Well, lots of things would be nice to see in
Łukasz Langa luk...@langa.pl added the comment:
Felix, thanks for your report! :)
I believe you misunderstood that all ConfigParser objects by design should hold
*only strings* inside. The same problem would appear if you tried to write()
configuration from a parser with booleans or numbers
Fred L. Drake, Jr. fdr...@acm.org added the comment:
Normally, I'd recommend leaving the main name alone, but in the case of
modules that use it as an tool for module maintenance (symbol, token), I don't
think it matters either way.
Ok to commit.
--
assignee: - belopolsky
nosy:
New submission from Giampaolo Rodola' g.rod...@gmail.com:
As root:
import spwd
spwd.getspall()
[spwd.struct_spwd(sp_nam='root', sp_pwd='!', sp_lstchg=14895, sp_min=0,
sp_max=9, sp_warn=7, sp_inact=-1, sp_expire=-1, sp_flag=-1)
...
]
As limited user:
import spwd
spwd.getspall()
[]
Felix Laurie von Massenbach fantasi...@gmail.com added the comment:
Perhaps I don't understand fully, but I am reading, for example, option =
True from a config file. When doing this getboolean raises:
AttributeError: 'bool' object has no attribute 'lower'
Is it intended that you cannot store
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Committed revision 86410.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10386
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10386
___
Łukasz Langa luk...@langa.pl added the comment:
No problem Felix. But look:
Python 2.7 (r27:82500, Sep 24 2010, 12:26:28)
[GCC 4.3.4 20090804 (release) 1] on cygwin
Type help, copyright, credits or license for more information.
config =
... [section]
... does_it_work = True
... is_it_broken =
Éric Araujo mer...@netwok.org added the comment:
In my experience of cfg files, it’s uncommon to have leading spaces (and also,
may I add, ugly). It’s great that configparser supports them now, but I
wouldn’t have put them in the basic examples.
--
Changes by Éric Araujo mer...@netwok.org:
--
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10388
___
___
Python-bugs-list
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
Following a brief and consensual discussion on d...@python and #python-dev, I
am proposing attached patch for the Python documentation style guide.
--
assignee: belopolsky
components: Documentation
files:
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10387
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
components: +Library (Lib) -Extension Modules
stage: - unit test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10387
___
Éric Araujo mer...@netwok.org added the comment:
Marking up each and every instance of a module name is not mandatory IMO.
What’s important is that each document title starts with the :mod: construct,
so that the HTML titles and index (at /library) be consistently useful. See
for example
Łukasz Langa luk...@langa.pl added the comment:
Yup, most config parsers don't support that so there are not so many INI type
files in the wild with this kind of formatting. On the other hand, Samba,
XULRunner, mke2fs and others all use this.
I mean, you're not forced to use that ugly feature
Changes by Éric Araujo mer...@netwok.org:
--
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10377
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +benjamin.peterson, eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10375
___
___
Éric Araujo mer...@netwok.org added the comment:
+1 about the patch, if you add an example: “sentence case” may not be obvious
for everyone. If it’s “modulename — Module description”, I agree.
Also, s/white space/whitespace/.
--
nosy: +d...@python, eric.araujo
Antoine Pitrou pit...@free.fr added the comment:
Fixed as part of #9003.
--
resolution: - duplicate
status: open - closed
superseder: - urllib.request and http.client should allow certificate checking
___
Python tracker rep...@bugs.python.org
New submission from Jeffrey Finkelstein jeffrey.finkelst...@gmail.com:
The following code produces an error:
# APIKEY defined above
r = urllib.request.urlopen('http://api.billboard.com/apisvc/chart/v1/'
'list/spec?api_key={}format=JSON'
Jeffrey Finkelstein jeffrey.finkelst...@gmail.com added the comment:
Nevermind.
--
resolution: - invalid
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10390
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This leaks one reference every time:
os.write(123456, bb)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10383
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This looks suspect (in function posix_write)::
if (!PyArg_ParseTuple(args, iy*:write, fd, pbuf))
return NULL;
if (!_PyVerify_fd(fd))
return posix_error();
I'd prefer a PyBuffer_Release(pbuf); before returning...
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9520
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
- The patch modifies the _io module but not _pyio, why?
(try f=_pyio.open(XX,w+b) at the beginning of the script above)
- One test was *removed*, but nothing was added to test this new feature.
This is the most likely way to lose it
Changes by R. David Murray rdmur...@bitdance.com:
--
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10390
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
The new patch, issue10389.diff, addresses Éric's comments and adds an entry for
reST.
--
Added file: http://bugs.python.org/file19571/issue10389.diff
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
Committed in r86414.
--
nosy: -BreamoreBoy
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Dave Malcolm dmalc...@redhat.com:
In various places within the generated Python/Python-ast.c, error handling
generates a repr() and raises exceptions accordingly.
Currently in py3k the generated code uses PyBytes_AS_STRING() on the repr. My
understanding is that repr()
Dave Malcolm dmalc...@redhat.com added the comment:
The attached patch:
- extends the ast error-handling selftest with code that triggers this crash
(on unpatched code)
- fixes Parser/asdl_c.py to generate code using _PyUnicode_AS_STRING instead
- contains the generated changes to
Changes by Dave Malcolm dmalc...@redhat.com:
--
nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10391
___
Alex Willmer a...@moreati.org.uk added the comment:
The re module throws an exception for re.compile(r'[\A\w]'). latest
regex doesn't, but I don't think the pattern is matching correctly.
Shouldn't findall(r'[\A]\w', 'a b c') return ['a'] and
findall(r'[\A\s]\w', 'a b c') return ['a', ' b', '
Stephen Hansen me+pyt...@ixokai.io added the comment:
This test is failing again, and IIUC, largely due to the same sort of issues:
http://www.python.org/dev/buildbot/all/builders/AMD64%20Leopard%203.1/builds/65
I was able to track down what exactly caused it to fail in this case on my box,
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
IMO a better patch would be to use the %R format specification:
PyErr_Format(
PyExc_TypeError, expected some sort of mod, but got %R, obj);
And no need to use PyObject_Repr and the temporary variable!
--
nosy:
Changes by Stephen Hansen me+pyt...@ixokai.io:
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7900
___
___
Éric Araujo mer...@netwok.org added the comment:
Looks good. I wouldn’t say reST is WYSIWYG, since it’s transformed, contrary
to word processors where you make text bold to get it bold.
(If you’re looking for other things to fix in that file, look at the entry for
Unicode ;)
--
Éric Araujo mer...@netwok.org added the comment:
Well, I suggest removing the leading spaces in the examples, except maybe in
one place if you think it’s needed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5412
Ronald Oussoren ronaldousso...@mac.com added the comment:
This is the expected behavior on OSX. Apple has a pretty odd interpretation of
the standards wrt getgroups and setgroups behavior.
This behavior is not a bug in python
Sent from my iPhone
On 11 nov. 2010, at 22:17, Stephen Hansen
Stephen Hansen me+pyt...@ixokai.io added the comment:
Well, yes: the result of posix.getgroups is not a bug in Python, but is it a
bug in the test? Should it be skipped on OSX, or some other solution?
Having buildbots fail because of something that's expected behavior is bad,
isn't it?
Vlastimil Brom vlastimil.b...@gmail.com added the comment:
Maybe I am missing something, but the result in regex seem ok to me:
\A is treated like A in a character set; when the test string is changed to A
b c or in the case insensitive search the A is matched.
[\A\s]\w doesn't match the
R. David Murray rdmur...@bitdance.com added the comment:
Right, regardless of whether or not it is a bug in python, IMO it *is* a bug in
the python test suite, since we *expect* buildbots to be long running processes
and therefore they are going to get hit by this failure on OSX periodically
Changes by R. David Murray rdmur...@bitdance.com:
--
priority: high - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7900
___
___
Barry A. Warsaw ba...@python.org added the comment:
The bug has been fixed upstream by replacing .format() with .format_string().
I'm not sure I understand why there are two different methods - .format() seems
kind of pointless to me, but then I don't use the locale module enough to say
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Committed in revision 86417.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10389
___
Éric Araujo mer...@netwok.org added the comment:
Looks good to me, except the last two lines which I would reword or just remove.
I wonder how many people use shell=True merely for the convenience of passing a
string instead of a list. What do you think about adding a mention of
str.split
Chris Rebert pyb...@rebertia.com added the comment:
the above Note mentioned in those last two lines demonstrates shlex.split()
and correct tokenization.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7950
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
haypo See also #2382: I wrote patches two years ago for this issue.
Yes, this is the same issue. I don't want to close this as a duplicate because
#2382 contains a much more ambitious set of patches. What I am trying to
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Added file: http://bugs.python.org/file19573/issue10382a.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10382
___
Éric Araujo mer...@netwok.org added the comment:
Having no time to read email RFCs, I’ll defer to you here. Please reject this
report or save it for later as you prefer.
--
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
Matthew Barnett pyt...@mrabarnett.plus.com added the comment:
It looks like a similar problem to msg116252 and msg116276.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2636
___
R. David Murray rdmur...@bitdance.com added the comment:
In connection with another bug report I found a rather basic error in
parseaddr, so I'm going to eventually dig far enough into the RFC to have a
real opinion on the elided-space issue.
--
Alex Willmer a...@moreati.org.uk added the comment:
On Thu, Nov 11, 2010 at 10:20 PM, Vlastimil Brom rep...@bugs.python.org wrote:
Maybe I am missing something, but the result in regex seem ok to me:
\A is treated like A in a character set;
I think it's me who missed something. I'd assumed
Éric Araujo mer...@netwok.org added the comment:
I see charmap_build used in encodings too, so it may be useful to make it
officially public for the use of third-party encodings.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
I wonder if this is IronPython-specific. Could you temporarily make the
site-packages directory of a py3k CPython read-only and try to install a
distribution with that CPython? I can try the same thing on unix.
--
R. David Murray rdmur...@bitdance.com added the comment:
Well, the distinction is that, before the bug fix that caused your issue, the
'format_string' method would use a regex to extract the % specifiers from the
input string, and call 'format' to replace that % specifier with a properly
Felix Laurie von Massenbach fantasi...@gmail.com added the comment:
Ok, so I understand the issue, but why doesn't the set method simply convert to
a string?
from ConfigParser import RawConfigParser
from StringIO import StringIO
parser = RawConfigParser()
config =
[section]
test = True
Éric Araujo mer...@netwok.org added the comment:
Re-opening to remind myself about the forward-port.
--
assignee: ocean-city - eric.araujo
components: -Tests
status: closed - open
versions: +3rd party
___
Python tracker rep...@bugs.python.org
Terry J. Reedy tjre...@udel.edu added the comment:
issue2986.fix27.5.patch applied, with version note added to doc, as
rev86418
Only thing left is patch for 3.2, which Eli and I will produce.
--
stage: commit review - needs patch
versions: -Python 2.7
Éric Araujo mer...@netwok.org added the comment:
Thanks for the patch, which looks good to me, except for the test: “eq” will
raise a NameError, since this does not exist. Other test methods bind eq to
self.assertEqual to save typing, which is not really needed in your case: Just
use
1 - 100 of 156 matches
Mail list logo