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

2012-06-02 Thread Terry Reedy
On 6/1/2012 7:40 PM, Temia Eszteri wrote: Given that len(weakset) is defined (sensibly) as the number of currently active members, it must count. weakset should really have .__bool__ method that uses any() instead of sum(). That might reduce, but not necessarily eliminate your problem. Think

Re: DBF records API

2012-06-02 Thread MRAB
On 02/06/2012 06:16, Ethan Furman wrote: Tim Chase wrote: On 06/01/12 19:05, Jon Clements wrote: On 01/06/12 23:13, Tim Chase wrote: dbf.scatter_fields *always* trump and refer to the method. I did think about *trumping* one way or the other, but both *ugh*. For the record, it

Re: DBF records API

2012-06-02 Thread Tim Chase
On 06/02/12 00:16, Ethan Furman wrote: Tim Chase wrote: On 06/01/12 19:05, Jon Clements wrote: On 01/06/12 23:13, Tim Chase wrote: dbf.scatter_fields *always* trump and refer to the method. I did think about *trumping* one way or the other, but both *ugh*. For the record, it sounded

Re: Tkinter deadlock on graceful exit

2012-06-02 Thread Matteo Landi
On Jun/01, Matteo Landi wrote: On Thu, May 31, 2012 at 3:02 PM, Matteo Landi mat...@matteolandi.net wrote: On Thu, May 31, 2012 at 3:42 AM, Terry Reedy tjre...@udel.edu wrote: On 5/30/2012 6:19 PM, Matteo Landi wrote: On May/28, Matteo Landi wrote: Hi list, recently I started to

how to typecast a ctypes pointer to another one

2012-06-02 Thread Gelonida N
Hi, I have a result from a call to a ctypes function of type c_void_p. Now I'd like to convert it to a pointer to one of the structures, that I defined. result = library.c_function(params) class MyStruct(ctypes.Structure): _fields_ = [ ('fourbytes', ctypes.c_char * 4) ]

Re: Python 2.7.3, C++ embed memory leak?

2012-06-02 Thread Diez B. Roggisch
Qi n...@no.com writes: Hi guys, Is there any known memory leak problems, when embed Python 2.7.3 in C++? I Googled but only found some old posts. I tried to only call Py_Initialize() and Py_Finalize(), nothing else between those functions, Valgrind still reports memory leaks on Ubuntu?

Re: ctypes callback with char array

2012-06-02 Thread Diez B. Roggisch
ohlfsen ohlf...@gmail.com writes: Hello. Hoping that someone can shed some light on a tiny challenge of mine. Through ctypes I'm calling a c DLL which requires me to implement a callback in Python/ctypes. The signature of the callback is something like void foo(int NoOfElements, char

Re: Python 2.7.3, C++ embed memory leak?

2012-06-02 Thread Qi
On 2012-6-2 18:53, Diez B. Roggisch wrote: Python does some special things that confuse valgrind. Don't bother. http://svn.python.org/projects/python/trunk/Misc/README.valgrind Thanks for the link. It clears a lot of my confusing, such as uninitialized reading... -- WQ --

WHAT DO MUSLIMS THINK ABOUT JESUS ?????????

2012-06-02 Thread BV BV
WHAT DO MUSLIMS THINK ABOUT JESUS? I know that my article is not related to this group ,but it might be useful. PLEASE read it What do Muslims think about Jesus? Muslims respect and revere Jesus (SAW) and await his Second Coming. They consider him one of the greatest of God’s messengers to

Re: Smallest/cheapest possible Python platform?

2012-06-02 Thread boj
There is a 3rd party programmer for the LaunchPad that lets you program it in Python, but I forgot what they were called. It has an m somewhere in it and it's 3 letters. I saw it at MakerFaire. I got their card, but lost it. If I remember the name, I'll post it here. --

Re: Smallest/cheapest possible Python platform?

2012-06-02 Thread MRAB
On 02/06/2012 21:47, boj wrote: There is a 3rd party programmer for the LaunchPad that lets you program it in Python, but I forgot what they were called. It has an m somewhere in it and it's 3 letters. I saw it at MakerFaire. I got their card, but lost it. If I remember the name, I'll post it

Re: Smallest/cheapest possible Python platform?

2012-06-02 Thread Chris Angelico
On Sun, Jun 3, 2012 at 7:18 AM, MRAB pyt...@mrabarnett.plus.com wrote: Putting LaunchPad, Python and MakerFaire into Google, plus the It has an m somewhere in it and it's 3 letters, quickly led me to: http://www.mpyprojects.com -- Heh, Google's awesome :) I was just thinking Hm, three

Re: Smallest/cheapest possible Python platform?

2012-06-02 Thread MRAB
On 02/06/2012 22:25, Chris Angelico wrote: On Sun, Jun 3, 2012 at 7:18 AM, MRABpyt...@mrabarnett.plus.com wrote: Putting LaunchPad, Python and MakerFaire into Google, plus the It has an m somewhere in it and it's 3 letters, quickly led me to: http://www.mpyprojects.com -- Heh, Google's

Re: Smallest/cheapest possible Python platform?

2012-06-02 Thread Chris Angelico
On Sun, Jun 3, 2012 at 8:09 AM, MRAB pyt...@mrabarnett.plus.com wrote: Look at the Software page: We use the mpy language to program the MSP430 microcontroller. MPY is short for Microcontroller PYthon.   mpy is based on the Python computer language. In fact to keep things simple it is only a

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

2012-06-02 Thread Marc Abramowitz
Marc Abramowitz msabr...@gmail.com added the comment: [last: 0] marca@scml-marca:~/dev/git-repos/pip$ python3.3 Python 3.3.0a4 (v3.3.0a4:7c51388a3aa7, May 30 2012, 16:58:42) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information.

[issue14673] add sys.implementation

2012-06-02 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: I've ironed out all 3 of my new tests that were still failing. -- Added file: http://bugs.python.org/file25797/issue14673_full_3.diff ___ Python tracker rep...@bugs.python.org

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

2012-06-02 Thread Dmitry Shachnev
New submission from Dmitry Shachnev mity...@gmail.com: Trying to write a email-sending script with PGP-signing functionality, I stumbled upon a problem (see [1]): it was impossible to sign mutlipart emails (actually the signing was performed, but the verifying programs thought that the

[issue14673] add sys.implementation

2012-06-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Some remarks: - From the docs, I could not understand the difference between sys.implementation.version and sys.version_info. When can they differ? - _PyNamespace_New should be a public API function. From Python code,

[issue14591] Value returned by random.random() out of valid range on 64-bit

2012-06-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Responding to a comment from Serhiy on Rietveld: Modules/_randommodule.c:442: mt[0] = 0x8000UL; mt[0] |= 0x8000UL (according to the comment)? The = 0x8000UL was intentional. The low-order 31 bits of mt[0] don't form part of

[issue14963] Use an iterative implementation for contextlib.ExitStack.__exit__

2012-06-02 Thread alon horev
alon horev alo...@gmail.com added the comment: after #14969 has closed, can this be closed? any more action items? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14963 ___

[issue14963] Use an iterative implementation for contextlib.ExitStack.__exit__

2012-06-02 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: It *was* closed - I inadvertently reopened it with my comment. Fixed :) -- resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-06-02 Thread Dmitry Shachnev
Dmitry Shachnev mity...@gmail.com added the comment: Maybe it'll be better to use 'latin-1' charset for latin-1 texts? Something like this: if _charset == 'us-ascii': try: _text.encode(_charset) except UnicodeEncodeError: try: _text.encode('latin-1')

[issue14984] netrc module alows read of non-secured .netrc file

2012-06-02 Thread bruno Piguet
New submission from bruno Piguet bruno.pig...@gmail.com: Most FTP clients require that the .netrc file be owned by the user and readable/writable by nobody other than the user (ie. permissions set to 0400 or 0600). The netrc module doesn't do this kind of checking, allowing the use a .netrc

[issue14984] netrc module allows read of non-secured .netrc file

2012-06-02 Thread bruno Piguet
Changes by bruno Piguet bruno.pig...@gmail.com: -- title: netrc module alows read of non-secured .netrc file - netrc module allows read of non-secured .netrc file ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14984

[issue14985] os.path.isfile and os.path.isdir inconsistent on OSX Lion

2012-06-02 Thread Adrian Bastholm
New submission from Adrian Bastholm javahax...@gmail.com: os.path.isfile doesn't reckognize a .picasa.ini file as a file and os.path.isdir doesn't reckognize a directory as a directory code: def traverse (targetDir): currentDir = targetDir dirs = os.listdir(targetDir) #dirs = [x

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

2012-06-02 Thread Adrian Bastholm
New submission from Adrian Bastholm javahax...@gmail.com: print(listentry) fails on folder name with swedish (latin1) characters Error: File /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/encodings/mac_roman.py, line 19, in encode return

[issue6721] Locks in python standard library should be sanitized on fork

2012-06-02 Thread Tomaž Šolc
Changes by Tomaž Šolc tomaz.s...@tablix.org: -- nosy: -avian ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6721 ___ ___ Python-bugs-list mailing

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

2012-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: A mac expert can confirm, but I think that just means that the default mac_roman encoding (which is made the default by the OS, if I understand correctly) can't handle that character. I believe it will work if you use utf-8. And no, I

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

2012-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Then either the signer or the verifier (or both) are broken per RFC 2046 (unless there has been an update that isn't referenced from the RFC). Section http://tools.ietf.org/html/rfc2046#section-5.1.1 clearly indicates that the ending

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

2012-06-02 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14983 ___ ___

[issue6721] Locks in python standard library should be sanitized on fork

2012-06-02 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Use file locks in logging, whenever possible. Logging doesn't just log to files, and moreover, also has locks to serialise access to internal data structures (nothing to do with files). Hence, using file locks in logging is not going to

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

2012-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Looking at your stackoverflow post, you might be able to fix this by doing an rstrip on the string body before signing it. But then if we add a CRLF between the boundaries, the verifiers might start failing again. What do you think?

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

2012-06-02 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- title: [patch] email.generator should always add newlines after closing boundaries - email.generator should always add newlines after closing boundaries ___ Python tracker rep...@bugs.python.org

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I do plan to add something like that at some point. You could open a new issue for it if you like, and propose a formal patch. -- ___ Python tracker rep...@bugs.python.org

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset facdca62aa68 by Sandro Tosi in branch 'default': Issue #14814: minor spelling fixes http://hg.python.org/cpython/rev/facdca62aa68 New changeset 4b4044292d09 by Sandro Tosi in branch 'default': Issue #14814: use

[issue14446] Remove deprecated tkinter functions

2012-06-02 Thread Michael Driscoll
Michael Driscoll m...@pythonlibrary.org added the comment: Here's the doc patch. The local repo I was using yesterday is on a different computer that I don't have access to today. Hopefully applying two patches is okay. If not, I can redo the other patch and add it to this one. --

[issue14957] Improve docs for str.splitlines

2012-06-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4d9b3a58e208 by R David Murray in branch '3.2': #14957: fix doc typo. http://hg.python.org/cpython/rev/4d9b3a58e208 New changeset 3bb35ad5d9da by R David Murray in branch 'default': #14957: fix doc typo.

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

2012-06-02 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: '\u030a' can’t be latin1 as 0x030a = 778 which is waaay beyond 255. :) That's gonna be utf-8 and indeed that maps to ̊. My best guess is that your LC_CTYPE is set to Mac Roman. You can check it using import os;os.environ.get('LC_CTYPE'). Try

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-02 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Attached is a draft of the module documentation. I didn't commit yet cause we might want to rework it deeply. Else we can just commit the patch and let the comments coming as additional diffs. -- stage: needs patch - patch review

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-02 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: and the patch... -- Added file: http://bugs.python.org/file25800/ipaddress_module_doc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814

[issue14985] os.path.isfile and os.path.isdir inconsistent on OSX Lion

2012-06-02 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I think your problem is a different one: os.listdir() doesn't return full paths and os.path.isfile()/isdir() return False if the supplied path doesn't exist. For example if you have this directory structure: foo/ foo/bar/ foo/bar/baz Calling

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-02 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: As discussed on IRC, please: - add a link to the tutorial - add some typical use cases to the header of the api - change the name of the tutorial from Howto to HOWTO or a more descriptive title that doesn't contain the word how to at all.

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

2012-06-02 Thread Ronan Lamy
Changes by Ronan Lamy ronan.l...@gmail.com: -- nosy: +Ronan.Lamy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14982 ___ ___ Python-bugs-list

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

2012-06-02 Thread Dmitry Shachnev
Dmitry Shachnev mity...@gmail.com added the comment: Looking at your stackoverflow post, you might be able to fix this by doing an rstrip on the string body before signing it. My body doesn't end with \n, so that doesn't help. If you suggest me any (easy) way to fix this on the level of my

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

2012-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Sorry, I wasn't clear. By 'body' I actually meant the multipart part you are signing. I haven't looked at your script really, but I was thinking of something along the lines of make_sig(str(fullmsg.get_payload(0)).rstrip()). But like

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

2012-06-02 Thread Ned Deily
Ned Deily n...@acm.org added the comment: mac_roman is an obsolete encoding from Mac OS 9 days; it is seldom seen on modern OS X systems. But it is often the fallback encoding set in ~/.CFUserTextEncoding if the LANG or a LC_* environment variable is not set (see, for example,

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

2012-06-02 Thread Dmitry Shachnev
Dmitry Shachnev mity...@gmail.com added the comment: By 'body' I actually meant the multipart part you are signing. Yes, I've understood you, and I mean the same :) The signature is created against the not-ending-with-newline string, in any case. --

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

2012-06-02 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Thanks for the patch, Ronan! The fix seems fine and I will have a more thorough look at the test later and figure out where it should go (probably only going to worry about testing is_package() directly since that was the semantic disconnect).

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

2012-06-02 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Basically pkgutil kind of handles importers properly, kind of doesn't. So if a module defined a __loader__ it will use it, but all the rest of its code assumes it uses only the loaders defined in pkgutil. The problem here is that

[issue14926] random.seed docstring needs edit of *a *is

2012-06-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e2739145657d by Sandro Tosi in branch '3.2': Issue #14926: fix docstring highlight http://hg.python.org/cpython/rev/e2739145657d New changeset 29148c027986 by Sandro Tosi in branch 'default': Issue #14926: merge

[issue14926] random.seed docstring needs edit of *a *is

2012-06-02 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Thanks Christopher! -- resolution: - fixed stage: - committed/rejected status: open - closed versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14926

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

2012-06-02 Thread Adrian Bastholm
Adrian Bastholm javahax...@gmail.com added the comment: The char in question: 'å'. It is a folder with this character in the name. My encoding is UTF-8. Running print(\u030a) gives a blank line U+00C5 LATIN CAPITAL LETTER A WITH RING ABOVE General Character Properties In Unicode since: 1.1

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

2012-06-02 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I've updated the patch following comments by RDM - it probably could do with a code review (now that I've addressed RDM's comments on the docs). -- ___ Python tracker rep...@bugs.python.org

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

2012-06-02 Thread Adrian Bastholm
Adrian Bastholm javahax...@gmail.com added the comment: The last post is the CAPITAL Å. The following is the small letter å U+00E5 LATIN SMALL LETTER A WITH RING ABOVE General Character Properties In Unicode since: 1.1 Unicode category: Letter, Lowercase Canonical decomposition: U+0061 LATIN

[issue14955] hmac.secure_compare() is not time-independent for unicode strings

2012-06-02 Thread Jon Oberheide
Jon Oberheide j...@oberheide.org added the comment: Thanks for the feedback, haypo. I've updated the patch to use unicode-internal. As long as the encode() of the expected non-attacker-controlled digest is not dependent on the actual contents of the digest, we should be good. -- Added

[issue6721] Locks in python standard library should be sanitized on fork

2012-06-02 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Lesha, the problems about magical __del__ methods you are worried about actually have nothing to do with threading and locks. Even in a single threaded program using fork, exactly the same issues of potential corruption would be present

[issue14985] os.path.isfile and os.path.isdir inconsistent on OSX Lion

2012-06-02 Thread Adrian Bastholm
Adrian Bastholm javahax...@gmail.com added the comment: You're right, my code was shite. Strange though it seemed to work on some files. The following updated version does everything as intended with the help of os.path.join: def traverse (targetDir): currentDir = targetDir dirs =

[issue14901] Python Windows FAQ is Very Outdated

2012-06-02 Thread Daniel Swanson
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment: 1a) Update all Windows references to Windows 7 or Vista/7. We can include XP, but I think Microsoft is dropping support next year. According to wikipedia Windows XP is the second most popular operating system, probably better

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

2012-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Hmm. So that means the verifiers are not paying attention to the MIME RFC? That's unfortunate. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14983

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

2012-06-02 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The character in question is not the problem and the code snippet you provide looks fine. The problem is almost certainly that you are running the code in an execution environment where the LANG environment variable is either not set or is set to an

[issue14984] netrc module allows read of non-secured .netrc file

2012-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This seems like something we should fix for the default file read. There is a backward compatibility concern, but I think the security aspect overrides that. -- components: +Library (Lib) nosy: +r.david.murray priority: normal -

[issue14974] rename packaging.pypi to packaging.index

2012-06-02 Thread Westley Martínez
Westley Martínez aniko...@gmail.com added the comment: -1 index is too generic to convey any kind of meaning and can be confused--atleast for me--with list.index. Sometimes it is better for a name to be specific. -- nosy: +anikom15 ___ Python

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

2012-06-02 Thread Westley Martínez
Westley Martínez aniko...@gmail.com added the comment: I think a better technique would be to expand FILENAME_CHARS to include more characters. -- nosy: +anikom15 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14937

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

2012-06-02 Thread Westley Martínez
Westley Martínez aniko...@gmail.com added the comment: Also, shouldn't the space character ' ' be included? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14937 ___

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

2012-06-02 Thread Westley Martínez
Westley Martínez aniko...@gmail.com added the comment: Ahh okay, sorry for the triple post, I have an idea. On UNIX, the function should accept any character except: \0 /, and on Windows should accept any character except: \0 \ / : * ?| On classic Macintosh, : is invalid. However, I do

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

2012-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Review, including a code-but-not-algorithm review :), posted. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1521950 ___

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

2012-06-02 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I agree that chr(32) should be included in FILENAME_CHARS. The algorithm for backward searching checks that each character is contained in FILENAME_CHARS. I'm concerned about running time, as expanding FILENAME_CHARS to include all valid

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

2012-06-02 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Westley, I was responding to msg162168 and didn't see msg162169 yet. PEP11 mentions MacOS 9 support was removed in 2.4. Is : still invalid in OSX? I'll need to think about the approach of using an INVALID_CHARS list. It looks like it might

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

2012-06-02 Thread Adrian Bastholm
Adrian Bastholm javahax...@gmail.com added the comment: Output in console: Python 3.2.3 (v3.2.3:3d0686d90f55, Apr 10 2012, 11:25:50) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. import sys print(sys.stdout)

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

2012-06-02 Thread Adrian Bastholm
Adrian Bastholm javahax...@gmail.com added the comment: my code runs fine in a console window, so it's some kind of configuration error. Sorry for wasting your time guys .. It would be nice to know why PyDev is not setting the right environment vars though .. traverse(.) Processing

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

2012-06-02 Thread Francisco Gracia
Francisco Gracia fgragu...@gmail.com added the comment: Is there any necessity at all for the IDLE to test the validity of the filenames? I mean: the file specification is provided by the underlying operating system, so by definition it has to be taken as valid. Testing for its validity is

[issue14971] (unittest) loadTestsFromName does not work on method with a decorator

2012-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Here's a patch. -- components: +Library (Lib) -Documentation keywords: +patch Added file: http://bugs.python.org/file25803/unittest_method_name_difference.patch ___ Python tracker

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

2012-06-02 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Glad we could help. I suspected it was running under special circumstances. -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

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

2012-06-02 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I'm neither a PyDev nor an Eclipse user but there should be some way to set environment variables in it. Undoubtedly, Eclipse is launched as an app so a shell is not involved and shell profile files are not processed. However, the Environment

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is causing buildbot failures on some of the buildbots: http://www.python.org/dev/buildbot/all/builders/x86%20Gentoo%203.x/builds/2529/steps/test/logs/stdio

[issue14959] ttk.Scrollbar in Notebook widget freezes

2012-06-02 Thread Ned Deily
Ned Deily n...@acm.org added the comment: One final data point: I was unable to reproduce the failure when using a Python 3.2.3 when linked with a current ActiveState Tcl/Tk 8.4, which uses an older Aqua Carbon Tk. The python.org 32-bit-only Pythons use Tcl/Tk 8.4 like this; see

[issue1079] decode_header does not follow RFC 2047

2012-06-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8c03fe231877 by R David Murray in branch 'default': #1079: Fix parsing of encoded words. http://hg.python.org/cpython/rev/8c03fe231877 -- nosy: +python-dev ___ Python

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

2012-06-02 Thread Paul Nasrat
Paul Nasrat pnas...@gmail.com added the comment: Ok so it seems I can't just use sys.meta_path in pip to work with ImpImporter due to according to the pydoc: Note that ImpImporter does not currently support being used by placement on sys.meta_path. I guess I can write a custom importer in

[issue1079] decode_header does not follow RFC 2047

2012-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: 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. I'm going to leave this open until I can

[issue14987] inspect missing warnings import

2012-06-02 Thread Paul Nasrat
New submission from Paul Nasrat pnas...@gmail.com: Whilst looking for workarounds to http://bugs.python.org/issue14982 I came across this, which is due to inspect using warnings without having importing it. Fix is trivial but can upload a patch Traceback (most recent call last): File t.py,

[issue11954] 3.3 - 'make test' fails

2012-06-02 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11954 ___ ___

[issue2401] Solaris: ctypes tests being skipped despite following #1516

2012-06-02 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: This seems really out of date now. Closing. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2401 ___

[issue14987] inspect missing warnings import

2012-06-02 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14987 ___ ___ Python-bugs-list mailing

[issue14673] add sys.implementation

2012-06-02 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: - From the docs, I could not understand the difference between sys.implementation.version and sys.version_info. When can they differ? I'll make an update. As an example, PyPy is at version 1.8 which implements the Python 2.7

[issue14673] add sys.implementation

2012-06-02 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: Added file: http://bugs.python.org/file25804/issue14673_full_4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673 ___

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

2012-06-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5b267381eea0 by Terry Jan Reedy in branch '2.7': Issue 10365: Add and replace comments; condense defaulted attribute access. http://hg.python.org/cpython/rev/5b267381eea0 New changeset 4f3d4ce8ac9f by Terry Jan

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

2012-06-02 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10365 ___

[issue14987] inspect missing warnings import

2012-06-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3de5b053d924 by Brett Cannon in branch 'default': Issue #14987: Add a missing import statement http://hg.python.org/cpython/rev/3de5b053d924 -- nosy: +python-dev ___

[issue14987] inspect missing warnings import

2012-06-02 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14987 ___

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-06-02 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Thanks. Fixed in changeset eb1d633fe307. I'll watch the bots to see no problems remain. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14007

[issue7559] TestLoader.loadTestsFromName swallows import errors

2012-06-02 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Thanks. It looks like the issue with the latest patch is caused by side effects of calling importlib.import_module(). Working from the patch, I got it to the point where inserting the following four lines somewhere in the code--

[issue14424] document PyType_GenericAlloc

2012-06-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3c43be281196 by Eli Bendersky in branch 'default': Issue #14424: Document PyType_GenericAlloc, and fix the documentation of PyType_GenericNew http://hg.python.org/cpython/rev/3c43be281196 -- nosy:

[issue14424] document PyType_GenericAlloc

2012-06-02 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14424 ___

[issue14424] document PyType_GenericAlloc

2012-06-02 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14424 ___ ___ Python-bugs-list

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-06-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 477508efe4ab by Terry Jan Reedy in branch '2.7': Issue 12510: Expand 2 bare excepts. Improve comments. Change deceptive name http://hg.python.org/cpython/rev/477508efe4ab New changeset f927a5c6e4be by Terry Jan

[issue14090] Bus error on test_big_buffer() of test_zlib, buildbot AMD64 debian bigmem 3.x

2012-06-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 90f0dd118aa4 by Eli Bendersky in branch 'default': Issue #14090: fix some minor C API problems in default branch (3.3) http://hg.python.org/cpython/rev/90f0dd118aa4 -- nosy: +python-dev

[issue14190] Minor C API documentation bugs

2012-06-02 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Fixed what was relevant for default (3.3) in 90f0dd118aa4 (the commit message there has a typo in the issue number). Since 3.3 is going to be out soon, I see no real reason to backport to 3.2 If anyone is willing to create a complete patch for

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

2012-06-02 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: CallTips.py has a 'main' test at the end. Currently, test TC fails in 3.x but not 2.7. So either the test became invalid or get_argspec was not completely and correctly converted from get_arg_text. This should be fixed. int.append( does not

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

2012-06-02 Thread Westley Martínez
Westley Martínez aniko...@gmail.com added the comment: You're right. The code shouldn't *have* to check if the name is valid. It should just accept that the name is already valid. This would simplify things. Here's the problem: the code needs to find the index of where the string with the