[issue12850] [PATCH] stm.atomic

2011-09-06 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12850 ___ ___ Python-bugs-list

[issue12906] Slight error in logging module's yaml config

2011-09-06 Thread Georg Brandl
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 ___

[issue12905] multiple errors in test_socket on OpenBSD

2011-09-06 Thread Charles-François Natali
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

[issue12904] Change os.utime c functions to use nanosecond precision where possible

2011-09-06 Thread Martin v . Löwis
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 ___

[issue12909] Inconsistent exception usage in PyLong_As* C functions

2011-09-06 Thread Nadeem Vawda
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

[issue12909] Inconsistent exception usage in PyLong_As* C functions

2011-09-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +mark.dickinson, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12909 ___ ___

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-09-06 Thread Roundup Robot
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

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-09-06 Thread Марк Коренберг
Марк Коренберг 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.

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-09-06 Thread Alexey Smirnov
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 ___

[issue12910] urrlib.quote quotes too many chars, e.g., '()'

2011-09-06 Thread Jörn Hees
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

[issue12909] Inconsistent exception usage in PyLong_As* C functions

2011-09-06 Thread Mark Dickinson
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

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-09-06 Thread Amaury Forgeot d'Arc
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

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-09-06 Thread STINNER Victor
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. --

[issue12910] urrlib.quote quotes too many chars, e.g., '()'

2011-09-06 Thread Senthil Kumaran
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

[issue1616] compiler warnings

2011-09-06 Thread Roundup Robot
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

[issue12911] Expose a private accumulator C API

2011-09-06 Thread Antoine Pitrou
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

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-09-06 Thread Марк Коренберг
Марк Коренберг 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

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-09-06 Thread Amaury Forgeot d'Arc
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

[issue6327] [mimetext] long lines get cut with exclamation mark and newline

2011-09-06 Thread Dmitry Simonov
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

[issue11561] coverage of Python regrtest cannot see initial import of libs

2011-09-06 Thread Brandon Craig Rhodes
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

[issue12906] Slight error in logging module's yaml config

2011-09-06 Thread Roundup Robot
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:

[issue12912] xmlrpclib.__version__ not bumped with updates

2011-09-06 Thread Rob Crittenden
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

[issue12909] Inconsistent exception usage in PyLong_As* C functions

2011-09-06 Thread Nadeem Vawda
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

[issue12909] Inconsistent exception usage in PyLong_As* C functions

2011-09-06 Thread Nadeem Vawda
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

[issue12906] Slight error in logging module's yaml config

2011-09-06 Thread Derrick Petzold
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

[issue5845] rlcompleter should be enabled automatically

2011-09-06 Thread Antoine Pitrou
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 --

[issue5845] rlcompleter should be enabled automatically

2011-09-06 Thread Éric Araujo
É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

[issue11561] coverage of Python regrtest cannot see initial import of libs

2011-09-06 Thread Thomas Wouters
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

[issue9561] distutils: set encoding to utf-8 for input and output files

2011-09-06 Thread Éric Araujo
É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

[issue12895] In MSI/EXE installer, allow installing Python modules in free path

2011-09-06 Thread Éric Araujo
É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 ___

[issue12909] Inconsistent exception usage in PyLong_As* C functions

2011-09-06 Thread Mark Dickinson
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

[issue12909] Inconsistent exception usage in PyLong_As* C functions

2011-09-06 Thread Mark Dickinson
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

[issue12913] Add a debugging howto

2011-09-06 Thread Éric Araujo
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

[issue12902] help(modules) executes module code

2011-09-06 Thread Éric Araujo
É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

[issue12910] urrlib.quote quotes too many chars, e.g., '()'

2011-09-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12910 ___ ___ Python-bugs-list

[issue5845] rlcompleter should be enabled automatically

2011-09-06 Thread Cherniavsky Beni
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

[issue5845] rlcompleter should be enabled automatically

2011-09-06 Thread Cherniavsky Beni
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

[issue5845] rlcompleter should be enabled automatically

2011-09-06 Thread Éric Araujo
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 ___

[issue5845] rlcompleter should be enabled automatically

2011-09-06 Thread Éric Araujo
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 ___

[issue2636] Adding a new regex module (compatible with re)

2011-09-06 Thread Steven D'Aprano
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

[issue11340] test_distutils fails because of borked compress program

2011-09-06 Thread Westley Martínez
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 ___

[issue5845] rlcompleter should be enabled automatically

2011-09-06 Thread Éric Araujo
É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).

[issue11340] test_distutils fails because of borked compress program

2011-09-06 Thread Éric Araujo
É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

[issue12912] xmlrpclib.__version__ not bumped with updates

2011-09-06 Thread Éric Araujo
É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

[issue12906] Slight error in logging module's yaml config

2011-09-06 Thread Éric Araujo
É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

[issue12914] Add cram function to textwrap

2011-09-06 Thread Éric Araujo
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

[issue12915] Add inspect.locate and inspect.resolve

2011-09-06 Thread Éric Araujo
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,

[issue12916] Add inspect.splitdoc

2011-09-06 Thread Éric Araujo
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:

[issue12917] Make visiblename and allmethods functions public

2011-09-06 Thread Éric Araujo
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. --

[issue12918] New module for terminal utilities

2011-09-06 Thread Éric Araujo
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

[issue7798] Make generally useful pydoc functions public

2011-09-06 Thread Éric Araujo
É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

[issue12911] Expose a private accumulator C API

2011-09-06 Thread Antoine Pitrou
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

[issue12911] Expose a private accumulator C API

2011-09-06 Thread Antoine Pitrou
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 ___

[issue5876] __repr__ returning unicode doesn't work when called implicitly

2011-09-06 Thread Armin Rigo
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).

[issue7219] Unhelpful error message when a distutils package install fails due to a permissions error

2011-09-06 Thread Éric Araujo
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 ___

[issue12871] Disable sched_get_priority_min/max if Python is compiled without threads

2011-09-06 Thread Roundup Robot
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

[issue7219] Unhelpful error message when a distutils package install fails due to a permissions error

2011-09-06 Thread Éric Araujo
É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

[issue12919] Control what module is imported first

2011-09-06 Thread Brett Cannon
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:

[issue12895] In MSI/EXE installer, allow installing Python modules in free path

2011-09-06 Thread Martin v . Löwis
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

[issue12912] xmlrpclib.__version__ not bumped with updates

2011-09-06 Thread Rob Crittenden
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

[issue12895] In MSI/EXE installer, allow installing Python modules in free path

2011-09-06 Thread Ram Rachum
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 ___

[issue12905] multiple errors in test_socket on OpenBSD

2011-09-06 Thread Remi Pointel
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

[issue12912] xmlrpclib.__version__ not bumped with updates

2011-09-06 Thread Éric Araujo
É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

[issue12871] Disable sched_get_priority_min/max if Python is compiled without threads

2011-09-06 Thread Charles-François Natali
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

[issue12905] multiple errors in test_socket on OpenBSD

2011-09-06 Thread Charles-François Natali
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

[issue12912] xmlrpclib.__version__ not bumped with updates

2011-09-06 Thread Rob Crittenden
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

[issue11457] Expose nanosecond precision from system calls

2011-09-06 Thread Larry Hastings
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

[issue12920] Inspect.getsource fails to get source of local classes

2011-09-06 Thread Popa Claudiu
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,

[issue12895] In MSI/EXE installer, allow installing Python modules in free path

2011-09-06 Thread Martin v . Löwis
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

[issue12919] Control what module is imported first

2011-09-06 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12919 ___ ___ Python-bugs-list

[issue12905] multiple errors in test_socket on OpenBSD

2011-09-06 Thread STINNER Victor
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

[issue12922] StringIO and seek()

2011-09-06 Thread Terry J. Reedy
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

[issue12905] multiple errors in test_socket on OpenBSD

2011-09-06 Thread STINNER Victor
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: -

[issue12905] multiple errors in test_socket on OpenBSD

2011-09-06 Thread STINNER Victor
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

[issue12905] multiple errors in test_socket on OpenBSD

2011-09-06 Thread Charles-François Natali
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

[issue12905] multiple errors in test_socket on OpenBSD

2011-09-06 Thread STINNER Victor
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

[issue12909] Inconsistent exception usage in PyLong_As* C functions

2011-09-06 Thread Nadeem Vawda
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

[issue12911] Expose a private accumulator C API

2011-09-06 Thread Antoine Pitrou
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 --

[issue12788] test_email fails with -R

2011-09-06 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12788 ___ ___ Python-bugs-list

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2011-09-06 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12921 ___

[issue12923] test_urllib fails in refleak mode

2011-09-06 Thread Stefan Krah
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)

[issue5149] syntactic sugar: type coercion on pointer assignment

2011-09-06 Thread Vlad Riscutia
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

[issue12911] Expose a private accumulator C API

2011-09-06 Thread Antoine Pitrou
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

[issue5149] syntactic sugar: type coercion on pointer assignment

2011-09-06 Thread Meador Inge
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

[issue11677] make test has horrendous performance on an ecryptfs

2011-09-06 Thread Jason Gerard DeRose
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

[issue11677] make test has horrendous performance on an ecryptfs

2011-09-06 Thread Jason Gerard DeRose
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

[issue12870] Regex object should have introspection methods

2011-09-06 Thread Matt Chaput
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

[issue12924] Missing call to quote_plus() in test_urllib.test_default_quoting()

2011-09-06 Thread Jon Parise
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()