Changes by Georg Brandl ge...@python.org:
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12850
___
___
Python-bugs-list
Changes by Georg Brandl ge...@python.org:
--
assignee: docs@python - vinay.sajip
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12906
___
Charles-François Natali neolo...@free.fr added the comment:
I hope that this issue is not related to threads+signals. We got many
threads+signals issues on FreeBSD 6.
Yep.
OpenBSD has a really specific pthread implementation (in user-space, using
non-blocking I/O), so it might very well be
Martin v. Löwis mar...@v.loewis.de added the comment:
The patch looks fine to me.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12904
___
New submission from Nadeem Vawda nadeem.va...@gmail.com:
The C functions for converting a Python 'int' object to a C integer are
inconsistent about what exception gets raised when the object passed to
them is not an integer. Most of these functions raise a TypeError, but
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +mark.dickinson, rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12909
___
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 786668a4fb6b by Victor Stinner in branch 'default':
Issue #12567: Fix curses.unget_wch() tests
http://hg.python.org/cpython/rev/786668a4fb6b
--
___
Python tracker
Марк Коренберг socketp...@gmail.com added the comment:
O_CLOEXEC is not linux-only. Windows has the same flag. In file-opening
functions there is lpSecurityAttributes argument. And there is bInheritHandle
member of corresponding structure.
Alexey Smirnov alexey.smir...@gmx.com added the comment:
FreeBSD 8+ also supports O_CLOEXEC in open().
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12105
___
New submission from Jörn Hees nrej9...@joernhees.de:
urllib.quote('()')
returns '%28%29'
Looking into its code it tries to follow RFC 2396 (which is good even though it
should follow rfc3986 nowadays), but it doesn't:
http://tools.ietf.org/html/rfc2396 (see Appendix A, p.27): ( and ) are in
Mark Dickinson dicki...@gmail.com added the comment:
+1 for turning these into TypeErrors. It makes little sense that
PyLong_AsLongLong and PyLong_AsUnsignedLongLong behave differently here.
Do you have a patch handy?
--
___
Python tracker
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
O_CLOEXEC is not linux-only. Windows has the same flag.
In file-opening functions there is lpSecurityAttributes argument
How do you suggest to use it? Even on Windows, python calls open(). And
lpSecurityAttributes is an argument of
STINNER Victor victor.stin...@haypocalc.com added the comment:
Windows provides a _get_osfhandle() function. There is not the opposite
function? :-)
Anyway, O_CLOEXEC is not available on all platforms. Even on FreeBSD and Linux,
it depends on the OS/kernel version.
--
Senthil Kumaran sent...@uthcode.com added the comment:
It can aggressively put these chars !~*\'() in the safe list. I will look at
the history to see if they originally present and were removed for some reason
or they did not make it the list in the first place.
If we do add, then it
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f24352b0df86 by Benjamin Peterson in branch 'default':
merge 3.2 (#1616)
http://hg.python.org/cpython/rev/f24352b0df86
--
nosy: +python-dev
___
Python tracker
New submission from Antoine Pitrou pit...@free.fr:
In 47176e8d7060, I fixed json to not blow memory when serializing a large
container of small objects.
It turns out that the repr() of tuple objects (and, very likely, list objects
and possibly other containers) has the same problem. For
Марк Коренберг socketp...@gmail.com added the comment:
Some times ago, Python has used fopen() for open() implementation. Now, it uses
OS-kernel native function to open files. AFAIK, open() in Windows is a wrapper
around CreateFile, created to support some POSIX programs in Windows. Why not
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Why not to use CreateFile() on Windows platform?
Good idea! Please open a separate issue for it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12105
Dmitry Simonov dsimo...@gmail.com added the comment:
Quote:
==
Notes
Note that mailservers have a 990-character limit on each line contained within
an email message. If an email message is sent that contains lines longer than
990-characters, those lines will be subdivided by
Brandon Craig Rhodes bran...@rhodesmill.org added the comment:
Brett, yes, you are welcome to close this issue — Ned quite handily convinced
me that coverage code belongs in the coverage distribution, not languishing
about in the CPython source tree. That solution also quite beautifully solves
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 299ea19c3197 by Vinay Sajip in branch '2.7':
Closes #12906: Fixed bug in YAML configuration.
http://hg.python.org/cpython/rev/299ea19c3197
New changeset cf811943046b by Vinay Sajip in branch '3.2':
Closes #12906:
New submission from Rob Crittenden rcrit...@redhat.com:
xmlrpclib.__version__ reports 1.0.1 from Python 2.7 in Fedora 14 and Python 2.6
in Fedora 12.
I discovered this while trying to find a way to identify the version of
xmlrpclib. The 2.7 xmlrpclib is not completely backward compatible with
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Do you have a patch handy?
See attached.
--
keywords: +patch
Added file: http://bugs.python.org/file23106/pylong-exceptions.diff
___
Python tracker rep...@bugs.python.org
Nadeem Vawda nadeem.va...@gmail.com added the comment:
This probably shouldn't be backported to 3.2; it could break 3rd-party
extension modules (though I would hope that nothing depends on this
behaviour...).
Also, it's worth noting that the error handling between conversion
functions still
Derrick Petzold dpetz...@gmail.com added the comment:
I know this is without etiquette but I must say holy shit that was quick and I
can only hope that I do can do the same some day. Not with logging but maybe
with something else. I think maybe I am already working on it. Hopefully maybe.
Its
Antoine Pitrou pit...@free.fr added the comment:
It's more useful to have a hook called when entering interactive mode,
rather than a flag
that's set from the beginning:
We already have such a hook: $PYTHONSTARTUP
$PYTHONSTARTUP doesn't work with -i
--
Éric Araujo mer...@netwok.org added the comment:
Easily detecting interactive mode is of general interest for
customization.
Thanks for the feedback. We could open a feature request for that, and/or ask
python-ideas.
What if C also set sys.flags.interactive in python mode, or exposed
Thomas Wouters tho...@python.org added the comment:
For what it's worth, the need for a bootstrap-module has also come up within
Google, where we have... somewhat different requirements than most. In order
to fix import paths in a way that works even when using python -S, I had a
need to
Éric Araujo mer...@netwok.org added the comment:
I applied pkginfo_utf8.patch to Python 3.2 and 3.3.
If you apply patches to distutils, please add tests for the fixed behavior.
(Sorry if I wasn’t reactive on this one.)
--
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
Martin, what do you think about this request?
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12895
___
Mark Dickinson dicki...@gmail.com added the comment:
This probably shouldn't be backported to 3.2
Agreed; I don't see this as a bugfix (especially since AFAIK it's not
documented that TypeError should be raised here); rather, as a design
improvement.
Also, it's worth noting that the
Mark Dickinson dicki...@gmail.com added the comment:
The patch still needs tests (e.g., in test_capi). I'm not sure whether it
would be good to add information about the TypeError to the docs.
--
___
Python tracker rep...@bugs.python.org
New submission from Éric Araujo mer...@netwok.org:
I found a few blogs posts that explained how to use pdb. It appears from the
comments that such introductory material is very useful to a lot of users.
Instead of just expanding the pdb module docs, I propose to add a debugging
howto
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report. This comes from the fact that pydoc imports the modules
in order to get their documentation. Your message makes me think that the
KWallet Python modules have a problem: they should not pop GUIs at import time!
Please
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12910
___
___
Python-bugs-list
Cherniavsky Beni b...@google.com added the comment:
On Tue, Sep 6, 2011 at 17:54, Antoine Pitrou rep...@bugs.python.org wrote:
It covers the user's desire customization very well (esp. if it worked with
-i).
sys.__interactivehook__ has the benefit of being cleanly settable from
python code.
But
Cherniavsky Beni b...@google.com added the comment:
[sorry, html mail was bad idea]
On Tue, Sep 6, 2011 at 17:54, Antoine Pitrou rep...@bugs.python.org wrote:
Éric Araujo mer...@netwok.org added the comment:
It's more useful to have a hook called when entering interactive mode,
rather than
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file23108/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5845
___
Changes by Éric Araujo mer...@netwok.org:
--
Removed message: http://bugs.python.org/msg143617
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5845
___
Steven D'Aprano steve+pyt...@pearwood.info added the comment:
Matthew Barnett wrote:
So, VERSION0 and VERSION1, with (?V0) and (?V1) in the pattern?
Seems reasonable to me.
+1
--
___
Python tracker rep...@bugs.python.org
Westley Martínez aniko...@gmail.com added the comment:
https://bugs.archlinux.org/task/25908
Looks like Allan will be taking care of this problem (eventually). I think
this bug can be closed.
--
resolution: - fixed
status: open - closed
___
Éric Araujo mer...@netwok.org added the comment:
sys.__interactivehook__ has the benefit of being cleanly settable from python
code.
But it might well be a YAGNI idea.
I’ll ask python-dev about that. For the moment, I prefer the idea of a new
sys.interactive attribute (boolean).
Éric Araujo mer...@netwok.org added the comment:
Thank you for investigating.
--
assignee: tarek - eric.araujo
resolution: fixed - wont fix
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
Éric Araujo mer...@netwok.org added the comment:
The 2.7 xmlrpclib is not completely backward compatible with that in 2.6
Can’t you check sys.version_info then?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Thanks to you for the report and fix!
--
nosy: +eric.araujo
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12906
New submission from Éric Araujo mer...@netwok.org:
The pydoc module has a cram function that could be useful to Python authors, if
we made it public (textwrap sounds like a great place).
--
components: Library (Lib)
messages: 143625
nosy: eric.araujo
priority: normal
severity: normal
New submission from Éric Araujo mer...@netwok.org:
The need to resolve a dotted name to a Python object is spreading in the
stdlib: pydoc has locate and resolve, packaging has util.resolve_name, unittest
has something else, etc. For the benefit of stdlib maintainers as well as the
community,
New submission from Éric Araujo mer...@netwok.org:
splitdoc is a hidden gem in pydoc: it’s a little helper to implement docstring
splitting as documented in the docstrings PEPs. It is not a one-liner, so I
think there is value in making it public in the inspect module.
--
components:
New submission from Éric Araujo mer...@netwok.org:
pydoc contains these two functions that could be used by third-party code to
implement a custom dir function, write a documentation tool or other uses:
visiblename and allmethods. We could make them public, in pydoc or inspect.
--
New submission from Éric Araujo mer...@netwok.org:
It was suggested in #7798 to make the pager functions from pydoc public. I
can’t find a good place to put them, so I think we could add a new module with
terminal-related utilities. It could contain the pager functions, progress
bars (there
Éric Araujo mer...@netwok.org added the comment:
I’ve looked hard at pydoc and opened distinct bug reports so that each piece of
maybe-useful functionality can be discussed independently:
#12918 New module for terminal utilities
#12917 Make visiblename and allmethods functions public
#12916
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch against 3.2.
In the default branch it will also help factor out some code from the _json
module.
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
keywords: +patch
Added file: http://bugs.python.org/file23109/accu.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12911
___
Armin Rigo ar...@users.sourceforge.net added the comment:
A __repr__() that returns unicode can, in CPython 2.7 be used in %s % x or
in u%s % x --- both expressions then return a unicode without doing any
encoding --- but it cannot be used anywhere else, e.g. in %r % x or in
repr(x).
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file23101/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7219
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5c8b6e03ebfe by Charles-François Natali in branch 'default':
Issue #12871: sched_get_priority_(min|max) might not be defined even though
http://hg.python.org/cpython/rev/5c8b6e03ebfe
--
nosy: +python-dev
Éric Araujo mer...@netwok.org added the comment:
Thanks for testing the patch higery. I wonder if another exception was raised
but ignored by unittest.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7219
New submission from Brett Cannon br...@python.org:
Issue11561 had a use case for controlling what module is imported first (along
with a patch to use a module other than 'os' to control finding the stdlib).
There have been others who could use this feature as well.
--
components:
Martin v. Löwis mar...@v.loewis.de added the comment:
I don't think it's necessary. People who want to get at the files can do an
administrative installation, and put the files anywhere they like.
Therefore, I won't work on this myself; somebody would have to contribute the
code. It will be
Rob Crittenden rcrit...@redhat.com added the comment:
Yes, this is the solution I ended up using as a workaround.
I figured that since xmlrpclib has its own version it should be meaningful.
--
___
Python tracker rep...@bugs.python.org
Ram Rachum r...@rachum.com added the comment:
Martin, what do you mean administrative installation?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12895
___
Remi Pointel pyt...@xiri.fr added the comment:
What happens if you run a code equivalent to test_sendall_interrupted on its
own? I mean, if you try something like this:
Hi, it blocks too:
$ gdb -args ./python
[...]
(gdb) run
Starting program: /usr/ports/pobj/Python-3.2.2/Python-3.2.2/python
Éric Araujo mer...@netwok.org added the comment:
I figured that since xmlrpclib has its own version it should be meaningful.
That was most probably the intent of the attribute, but it seems to have become
unmaintained. In any case, a change could not be done in a 2.7 bugfix release.
Maybe
Changes by Charles-François Natali neolo...@free.fr:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - compile error
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12871
Charles-François Natali neolo...@free.fr added the comment:
Hi, it blocks too:
Oops, I just realized there was a typo in the sample test.
The signal handler should be
lambda x,y: 1/0
and not
lambda x,y: 0
--
___
Python tracker
Rob Crittenden rcrit...@redhat.com added the comment:
Python 2.7 changed the internal class used in xmlrpclib from HTTP to
HTTPConnection.
I have code that subclasses httplib.HTTP to use the python-nss package to
create a connection over SSL (similiar to httplib.HTTPS). My code currently
Larry Hastings la...@hastings.org added the comment:
Here's a better idea: we add a new IEEE 754-2008 quad-precision float type.
The IEEE 754-2008 quad precision float has 1 sign bit, 15 bits of exponent, and
112 bits of mantissa, so it should have enough precision to last utime until
New submission from Popa Claudiu pcmantic...@gmail.com:
inspect.getsource called with a class defined in the same file fails with
TypeError: module '__main__' (built-in) is a built-in class, although the
documentation says that:
The argument may be a module, class, method, function, traceback,
Martin v. Löwis mar...@v.loewis.de added the comment:
Martin, what do you mean administrative installation?
That's what you get when you do msiexec /a foo.msi.
http://en.wikipedia.org/wiki/Windows_Installer#Administrative_installation
--
title: In MSI/EXE installer, allow installing
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12919
___
___
Python-bugs-list
STINNER Victor victor.stin...@haypocalc.com added the comment:
I tried the following script on OpenBSD 5 with Python 3.3:
---
import signal
import sys
s = signal.SIGALRM
New submission from Terry J. Reedy tjre...@udel.edu:
First, there is a minor documentation issue.
15.2.3.1. I/O Base Classes
class io.IOBase
seek(offset, whence=SEEK_SET)
Change the stream position to the given byte offset
Since StringIO seeks by code units that should perhaps say 'byte or
STINNER Victor victor.stin...@haypocalc.com added the comment:
I tried the following script on OpenBSD 5 with Python 3.3: ...
Bad news: the script doesn't hang if Python is build without threads.
Short C program to test interrupted syscalls:
-
STINNER Victor victor.stin...@haypocalc.com added the comment:
Oh, siginterrupt(SIGALRM, 0) doesn't work in a program linked to pthread.
Example:
#include signal.h
#include stdio.h
void
handler(int signum)
{ printf(HANDLER!\n); }
int main()
{
int s = SIGALRM;
char buffer[1024];
int
Charles-François Natali neolo...@free.fr added the comment:
The C signal handler is called, but the system call (read in this case)
is not interrupted.
That's what I thought...
Bad news: the script doesn't hang if Python is build without threads.
Makes sense. When linked with pthread, all
STINNER Victor victor.stin...@haypocalc.com added the comment:
read() is interrupted after 1 second, it works.
Does it still work if you don't a create thread beforehand?
Yes, the read() is also interrupted as expected if no thread is created.
one difference is that Python uses sigaction
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Attached is an updated patch with tests.
There don't seem to be any tests for PyLong_AsS[s]ize_t() and
PyLong_AsDouble(), so I added new ones for this issue. They should still
be expanded on at some point in the future, but for the
Antoine Pitrou pit...@free.fr added the comment:
For the record, the patch fixes the test_bigmem crashes when testing repr() on
tuples and lists:
http://www.python.org/dev/buildbot/all/builders/AMD64%20debian%20parallel%20custom/builds/10/steps/test/logs/stdio
--
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: +skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12788
___
___
Python-bugs-list
Changes by Senthil Kumaran sent...@uthcode.com:
--
assignee: - orsenthil
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12921
___
New submission from Stefan Krah stefan-use...@bytereef.org:
Hi,
test_urllib fails in refleak mode:
./python -m test -uall -v -R : test_urllib
==
FAIL: test_invalid_redirect (test.test_urllib.urlopen_HttpTests)
Vlad Riscutia riscutiav...@gmail.com added the comment:
I believe there is a deeper issue here in ctypes design. Basically we provide
both c_char_p and POINTER(c_char) which should behave exactly the same since
both are the equivalent of char* in C but internally they have different
Antoine Pitrou pit...@free.fr added the comment:
Updated patch (mostly cosmetic stuff) after Benjamin's comments.
--
Added file: http://bugs.python.org/file23111/accu2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12911
Meador Inge mead...@gmail.com added the comment:
Vlad, I agree that having both 'c_char_p' and 'POINTER(c_char)' will just be
more work for two seemingly identical constructs. I don't fully understand why
both would be needed either (or the implications of removing one of them or
making them
Jason Gerard DeRose jder...@novacut.com added the comment:
Barry,
I'm suspicious there might be more to the performance issue than just the
ecryptfs overhead. While experimenting with a read benchmark, I just happened
to notice that when reading from an ecryptfs filesystem, the CPU usage is
Jason Gerard DeRose jder...@novacut.com added the comment:
Oops, I think I don't understand the meaning of top CPU usage, as time tells a
different story.
Direct ext4:
real2m14.144s
user0m0.260s
sys 0m30.350s
ecryptfs over ext4:
real8m47.130s
user0m0.080s
sys 7m2.080s
Matt Chaput m...@whoosh.ca added the comment:
Ezio, no offense, but I think it's safe to say you've completely misunderstood
this bug. It is not about explaining what a regex matches or optimizing the
regex. Read the last sentences of the two paragraphs explaining the proposed
methods for the
New submission from Jon Parise j...@indelible.org:
test_default_quoting() runs a number of identical tests on both quote() and
quote_plus() (which is most cases have equivalent behavior). However, at the
end of the method, there appears to be a missing complementary call to
quote_plus()
88 matches
Mail list logo