Georg Brandl ge...@python.org added the comment:
(?flags) are still scoping by default... a new flag to activate that behavior
would really by helpful :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2636
Ned Deily n...@acm.org added the comment:
Actually the flags do already exist: note (as defined in the stat module)
(http://docs.python.org/py3k/library/os.html#os.chflags). Other than the new
UF_HIDDEN, it looks like they are all hardwired there in Lib/stat.py. There is
something to be
STINNER Victor victor.stin...@haypocalc.com added the comment:
Still happens with r84709 on PPC Tiger 3.x
It's not the same error, PYTHONWARNINGS is decoded from the wrong encoding:
locale encodind instead of utf-8. r84731 should fix this bug (at least, it
restores the encoding used because
Armin Rigo ar...@users.sourceforge.net added the comment:
I propose that we first attempt to fix the crasher; depending on the solution
we might then either fix the doc or the code for _PyInstance_Lookup().
If no-one is willing to fix this bug I am fine to let it go. But somehow I am
sure
Changes by Marko Kohtala marko.koht...@gmail.com:
Removed file: http://bugs.python.org/file18721/sqlite3bug.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9750
___
Changes by Marko Kohtala marko.koht...@gmail.com:
Removed file: http://bugs.python.org/file18722/sqlite3ident.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9750
___
Marko Kohtala marko.koht...@gmail.com added the comment:
Thank you for the review.
I have very limited time to use on this. So even when I'd like to make
everything easy for you, have the time you give to python be as productive as
possible, I can not.
But I'll respond to your comments on
Ned Deily n...@acm.org added the comment:
On a similar systems (10.6, HFS+ case-sensitive), I was able to reproduce this
failure when using those non-standard ./configure params. The test does not
fail after removing --with-wctype-functions. As noted, --with-wctype-functions
is planned to
Changes by Ned Deily n...@acm.org:
--
stage: unit test needed - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9832
___
___
Ned Deily n...@acm.org added the comment:
I am not able to reproduce that failure running on 10.6 (case-sensitive HFS+)
using your ./configure options and running the tests in the build directory
(make test). How are you running the tests? Could there be a file or
directory permissions
New submission from Black Dew black...@gmail.com:
ZipFileExt.read() can return more data than requested, unlike file and other
file-like objects.
This function calls read1() in a loop, passing the original requested size even
if part of the data was already read thus reading and returning
Ismail Donmez ism...@namtrac.org added the comment:
Problem is I set PYTHONDONTWRITEBYTECODE to 1, tests should disable this
environmental variable before testing for *.pyc files. Closing as invalid.
--
resolution: - invalid
status: open - closed
STINNER Victor victor.stin...@haypocalc.com added the comment:
Fixed by r84730, thanks for the issue.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9836
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9837
___
___
Python-bugs-list
Nick Dowell nickdow...@gmail.com added the comment:
Why should it only be available on OS X if built with MACOSX_DEPLOYMENT_TARGET
of 10.5 or higher?
chflags() should be available in earlier versions of the OS:
Mark Lawrence breamore...@yahoo.co.uk added the comment:
No reply to msg114328.
--
resolution: - out of date
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue903339
Mark Lawrence breamore...@yahoo.co.uk added the comment:
No reply to msg114998.
--
resolution: - out of date
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1379804
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Nor reply to msg114679.
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1172011
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
No reply to msg114985.
--
resolution: - invalid
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1076515
___
Martin v. Löwis mar...@v.loewis.de added the comment:
I agree with msg115992. People do use make to build extension modules, with
hard-coded file names in the make targets.
--
___
Python tracker rep...@bugs.python.org
Matthias Klose d...@debian.org added the comment:
however we should expose the name of the SOABI string/extension in
python-config, so that people can build with this name if they want to.
--
___
Python tracker rep...@bugs.python.org
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Senthil/John has this simply slipped under the radar?
--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1520831
Changes by Georg Brandl ge...@python.org:
--
assignee: - pitrou
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9828
___
___
Georg Brandl ge...@python.org added the comment:
Same here.
We also have sections Licenses and Acknowledgements for incorporated
software, e.g. in Doc/license.rst; the text should be added there too.
--
nosy: +georg.brandl
___
Python tracker
Mark Lawrence breamore...@yahoo.co.uk added the comment:
The patch appears to be way out of date. Is there any interest in the concept
of this patch, has something similar already been done or what?
--
nosy: +BreamoreBoy
___
Python tracker
Georg Brandl ge...@python.org added the comment:
It is available via sysconfig, so that would not be a problem.
Patch is attached; I'm not sure if the option name --so is the best one though.
--
Added file: http://bugs.python.org/file18856/pc-so.diff
Marien Zwart m_zw...@123mail.org added the comment:
Sorry for forgetting about this for so long.
The attached patch makes the following changes:
Removes the two instances I noticed of treating exception instances as
sequences. This no longer works in python 3 and is not very useful in python
Martin v. Löwis mar...@v.loewis.de added the comment:
It seems that multiprocessing is fairly conservative wrt. 64-bit support. For
example, conn_send_string has a string limit of 0x7fff. Therefore, several
of the warnings are harmless; the respective lengths fit into int just fine.
I
Antoine Pitrou pit...@free.fr added the comment:
I can't reproduce under Linux. Is 3.1 also affected?
Can you try the following patch:
Index: Python/pythonrun.c
===
--- Python/pythonrun.c (révision 84718)
+++ Python/pythonrun.c
Martin v. Löwis mar...@v.loewis.de added the comment:
Instead of
PyLong_FromLong((Py_uintptr_t) self);
use
PyLong_FromVoidPtr(self);
For the others, I suggest making length and allocated Py_ssize_t; this is
likely a pervasive change. Of course, very few people will currently run into
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
@Chris: I just thought that as the list was so long, alphabetic might be easier
for people when they remember the attribute name but don't remember exactly
what it is.
@Eric: Fair comment, I usually do but sometimes I forget. I have now
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
Removed message: http://bugs.python.org/msg116176
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9827
___
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
@Chris: I just thought that as the list was so long, alphabetic might be easier
for people when they remember the attribute name but don't remember exactly
what it is.
@Eric: Fair comment, I usually do but sometimes I forget. I have now
Martin v. Löwis mar...@v.loewis.de added the comment:
I see. Looking at net/unix/af_unix.c:unix_mkname of Linux 2.6, there is a
comment that says
Check unix socket name: [...]
- if started by not zero, should be NULL terminated (FS object)
However, the code then just does
/*
* This
Martin v. Löwis mar...@v.loewis.de added the comment:
The ifdef should go; pthreads always support TLS (since XPG5, 1997).
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9786
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Brian/Tim any comments on this, the patch contains C code that I'm not
qualified to comment on.
--
nosy: +BreamoreBoy, brian.curtin, tim.golden
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
What is appMalloc, and what does it have to do with some Python lock?
You seem to suggest that some malloc implementations make use of Python
interpreter internals. I would call that a bug in the malloc implementation (it
violates standard
Mark Lawrence breamore...@yahoo.co.uk added the comment:
What is the status of this issue?
--
nosy: +BreamoreBoy
title: User-agent header added by an opener is frozen - Urllib2 user-agent
header added by an opener is frozen
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6
Matthew Woodcraft matt...@woodcraft.me.uk added the comment:
(1) Shouldn't 'reverse=True' be omitted in the second doc
addition?
Yes, of course, sorry.
(2) I'd also suggest adding a brief comment about what this
means for distinct, but equal, objects; otherwise it's not
really obvious
Antoine Pitrou pit...@free.fr added the comment:
Indeed. In most cases, though, read1(n) will return exactly n bytes and the
loop will therefore end immediately with the right buf size. Do you have a
simple test case?
--
versions: +Python 3.2
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Does any core committer fancy reviewing the 18 attached patches? :)
--
nosy: +BreamoreBoy
versions: +Python 3.1, Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
As an aside, I still like Jeffrey Yasskin's suggestion on the
python-dev mailing list that the sensible definition for max would
maintain the invariant that max(iterable) be equivalent to
sorted(iterable)[-1]
What's interesting is the
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Senthil: could you review the attached patch please?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4733
___
New submission from Pauli Virtanen p...@iki.fi:
The C-API exposed by the `io` module on Python 3.1/3.2 is very limited, and
makes interfacing with Python file objects in extension modules difficult.
In more detail:
1) Because the Python layer has buffering etc., the file handle returned by
New submission from Martin v. Löwis mar...@v.loewis.de:
Will this have two patch keywords?
--
files: rss.xml.diff
keywords: patch
messages: 116189
nosy: loewis
priority: normal
severity: normal
status: open
title: Test issue
Added file: http://bugs.python.org/file18859/rss.xml.diff
Martin v. Löwis mar...@v.loewis.de added the comment:
No.
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9839
___
Martin v. Löwis mar...@v.loewis.de added the comment:
It's probably best to rewrite these functions in the way the SDK Example
section works (i.e. CreateFile/ReadFile) instead of _open/_read (*). As Amaury
says, the warnings are harmless: the file numbers will always be in range, as
_open
Antoine Pitrou pit...@free.fr added the comment:
Instead, every call must go through PyObject_CallMethod, and the file
objects only handle `PyBytes` and `PyByteArray` which are cumbersome
and inefficient to use in extension modules.
Because of the generic nature of the 3.x I/O stack, even
Martin v. Löwis mar...@v.loewis.de added the comment:
It should not hang anymore, since r84172/r84198. The issue was a GIL-based
deadlock: the GIL was acquired and then not released in a callback function, so
the next callback caused a deadlock.
The actual cause was a non-ASCII character in
Antoine Pitrou pit...@free.fr added the comment:
It should be noted that repeatedly calling Py_Initialize / Py_Finalize leaks a
lot (even without the import _ctypes):
--- 0 ---
[34543 refs]
--- 1 ---
[37540 refs]
--- 2 ---
[40504 refs]
--- 3 ---
[43468 refs]
--- 4 ---
[46432 refs]
--- 5 ---
Benjamin Peterson benja...@python.org added the comment:
Thank you, Martin. Reenabled the test in r84735.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3402
Martin v. Löwis mar...@v.loewis.de added the comment:
Dag: thanks again for the patch. You did everything correctly; Eric's remarks
were just in case you plan to submit contributions in an ongoing manner.
Raymond: that it makes users go through the hoops of getting a tracker account,
doing a
Black Dew black...@gmail.com added the comment:
If i follow the logic in read1() correctly it will do that only for files with
very low compression ratios (the original sample where i noticed that problem
was actually a chunk of encrypted data inside the zip).
From the comments referring to
Martin v. Löwis mar...@v.loewis.de added the comment:
+1
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9042
___
___
Python-bugs-list mailing
Martin v. Löwis mar...@v.loewis.de added the comment:
I know this is closed, but traditionally, we have put stuff like this into
README (not sure whether Sébastien read the README :-). So if anybody feel like
adding some text, go ahead.
In return, feel also free to take out some text that
Antoine Pitrou pit...@free.fr added the comment:
Unfortunately, 2.6 and 3.1 are stable releases, they only get security and
documentation fixes. 2.7 is nearly in the same state
Well, that's false. 2.7 and 3.1 both receive bug fixes (and this looks like a
bug to me :-)).
--
nosy:
Antoine Pitrou pit...@free.fr added the comment:
Actually, there's a Misc/AIX-NOTES file which needs updating. Sébastien, do you
want to do that?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9799
Martin v. Löwis mar...@v.loewis.de added the comment:
If the feature to be provided is multiple Python installations with the same
prefix, then I suggest to generalize this beyond the debug build. One approach
would be:
1. add a --bin-suffix configure option (Debian: set this to _d when
Antoine Pitrou pit...@free.fr added the comment:
Ok, thank you. I've fixed the issue and added a test in r84737 (3.x) and r84739
(2.7).
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
versions: +Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9759
___
___
Martin v. Löwis mar...@v.loewis.de added the comment:
As Brian explains: if you want the Wow6432 entries, install the 32-bit Python -
which will install just fine on your 64-bit system, and is, in many cases, the
better choice.
--
nosy: +loewis
status: open - closed
Ned Deily n...@acm.org added the comment:
Nick: lchflags. lchflags is only available in 10.5 or higher, unlike chflags
which has been around for much longer.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8746
Matthias Klose d...@debian.org added the comment:
--extension-suffix ?
doesn't use the `so', which you don't see on MacOs, HpUX and Windows.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9806
Changes by Martin v. Löwis mar...@v.loewis.de:
--
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9817
___
___
Matthias Klose d...@debian.org added the comment:
the .rst file is missing the zlib and libffi licenses too. will add them.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9817
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Is 3.1 also affected?
Sorry, 3.1 is not affected.
Can you try the following patch:
Your patch works. :-)
E:\python-dev\py3k\PC\VC6ctypes_crash.exe
--- 0 ---
[36242 refs]
--- 1 ---
[39140 refs]
--- 2 ---
[41538 refs]
--- 3 ---
Martin v. Löwis mar...@v.loewis.de added the comment:
What do you gain with this patch? (i.e. what is its advantage?)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9820
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
What do you gain with this patch? (i.e. what is its advantage?)
You know directly that os.listdir(bytes) is unable to encode the filename,
instead of manipulate an invalid filename (b'?') and get the error later (when
you use the
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I found another refcount bug in Python3.x.
Fixed in r84741(py3k), r84742(release31-maint).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6869
Martin v. Löwis mar...@v.loewis.de added the comment:
I did not realize the build instructions recommended using the
buildbot tool. It is clearly past time I got around to doing windows
build myself.
I'd rather prefer a different setup, also: it would
be better if the batch files to get the
Ismail Donmez ism...@namtrac.org added the comment:
Also reproduced on Snow Leopard.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8445
___
___
Martin v. Löwis mar...@v.loewis.de added the comment:
About Windows: supports_unicode_filenames is False if
sys.getwindowsversion().platform 2: win32s (0) or Windows 9x/ME
(1). I don't know win32s, but I know that Windows 9x/ME is not more
supported.
Win32s is long gone. It was an
Martin v. Löwis mar...@v.loewis.de added the comment:
I think that supports_unicode_filenames is still useful to check if
the filesystem API uses bytes (Linux, FreeBSD, Solaris, ...) or
characters (Mac OS X, Windows). Mac OS X is a special case because
the C API uses char* (byte string), but
Martin v. Löwis mar...@v.loewis.de added the comment:
Use PCbuild/bdist_wininst.vcproj.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9818
___
Antoine Pitrou pit...@free.fr added the comment:
Ok. How about this patch now?
(I'm trying to solve this in a clean way :))
--
keywords: +patch
Added file: http://bugs.python.org/file18861/gildestroy.patch
___
Python tracker rep...@bugs.python.org
Matthias Klose d...@debian.org added the comment:
fixed in r84743, r84745 and r84746
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9817
___
Matthias Klose d...@debian.org added the comment:
my bad
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9818
___
Martin v. Löwis mar...@v.loewis.de added the comment:
You know directly that os.listdir(bytes) is unable to encode the
filename, instead of manipulate an invalid filename (b'?') and get
the error later (when you use the filename: open, copy, delete, ...
the file).
Ok. Then I'm -1 on the
Georg Brandl ge...@python.org added the comment:
Windows isn't relevant here, but for the others, extension-suffix sounds much
better. Added in r84747.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9806
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +janssen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8445
___
___
Python-bugs-list mailing
Russell Keith-Magee freakboy3...@gmail.com added the comment:
It's still a problem AFAICT. Level of interest is a different matter.
Django has needed this since 2006, so we've always shipped a locally modified
copy of the doctest module.
That said, Django is in the process of moving away
Matthew Barnett pyt...@mrabarnett.plus.com added the comment:
Another flag? Hmm.
How about this instead: if a scoped flag appears at the end of a regex (and
would therefore normally have no effect) then it's treated as though it's at
the start of the regex. Thus:
foo(?i)
is treated
anatoly techtonik techto...@gmail.com added the comment:
PDCurses is not updated, because it is considered stable and mature library
that has been tested on Windows platform by many roguelikes. I doubt that
ncurses hackers care about Windows compatibility more than just to make it run.
Meador Inge mead...@gmail.com added the comment:
I agree with Antoine's LIFO comment. Also, FWIW, the C standard library
behaves in a LIFO manner as well (C99 spec - 7.20.4.3 clause 3):
First, all functions registered by the atexit function are called, in the
reverse order of their
David Watson bai...@users.sourceforge.net added the comment:
With all the effort that went into the patch, I recommend to get it right: if
there is space for the \0, include it. If the string size is exactly 108, and
it's linux, write it unterminated. Else fail.
As for testing: we should
Vlastimil Brom vlastimil.b...@gmail.com added the comment:
Not that my opinion matters, but for what is it worth, I find it rather unusual
to have to use special flags to get normal (for some definition of normal)
behaviour, while retaining the defaults buggy in some way (like ZEROWIDTH). I
STINNER Victor victor.stin...@haypocalc.com added the comment:
FindFirst/NextFileA will also do some other interesting conversions,
such as the best-fit conversion (which the mbcs code doesn't do
(anymore?)).
About mbcs, mbcs codec of Python 3.1 is like .encode('mbcs', 'replace') and
Matthew Barnett pyt...@mrabarnett.plus.com added the comment:
The tests for re include these regexes:
a.b(?s)
a.*(?s)b
I understand what Georg said previously about some people preferring to put
them at the end, but I personally wouldn't do that because some regex
implementations
STINNER Victor victor.stin...@haypocalc.com added the comment:
It remembers me the discussion of the issue #3187. About unencodable filenames,
Guido proposed to ignore them or to use errors=replace, and wrote Failing
the entire os.listdir() call is not acceptable. (... long discussion ...) And
Georg Brandl ge...@python.org added the comment:
Matthew, I understand why you want to have these flags scoped, and if you
designed a regex dialect from scratch, that would be the way to go. However,
if we want to integrate this in Python 3.2 or 3.3, this is an absolute killer
if it's not
STINNER Victor victor.stin...@haypocalc.com added the comment:
FindFirst/NextFileA will also do some other interesting conversions,
such as the best-fit conversion (which the mbcs code doesn't do
(anymore?)).
If we choose to keep this behaviour, I will have to revert my commit on mbcs
codec
Martin v. Löwis mar...@v.loewis.de added the comment:
About Windows, os.listdir(str) never fails, but my question is about
os.listdir(bytes). Should os.listdir(bytes) returns invalid filenames
(encoded
with mbcs+replace, filenames not usable to open, rename or delete the file)
or
just
David Watson bai...@users.sourceforge.net added the comment:
I meant to say that FreeBSD provides the SUN_LEN macro, but it
turns out that Linux does as well, and its version behaves the
same as FreeBSD's. The FreeBSD man pages state that the
terminating null is not part of the address:
Martin v. Löwis mar...@v.loewis.de added the comment:
If we choose to keep this behaviour, I will have to revert my commit on mbcs
codec to be consistent with os.listdir(). Or at least patch
PyUnicode_EncodeFSDefault and os.fsencode() (use replace error handler) and
Martin v. Löwis mar...@v.loewis.de added the comment:
The examples in Stevens/Rago's Advanced Programming in the Unix
Environment also pass address lengths to bind(), etc. that do
not include the null.
I didn't (mean to) suggest that the null must be included in the
length - only that it
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
assignee: - amaury.forgeotdarc
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9210
___
Brian Curtin cur...@acm.org added the comment:
I haven't had time to investigate but it shouldn't be closed just yet. Someone
will get to it.
--
resolution: invalid -
status: closed - open
___
Python tracker rep...@bugs.python.org
Changes by Brian Curtin cur...@acm.org:
--
nosy: -brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2889
___
___
Python-bugs-list
New submission from Raymond Hettinger rhettin...@users.sourceforge.net:
Add a recursive_repr() decorator to provide a solution to the problem of
creating a container __repr__ method that doesn't fail for recursive calls.
--
files: recursive_repr.patch
keywords: patch
messages: 116239
Changes by Éric Araujo mer...@netwok.org:
--
versions: -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9838
___
___
Python-bugs-list
1 - 100 of 147 matches
Mail list logo