[issue5060] gcc profile guided optimization

2009-01-25 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5060 ___ ___

[issue5060] gcc profile guided optimization

2009-01-25 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: -- components: +Build ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5060 ___ ___

[issue5060] gcc profile guided optimization

2009-01-25 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: -- type: - performance ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5060 ___ ___

[issue4285] Use a named tuple for sys.version_info

2009-01-25 Thread Ross Light
Ross Light rlig...@gmail.com added the comment: Okay, here's a patch with the requested changes. You're right in saying that flag is usually boolean, I was just going along with several other files where there's float and int flags (i.e. floatobject.c). Added file:

[issue4705] python3.0 -u: unbuffered stdout

2009-01-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: since I don't see how the behaviour can differ for a read-only non-seekable stream. Unless I'm misunderstanding you (quite likely), I think one *can* get different results with buffered and unbuffered stdin. For example, on my machine, if

[issue4705] python3.0 -u: unbuffered stdout

2009-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: [...] I hadn't thought of such situations :-/ So the question is whether it is really useful to enforce unbuffered stdin with the '-u' option (or your example is simply too borderline). If so, the patch will have to be replaced with another one

[issue4705] python3.0 -u: unbuffered stdout

2009-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thinking about it, TextIOWrapper has its own input buffering (the `decoded_chars` attribute), so your use case would probably not be satisfied. (and disabling TextIOWrapper's internal buffering would be a bad idea since it would make it horribly

[issue4111] Add DTrace probes

2009-01-25 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Here's a patch against the current trunk (2.7) which compiles on my Mac. It adds a --with-dtrace configure option. The code checks to see if the -G option is understood by the dtrace command. If so, dtrace support is added Sun-style. If not we

[issue4705] python3.0 -u: unbuffered stdout

2009-01-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: So the question is whether it is really useful to enforce unbuffered stdin with the '-u' option (or your example is simply too borderline). Hard to say. It seems at least possible that there are Python users for whom stdin being

[issue4705] python3.0 -u: unbuffered stdout

2009-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hard to say. It seems at least possible that there are Python users for whom stdin being unbuffered (with -u) matters, so if there's any reasonable way of avoiding changing this it should probably be considered. It's not about changing it,

[issue5052] This module should be kept compatible with Python 2.1. in distutils code

2009-01-25 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r68943 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5052 ___

[issue5052] This module should be kept compatible with Python 2.1. in distutils code

2009-01-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Note that distutils was removed from PEP 291 in r1982 After some discussion at the distutils sprint at PyCon 2005. This was not discussed on the distutils mailing list at the time which I regard as not in line with the way Python or

[issue5052] Mark distutils to stay compatible with 2.3

2009-01-25 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Ok, I will rewrite the top README file to explain this (and PEP 291 as well) and keep the Python 2.3 compatibility in the whole package. -- status: closed - open title: This module should be kept compatible with Python 2.1. in

[issue1885] [distutils] - error when processing the --formats=tar option

2009-01-25 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: fixed in r68951 in trunk. I will propagate the change into 2.6/3.0/3.1 tomorrow. -- versions: +Python 3.0, Python 3.1 -Python 2.5 ___ Python tracker rep...@bugs.python.org

[issue5061] Inadequate documentation of the built-in function open

2009-01-25 Thread Mitchell Model
New submission from Mitchell Model m...@acm.org: Documentation of the mode parameter of the built-in function open is insufficient with respect to what values are acceptable. (1) Right after the mode table, it states For binary random access, the mode 'w+b' opens and truncates the file to 0

[issue5061] Inadequate documentation of the built-in function open

2009-01-25 Thread Mitchell Model
Mitchell Model m...@acm.org added the comment: In point (2) I should have written a plain 'b' or 't' and value not valuable. Neither 't' nor 'b' can appear without a r/w/a. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5061

[issue5052] Mark distutils to stay compatible with 2.3

2009-01-25 Thread Akira Kitada
Akira Kitada akit...@gmail.com added the comment: Is there any PEP describing we have to keep compatibility with 2.3 release? I'm not against the idea but just curious. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5052

[issue5055] Distutils-SIG page needs to be updated

2009-01-25 Thread Akira Kitada
Akira Kitada akit...@gmail.com added the comment: Could you tell me where the right place to ask this kind of problems? I could not find any other trackers... ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5055

[issue5055] Distutils-SIG page needs to be updated

2009-01-25 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Unfortunately, there is no tracker for the web pages. Questions about the SIG pages can also be asked on the SIG mailing lists. However, there might be nobody responsible for editing the web pages (as is the case with these pages).

[issue2889] curses for windows (alternative patch)

2009-01-25 Thread Zach Hirsch
Zach Hirsch zhir...@umich.edu added the comment: Here's a patch against the head of trunk that adds vcproj files for _curses and _curses_panel, modifies (slightly) the test suite and _cursesmodule.c (again, slightly) to get Python to work with pdcurses on windows. I also added a blurb to

[issue5061] Inadequate documentation of the built-in function open

2009-01-25 Thread David W. Lambert
David W. Lambert lamber...@corning.com added the comment: I disagree. You propose to examine the trees but ignore the forest. The perspective programmer needs to understand what is a file. -- nosy: +LambertDW ___ Python tracker

[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-25 Thread Carl Johnson
New submission from Carl Johnson c...@carlsensei.com: The documentation at http://docs.python.org/library/rlcompleter.html claims that Completer.complete(text, state)¶ Return the state*th completion for *text. If called for text that doesn’t include a period character ('.'), it will

[issue4285] Use a named tuple for sys.version_info

2009-01-25 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Rather than deleting the isinstance() check from the tests completely, I suggest changing it to be: self.assert_(isinstance(vi[:], tuple)) Also, comparing directly with a tuple is also a fairly common use of version_info so it would be worth

[issue5063] python-2.6.spec doesn't build properly

2009-01-25 Thread Patrick Toal
New submission from Patrick Toal pt...@takeflight.ca: Attempting to build an RPM with the python-2.6.spec contained in the python-2.6.1 distribution tar fails. The following diff's enabled me to cleanly build the rpm's on a standard CentOS 5.1 installation. -- components: Build

[issue5064] compiler.parse raises SyntaxErrors without line number information

2009-01-25 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: Sometimes a syntax error in source passed to `compiler.parse´ causes a `SyntaxError´ with lots of nice information to be raised: from compiler import parse try: ... parse(def f() ... except SyntaxError, e: ... pass ... e

[issue5065] IDLE improve Subprocess Startup Error message

2009-01-25 Thread Steven D'Aprano
New submission from Steven D'Aprano st...@pearwood.info: When launching IDLE, it reports: IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection. This should report what needs to be opened on the firewall to

[issue5064] compiler.parse raises SyntaxErrors without line number information

2009-01-25 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Patches are welcome! The compiler package is deprecated in favor of builtin AST. -- nosy: +benjamin.peterson priority: - low stage: - needs patch ___ Python tracker rep...@bugs.python.org

[issue5061] Inadequate documentation of the built-in function open

2009-01-25 Thread Mitchell Model
Mitchell Model m...@acm.org added the comment: David W. Lambert lamber...@corning.com added the comment: I disagree. You propose to examine the trees but ignore the forest. The perspective programmer needs to understand what is a file. Could you be more specific about what parts of my

[issue5067] Error msg from using wrong quotes in JSON is unhelpful

2009-01-25 Thread Steven D'Aprano
New submission from Steven D'Aprano st...@pearwood.info: Using the wrong sort of quotes in json gives unhelpful error messages: json.loads({'test':'test'}) Traceback (most recent call last): ... ValueError: Expecting property name: line 1 column 1 (char 1) Unless you know that strings in

<    1   2   3