[issue10401] Globals / builtins cache

2010-11-12 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10396] stdin argument to pdb.Pdb doesn't work unless you also set Pdb.use_rawinput = False

2010-11-12 Thread Georg Brandl
Changes by Georg Brandl : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Consider here: > http://www.sqlalchemy.org/trac/browser/lib/sqlalchemy/engine/base.py?rev=6884:b181f1e53603#L1329 > the py3k code uses the "raise ... from" syntax which isn't legal in Python 2. In this case, I would write error = exc.DBAPIError.instance

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2010-11-12 Thread Georg Brandl
Georg Brandl added the comment: Same for a4. -- priority: release blocker -> deferred blocker ___ Python tracker ___ ___ Python-bugs-l

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-12 Thread Xuanji Li
Xuanji Li added the comment: Attached a patch to implement the suggested changes on 3.2. If the patch is ok I can do the same for 3.1. -- keywords: +patch nosy: +xuanji Added file: http://bugs.python.org/file19591/issue10366_remove_unneeded_object_py3.2.diff _

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Alex
Alex added the comment: Just a thought: it's possible to cover all the cases properly with inlining (locals, globals (even with cross module inlining), tracebacks, sys._getframe(), etc.), however I think you're going to find that manually managing all of those is going to quickly drive you up

[issue10392] GZipFile crash when fileobj.mode is None

2010-11-12 Thread Brad Greenlee
Brad Greenlee added the comment: Yes, but if I actually passed mode=None in, the behavior would be the same, no? -- ___ Python tracker ___ __

[issue10392] GZipFile crash when fileobj.mode is None

2010-11-12 Thread R. David Murray
R. David Murray added the comment: No, the __init__ argument default value is the standard way of indicating "this argument was not specified". It is not in any way a value for 'mode'. -- status: open -> closed ___ Python tracker

[issue10392] GZipFile crash when fileobj.mode is None

2010-11-12 Thread Brad Greenlee
Brad Greenlee added the comment: GzipFile.__init__ considers mode == None to be the equivalent of undefined, and sets it to the default of 'rb'. I see fileobj.mode == None as the same thing. That said, it is probably a bug in Django as well; I'll look into that. I still think that GzipFile sh

[issue10403] Use "member" consistently

2010-11-12 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10403] Use "member" consistently

2010-11-12 Thread Fred L. Drake, Jr.
New submission from Fred L. Drake, Jr. : Some portions of the documentation are using the term "member" to mean "data attribute". This appears to be an aberration at this time, but occurrences should be identified and corrected, and "Documenting Python" updated to note correct usage. Example

[issue10396] stdin argument to pdb.Pdb doesn't work unless you also set Pdb.use_rawinput = False

2010-11-12 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of issue 2571. If after reading that discussion you have ideas about and interest in working on the feature request as suggested, you may either comment on that one or open a new feature request, whichever seems clearer to you. Note tha

[issue8332] regrtest single TestClass/test_method

2010-11-12 Thread R. David Murray
R. David Murray added the comment: I'm -1 on your second case. That syntax is too magical, especially since a test method can appear on more than one test case. The additional pattern matching suggestion is more interesting, but it would be necessary to implement that in unittest, since te

[issue10392] GZipFile crash when fileobj.mode is None

2010-11-12 Thread R. David Murray
R. David Murray added the comment: Why do you consider this a bug in GZipFile rather than a bug in Django? GZipFile is already careful to consider mode only when it is defined as an attribute. It seems to me that if it is defined, it should be meaningful. -- nosy: +pitrou, r.david.m

[issue10395] new os.path function to extract common prefix based on path components

2010-11-12 Thread R. David Murray
R. David Murray added the comment: Indeed, as I remember it there are people using commonprefix as a string function in situations having nothing to do with os paths. I'm changing the title to reflect the fact that this is really a feature request for a new function. IMO it is a reasonable f

[issue10401] Globals / builtins cache

2010-11-12 Thread Skip Montanaro
Skip Montanaro added the comment: Might such a cache lay the groundwork for more aggressive optimizations by JITs like Unladen Swallow? -- nosy: +skip.montanaro ___ Python tracker _

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-12 Thread Bobby Impollonia
Bobby Impollonia added the comment: Consider here: http://www.sqlalchemy.org/trac/browser/lib/sqlalchemy/engine/base.py?rev=6884:b181f1e53603#L1329 the py3k code uses the "raise ... from" syntax which isn't legal in Python 2. Using either "Approach A" or "Approach B" would prevent the program

[issue10387] ConfigParser's getboolean method is broken

2010-11-12 Thread Łukasz Langa
Łukasz Langa added the comment: You think wrong. Try it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue10387] ConfigParser's getboolean method is broken

2010-11-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Fri, Nov 12, 2010 at 12:35:49AM +, Łukasz Langa wrote: > This is unfortunately a backwards compatibility concern. Originally > it wasn't made so that set() converts to string or accepts only > strings and when the developers realized this mistake, it was

[issue10377] cProfile incorrectly labels its output

2010-11-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Tue, Nov 09, 2010 at 07:15:57PM +, Jean-Paul Calderone wrote: > >>> cProfile.run("import time; time.sleep(1)") > 4 function calls in 1.012 CPU seconds > > It is not the case that the profiled code uses >1 CPU seconds. It > spends the entire ti

[issue10402] sporadic test_bsddb3 failures

2010-11-12 Thread Antoine Pitrou
New submission from Antoine Pitrou : test_bsddb3 often produces the following failure under the Windows buildbots. It could probably be solved by choosing a larger timeout (time.time() on Windows is rather imprecise): test test_bsddb3 failed -- Traceback (most recent call last): File "D:\cy

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > but the very very first thing that has to happen - before any of this > work is begun - is for the distutils freeze to be lifted, or for > someone to come up with a _sensible_ alternative solution. Tarek's approach looks right to me: mingw32 support in

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: > For example, starting on line 152 we have, > # Py3K > #return unicode(self.compile()) > # Py2K > return unicode(self.compile()).\ > encode('ascii', 'backslashreplace') > # end Py2K Ok, I can pro

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2010-11-12 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg121090 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2010-11-12 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg121089 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-12 Thread Tarek Ziadé
Tarek Ziadé added the comment: I understand your frustration, but I can't lift the freeze because any change to distutils potentially break third party projects out there. We suffered from that in the past and we decided to proceed on a new version and freeze this one. Having this compiler re

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-12 Thread Bobby Impollonia
Bobby Impollonia added the comment: > Can you please post an example Python module that has this markup you are > asking for, so I can show you how to achieve what you want without the markup? Hi, Martin. Here's a real-world example: http://www.sqlalchemy.org/trac/browser/lib/sqlalchemy/types.

[issue10401] Globals / builtins cache

2010-11-12 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-12 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton added the comment: > I'm trying to read the patch. It contains many interesting things (and > others I have no opinon about), but it is very large, and makes it > difficult to comment or find why some change were made etc. amaury: unfortunately, the development on

[issue10395] os.path.commonprefix broken by design

2010-11-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10384] SyntaxError should contain exact location of the invalid character in identifier

2010-11-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-12 Thread Tarek Ziadé
Tarek Ziadé added the comment: We don't punish anyone here. We try to avoid breaking distutils because it's really easy to get broken and get people upset. (you ask me) This bug has been opened for years and no one commited it because it's very very hard to review. it involves many parts, man

[issue10385] Mark up "subprocess" as module in its doc

2010-11-12 Thread Ezio Melotti
Ezio Melotti added the comment: I think that using e.g. :mod:`subprocess` in the subprocess page is redundant because there's no need to add a link to the page you are already reading. I'm also not sure that it looks too nice in the headers (iirc the font is different), but I haven't tried to

[issue10284] NNTP should accept bytestrings for username and password

2010-11-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hello Julien, > That's one of the reasons why AUTHINFO SASL is better than AUTHINFO > USER. It also allows whitespaces (a few news servers do not parse > well whitespaces in user names or passwords after AUTHINFO USER/PASS > -- imagine " test" with a leading s

[issue10351] Add autocompletion for keys in dictionaries

2010-11-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-12 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton added the comment: erik, i'm really sorry, but the freeze on distutils simply cannot be accepted: there really is no other way, as you can see from the previous walkthrough analysis, and is reinforced by the further analysis below. simply put: if the freeze on dis

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2010-11-12 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton added the comment: NUTS. many apologies: my comments should have gone to issue 3871 not 3781. arse! is it possible to delete comments? :) -- ___ Python tracker _

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2010-11-12 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton added the comment: erik, i'm really sorry, but the freeze on distutils simply cannot be accepted: there really is no other way, as you can see from the previous walkthrough analysis, and is reinforced by the further analysis below. simply put: if the freeze on dis

[issue10284] NNTP should accept bytestrings for username and password

2010-11-12 Thread Julien ÉLIE
Julien ÉLIE added the comment: RFC 4616 about SASL PLAIN: The mechanism consists of a single message, a string of [UTF-8] encoded [Unicode] characters, from the client to the server. The client presents the authorization identity (identity to act as), followed by a NUL (U+) cha

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-12 Thread Éric Araujo
Éric Araujo added the comment: Let’s try again. The current situation is that building with mingw32 is not supported. Adding support for mingw32 is by definition a new feature. You seem to agree on that: “a NEW compiler and linker type - an ADDITIONAL compiler and linker type”. Second, di

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I'm trying to read the patch. It contains many interesting things (and others I have no opinon about), but it is very large, and makes it difficult to comment or find why some change were made etc. I do believe that better supporting the mingw32 platfor

[issue10252] Fix resource warnings in distutils

2010-11-12 Thread Éric Araujo
Éric Araujo added the comment: No file object was created for stdin, so my patch was buggy. Fixed in r86438, r86439, r86440. Thanks to Antoine and Brian. -- ___ Python tracker __

[issue10373] Setup Script example incorrect

2010-11-12 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: rejected -> invalid stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list

[issue10373] Setup Script example incorrect

2010-11-12 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: > perhaps the web page should be checked for an incorrect link. The link from the Python documentation to the Python bug tracker is fine. If you were using distutils directly, it would be an issue for the Python tracker. You're not. setuptools is a sepa

[issue10373] Setup Script example incorrect

2010-11-12 Thread Kirk Clendinning
Kirk Clendinning added the comment: Interesting... the link at the bottom of the page for reporting bugs went to the python bug tracker.. perhaps the web page should be checked for an incorrect link. -k- On Nov 12, 2010, at 18:22 , Éric Araujo wrote: > > Éric Araujo added the comment: >

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Globals cache patch posted on issue10401. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10401] Globals / builtins cache

2010-11-12 Thread Antoine Pitrou
New submission from Antoine Pitrou : Here is the Nth patch for a globals/builtins cache. As other caches at the same kind, it shows very small to no gain on non-micro benchmarks, showing that contrary to popular belief, globals/builtins lookup are not a major roadblock in today's Python perfor

[issue2657] Curses sometimes fails to initialize terminal

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: That should be, for 2.7 or 3.2, as 3.1 is nearly finished. -- status: open -> pending ___ Python tracker ___ ___

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: r86437 - correct and replicate version-added message -- ___ Python tracker ___ ___ Python-bugs-list

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-12 Thread Roumen Petrov
Roumen Petrov added the comment: And the patch for py3k (future 3.2) . Note require python-py3k-20101112-CROSS.patch from issue 3754 to be applied first. -- Added file: http://bugs.python.org/file19589/python-py3k-20101112-MINGW.patch ___ Python

[issue1665333] Documentation missing for OptionGroup class in optparse

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1483] xml.sax.saxutils.prepare_input_source ignores character stream in InputSource

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue3754] cross-compilation support for python build

2010-11-12 Thread Roumen Petrov
Changes by Roumen Petrov : Added file: http://bugs.python.org/file19588/python-py3k-20101112-CROSS.patch ___ Python tracker <http://bugs.python.org/issue3754> ___ ___

[issue1028088] Cookies without values are silently ignored (by design?)

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue2124] xml.sax and xml.dom fetch DTDs by default

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-12 Thread Roumen Petrov
Changes by Roumen Petrov : Added file: http://bugs.python.org/file19587/python-2.7-20101112-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___ Pytho

[issue3754] cross-compilation support for python build

2010-11-12 Thread Roumen Petrov
Changes by Roumen Petrov : Added file: http://bugs.python.org/file19586/python-2.7-20101112-CROSS.patch ___ Python tracker <http://bugs.python.org/issue3754> ___ ___ Pytho

[issue10400] updating unicodedata to Unicode 6

2010-11-12 Thread Vlastimil Brom
Vlastimil Brom added the comment: Thanks for the clarification; I obviously looked in an inappropriate branch before. Sorry for the noise... vbr -- ___ Python tracker ___ __

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: As I understand it, functions are "name-resolved" before the arguments are evaluated, There is no difference between resolution of function names and of other names. For example, global names (LOAD_GLOBAL) are resolved entirely at runtime (just before the fu

[issue1488934] file.write + closed pipe = no error

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1599254] mailbox: other programs' messages can vanish without trace

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1751519] curses - new window methods: addchstr and addchnstr

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1671676] test_mailbox is hanging while doing gmake test on HP-UX v3

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1745108] 2.5.1 curses panel segfault in new_panel on aix 5.3

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1512163] mailbox (2.5b1): locking doesn't work (esp. on FreeBSD)

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1723038] Curses Menu

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue9557] test_mailbox failure under a Windows VM

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue4254] _cursesmodule.c callable update_lines_cols()

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue5368] curses patch add color_set and wcolor_set , and addchstr family of functions

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1687125] cannot catch KeyboardInterrupt when using curses getkey()

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2657] Curses sometimes fails to initialize terminal

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2209] mailbox module doesn't support compressed mbox

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2212] Cookie.BaseCookie has ambiguous unicode handling

2010-11-12 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1376292] Write user's version of the reference guide

2010-11-12 Thread A.M. Kuchling
A.M. Kuchling added the comment: Not likely to be worked on, and whether to write such a guide is a question for the docs editor (or the Doc-SIG). -- status: open -> closed ___ Python tracker __

[issue10397] Unified Benchmark Suite fails on py3k with --track-memory

2010-11-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Please note that some benchmarks are now natively py3k-compatible, you don't have to run make_perf3.sh. Anyway, the patch is now pushed to http://hg.python.org/benchmarks/rev/7c7dc1c4d8d4, thank you! -- resolution: -> fixed status: open -> closed __

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2010-11-12 Thread William Barr
William Barr added the comment: Ok. I'll see if I can get some protection around that then. I did test the issue with 2.7, and I didn't find it. The window didn't open, but it didn't generate an exception that would kill the IDLE process. -- __

[issue10252] Fix resource warnings in distutils

2010-11-12 Thread Éric Araujo
Éric Araujo added the comment: Ported to 3.1 and 2.7 in r86433 and r86434. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue10400] updating unicodedata to Unicode 6

2010-11-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: The database had been updated already in r85371. Backporting this change to maintenance branches is not allowed by policy. -- nosy: +loewis resolution: -> fixed status: open -> closed ___ Python tracker

[issue10400] updating unicodedata to Unicode 6

2010-11-12 Thread Vlastimil Brom
New submission from Vlastimil Brom : I'd like to suggest updating the unicodedata module according to the recent Unicode standard 6.0 http://www.unicode.org/versions/Unicode6.0.0/ I'm sorry to bother, in case this is planned automatically, I just wasn't able to find the respective information.

[issue10385] Mark up "subprocess" as module in its doc

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: >http://docs.python.org/dev/contents.html The only thing I see there is the bold-facing of *PEP 3101*. Is that what you are referring to? In any case, with Georg's concurrence go ahead with this and any other modules you care about. -- __

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Dave Malcolm
Changes by Dave Malcolm : Added file: http://bugs.python.org/file19585/after.png ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Dave Malcolm
Changes by Dave Malcolm : Added file: http://bugs.python.org/file19584/before.png ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Dave Malcolm
New submission from Dave Malcolm : In msg#120541 of issue#1346238 Raymond suggested to "aim high", so here goes... I'm opening this as a separate bug as it's a very different approach to the patches in that bug; adding those on the nosy list for that bug. Sorry in advance about the epic lengt

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: >Line iterator does not carry the information about source encoding which may be important for annotating the source code. I would pass around both encoding and lines, possibly as a tuple. A person heavily into OO might define a _Source class and turn the priv

[issue10385] Mark up "subprocess" as module in its doc

2010-11-12 Thread Georg Brandl
Georg Brandl added the comment: Eric: any :mod: role never affects the index. Only the module directive does. Otherwise, I concur that it's not mandatory to mark up every occurrence of the module name, but it's nice in section headings. -- ___ Pyt

[issue10398] errors in docs re module initialization vs self arg to functions

2010-11-12 Thread Georg Brandl
Georg Brandl added the comment: Thanks, done in r86432. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue10398] errors in docs re module initialization vs self arg to functions

2010-11-12 Thread Jani Poikela
New submission from Jani Poikela : Copy of issue 6421 Affects 2.7 too... -- assignee: d...@python components: Documentation messages: 121064 nosy: Jani.Poikela, aleax, d...@python, georg.brandl priority: normal severity: normal status: open title: errors in docs re module initialization

[issue10395] os.path.commonprefix broken by design

2010-11-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: This goes back to issue400788 and http://mail.python.org/pipermail/python-dev/2000-July/005897.html http://mail.python.org/pipermail/python-dev/2000-August/008385.html Skip changed it to do something meaningful (more than ten years ago), Mark Hammond complai

[issue10350] errno is read too late

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: This stuff is hard to write automated tests for, hence there are none. The patch is mostly straightforward: capture errno with new variable err at point of possible error when intervening calculation is needed before testing the value of errno. This seems lik

[issue10385] Mark up "subprocess" as module in its doc

2010-11-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Nov 12, 2010 at 2:09 PM, Terry J. Reedy wrote: .. > 1. Does the markup make any visual difference? It does on my browser. (I wouldn't have noticed it otherwise.) See http://docs.python.org/dev/contents.html > 2. Does the markup affect the index

[issue10397] Unified Benchmark Suite fails on py3k with --track-memory

2010-11-12 Thread Bobby Impollonia
New submission from Bobby Impollonia : Steps to reproduce (requires linux because the --track-memory (-m) option to perf.py is linux-only): hg clone http://hg.python.org/benchmarks/ py2benchmarks mkdir py3benchmarks cd py3benchmarks ../py2benchmarks/make_perf3.sh ../py2benchmarks py3k perf.py -f

[issue10384] SyntaxError should contain exact location of the invalid character in identifier

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I see the marker pointing to the space after '=', which is *really* not helpful. If '5' were instead an identifier, one might be really misdirected. So best would be "Invalid char '0x' at position n in identifier 'something'" +1 to any improvement in Synta

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't understand the example, either. If I run 2to3 on it, I get, as the only change if sys.version_info[0] < 3: # Python 2 -from urllib import quote, unquote -from urlparse import urlparse, urlunparse -from BaseHT

[issue10385] Mark up "subprocess" as module in its doc

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: 1. Does the markup make any visual difference? 2. Does the markup affect the index? 3. What do other module docs do? I notice that 'Tkinter' appears in several section headings. Is it marked? (Is the upper case a holdover that should be lowercased?) 'Turtle'

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Nov 12, 2010 at 12:54 PM, Terry J. Reedy wrote: .. >>What is the best way to pass around source code? >> - file-like objects, line iterators, readline-like function? > > Line iterator (list of lines) as returned by open().readlines. > Memory shoul

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-11-12 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10375] 2to3 print(single argument)

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: >[Copied from Issue10070.] which is to say (for the benefit of other reviewers): This was a minor sub-issue mentioned there in passing and independent of the main issue and ignored in the extensive discussion thereof. -- nosy: +terry.reedy ___

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: That suggests that the last statement needs to be guarded somehow. I re-versioned to 3.2 because 3.1.final will be out very soon. I expect 3.2 and 2.7 should have same problem. -- nosy: +terry.reedy versions: +Python 3.2 -Python 3.1 ___

[issue4471] IMAP4 missing support for starttls

2010-11-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: The starttls patch has been committed in r86431. Thank you very much for writing the initial patch. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

  1   2   >