[issue7061] Improve 24.5. turtle doc

2010-11-05 Thread Georg Brandl
Georg Brandl added the comment: Why shouldn't global function doctests be runnable? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue10315] smtplib.SMTP_SSL new in 2.6

2010-11-05 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r86189. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10317] Add TurtleShell to turtle

2010-11-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: It's better as a demo for cmd than as a useful utility for the turtle module. Also, we want people using turtle to learn Python, not to bypass the language altogether. -- assignee: -> rhettinger resolution: -> rejected status: open -> closed __

[issue10320] printf %qd is nonstandard

2010-11-05 Thread Hallvard B Furuseth
New submission from Hallvard B Furuseth : Modules/_ctypes/callproc.c:PyCArg_repr() uses sprintf(%qd, long long), which is a GNU (and more?) extension. ISO C99 says %lld. Instead, use "%" PY_FORMAT_LONG_LONG "d" from pyconfig.h/pyport.h. Kills off #ifdef MS_WIN32 too. If Python must support C l

[issue10313] Reassure user: test_os BytesWarning is OK

2010-11-05 Thread Hallvard B Furuseth
Hallvard B Furuseth added the comment: Antoine Pitrou writes: > Hallvard, if you update your py3k working copy, do these warnings disappear? Yes, switching to the svn version shuts them up. -- ___ Python tracker

[issue10321] Add support for Message objects and binary data to smtplib.sendmail

2010-11-05 Thread R. David Murray
New submission from R. David Murray : The attached patch adds support to smtplib.SMTP.sendmail for the 'msg' argument to be, in addition to the currently accepted ASCII-only string, either a bytes string or a Message object. It also adds support for byte strings to smtplib.SMPT.data. Binary

[issue4403] regression from 2.6: smtplib.py requiring ascii for sending messages

2010-11-05 Thread R. David Murray
R. David Murray added the comment: I'm closing this issue as invalid, since as Martin pointed out you can't send unicode over the wire. However, see issue 8050 where I've attached a patch that adds support for sending binary data as a by-product of adding support for Message objects. >From M

[issue8050] smtplib SMTP.sendmail (TypeError: expected string or buffer)

2010-11-05 Thread R. David Murray
R. David Murray added the comment: See issue 10321 for a proposal to add Message support to smtplib. -- nosy: -Allison.Vollmann ___ Python tracker ___ __

[issue4403] regression from 2.6: smtplib.py requiring ascii for sending messages

2010-11-05 Thread R. David Murray
R. David Murray added the comment: I'm closing this issue as invalid, since as Martin pointed out you can't send unicode over the wire. However, see issue 10321 where I've attached a patch that adds support for sending binary data as a by-product of adding support for Message objects. >From

[issue4403] regression from 2.6: smtplib.py requiring ascii for sending messages

2010-11-05 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg120476 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10313] Reassure user: test_os BytesWarning is OK

2010-11-05 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue10311] Signal handlers must preserve errno

2010-11-05 Thread Hallvard B Furuseth
Hallvard B Furuseth added the comment: Antoine Pitrou writes: > By the way, I'd like to clear out a potential misunderstanding: the > function you are patching doesn't call Python signal handlers in itself > (those registered using signal.signal()). (...) Good point - I'm talking C signal handl

[issue10322] sys.argv and quoted arguments on command line

2010-11-05 Thread Rügheimer
New submission from Rügheimer : Words in quoted command line arguments containing whitespace are split into separate entries of the argument vector sys.argv. This implemetation (quote removal + word splitting) removes information required to read string arguments passed via the command line.

[issue10311] Signal handlers must preserve errno

2010-11-05 Thread Hallvard B Furuseth
Hallvard B Furuseth added the comment: Antoine Pitrou writes: > I think it is extremely unlikely that mutating errno in a signal handler > is unsafe (after all, the library functions called from that handler can > mutate errno too: that's the whole point of the patch IIUC). Adding some > configu

[issue10323] Final state of underlying sequence in islice

2010-11-05 Thread Shashank
New submission from Shashank : -- Converting the discussion here http://mail.python.org/pipermail/python-list/2010-November/1259601.html to a bug report (+nosy for everyone that responded, quoting the initial message for context) Are there any promises made with regard to final state of the u

[issue10323] Final state of underlying sequence in islice

2010-11-05 Thread Shashank
Shashank added the comment: @Raymond: I don't have a particular use case where I had a problem with this behavior. I came across this "problem" when looking at this issue http://bugs.python.org/issue6305. An important problem that can happen with this behavior is that it does extra work that

[issue10322] sys.argv and quoted arguments on command line

2010-11-05 Thread Eric Smith
Eric Smith added the comment: I don't see this behavior on MacOS: $ ./argtest arg1 arg2 "this should be a single argument" 2.6.1 (r261:67515, Feb 11 2010, 15:47:53) [GCC 4.2.1 (Apple Inc. build 5646)] ['./argtest', 'arg1', 'arg2', 'this should be a single argument'] This splitting is done by

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-05 Thread Eric Smith
Eric Smith added the comment: Is there any reason for the test files to have a shebang line at all? I think those should be removed, which would cut the problem in half. Also, given "-m", I'm not sure any of the files in the stdlib should have a shebang line. Is there really an expectation th

[issue10322] sys.argv and quoted arguments on command line

2010-11-05 Thread Rügheimer
Rügheimer added the comment: 2.6.18-194.17.1.el5 #1 SMP Wed Sep 29 12:51:33 EDT 2010 i686 i686 i386 GNU/Linux GNU bash, version 3.2.25(1)-release (i686-redhat-linux-gnu) I wrote test program in C to do the same thing as before and the arguments are treated properly: > ./testcargs arg1 arg2 "

[issue10322] sys.argv and quoted arguments on command line

2010-11-05 Thread Eric Smith
Eric Smith added the comment: The python version works for me also on a Fedora box with 3.2 and 2.7. What shell are you using? Did you compile this python yourself, or did it come with your distro? -- ___ Python tracker

[issue10322] sys.argv and quoted arguments on command line

2010-11-05 Thread R. David Murray
R. David Murray added the comment: Works fine for me on Gentoo linux. What exactly is 'python' in your path, and what happens if you do /usr/bin/python3 argtest? I'm 99.99% certain this is not a bug in Python, otherwise it would have been reported long before now, since it would represent a

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-05 Thread R. David Murray
R. David Murray added the comment: Benjamin did some cleanup in this area in at least py3k, so he might have some thoughts, making him nosy. -- nosy: +benjamin.peterson, r.david.murray ___ Python tracker

[issue10324] Modules/binascii.c: simplify expressions

2010-11-05 Thread Nicolas Kaiser
New submission from Nicolas Kaiser : Hi there! I noticed two expressions that can be simplified like: (a || (!a && b)) => (a || b) Best regards, Nicolas Kaiser --- --- a/Modules/binascii.c2010-11-05 13:21:22.075303326 +0100 +++ b/Modules/binascii.c2010-11-05 13:24:16.986174756

[issue10324] Modules/binascii.c: simplify expressions

2010-11-05 Thread Nicolas Kaiser
Changes by Nicolas Kaiser : -- keywords: +patch Added file: http://bugs.python.org/file19504/python-binascii.diff ___ Python tracker ___ _

[issue10322] sys.argv and quoted arguments on command line

2010-11-05 Thread Frank Rügheimer
Frank Rügheimer added the comment: You are right, it seems to work when the file is passed directly into python so the quotes are stripped somewhere before python even gets to see them. Thanks -- status: open -> closed ___ Python tracker

[issue10322] sys.argv and quoted arguments on command line

2010-11-05 Thread Eric Smith
Changes by Eric Smith : -- components: -None resolution: -> invalid stage: -> committed/rejected ___ Python tracker ___ ___ Python-

[issue10325] PY_LLONG_MAX & co - preprocessor constants or not?

2010-11-05 Thread Hallvard B Furuseth
New submission from Hallvard B Furuseth : Include/pyport.h invites potential compile errors with the definitions #define PY_LLONG_MIN LLONG_MIN #define PY_LLONG_MAX LLONG_MAX #define PY_ULLONG_MAX ULLONG_MAX which can fall back to gcc variants or to #else /* Otherwise, rely on two's com

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-05 Thread Nick Coghlan
Nick Coghlan added the comment: Removing shebang lines from svn completely and only *adding* them during installation steps as appropriate may be an interesting approach. (I noted that my grep of my local build found only correct references to python3.2 in the built scripts directory) I'll a

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-05 Thread Nick Coghlan
Nick Coghlan added the comment: For the record, my list is from an svn checkout of r86191 -- ___ Python tracker ___ ___ Python-bugs-l

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-05 Thread Nick Coghlan
Nick Coghlan added the comment: A few more deeper in the py3k source tree: Doc/tools/docutils/_string_template_compat.py Doc/tools/docutils/readers/python/pynodes.py Doc/tools/sphinx/pycode/pgen2/token.py Lib/lib2to3/tests/data/different_encoding.py Adding Georg, since this affects the docs as

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-05 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: d...@python -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10326] Can't pickle unittest.TestCase instances

2010-11-05 Thread Michael Foord
New submission from Michael Foord : In Python 2.7 a change was introduced to TestCase which involves storing a dictionary of method objects on TestCase instances. This makes them unpickleable. unittest2 stores strings (method names) instead of method objects (a fix to make TestCase instances

[issue10325] PY_LLONG_MAX & co - preprocessor constants or not?

2010-11-05 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue5251] contextlib.nested inconsistent with, well, nested with statements due exceptions raised in __enter__

2010-11-05 Thread Nick Coghlan
Nick Coghlan added the comment: Reopening as a reminder to myself that I have a new PEP I want to write in this area. The idea is essentially a lighter weight alternative to PEP 377 that adds an optional __entered__ method to the context management protocol along the following lines: _v = cm

[issue10327] Abnormal SSL timeouts when using socket timeouts - once again

2010-11-05 Thread Pascal Chambon
New submission from Pascal Chambon : On freebsd 8, using python 2.6.6, I've run into the bug already widely dealt with in these reports : http://bugs.python.org/issue1380952 http://bugs.python.org/issue1153016 When using socket timeouts (eg. with socket.setdefaulttimeout()), whatever the timeo

[issue10328] re.sub[n] doesn't seem to handle /Z replacements correctly in all cases

2010-11-05 Thread Alexander Schmolck
New submission from Alexander Schmolck : In certain cases a zero-width /Z match that should be replaced isn't. An example might help: re.compile('(?m)(?P[ \t]+\r*$)|(?P(?<=[^\n])\Z)').subn(lambda m:next('<'+k+'>' for k,v in m.groupdict().items() if v is not None), 'foobar ') this gives ('

[issue10327] Abnormal SSL timeouts when using socket timeouts - once again

2010-11-05 Thread Malte Helmert
Malte Helmert added the comment: I checked if issue1153016 has reappeared for me (Ubuntu, Python 2.6.6), but it hasn't. Both the urllib and the imaplib examples given there work fine for me. Or at least opening the connections works fine for me, which it didn't at the time of issue1153016. B

[issue7061] Improve 24.5. turtle doc

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Nov 5, 2010 at 3:34 AM, Georg Brandl wrote: .. > Why shouldn't global function doctests be runnable? They should - I just couldn't figure out a better hack that would work for both mathods and functions. Note that functions are auto-generated in

[issue9244] multiprocessing.pool: Worker crashes if result can't be encoded

2010-11-05 Thread Jesse Noller
Jesse Noller added the comment: Fine w/ committing this Ask. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10327] Abnormal SSL timeouts when using socket timeouts - once again

2010-11-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > When using socket timeouts (eg. with socket.setdefaulttimeout()), > whatever the timeout I use (eg. 10 seconds), I begin having random > "SSLError: The read operation timed out" exceptions in my http calls, > via urlopen or 3rd party libraries. Well, this isn

[issue7707] multiprocess.Queue operations during import can lead to deadlocks

2010-11-05 Thread Jesse Noller
Jesse Noller added the comment: Fine w/ committing this Ask. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2010-11-05 Thread Jesse Noller
Jesse Noller added the comment: Fine w/ committing this Ask as-is ask. You are correct in the original intent of the code. -- ___ Python tracker ___

[issue10329] trace.py and unicode in Python 3

2010-11-05 Thread Walter Dörwald
New submission from Walter Dörwald : It seems that on Python 3 (i.e. the py3k branch) trace.py can not handle source that includes Unicode characters. Running the test suite with code coverage info via ./python Lib/test/regrtest.py -T -N -uurlfetch,largefile,network,decimal sometimes fails

[issue10329] trace.py and unicode in Python 3

2010-11-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Library (Lib) nosy: +belopolsky stage: -> patch review type: -> behavior versions: +Python 3.1, Python 3.2 ___ Python tracker ___ __

[issue10327] Abnormal SSL timeouts when using socket timeouts - once again

2010-11-05 Thread Pascal Chambon
Pascal Chambon added the comment: The exception is raised too early, none of my calls takes more than 1-2 seconds and I've a default timeout set at 10s or more. This occurs rather rarely, one or two times on some hundreds of calls. I'll make a little script to try to isolate the pb.

[issue10329] trace.py and unicode in Python 3

2010-11-05 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue7061] Improve 24.5. turtle doc

2010-11-05 Thread Gregor Lingl
Gregor Lingl added the comment: What do you mean with "similar approach"? Keep in mind, that functions derived form turtle methods, call methods for the class variable _pen of class Turtle. A new Turtle-object is bound to _pen, if it is not already present, whenever one of these functions is ca

[issue10328] re.sub[n] doesn't seem to handle /Z replacements correctly in all cases

2010-11-05 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mrabarnett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-05 Thread Georg Brandl
Georg Brandl added the comment: You can ignore those under Doc/tools; they are neither part of the distribution and nor installed. -- ___ Python tracker ___ ___

[issue10327] Abnormal SSL timeouts when using socket timeouts - once again

2010-11-05 Thread Pascal Chambon
Pascal Chambon added the comment: Humz on second thought you may be right, now I have some trouble reproducing the bugs (wich have been there since the beginning, though), so it may be that the webservice I call seldom takes 10+ seconds to answer (weird anyway). I've placed timers in the code

[issue10323] Final state of underlying sequence in islice

2010-11-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger components: +Documentation -Interpreter Core priority: normal -> low versions: -Python 2.7, Python 3.1 ___ Python tracker

[issue5412] extend configparser to support mapping access(__*item__)

2010-11-05 Thread Łukasz Langa
Łukasz Langa added the comment: Documentation complete. -- Added file: http://bugs.python.org/file19506/issue5412.diff ___ Python tracker ___

[issue5412] extend configparser to support mapping access(__*item__)

2010-11-05 Thread Łukasz Langa
Changes by Łukasz Langa : Removed file: http://bugs.python.org/file19501/issue5412.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10288] Remove deprecated C "character" handling macros ISUPPER() etc

2010-11-05 Thread Dave Malcolm
Dave Malcolm added the comment: Thanks for reviewing. If I'm reading things correctly, the ISUPPER et al macros were added in 2.6 and 3.0, and deprecated in 2.7 and 3.1. Tested with a full run of "-m test.regrtest -uall" here (x86_64 Fedora 13), with both 2-byte and 4-byte unicode; no failur

[issue10317] Add TurtleShell to turtle

2010-11-05 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-05 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue10288] Remove deprecated C "character" handling macros ISUPPER() etc

2010-11-05 Thread Eric Smith
Eric Smith added the comment: I'd 'svnmerge block' them, just in case anyone decides to manually merge (which I doubt will happen, but you never know). -- ___ Python tracker __

[issue10288] Remove deprecated C "character" handling macros ISUPPER() etc

2010-11-05 Thread Dave Malcolm
Dave Malcolm added the comment: Committed to py3k in r86210 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10053] Don’t close fd when FileIO.__ini t__ fails

2010-11-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Recently, the patch to close fd when FileIO#__init__ failed and closefd = True was checked in. Is this mean this issue is invalid? -- ___ Python tracker ___

[issue1346238] A constant folding optimization pass for the AST

2010-11-05 Thread Dave Malcolm
Dave Malcolm added the comment: FWIW, I'm working on fixing up the this patch to work against py3k; I'm assuming there's still interest in the AST visitor + specific optimization passes approach. -- ___ Python tracker

[issue10325] PY_LLONG_MAX & co - preprocessor constants or not?

2010-11-05 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report; I agree that there's a potential issue here, and I also think that all these definitions *should* be preprocessor defines. (Idle question: does C99 require that LONG_MAX and friends are usable in the preprocessor? I see it in e.g. 7.1

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-11-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I think issue4 happens because all frames are grid-forgotten in redisp(), sometimes widget becomes empty. I think we can close this issue as invalid. P.S. Try this change in redisp() yy = 0 for xx in self.frms[start:self.maxdisp+start]:

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-11-05 Thread Robert Lerche
Robert Lerche added the comment: Thank you, Hirokazu! I see now -- deleting the rows first causes the scroll bar to shrink. So I take it calling grid with a row/column that is already in the grid replaces the prior mapped widget. [or should I say, "domo arigato Yamamoto-san"?] --

[issue10329] trace.py and unicode in Python 3

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't think trace.diff is proposed for commit. I see it more as a supporting file for diagnosing the problem. I see two problems here: 1. Apparently OP's system opens files with encoding set to 'ascii' by default. This is not the case on any of the

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-11-05 Thread Brian Curtin
Brian Curtin added the comment: Works for me. I think it should be ok to commit. -- assignee: -> ocean-city ___ Python tracker ___ _

[issue10329] trace.py and unicode in Python 3

2010-11-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I would be +0 on adding errors='replace' or 'backshlashreplace' to the > open() call in write_results_file(), but hardcoding encoding="utf-8" > is definitely not the right thing to do. Who are the consumers of the trace files? Is there a formal specificatio

[issue1346238] A constant folding optimization pass for the AST

2010-11-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson versions: +Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-lis

[issue10282] IMPLEMENTATION token differently delt with in NNTP capability

2010-11-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the new attribute in r86213. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-11-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Robert, I interpret your response to Hirokazu to mean that his suggestion works. Hence I am following his suggestion. Reopen is I erred. -- resolution: -> works for me status: open -> closed ___ Python tracker

[issue1926] NNTPS support in nntplib

2010-11-05 Thread Julien ÉLIE
Julien ÉLIE added the comment: Hi Steven, I agree with what you suggest for the implementation. > Is there a case where a server advertises STARTTLS > and one would not use it? Yes, the overhead added by the encryption. It is what people usually mention for the reason not to use it. Howeve

[issue1926] NNTPS support in nntplib

2010-11-05 Thread Julien ÉLIE
Julien ÉLIE added the comment: (Note that smtplib can give ideas for an implementation of AUTHINFO SASL with PLAIN, LOGIN and CRAM-MD5 mechanisms.) -- ___ Python tracker ___ ___

[issue10317] Add TurtleShell to turtle

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Nov 5, 2010 at 1:18 PM, Éric Araujo wrote: .. > nosy: +eric.araujo Raymond has already rejected and closed this request, so I am not optimistic that anything will happen here. (I also understand that he feels rather strongly about this because h

[issue10317] Add TurtleShell to turtle

2010-11-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +gregorlingl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10311] Signal handlers must preserve errno

2010-11-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, fixed in r86214 (3.x), r86215 (3.1) and r86216 (2.7). Thanks for the patch! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue10330] trace module doesn't work without threads

2010-11-05 Thread Antoine Pitrou
New submission from Antoine Pitrou : The trace module doesn't work when threading is disabled ("./configure --without-threads"). The following patch fixes this: diff -r 345827dcf409 Lib/trace.py --- a/Lib/trace.py Fri Nov 05 20:58:28 2010 +0100 +++ b/Lib/trace.py Fri Nov 05 21:20:09 2

[issue4391] optparse: use proper gettext plurals forms

2010-11-05 Thread Éric Araujo
Éric Araujo added the comment: Now that argparse has been included in the standard library to supersede optparse, I’m not sure there is still value in fixing this bug. -- ___ Python tracker ___

[issue1098749] Single-line option to pygettext.py

2010-11-05 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5404] Cross-compiling Python

2010-11-05 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue1649329] Extract file-finding and language-handling code from gettext.find

2010-11-05 Thread Éric Araujo
Éric Araujo added the comment: Barry said in http://mail.python.org/pipermail/python-dev/2009-March/087847.html : The class-based API for gettext takes streams, so resource_stream() would work just fine. I think i18n plugins for Python do not necessarily need to use the classic gettext

[issue8409] gettext should honor $LOCPATH environment variable

2010-11-05 Thread Éric Araujo
Éric Araujo added the comment: Should this be closed as invalid? -- nosy: +eric.araujo, lemburg, loewis ___ Python tracker ___ ___ Pyt

[issue8409] gettext should honor $LOCPATH environment variable

2010-11-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm not an expert on this, but I think it's still valid. Maybe Martin has an opinion on it? -- ___ Python tracker ___ ___

[issue2931] optparse: various problems with unicode and gettext

2010-11-05 Thread Éric Araujo
Éric Araujo added the comment: It would be nice to test argparse for the same behavior. -- nosy: +bethard, eric.araujo ___ Python tracker ___

[issue10245] Fix resource warnings in test_telnetlib

2010-11-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10245] Fix resource warnings in test_telnetlib

2010-11-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10328] re.sub[n] doesn't seem to handle /Z replacements correctly in all cases

2010-11-05 Thread Matthew Barnett
Matthew Barnett added the comment: It's a bug caused by trying to avoid getting stuck when a zero-width match is found. Basically the fix is to advance one character after a zero-width match, but that doesn't always give the correct result. There are a number of related issues like issue #164

[issue10180] File objects should not pickleable

2010-11-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r86220. I won't backport it since it would risk breaking existing code, although relying on this is really a bug in itself. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed

[issue7434] general pprint rewrite

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

[issue10270] Fix resource warnings in test_threading

2010-11-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> commit review type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10331] test_gdb failure when warnings printed out

2010-11-05 Thread Antoine Pitrou
New submission from Antoine Pitrou : There is this kind of failures on Barry's new buildbot. It looks like warning messages should be ignored when checking gdb output: == FAIL: test_NULL_ob_type (test.test_gdb.PrettyPrintTests

[issue10331] test_gdb failure when warnings printed out

2010-11-05 Thread Dave Malcolm
Dave Malcolm added the comment: Seems to relate to this gdb feature: http://sourceware.org/ml/gdb-patches/2005-05/msg00637.html Barry: is your ~/.gdbinit world writable? I can cook up a patch to ignore such warnings -- ___ Python tracker

[issue10299] Add index with links section for built-in functions

2010-11-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: +1 from me on a table at the top of the functions page. I am assuming that the markup will induce hotlinks. The main problem I see is the need to hand rewrite when another function is added -- nosy: +terry.reedy ___

[issue10331] test_gdb failure when warnings printed out

2010-11-05 Thread Dave Malcolm
Dave Malcolm added the comment: Alternatively, it looks like having it owned by another user would do this. For curiosity's sake, what's the output of: ls -al /home/barry/.gdbinit on that buildbot? Given that it's a security warning, should this simply be treated as misconfiguration, and be

[issue1346238] A constant folding optimization pass for the AST

2010-11-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: David, it would be great if an optional AST optimization pass could do something that we don't already have (perhaps, loop invariant code motion when python is called with -OO or somesuch). The AST tree makes it possible for the first time to provide some

[issue10331] test_gdb failure when warnings printed out

2010-11-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: It is a misconfiguration. I started my new buildbot with my environment active. I've since killed that and restarted it with a clean ~buildbot environment. So we shouldn't see this in my buildbots any more. (FWIW, ~/.gdbinit is 644) -- _

[issue10300] Documentation of three PyDict_* functions

2010-11-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is fixed now. 2010/11/4 Hagen Fürstenau : > > Hagen Fürstenau added the comment: > > The ReST links in http://docs.python.org/py3k/c-api/dict.html#PyDict_Items > seem to be broken. > > -- > > ___ > Python tr

[issue10321] Add support for Message objects and binary data to smtplib.sendmail

2010-11-05 Thread R. David Murray
R. David Murray added the comment: New patch that takes a middle ground on the API: sendmail accepts string and bytes, and a new method send_message accepts a Message object with a more convenient signature. I think send_message does belong in smtplib since it would be awkward and unintuitiv

[issue10303] small inconsistency in tutorial

2010-11-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The sentence should be deleted. Print is *not* used in any of the previous examples. This is the first mention of print() in the chapter and is nonsensical in context. -- keywords: +easy nosy: +terry.reedy stage: -> needs patch versions: +Python 2.7,

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-05 Thread Ned Deily
Ned Deily added the comment: I agree with Eric's comment about why have shebang lines at all for files in the standard library. There isn't any use case or recommendation for ever putting /path/to/lib/pythonx.x or its subdirectories directly on a shell search path is there? WRT the three fi

[issue10332] Multiprocessing maxtasksperchild results in hang

2010-11-05 Thread James Hutchison
New submission from James Hutchison : v.3.2a3 If the maxtasksperchild argument is used, the program will just hang after whatever that value is rather than working as expected. Tested in Windows XP 32-bit test code: import multiprocessing def f(x): return 0; if __name__ == '__main__':

[issue10332] Multiprocessing maxtasksperchild results in hang

2010-11-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +asksol, jnoller type: -> behavior versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___

  1   2   >