Ross Lagerwall rosslagerw...@gmail.com added the comment:
Fixed small #ifdef error with fstatat.
--
Added file: http://bugs.python.org/file20460/i4761_v6.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4761
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2987
___
___
Python-bugs-list
Denis S. Otkidach denis.otkid...@gmail.com added the comment:
Phillip, your argument about interfacing with code written in C doesn't work
for built-in immutable types like str. Any subclass of str must call
str.__new__ thus keeping proper internal state.
--
New submission from Lennart Regebro rege...@gmail.com:
In Python 2 the file used for csv.writer() should be opened in binary mode,
while in Python 3 is should be opened in text mode but with newlines set to ''.
This change is neither warned for by python -3, nor is there a fixer for it
(and
STINNER Victor victor.stin...@haypocalc.com added the comment:
b) what if the file system implementation mangles file names.
I'd use the same approach as with case-insensitive lookups: verify
that the file we read is really the one we want.
Only Mac OS X and the HFS+ filesystem normalize
Ross Lagerwall rosslagerw...@gmail.com added the comment:
A few small fixes for OS X:
It has no return value for sethostid() and sets different errno if permission
denied,
waitid() is broken - so its disabled,
the timeval struct used in futimes and lutimes is defined slightly differently.
Changes by Lennart Regebro rege...@gmail.com:
--
nosy: +sjmachin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10954
___
___
Python-bugs-list
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
can't we raise a RuntimeError on a deadlock?
Deadlock detection is difficult, and probably impossible if the involved locks
don't use the same underlying mechanism. (A lock can be a pthread object, a
file opened with os.O_EXCL, and
John Machin sjmac...@lexicon.net added the comment:
I believe that both csv.reader and csv.writer should fail with a meaningful
message if mode is binary or newline is not ''
--
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
can't we raise a RuntimeError on a deadlock?
(I mean: deadlock on the import lock)
Deadlock detection is difficult, and probably impossible if the
involved locks don't use the same underlying mechanism
If it is impossible to
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10451
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
There is also issue c) what if the filesystem encoding can only
represent a compatibility character, say U+00B5, but not its NFKC
equivalent, U+03BC?
It is the same problem than not being able to write U+03BC with a keyboard: in
Antoine Pitrou pit...@free.fr added the comment:
If it is impossible to detect deadlocks, can't we raise an exception
if two threads try to import a module at the same time? (change
completly how the import lock is handled)
Antoine changed recently the io module to raise a RuntimeError on
Jean-Paul Calderone invalid@example.invalid added the comment:
Phillip, your argument about interfacing with code written in C doesn't work
for built-in immutable types like str.
Sure it does. Definitely-str is easier to handle in C than maybe-str-subclass.
It doesn't matter that
Antoine Pitrou pit...@free.fr added the comment:
Jean-Paul Calderone invalid@example.invalid added the comment:
Phillip, your argument about interfacing with code written in C
doesn't work for built-in immutable types like str.
Sure it does. Definitely-str is easier to handle in C than
Nick Coghlan ncogh...@gmail.com added the comment:
Victor, could you please create a Reitveld review for this? The auto-review
creator can't cope with the Git diffs.
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
Andrey Popp 8may...@gmail.com added the comment:
I've also sent message[1] to web-sig about this issue.
[1]: http://mail.python.org/pipermail/web-sig/2011-January/004986.html
--
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
Victor, could you please create a Reitveld review for this?
Yes, but not yet. I have first to cleanup the patch.
--
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
If the import lock is changed to raise an exception,
heaps of multi-threaded software will be broken.
You are right. It has done so for 12 years already (10011), so it's a bit late
to do anything about it. And backward
STINNER Victor victor.stin...@haypocalc.com added the comment:
for 12 years already (10011)
Oops, it's r10011 (to get a nice URL on the commit).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10923
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also issue #9260 for a possible improvment.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10923
___
Nick Coghlan ncogh...@gmail.com added the comment:
OK - I'll wait until that is ready before digging into this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3080
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9260
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Use U format to parse a module name, and %R to format a module name
(to escape surrogates characters and add quotes, instead of
... '%.200s' ...).
See also #8754: repr() is better than str() for other reasons, eg. to see a
New submission from Ronald Oussoren ronaldousso...@mac.com:
I ran into this issue while debugging why py2app doesn't work with python
3.2rc2. The reason seems to be a regression w.r.t. having the stdlib inside a
zipfile.
Note that I haven't tested this without going through py2app yet.
STINNER Victor victor.stin...@haypocalc.com added the comment:
It should be a regression introduced by #8611 or #9425.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10955
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +georg.brandl
priority: normal - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10955
___
New submission from Mark Florisson markflorisso...@gmail.com:
In both Python versions EINTR is not handled properly in the file.write and
file.read methods.
- file.write -
In Python 2, file.write can write a short amount of
bytes, and when it is
Mark Florisson markflorisso...@gmail.com added the comment:
Here is fread.py (why can you only attach one file at a time? :P)
--
Added file: http://bugs.python.org/file20463/fread.py
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
zipimport decodes filenames of the archive from cp437 or UTF-8 (depending on a
flag in each file entry). Python has a builtin UTF-8 codec, but no cp437
builtin codec. You should try to add encodings/cp437.py to your python3.2/
STINNER Victor victor.stin...@haypocalc.com added the comment:
Restore priority to normal: this is a workaround, and a better fix cannot be
done before 3.2 final.
--
priority: release blocker - normal
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
What behaviour would you expect instead?
--
nosy: +pitrou
versions: -Python 2.5, Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10956
Mark Florisson markflorisso...@gmail.com added the comment:
I think this sums it up:
file.write, on EINTR, could decide to continue writing if no Python signal
handler raised an exception.
Analogously, file.read could decide to keep on reading on EINTR if no Python
signal handler raised an
Antoine Pitrou pit...@free.fr added the comment:
Oops, sorry, had missed the relevant part in your original message.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10956
___
Antoine Pitrou pit...@free.fr added the comment:
file.write, on EINTR, could decide to continue writing if no Python
signal handler raised an exception.
Analogously, file.read could decide to keep on reading on EINTR if no
Python signal handler raised an exception.
Ok. This would only be
Mark Florisson markflorisso...@gmail.com added the comment:
Ok. This would only be done in buffered mode, though, so your fwrite.py
example would have to be changed slightly (drop the ,0 in fdopen()).
Indeed, good catch. So apparently file.write (in buffered mode) is also
incorrect in
Diego Queiroz queiroz.di...@gmail.com added the comment:
I would agree if mkpath were a public function.
So It is better to define what a public function is. Any function in any
module of any project, if it is indented to be used by other modules, it is
public by definition.
If new people get
New submission from Jerry Seutter jseut...@gmail.com:
Section 4.1 of the Python FAQ (http://www.python.org/dev/faq/) contains a
grammar error:
The sentence I am referring to says: If you are developing on OS X for Python
2.x and will not be working with the OS X-specific modules from the
STINNER Victor victor.stin...@haypocalc.com added the comment:
The regression was introduced in r85690: use the correct encoding to decode the
filename from the ZIP file. Attached patch fixes the bootstrap issue.
--
keywords: +patch
Added file:
New submission from Марк Коренберг socketp...@gmail.com:
ipython session:
In [48]: qwe=os.stat('/usr/lib/libstdc++.so.6')
In [49]: qwe.st_mode
Out[49]: 33188
In [50]: stat.S_ISLNK(qwe.st_mode)
Out[50]: False
In [51]: stat.S_IFLNK qwe.st_mode
Out[51]: 32768
'/usr/lib/libstdc++.so.6' is really
New submission from Ross Lagerwall rosslagerw...@gmail.com:
The fix for issue10916 commited in r88022 introduces this line:
map_size = st.st_size - offset;
If offset st.st_size, map_size is negative. This should cause the mmap system
call to return -1 and set errno.
However, given a certain
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
os.stat() follows symbolic links. You probably want to use os.lstat() instead:
http://docs.python.org/library/os.html#os.lstat
--
nosy: +amaury.forgeotdarc
resolution: - invalid
status: open - closed
New submission from Марк Коренберг socketp...@gmail.com:
Documentation should say about 'following symlink' in this function.
Documentation should advice to use os.lstat() in case when it needed.
--
assignee: docs@python
components: Documentation
messages: 126631
nosy: docs@python,
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Thu, Jan 20, 2011 at 8:06 AM, STINNER Victor rep...@bugs.python.org wrote:
..
There is also issue c) what if the filesystem encoding can only
represent a compatibility character, say U+00B5, but not its NFKC
New submission from Ron Adam ron_a...@users.sourceforge.net:
A collection of small fix's that only effect the new browser mode.
* Change title of html pages from Python ... to PyDoc
* Fixed unterminated div float for items returned without a header.
example: str, None, True,
Ron Adam ron_a...@users.sourceforge.net added the comment:
new patch...
Adjusted a comment in the _gettopic method.
Everything else the same.
--
Added file: http://bugs.python.org/file20468/pydoc_misc_fix.diff
___
Python tracker
Changes by Ron Adam ron_a...@users.sourceforge.net:
Removed file: http://bugs.python.org/file20467/pydoc_misc_fix.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10961
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
About the patch: Break out of this dependency by assuming that the path to
the encodings module is ASCII-only.
The 'path' here is the entry inside the zip file (and does not include the
location of the zip file itself), so the comment
Phillip J. Eby p...@telecommunity.com added the comment:
PyString_AsString() only works on subclasses if their internal representation
is the same as type str. So we can't say subclass of str without *also*
specifying that the subclass store its contents in exactly the same way as an
object
Antoine Pitrou pit...@free.fr added the comment:
PyString_AsString() only works on subclasses if their internal
representation is the same as type str. So we can't say subclass of
str without *also* specifying that the subclass store its contents in
exactly the same way as an object of type
Changes by Ned Deily n...@acm.org:
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10812
___
___
Python-bugs-list mailing list
Skip Montanaro s...@pobox.com added the comment:
If you intend this to be safe in the security sense of the word, I
suggest you release it in PyPI and post a note on comp.lang.python
(a.k.a. python-l...@python.org) asking people to try and break it.
--
nosy: +skip.montanaro
New submission from Antoine Pitrou pit...@free.fr:
This happens when I try to debug a Python process (py3k HEAD in pydebug mode):
Traceback (most recent call last):
File /home/antoine/py3k/__svn__/python-gdb.py, line 52, in module
_type_size_t = gdb.lookup_type('size_t')
RuntimeError: No
Antoine Pitrou pit...@free.fr added the comment:
$ gdb --version
GNU gdb (GDB) 7.1-1mdv2010.1 (Mandriva Linux release 2010.1)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10962
___
Antoine Pitrou pit...@free.fr added the comment:
And bizarrely, test_gdb runs fine.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10962
___
___
Antoine Pitrou pit...@free.fr added the comment:
Er, for some reason it seems to have just stopped happening.
--
resolution: - works for me
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10962
Changes by Antoine Pitrou pit...@free.fr:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10962
___
___
Python-bugs-list
New submission from Dave Malcolm dmalc...@redhat.com:
If we start a short-lived process which finishes before we begin communicating
with it (e.g. by crashing), we can receive a SIGPIPE due to the receiving
process no longer existing. This becomes an EPIPE, which becomes an:
OSError: [Errno
Antoine Pitrou pit...@free.fr added the comment:
It could be argued that this is incorrect, as it masks under-reads of
stdin by the subprocess. However I believe a sanely-written subprocess
ought to indicate success/failure back with its return code.
It seems quite orthogonal. The
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +georg.brandl
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10959
___
Antoine Pitrou pit...@free.fr added the comment:
Here is an updated patch which also caters to the Windows side of things.
--
Added file: http://bugs.python.org/file20470/mmap_10959.patch
___
Python tracker rep...@bugs.python.org
Changes by Brett Cannon br...@python.org:
--
priority: normal - critical
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10845
___
___
Antoine Pitrou pit...@free.fr added the comment:
Fixed in r88131 (3.2), r88132 (3.1) and r88133 (2.7). Thank you!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4761
___
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Misc/cheatsheet has been removed in r88127. Should this be closed?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4819
Antoine Pitrou pit...@free.fr added the comment:
Well, perhaps Marc-André wants to revive it. Otherwise, suggest closing indeed.
--
assignee: docs@python -
nosy: +lemburg
stage: - needs patch
status: open - pending
___
Python tracker
Marc-Andre Lemburg m...@egenix.com added the comment:
Updating the cheat sheet would be a great summer of code like project. We are
considering using the cheat sheet as basis for a flyer in the PSF marketing
material project.
Please add it back and add a note to it, that it currently is
Brett Cannon br...@python.org added the comment:
Filed a bug with LLVM/Clang: http://llvm.org/bugs/show_bug.cgi?id=9014
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10238
___
Antoine Pitrou pit...@free.fr added the comment:
Updating the cheat sheet would be a great summer of code like project.
We are considering using the cheat sheet as basis for a flyer in the
PSF marketing material project.
IMO it's not only about updating. It's about converting it to some
anatoly techtonik techto...@gmail.com added the comment:
Link on group description page to FOTP project site. I thought that
https://bitbucket.org/tarek/distutils2/wiki/Home is that site.
--
___
Python tracker rep...@bugs.python.org
anatoly techtonik techto...@gmail.com added the comment:
The problem that most scripts check for 'on', and not for '1'.
http://www.cgi101.com/book/ch3/text.html
More than that - I don't know any servers that set this to '1', except
mod_wsgi, and perhaps other implementations that follow this
STINNER Victor victor.stin...@haypocalc.com added the comment:
Le jeudi 20 janvier 2011 à 18:15 +, Amaury Forgeot d'Arc a écrit :
But if the zip file contains the stdlib *and* some other custom
modules with cp437 names, the whole operation will fail; it can be the
case with py2exe
Graham Dumpleton graham.dumple...@gmail.com added the comment:
As has been pointed out to you already in other forums, the correct way of
detecting in a compliant WSGI application that a SSL connection was used is to
check the value of the wsgi.url_scheme variable. If your code does not do
STINNER Victor victor.stin...@haypocalc.com added the comment:
A packaging mechanism that prepares code developed on a Latin-1
filesystem for distribution, would have to NFKC-normalize
filenames before encoding them using UTF-8.
It causes portability issues: if you copy a non-ASCII module
Sam Bull s...@pocketuniverse.ca added the comment:
I think there's a much simpler solution to this ticket than the retry logic
that's currently in place.
The code originally avoided the infinite recursion by checking to see if the
previous request had already submitted the auth credentials
Brett Cannon br...@python.org added the comment:
Chris Lattner from LLVM says that this has been fixed in their mainline and
that to work around it in LLVM 2.8 one should build with the -no-integrated-as
flag.
--
resolution: - fixed
status: open - closed
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Perhaps the cheatsheet can be transferred to a wiki page and we can put out a
comp.lang.python call for updates.
Also, +1 on the summer of code idea.
--
nosy: +rhettinger
___
anatoly techtonik techto...@gmail.com added the comment:
Still actual, esp. with this -
http://google-opensource.blogspot.com/2011/01/make-quick-fixes-quicker-on-google.html
and this http://codemirror.net/
--
status: closed - open
___
Python
New submission from Russell Owen reo...@users.sourceforge.net:
The Mac installer alters the user's $PATH to put
/Library/Frameworks/Python.Framework/Versions/Current/bin on the $PATH before
/usr/local/bin and /usr/bin. This is a good idea in my opinion.
But the installer *also* installs
New submission from Brett Cannon br...@python.org:
Once the docs are built using Python 3, then the coverage results can be used
by people wanting to contribute as something to do. Should also mention in the
task that some APIs should probably be private:
Changes by Brett Cannon br...@python.org:
--
dependencies: +Build 3.x documentation using python3.x
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10965
___
New submission from Brett Cannon br...@python.org:
test.regrtest considers an ImportError to be a test to skip. It then uses this
info to decide what skipped tests were expected (or not) based on a list kepted
in regrtest.py.
For detecting compiler failures, an ImportError should be a test
Brett Cannon br...@python.org added the comment:
Once the proper function in test.support comes about then a dev task to help
move everything over can be created. And then once all needed test modules have
been switched over the ImportError try/except statement in regrtest can be
removed.
New submission from Brett Cannon br...@python.org:
test.regrtest is rather old and has not been updated to take advantage of all
the latest features in unittest (e.g., test discovery). It might be a rather
large undertaking with various bits requiring some changes (e.g., getting away
from
Martin v. Löwis mar...@v.loewis.de added the comment:
There is also issue c) what if the filesystem encoding can only
represent a compatibility character, say U+00B5, but not its NFKC
equivalent, U+03BC?
That should be considered as similar to file systems that just cannot
represent certain
Brett Cannon br...@python.org added the comment:
I have verified that if you add -no-integrated-as as a flag (e.g., through
CFLAGS) then ctypes will build.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10238
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch for Python 3.2+.
--
keywords: +patch
nosy: +amaury.forgeotdarc
stage: - patch review
Added file: http://bugs.python.org/file20472/eintr_io.patch
___
Python tracker
Martin v. Löwis mar...@v.loewis.de added the comment:
Only Mac OS X and the HFS+ filesystem normalize filenames (to a variant
of NFD). But such normalization is a good thing! I mean that I don't
think that we have anything to do for that.
That may well be - I don't have a case where this
Ron Adam ron_a...@users.sourceforge.net added the comment:
A few last minute changes.. I think this will be all.
Run topic contents through html.markup. That makes ref:, pep:, and html: links
if they exist. (I meant to this earlier.)
Fix case where topic reference links are to objects
Changes by Ron Adam ron_a...@users.sourceforge.net:
Removed file: http://bugs.python.org/file20468/pydoc_misc_fix.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10961
___
Changes by Ron Adam ron_a...@users.sourceforge.net:
--
nosy: +eric.araujo, rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10961
___
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
I agree that it would be nice to have a cheatsheet somewhere, possibly in the
official doc and not as a plain txt file in Misc/.
FWIW another cheatsheet updated to 2.6 can be found here:
http://rgruet.free.fr/PQR26/PQR2.6.html
--
STINNER Victor victor.stin...@haypocalc.com added the comment:
Version 4 of the patch.
--
Added file: http://bugs.python.org/file20474/issue3080-4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3080
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file20448/issue3080-3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3080
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Same patch (version 4) generated by svn.
--
Added file: http://bugs.python.org/file20475/issue3080-4-svn.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3080
Matt Joiner anacro...@gmail.com added the comment:
I agree, I discovered this function (pipes.quote) only through recommendation
here:
http://stackoverflow.com/questions/4748344/whats-the-reverse-of-shlex-split
I suggest that it be added to shlex, perhaps as shlex.quote. While the quoting
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
FWIW, I updated the first couple of pages. If anyone finds my changes useful,
here they are in issue4819.diff.
--
keywords: +patch
Added file: http://bugs.python.org/file20476/issue4819.diff
STINNER Victor victor.stin...@haypocalc.com added the comment:
You can review the patch with Rietveld:
http://codereview.appspot.com/3972045
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3080
Changes by Benjamin VENELLE gu0su...@gmail.com:
--
assignee: collinwinter
components: Benchmarks
nosy: Kain94, collinwinter
priority: normal
severity: normal
status: open
title: Timer class inheritance issue
type: behavior
___
Python tracker
New submission from Benjamin VENELLE gu0su...@gmail.com:
Hi,
Due to Timer's object creation behavior, it is impossible to subclass it. This
kind of declaration will result to an exception raising:
class A(Timer): pass
--
components: +Library (Lib) -Benchmarks
versions: +Python 3.1
1 - 100 of 133 matches
Mail list logo