How to Test GUI Apps for many Python X GUI toolkits

2012-06-03 Thread Mark Summerfield
Hi, There are many options for writing desktop GUI applications with Python and I'd like to explore some of them. However, to do this I need to be able to test various Python 3.x X GUI toolkit y.z combinations. With PyQt4 this is easy. (Example given at the end.) I'd like to be able to do the

Re: Tkinter deadlock on graceful exit

2012-06-03 Thread Matteo Landi
On Jun/02, Dennis Lee Bieber wrote: On Sat, 2 Jun 2012 14:57:17 +0200, Matteo Landi mat...@matteolandi.net declaimed the following in gmane.comp.python.general: Lesson learned: never invoke Tkinter functions / methods outside the mainloop thread.. NEVER! Typically, that

Re: usenet reading

2012-06-03 Thread Colin Higwell
On Fri, 25 May 2012 15:38:55 -0700, Jon Clements wrote: Is there a server out there where I can get my news groups? I use to be with an ISP that hosted usenet servers, but alas, it's no longer around... I use Albasani.net (free and very reliable), as well as gmane.org. Google Groups is an

Re: usenet reading

2012-06-03 Thread Matej Cepl
On 03/06/12 13:59, Colin Higwell wrote: Google Groups is an abomination IMHO, and I find it much easier to read mailing lists via a newsreader. I highly recommend Pan, by the way. I am still surprised how good experience I have with reading news with Thunderbird. Yes, Pan is better, but it

python View Controller for decoupled website architectures?

2012-06-03 Thread Alec Taylor
I'm developing a database (Model Controller) in Python (web2py) that exposes APIs in REST (HTTP)[CSV, XML, JSON] and RPC (XML, JSON). The client I'm developing in JavaScript to interface with my remote database via its API. Unfortunately JavaScript is rather troublesome when it comes to

Re: CPython 2.7: Weakset data changing size during internal iteration

2012-06-03 Thread Steven D'Aprano
On Fri, 01 Jun 2012 20:24:30 -0700, Temia Eszteri wrote: On 02 Jun 2012 03:05:01 GMT, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I doubt that very much. If you are using threads, it is more likely your code has a race condition where you are modifying a weak set at the same

Re: Use a locally built Tk for Python?

2012-06-03 Thread Steven D'Aprano
On Fri, 01 Jun 2012 09:34:41 -0700, Mark Summerfield wrote: Hi, I have multiple Pythons locally installed so that I can test against different versions. (On a 64-bit Debian stable system.) [...] But when I run ~/opt/py32tkmod/bin/python3 tkinter-test.pyw the system tk is being used not my

Re: usenet reading

2012-06-03 Thread Neal Becker
Jon Clements wrote: Hi All, Normally use Google Groups but it's becoming absolutely frustrating - not only has the interface changed to be frankly impractical, the posts are somewhat random of what appears, is posted and whatnot. (Ironically posted from GG) Is there a server out there

Re: Use a locally built Tk for Python?

2012-06-03 Thread David
Python uses the Tkinter wrapper around TCL/TK and it remains the same no matter how may versions of TCL/TK are installed. You will have to build Tkinter against whatever version you like and make sure that it gets installed in the /usr/lib64/python directory that you want. --

Re: CPython 2.7: Weakset data changing size during internal iteration

2012-06-03 Thread Temia Eszteri
On 03 Jun 2012 16:20:11 GMT, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: And should I have known this from your initial post? I did discuss the matter with Terry Reedy, actually, but I guess since the newsgroup-to-mailing list mirror is one-way, there's no actual way you could've

Re: usenet reading

2012-06-03 Thread Peter Pearson
On Sat, 26 May 2012 16:05:23 +0100, duncan smith wrote: On 25/05/12 23:38, Jon Clements wrote: [snip] Is there a server out there where I can get my news groups? If you don't mind paying a small fee there are several companies providing usenet access such as http://www.newsdemon.com. (I

./configure

2012-06-03 Thread Janet Heath
Hi, I am trying to run the ./configure but I keep getting this: configure:2756: checking for --enable-universalsdk configure:2797: result: no configure:2806: checking for --with-universal-archs configure:2823: result: 32-bit configure:2980: checking MACHDEP configure:3129: result: darwin

Re: ./configure

2012-06-03 Thread Janet Heath
On Sunday, June 3, 2012 3:19:16 PM UTC-6, Janet Heath wrote: Hi, I am trying to run the ./configure but I keep getting this: configure:2756: checking for --enable-universalsdk configure:2797: result: no configure:2806: checking for --with-universal-archs configure:2823: result: 32-bit

Re: ./configure

2012-06-03 Thread Alain Ketterlin
Janet Heath janetcatherine.he...@gmail.com writes: [...] configure:3161: checking machine type as reported by uname -m configure:3164: result: x86_64 configure:3177: checking for --without-gcc configure:3221: result: no configure:3282: checking for gcc configure:3312: result: no

Re: usenet reading

2012-06-03 Thread Martin Schöön
On 2012-06-03, Peter Pearson ppearson@nowhere.invalid wrote: On Sat, 26 May 2012 16:05:23 +0100, duncan smith wrote: On 25/05/12 23:38, Jon Clements wrote: [snip] Is there a server out there where I can get my news groups? If you don't mind paying a small fee there are several companies

Re: ./configure

2012-06-03 Thread Chris Angelico
On Mon, Jun 4, 2012 at 7:19 AM, Janet Heath janetcatherine.he...@gmail.com wrote: configure:3534: error: no acceptable C compiler found in $PATH The configure script is used to build Python from source. To do that, you need a C compiler (such as gcc, which it went looking for a few lines

Re: ./configure

2012-06-03 Thread Janet Heath
On Sunday, June 3, 2012 3:19:16 PM UTC-6, Janet Heath wrote: Hi, I am trying to run the ./configure but I keep getting this: configure:2756: checking for --enable-universalsdk configure:2797: result: no configure:2806: checking for --with-universal-archs configure:2823: result: 32-bit

Re: ./configure

2012-06-03 Thread Robert Kern
On 6/3/12 11:01 PM, Janet Heath wrote: Thanks Alain. I should have a compiler on my Mac OS X Lion. I am thinking that it isn't set in my $PATH variable. I don't know where the $PATH is set at. I will check to see if their is a binary. Lion does not come with a compiler out-of-box. You

Re: ./configure

2012-06-03 Thread Andrew Berg
On 6/3/2012 5:01 PM, Janet Heath wrote: Thanks Alain. I should have a compiler on my Mac OS X Lion. I am thinking that it isn't set in my $PATH variable. I don't know where the $PATH is set at. I will check to see if their is a binary. There are always Windows and OS X binary installers

Re: ./configure

2012-06-03 Thread Benjamin Kaplan
Thanks Alain.  I should have a compiler on my Mac OS X Lion.  I am thinking that it isn't set in my $PATH variable.  I don't know where the $PATH is set at.  I will check to see if their is a binary. -- http://mail.python.org/mailman/listinfo/python-list You need to install the command

Re: ./configure

2012-06-03 Thread Steven D'Aprano
On Sun, 03 Jun 2012 15:01:07 -0700, Janet Heath wrote: Thanks Alain. I should have a compiler on my Mac OS X Lion. I am thinking that it isn't set in my $PATH variable. I don't know where the $PATH is set at. I will check to see if their is a binary. At the command line, run: echo $PATH

Re: ./configure

2012-06-03 Thread William R. Wing (Bill Wing)
On Jun 3, 2012, at 8:31 PM, Steven D'Aprano wrote: On Sun, 03 Jun 2012 15:01:07 -0700, Janet Heath wrote: Thanks Alain. I should have a compiler on my Mac OS X Lion. I am thinking that it isn't set in my $PATH variable. I don't know where the $PATH is set at. I will check to see if

Re: ./configure

2012-06-03 Thread Janet Heath
On Jun 3, 6:31 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Sun, 03 Jun 2012 15:01:07 -0700, Janet Heath wrote: Thanks Alain.  I should have a compiler on my Mac OS X Lion.  I am thinking that it isn't set in my $PATH variable.  I don't know where the $PATH is set at.

Installing Mailman

2012-06-03 Thread Janet Heath
checking for --with-python... no checking for python... /usr/bin/python checking Python interpreter... /usr/bin/python checking Python version... 2.7.1 checking Python's email package... ok checking Japanese codecs... ok checking Korean codecs... ok checking that Python has a working distutils...

Re: Installing Mailman

2012-06-03 Thread Chris Rebert
On Sun, Jun 3, 2012 at 9:04 PM, Janet Heath janetcatherine.he...@gmail.com wrote: checking for --with-python... no checking for python... /usr/bin/python checking Python interpreter... /usr/bin/python checking Python version... 2.7.1 checking Python's email package... ok checking Japanese

Re: Installing Mailman

2012-06-03 Thread Benjamin Kaplan
On Mon, Jun 4, 2012 at 12:49 AM, Chris Rebert c...@rebertia.com wrote: On Sun, Jun 3, 2012 at 9:04 PM, Janet Heath janetcatherine.he...@gmail.com wrote: checking for --with-python... no checking for python... /usr/bin/python checking Python interpreter... /usr/bin/python checking Python

[issue14982] pkgutil.walk_packages seems to not work properly on Python 3.3a

2012-06-03 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: See also issue 14787 re: walk_packages(), which also affects versions before 3.3. -- nosy: +cjerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14982

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-06-03 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: If, after building of Python, libexpat.so (library used by pyexpat module) has been broken/removed or pyexpat module has been broken/removed, then attempt of import of _elementtree module, which requires pyexpat

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-06-03 Thread Zac Medico
Changes by Zac Medico zmed...@gentoo.org: -- nosy: +zmedico ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14988 ___ ___ Python-bugs-list mailing

[issue14989] http.server option to run CGIHTTPRequestHandler

2012-06-03 Thread Senthil Kumaran
New submission from Senthil Kumaran sent...@uthcode.com: python3 -m http.server enables you to serve with SimpleHTTPRequestHandler serving as http server. If the cgi-bin paths are present those are *not treated as cgi paths*. Previously in Python2, python -m CGIHTTPServer enabled the sever

[issue14989] http.server option to run CGIHTTPRequestHandler

2012-06-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 935a656359ae by Senthil Kumaran in branch 'default': Issue 14989: http.server --cgi option can enable the CGI http server. http://hg.python.org/cpython/rev/935a656359ae -- nosy: +python-dev

[issue14989] http.server option to run CGIHTTPRequestHandler

2012-06-03 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: I have added this in 3.3, I am not sure if adding to 3.2 is a good idea. To some, it may look like a feature. -- resolution: - fixed stage: needs patch - committed/rejected ___ Python tracker

[issue14986] print() fails on latin1 characters on OSX

2012-06-03 Thread Adrian Bastholm
Adrian Bastholm javahax...@gmail.com added the comment: Thanks a lot for the help, guys ! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14986 ___

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2012-06-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 41e85ac2ccef by Martin v. Löwis in branch '3.2': Issue #14937: Perform auto-completion of filenames in strings even for non-ASCII filenames. http://hg.python.org/cpython/rev/41e85ac2ccef New changeset 9aa8af0761ef

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2012-06-03 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I have now fixed it by looking for the beginning of the string, and not checking for file name characters at all. There was a related issue that the auto-complete window would disappear if you type a non-ascii character; I have fixed that

[issue14990] detect_encoding should fail with SyntaxError on invalid encoding

2012-06-03 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: I've hit this issue while playing with tokenize for the pep8.py module. The tokenize detect_encoding() should report SyntaxError when the encoding is improperly declared. However it raises a LookupError in some cases. $ ./python

[issue14990] detect_encoding should fail with SyntaxError on invalid encoding

2012-06-03 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: This patch seems to fix the issue. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file25805/issue14990_detect_encoding.diff ___ Python tracker

[issue13598] string.Formatter doesn't support empty curly braces {}

2012-06-03 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: What is the status of the bug? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13598 ___

[issue14929] IDLE crashes on *Edit / Find in files ...* command

2012-06-03 Thread Francisco Gracia
Francisco Gracia fgragu...@gmail.com added the comment: While your are at it, here is another suggestion: what the *Find in files ...* dialog needs most urgently in my opinion is a field for specifying clearly the directory from which the user wants to launch the search. Also in my modest

[issue14959] ttk.Scrollbar in Notebook widget freezes

2012-06-03 Thread David Beck
David Beck db...@ualberta.ca added the comment: That's a shame, though I guess it means I can stop struggling with the installation of Tix. Since that's another extension of Tk, the same issue will probably be lurking in there as well. Maybe I'll give wxPyton or QT a shot. Thanks for your

[issue14983] email.generator should always add newlines after closing boundaries

2012-06-03 Thread Dmitry Shachnev
Dmitry Shachnev mity...@gmail.com added the comment: Hmm. So that means the verifiers are not paying attention to the MIME RFC? That's unfortunate. It seems that's true... -- ___ Python tracker rep...@bugs.python.org

[issue11480] Cannot copy a class with a metaclass other than type

2012-06-03 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: I've updated the patch to the current version. I've also checked, that the tests still pass. -- nosy: +ncoghlan Added file: http://bugs.python.org/file25806/copy_metaclass_2.patch ___ Python

[issue7559] TestLoader.loadTestsFromName swallows import errors

2012-06-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for figuring that out. And no, it doesn't matter if it is importlib.load_module or __import__, since both are provided by importlib now and both use the cache. It's an interesting question where the cache clear should go. I

[issue14894] distutils.LooseVersion fails to compare number and a word

2012-06-03 Thread Natalia
Natalia natalia.frydr...@gmail.com added the comment: Hi, I'm attaching a patch that fixes this issue:) -- keywords: +patch Added file: http://bugs.python.org/file25807/14894.patch ___ Python tracker rep...@bugs.python.org

[issue14894] distutils.LooseVersion fails to compare number and a word

2012-06-03 Thread Natalia
Natalia natalia.frydr...@gmail.com added the comment: I had a wrong return value in one of unit tests, fixed. -- Added file: http://bugs.python.org/file25808/14894.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14894

[issue14894] distutils.LooseVersion fails to compare number and a word

2012-06-03 Thread Natalia
Changes by Natalia natalia.frydr...@gmail.com: Removed file: http://bugs.python.org/file25807/14894.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14894 ___

[issue14673] add sys.implementation

2012-06-03 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Jun 02, 2012, at 11:33 PM, Eric Snow wrote: Added file: http://bugs.python.org/file25804/issue14673_full_4.diff Hi Eric. I'm ready to do a final review and merge this in, but I just want to be sure I'm looking at the right file. Is

[issue1079] decode_header does not follow RFC 2047

2012-06-03 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Jun 02, 2012, at 09:59 PM, R. David Murray wrote: I've applied this to 3.3. Because the preservation of spaces around the ascii parts is a visible behavior change that could cause working programs to break, I don't think I can backport it.

[issue14673] add sys.implementation

2012-06-03 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Jun 02, 2012, at 08:03 AM, Amaury Forgeot d'Arc wrote: - _PyNamespace_New should be a public API function. From Python code, - SimpleNamespace is public. This is a separate discussion. I'm not opposed, but I don't think this should be

[issue1079] decode_header does not follow RFC 2047

2012-06-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: OK, I'm closing this, then, and will close the related issues as well. Thanks again for the patch, Ralf. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: -Python 2.7, Python 3.2

[issue1467619] Header.decode_header eats up spaces

2012-06-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is fixed by the fix in issue 1079. Ralf found a *relatively* backward compatible way to fix it, but since the point is preserving whitespace that wasn't preserved before, there is an unavoidable behavior change, so it can't be

[issue2658] decode_header() fails on multiline headers

2012-06-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0808cb8c60fd by R David Murray in branch 'default': #2658: Add test for issue fixed by fix for #1079. http://hg.python.org/cpython/rev/0808cb8c60fd -- nosy: +python-dev

[issue2658] decode_header() fails on multiline headers

2012-06-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is fixed by the fix for issue 1079. I've added the test to the test suite. -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - decode_header does not follow RFC 2047 versions:

[issue1079] decode_header does not follow RFC 2047

2012-06-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0808cb8c60fd by R David Murray in branch 'default': #2658: Add test for issue fixed by fix for #1079. http://hg.python.org/cpython/rev/0808cb8c60fd -- ___ Python tracker

[issue14991] Option for regex groupdict() to show only matching names

2012-06-03 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: Currently, mo.groupdict() always inserts a default value for unmatched named groups. This is helpful in some use cases and awkward in others. I propose adding an option to suppress default entries: # CURRENT WAY pattern =

[issue13598] string.Formatter doesn't support empty curly braces {}

2012-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Could you upload just one patch with fix and test, addressing my previous comments, and remove the old patches? It will make it easier for Eric to review when he gets some time. Please also keep lines under 80 characters. Thanks in advance.

[issue1521950] shlex.split() does not tokenize like the shell

2012-06-03 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: Added file: http://bugs.python.org/file25809/388411be9b61.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1521950 ___

[issue14712] Integrate PEP 405

2012-06-03 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Closing, as the changes are now incorporated in default, and the buildbots seem reasonably happy. -- resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement

[issue13598] string.Formatter doesn't support empty curly braces {}

2012-06-03 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: It seems like the patch doesn't consider mixing of positional and keyword arguments: if you have the format string {foo} {} {bar}, then manual will be set to True when foo is seen as the field_name, and fail soon after when is seen as

[issue14673] add sys.implementation

2012-06-03 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Is full_4.diff the most up-to-date patch, and is it complete (i.e. contains all code, docs, and tests)? Yep. :) -- ___ Python tracker rep...@bugs.python.org

[issue14992] os.makedirs expect_ok=True test_os failure when directory has S_ISGID bit set

2012-06-03 Thread Gregory P. Smith
New submission from Gregory P. Smith g...@krypto.org: == ERROR: test_exist_ok_existing_directory (__main__.MakedirTests) -- Traceback (most recent call last):

[issue14993] GCC error when using unicodeobject.h

2012-06-03 Thread André Malo
New submission from André Malo n...@perlig.de: GCC error when using unicodeobject.h This ist my first attempt to test an extension with python 3.3. I've been using the 3.3.0a4 tarball. I'm using very strict compiler settings when compiling my extension modules, especially -Wall -Werror

[issue14994] GCC error when using pyerrors.h

2012-06-03 Thread André Malo
New submission from André Malo n...@perlig.de: GCC error when using pyerrors.h This ist my first attempt to test an extension with python 3.3. I've been using the 3.3.0a4 tarball. I'm using very strict compiler settings when compiling my extension modules, especially -Wall -Werror (along

[issue9949] os.path.realpath on Windows does not follow symbolic links

2012-06-03 Thread Daniel Harding
Daniel Harding dhard...@gmail.com added the comment: The previous version of this patch did not handle bytes arguments correctly and could fail in conjunction with a non-ASCII compatible encoding. Also, if the result was a UNC path, it was not being handled correctly (the returned value

[issue14989] http.server option to run CGIHTTPRequestHandler

2012-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t think this can be defended as a bug fix, so let’s keep 3.2 as it is. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14989

[issue14992] os.makedirs expect_ok=True test_os failure when directory has S_ISGID bit set

2012-06-03 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14992 ___ ___ Python-bugs-list

[issue14714] PEP 414 tokenizing hook does not preserve tabs

2012-06-03 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- title: PEp 414 tokenizing hook does not preserve tabs - PEP 414 tokenizing hook does not preserve tabs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14714

[issue12510] IDLE: calltips mishandle raw strings and other examples

2012-06-03 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: fix_12510.patch addresses the issue with the test. What do you mean by: int.append( does not bring up a tip on either version, but should if possible. ? The int object does not have append as a method. -- Added file:

[issue14992] os.makedirs expect_ok=True test_os failure when directory has S_ISGID bit set

2012-06-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fef529f3de5b by Gregory P. Smith in branch '3.2': Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSError http://hg.python.org/cpython/rev/fef529f3de5b New changeset eed26e508b7e by Gregory P.

[issue14992] os.makedirs expect_ok=True test_os failure when directory has S_ISGID bit set

2012-06-03 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- assignee: - gregory.p.smith resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14992 ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-03 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: With a cross link from the header of the module reference to the howto guide, I think what Sandro posted is good enough for a first draft. Once the basic content is checked in, then I'll tinker a bit to figure out a more logical order (and

[issue9967] encoded_word regular expression in email.header.decode_header()

2012-06-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Instead of doing this we've opted to follow postel and be generous in what we accept and go ahead and decode even if the leading and/or terminating space is missing (see issue 1079). -- resolution: - rejected status: open -

[issue10574] email.header.decode_header fails if the string contains multiple directives

2012-06-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is fixed by the fix to issue 1079, but we have decided that fix can't be backported because it is a behavior change that might break existing working programs. -- resolution: - duplicate stage: - committed/rejected

[issue14982] pkgutil.walk_packages seems to not work properly on Python 3.3a

2012-06-03 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I should mention that Guido and others on python-dev mentioned coming up with an API for finders/loaders that allowed for file-like API and possibly being able to iterate over available modules when importlib's bootstrapping landed (sorry,

[issue7559] TestLoader.loadTestsFromName swallows import errors

2012-06-03 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Not sure what DirsOnSysPath is, but I have been only calling importlib.invalidate_caches() as needed in order to not slow down tests needlessly. And as for detecting an environment change as necessary, that's essentially impossible since it's

[issue13598] string.Formatter doesn't support empty curly braces {}

2012-06-03 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13598 ___ ___ Python-bugs-list

[issue14938] 'import my_pkg.__init__' creates duplicate modules

2012-06-03 Thread Ronan Lamy
Ronan Lamy ronan.l...@gmail.com added the comment: I'm not sure that it's enough to test is_package() because that only involves the loader and not the interaction between it and FileFinder. That's the reason why my test works at a higher level. BTW, I sent the contributor agreement.

[issue7559] TestLoader.loadTestsFromName swallows import errors

2012-06-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: OK, let's just do it in the individual test, then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559 ___

[issue14995] PyLong_FromString documentation should state that the string must be null-terminated

2012-06-03 Thread Ryan Kelly
New submission from Ryan Kelly r...@rfk.id.au: PyLong_FromString will raise a ValueError if the given string doesn't contain a null byte after the digits. For example, this will result in a ValueError char *pend; PyLong_FromString(1234 extra, pend, 10) While this will successfully read

[issue14996] pthon 3.2.3 freezes when saving a .py program

2012-06-03 Thread Maureen Cuomo
New submission from Maureen Cuomo mcu...@prestonhs.org: I have been using ver 3.2.1 without a problem. Downloaded 3.2.3 nd cannot save any file in idle. -- components: IDLE messages: 162243 nosy: mcu...@prestonhs.org priority: normal severity: normal status: open title: pthon 3.2.3

[issue14994] GCC error when using pyerrors.h

2012-06-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 696d3631a4a1 by Benjamin Peterson in branch 'default': __GNUC__ does not imply gcc version is present, so just check for version (closes #14994) http://hg.python.org/cpython/rev/696d3631a4a1 -- nosy:

[issue14993] GCC error when using unicodeobject.h

2012-06-03 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: It might not matter if it's an extension that everyone implements. -- nosy: +benjamin.peterson, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14993

[issue14997] Syntax Error in Python Version Number

2012-06-03 Thread cuulblu
New submission from cuulblu k...@fivefingerdesigns.com: When using Idle any code I attempt to test I get a syntax error in the version number of the software. Please see the attached image. I have python installed on three machines and get the same error on all three. All three machines are

[issue14996] pthon 3.2.3 freezes when saving a .py program

2012-06-03 Thread Ned Deily
Ned Deily n...@acm.org added the comment: We need more information to be able to help. What platform and OS version are you running on? Where did you install Python 3.2.3 from? Exactly what happens when you try to save a file, i.e. are you using a mouse or a keyboard accelerator, what

[issue12510] IDLE: calltips mishandle raw strings and other examples

2012-06-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: i12510.test.diff (for Python 3 only) does the following: * Turn method CallTips.get_entity into a module function as it does not use the self parameter and is therefore not really an instance method. * Delete the erroneous _find_constructor

[issue14998] pprint._safe_key is not always safe enough

2012-06-03 Thread Shawn Brown
New submission from Shawn Brown 03sjbr...@gmail.com: This is related to resolved issue 3976 and, to a lesser extent, issue 10017. I've run across another instance where pprint throws an exception (but works fine in 2.7 and earlier): Python 3.2 (r32:88445, Mar 25 2011, 19:28:28) [GCC 4.5.2]

[issue14999] ctypes ArgumentError lists arguments from 1, not 0

2012-06-03 Thread Timothy Pederick
New submission from Timothy Pederick peder...@gmail.com: The ctypes ArgumentError exception indicates the location of the problem by argument number. It counts arguments starting from 1, not 0 as is typical in Python. Observed An example (anonymised) traceback: Traceback (most