python3 raw strings and \u escapes

2012-05-30 Thread ru...@yahoo.com
In python2, \u escapes are processed in raw unicode strings. That is, ur'\u3000' is a string of length 1 consisting of the IDEOGRAPHIC SPACE unicode character. In python3, \u escapes are not processed in raw strings. r'\u3000' is a string of length 6 consisting of a backslash, 'u', '3' and three

Re: python3 raw strings and \u escapes

2012-05-30 Thread Andrew Berg
On 5/30/2012 1:52 AM, ru...@yahoo.com wrote: Was there a reason for dropping the lexical processing of \u escapes in strings in python3 (other than to add another annoyance in a long list of python3 annoyances?) To me, this would be a Python 2 annoyance since I would expect r'\u3000' to be

Re: pygame: transparency question

2012-05-30 Thread Ian Kelly
On Tue, May 29, 2012 at 9:33 AM, Scott Siegler scott.sieg...@gmail.com wrote: Hello, I have a surface that I load an image onto.  During a collision I would like to clear out the images of both surfaces that collided and show the score.   Is there a function call to clear a surface with an

issubclass(C, Mapping) not behaving as expected

2012-05-30 Thread anntzer . lee
from collections import * class C(object): def __iter__(self): pass def __contains__(self, i): pass def __len__(self): pass def __getitem__(self, i): pass issubclass(C, Mapping) = False [issubclass(C, cls) for cls in Mapping.__mro__] = [False, True, True, True, True] i.e. C does

Re: issubclass(C, Mapping) not behaving as expected

2012-05-30 Thread Peter Otten
anntzer@gmail.com wrote: from collections import * class C(object): def __iter__(self): pass def __contains__(self, i): pass def __len__(self): pass def __getitem__(self, i): pass issubclass(C, Mapping) = False [issubclass(C, cls) for cls in Mapping.__mro__] = [False,

Re: PIL threading problems

2012-05-30 Thread Christian Heimes
Am 30.05.2012 05:09, schrieb Paul Rubin: Kind of a long shot, but are there known problems in calling PIL from multiple threads? I'm getting weird intermittent core dumps from my app, no idea what's causing them, but PIL is the only C module I'm using, and I do see some mention on the

ctypes callback with char array

2012-05-30 Thread ohlfsen
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 Elements[][100]) How do I possible

Re: python3 raw strings and \u escapes

2012-05-30 Thread Thomas Rachel
Am 30.05.2012 08:52 schrieb ru...@yahoo.com: This breaks a lot of my code because in python 2 re.split (ur'[\u3000]', u'A\u3000A') == [u'A', u'A'] but in python 3 (the result of running 2to3), re.split (r'[\u3000]', 'A\u3000A' ) == ['A\u3000A'] I can remove the r prefix from

Re: python3 raw strings and \u escapes

2012-05-30 Thread Devin Jeanpierre
On Wed, May 30, 2012 at 2:52 AM, ru...@yahoo.com ru...@yahoo.com wrote: Was there a reason for dropping the lexical processing of \u escapes in strings in python3 (other than to add another annoyance in a long list of python3 annoyances?) And is there no choice for me but to choose between

Re: python3 raw strings and \u escapes

2012-05-30 Thread Arnaud Delobelle
On 30 May 2012 12:54, Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa...@spamschutz.glglgl.de wrote: There is a 3rd one: use   r'[ ' + '\u3000' + ']'. Not very nice to read, but should do the trick... You could even take advantage of string literal concatenation:) r'[' '\u3000'

Adding to Python Decorator Library at wiki.python.org

2012-05-30 Thread marctbg
I just created an account to contribute to the wiki.python.org Python Decorator Library Wiki. I added my code titled == Memoize Objects == using the Wiki editor. The preview looked good. Then i submitted it. However, it is not showing up on the Wiki. I could not find contact info for the

installing modules in Enthought Python

2012-05-30 Thread Chuck
I just downloaded Enthought Python, free version. I wanted all the included packages, but I can't seem to find the correct directory to install new Python modules. Does anybody have an idea? I am trying to add Universal Feed Parser to Enthought. I have tried C:\Python27, C:\Python27\Lib,

Re: python3 raw strings and \u escapes

2012-05-30 Thread ru...@yahoo.com
On 05/30/2012 05:54 AM, Thomas Rachel wrote: Am 30.05.2012 08:52 schrieb ru...@yahoo.com: This breaks a lot of my code because in python 2 re.split (ur'[\u3000]', u'A\u3000A') == [u'A', u'A'] but in python 3 (the result of running 2to3), re.split (r'[\u3000]', 'A\u3000A' ) ==

Re: installing modules in Enthought Python

2012-05-30 Thread David Fanning
Chuck writes: I just downloaded Enthought Python, free version. I wanted all the included packages, but I can't seem to find the correct directory to install new Python modules. Does anybody have an idea? I am trying to add Universal Feed Parser to Enthought. I have tried C:\Python27,

Object cleanup

2012-05-30 Thread psaff...@googlemail.com
I am writing a screen scraping application using BeautifulSoup: http://www.crummy.com/software/BeautifulSoup/ (which is fantastic, by the way). I have an object that has two methods, each of which loads an HTML document and scrapes out some information, putting strings from the HTML documents

Re: Object cleanup

2012-05-30 Thread Steven D'Aprano
On Wed, 30 May 2012 09:01:20 -0700, psaff...@googlemail.com wrote: However, I've found that using guppy, after the methods have returned most of the memory is being taken up with BeautifulSoup objects of one type or another. I'm not declaring BeautifulSoup objects anywhere else. What's guppy?

Re: python3 raw strings and \u escapes

2012-05-30 Thread Terry Reedy
On 5/30/2012 2:52 AM, ru...@yahoo.com wrote: In python2, \u escapes are processed in raw unicode strings. That is, ur'\u3000' is a string of length 1 consisting of the IDEOGRAPHIC SPACE unicode character. That surprised me until I rechecked the fine manual and found: When an 'r' or 'R'

Re: Adding to Python Decorator Library at wiki.python.org

2012-05-30 Thread Steven D'Aprano
On Wed, 30 May 2012 07:51:32 -0700, marctbg wrote: I just created an account to contribute to the wiki.python.org Python Decorator Library Wiki. I added my code titled == Memoize Objects == using the Wiki editor. The preview looked good. Then i submitted it. However, it is not showing up

Re: installing modules in Enthought Python

2012-05-30 Thread Terry Reedy
On 5/30/2012 11:05 AM, Chuck wrote: I just downloaded Enthought Python, free version. I wanted all the included packages, but I can't seem to find the correct directory to install new Python modules. Does anybody have an idea? I am trying to add Universal Feed Parser to Enthought. I have

Re: Object cleanup

2012-05-30 Thread Chris Rebert
On Wed, May 30, 2012 at 9:40 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 30 May 2012 09:01:20 -0700, psaff...@googlemail.com wrote: However, I've found that using guppy, after the methods have returned most of the memory is being taken up with BeautifulSoup objects

Re: python3 raw strings and \u escapes

2012-05-30 Thread Serhiy Storchaka
On 30.05.12 14:54, Thomas Rachel wrote: There is a 3rd one: use r'[ ' + '\u3000' + ']'. Not very nice to read, but should do the trick... Or r'[ %s]' % ('\u3000',). -- http://mail.python.org/mailman/listinfo/python-list

Re: Object cleanup

2012-05-30 Thread John Gordon
In 6e534661-0823-4c42-8f60-3052e43b7...@googlegroups.com psaff...@googlemail.com psaff...@googlemail.com writes: How do I force the memory for these soup objects to be freed? Have you tried deleting them, using the del command? -- John Gordon A is for Amy, who fell down the

Re: python3 raw strings and \u escapes

2012-05-30 Thread ru...@yahoo.com
On 05/30/2012 10:46 AM, Terry Reedy wrote: On 5/30/2012 2:52 AM, ru...@yahoo.com wrote: In python2, \u escapes are processed in raw unicode strings. That is, ur'\u3000' is a string of length 1 consisting of the IDEOGRAPHIC SPACE unicode character. That surprised me until I rechecked the

Re: python3 raw strings and \u escapes

2012-05-30 Thread jmfauth
On 30 mai, 13:54, Thomas Rachel nutznetz-0c1b6768-bfa9-48d5- a470-7603bd3aa...@spamschutz.glglgl.de wrote: Am 30.05.2012 08:52 schrieb ru...@yahoo.com: This breaks a lot of my code because in python 2        re.split (ur'[\u3000]', u'A\u3000A') ==  [u'A', u'A'] but in python 3 (the

Re: installing modules in Enthought Python

2012-05-30 Thread Robert Kern
On 5/30/12 4:05 PM, Chuck wrote: I just downloaded Enthought Python, free version. I wanted all the included packages, but I can't seem to find the correct directory to install new Python modules. Does anybody have an idea? I am trying to add Universal Feed Parser to Enthought. I have tried

Re: installing modules in Enthought Python

2012-05-30 Thread Chuck
On May 30, 10:57 am, David Fanning n...@idlcoyote.com wrote: Chuck writes: I just downloaded Enthought Python, free version.  I wanted all the included packages, but I can't seem to find the correct directory to install new Python modules.  Does anybody have an idea?  I am trying to add

Proposal about naming conventions around packaging

2012-05-30 Thread Benoît Bryon
Hi, Here is a proposal about naming conventions around packaging. Main question is: would you accept it as a PEP? Preliminary notes (not part of the proposal) Before I start, here are some preliminary

Maintaining Multiple Copies of Python (Linux)

2012-05-30 Thread nfitzkee
Hi all, For various reasons, I would like to maintain multiple copies of python on my (Ubuntu 12.04) linux system. This is primarily for scientific software development; several modules require different configuration options than are installed on the 'vanilla' python included in the Ubuntu

Re: Proposal about naming conventions around packaging

2012-05-30 Thread Tarek Ziadé
On 5/30/12 6:59 PM, Benoît Bryon wrote: Hi, Hi Benoit you should post this to the distutils SIG Thank you Here is a proposal about naming conventions around packaging. Main question is: would you accept it as a PEP? Preliminary notes (not

Re: Tkinter deadlock on graceful exit

2012-05-30 Thread Matteo Landi
On May/28, Matteo Landi wrote: Hi list, recently I started to work on an application [1] which makes use of the Tkinter module to handle interaction with the user. Simply put, the app is a text widget displaying a file filtered by given criteria, with a handy feature that the window is

Re: Maintaining Multiple Copies of Python (Linux)

2012-05-30 Thread Michael Hrivnak
http://www.virtualenv.org/ You can install multiple versions of the python interpreter in ubuntu without issue. You can use virtualenv to maintain different site packages for whatever purposes you need. Michael On Wed, May 30, 2012 at 4:38 PM, nfitz...@gmail.com wrote: Hi all, For various

Re: Maintaining Multiple Copies of Python (Linux)

2012-05-30 Thread Ben Finney
nfitz...@gmail.com writes: For various reasons, I would like to maintain multiple copies of python on my (Ubuntu 12.04) linux system. This is primarily for scientific software development; several modules require different configuration options than are installed on the 'vanilla' python

Re: Tkinter deadlock on graceful exit

2012-05-30 Thread Terry Reedy
On 5/30/2012 6:19 PM, Matteo Landi wrote: On May/28, Matteo Landi wrote: Hi list, recently I started to work on an application [1] which makes use of the Tkinter module to handle interaction with the user. Simply put, the app is a text widget displaying a file filtered by given criteria, with

Re: Object cleanup

2012-05-30 Thread Steven D'Aprano
On Wed, 30 May 2012 16:56:21 +, John Gordon wrote: In 6e534661-0823-4c42-8f60-3052e43b7...@googlegroups.com psaff...@googlemail.com psaff...@googlemail.com writes: How do I force the memory for these soup objects to be freed? Have you tried deleting them, using the del command? del

sqlite INSERT performance

2012-05-30 Thread duncan smith
Hello, I have been attempting to speed up some code by using an sqlite database, but I'm not getting the performance gains I expected. The use case: I have text files containing data which may or may not include a header in the first line. Each line (other than the header) is a record,

Re: Maintaining Multiple Copies of Python (Linux)

2012-05-30 Thread Nicholas Fitzkee
On Wednesday, May 30, 2012 7:55:33 PM UTC-5, Ben Finney wrote: The consensus solution for this is ‘virtualenv’ URL:http://pypi.python.org/pypi/virtualenv. It is so popular as a solution for the kinds of problems you describe that its functionality will come into core Python, as discussed in

Re: issubclass(C, Mapping) not behaving as expected

2012-05-30 Thread Steven D'Aprano
On Wed, 30 May 2012 00:55:00 -0700, anntzer.lee wrote: from collections import * class C(object): def __iter__(self): pass def __contains__(self, i): pass def __len__(self): pass def __getitem__(self, i): pass issubclass(C, Mapping) = False [issubclass(C, cls) for cls in

Re: Object cleanup

2012-05-30 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: The destructor doesn't get called into the last reference is gone. And it's important to note that the destructor doesn't get called *immediately* that happens; rather, the destructor will be called *some time after* the last

Re: Maintaining Multiple Copies of Python (Linux)

2012-05-30 Thread Ben Finney
Nicholas Fitzkee nfitz...@gmail.com writes: I took a look at this, and I'm a little confused. You and me both. I think ‘virtualenv’ is solving the wrong problem, but it appears to be the best answer so far to the need you described. What am I missing? You'll have to get an answer for that

Re: sqlite INSERT performance

2012-05-30 Thread John Nagle
On 5/30/2012 6:57 PM, duncan smith wrote: Hello, I have been attempting to speed up some code by using an sqlite database, but I'm not getting the performance gains I expected. SQLite is a lite database. It's good for data that's read a lot and not changed much. It's good for small data

Re: python3 raw strings and \u escapes

2012-05-30 Thread jmfauth
On 30 mai, 08:52, ru...@yahoo.com ru...@yahoo.com wrote: In python2, \u escapes are processed in raw unicode strings.  That is, ur'\u3000' is a string of length 1 consisting of the IDEOGRAPHIC SPACE unicode character. In python3, \u escapes are not processed in raw strings. r'\u3000' is a

Re: sqlite INSERT performance

2012-05-30 Thread Ben Finney
John Nagle na...@animats.com writes: If you have 67 columns in a table, you may be approaching the problem incorrectly. +1 SQL QotW, on basis of diplomacy. The OP may need to learn about database normalisation URL:https://en.wikipedia.org/wiki/Database_normalization. -- \“Sane

[issue14958] IDLE 3 and PEP414 - highlighting unicode literals

2012-05-30 Thread Ned Deily
Ned Deily n...@acm.org added the comment: It turns out that the previous and current versions of IDLE syntax highlighting did not recognize literals with valid two-character prefixes, like ur or br. Besides restoring ur, 3.3 also added rb to the existing br prefixes. The applied patch

[issue14958] IDLE 3 and PEP414 - highlighting unicode literals

2012-05-30 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14958 ___ ___ Python-bugs-list mailing

[issue14958] IDLE 3 and PEP414 - highlighting unicode literals

2012-05-30 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Should the patch be partially back-ported to 2.7 as well given that IDLE 2 doesn't highlight two-character prefixes? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14958

[issue14958] IDLE 3 and PEP414 - highlighting unicode literals

2012-05-30 Thread Ned Deily
Ned Deily n...@acm.org added the comment: It could be. But perhaps its absence will be another incentive to move to Python 3.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14958 ___

[issue14960] about the slowly HTTPServer

2012-05-30 Thread Fan Li
New submission from Fan Li m4.li...@gmail.com: first, i'm sorry about my english. when i test the HTTPServer lib local, it's fast. but when i run the test script on another PC, i found it very slow, response for a request cost about 4s. then, i walk into the source about HTTPServer and found

[issue14960] about the slowly HTTPServer

2012-05-30 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: It's actually a duplicate of #6085 (already fixed). Cheers! -- nosy: +neologix resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Logging in BaseHTTPServer.BaseHTTPRequestHandler causes

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2012-05-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1470548 ___ ___ Python-bugs-list

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2012-05-30 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Oh, I see XMLGenerator completely outdated. It even has not been ported to Python 3. See function _write: def _write(self, text): if isinstance(text, str): self._out.write(text) else:

[issue14796] Calendar module test coverage improved

2012-05-30 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: New changeset 98bc9e357f74 by R David Murray in branch 'default': #14796: improve calendar test coverage. http://hg.python.org/cpython/rev/98bc9e357f74 The following added test fails on Windows: ... +def

[issue14961] map() and filter() methods for iterators

2012-05-30 Thread Vladimir Berkutov
New submission from Vladimir Berkutov dair.t...@gmail.com: It might be useful to introduce a new map() and filter() methods to iterators and iterables. Both methods should accept lambda/function which transforms a single argument into value. Both methods should return another iterator. #

[issue14962] When changing IDLE configuration all text in editor window loses highlighting

2012-05-30 Thread Ramchandra Apte
New submission from Ramchandra Apte maniandra...@gmail.com: When applying or okaying IDLE configuration (Options- Configure IDLE) all text in the shell window loses highlighting. Text in the shell window created after the configuration is applied is highlighted though. -- components:

[issue14962] When changing IDLE configuration all text in shell window loses highlighting

2012-05-30 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- title: When changing IDLE configuration all text in editor window loses highlighting - When changing IDLE configuration all text in shell window loses highlighting ___ Python tracker

[issue14961] map() and filter() methods for iterators

2012-05-30 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Sorry, small mistake. Actually all the other Python 2.x releases are in security-fix mode. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14961

[issue14961] map() and filter() methods for iterators

2012-05-30 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: I think this is quite a major change to Python and this needs a PEP BTW issue912738 and therefore this bug no longer applies to Python 3. In Python 3 map returns an iterator. Even if you wanted to implement this feature in Python 2, it

[issue14961] map() and filter() methods for iterators

2012-05-30 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Sorry, To clarify: Python 2.7 is in bug-fix mode which means only minor enhancements are allowed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14961

[issue14961] map() and filter() methods for iterators

2012-05-30 Thread Robert Lehmann
Robert Lehmann lehman...@gmail.com added the comment: Your proposal seems two-fold: (a) make map/filter lazy and (b) have them as methods instead of functions. It seems Tim borrowed Guido's time machine and already implemented (a) in Python 3.x, see

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-05-30 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: s7v7nislands: you cannot use Xcode-select to fix this, xcode-select is used to switch between 2 or more installed versions of Xcode. -- nosy: +ronaldoussoren ___ Python tracker

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-05-30 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The issue is more annoying than the change of location of the SDK, the path to the compiler has also changed unless users manually install the Unix command-line tools, either using a button in the GUI or by installing a separate DMG.

[issue14962] When changing IDLE configuration all text in shell window loses highlighting

2012-05-30 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- nosy: +kbk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14962 ___ ___ Python-bugs-list

[issue14961] map() and filter() methods for iterators

2012-05-30 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: As Robert noted, the map() and filter() builtins in Python 3 are already lazy and there's no reason to expand the iterator protocol for this functionality. Map and filter also have dedicated syntax in the form of comprehensions and generator

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

2012-05-30 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: The current implementation of contextlib.ExitStack [1] actually creates a nested series of frames when unwinding the callback stack in an effort to ensure exceptions are chained correctly, just as they would be if using nested with

[issue14690] Use monotonic time for sched, trace and subprocess modules

2012-05-30 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1345cf58738d by Victor Stinner in branch 'default': Close #14690: Use monotonic clock instead of system clock in the sched, http://hg.python.org/cpython/rev/1345cf58738d -- nosy: +python-dev resolution: -

[issue14428] Implementation of the PEP 418

2012-05-30 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: It really looks like seconds to me, definitely not jiffies ;-) time.process_time() uses maybe seconds on Linux, but it doesn't include time elapsed during sleep. See the test: def test_process_time(self): start =

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2012-05-30 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1652 ___ ___ Python-bugs-list

[issue14796] Calendar module test coverage improved

2012-05-30 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d3321c010af5 by R David Murray in branch 'default': #14796: fix failure of new calendar test on windows. http://hg.python.org/cpython/rev/d3321c010af5 -- ___ Python

[issue14947] Missing cross reference in types.new_class documentation

2012-05-30 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a5e621c8dd44 by Nick Coghlan in branch 'default': Close #14947: add missing cross-reference to Language Definition from the new dynamic type creation functions. Also cleaned up the general wording of the docs

[issue14796] Calendar module test coverage improved

2012-05-30 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The buildbots seem happy. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14796 ___

[issue14948] setup.cfg - rename home_page to homepage

2012-05-30 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: 1. Why not to add aliases? 2. Why not to postpone it to 3.4? 3. Why PEP change is a heavy process? Can we lighten it? (where is the description is PEP change process at all) -- status: closed - pending

[issue14959] ttk.Scrollbar in Notebook widget freezes

2012-05-30 Thread David Beck
David Beck db...@ualberta.ca added the comment: After playing around with this a bit more, I've found that if the Scrollbars on the different tabs are not aligned (that is, they don't occupy the same EW position in the frame) the effect disappears. I thought that might mean that the last

[issue14959] ttk.Scrollbar in Notebook widget freezes

2012-05-30 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I agree with Ned that this is a bug in Tk, especially because the problem goes away with small changes to the layout of the UI. -- status: open - pending ___ Python tracker

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

2012-05-30 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Is there any particular reason not to merge Charles-François's reinit_locks.diff? Reinitialising all locks to unlocked after a fork seems the only sane option. I agree with this. I haven't looked at the patch very closely. I

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-05-30 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I've been working on this and it does need to be thoroughly fixed. There are two different aspects to it: (1) being able to build Python using any of the supported development environment options; and (2) support in Distutils and packaging to build

[issue14948] setup.cfg - rename home_page to homepage

2012-05-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t believe aliases would help, on the contrary. There already are a good number of fields to remember. Anyway I expect people to use “pysetup create” or copy-pasting, so the spelling is not important: nobody will really have to remember

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I fully agree with site.py/os.py/spam.py but I find it offtopic for this Issue. I don’t understand this message :) There is nothing to agree with or judge on or off-topic; I was trying to understand the root of the bug and really asking you

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread Jan Kratochvil
Jan Kratochvil jan.kratoch...@redhat.com added the comment: While it should be documented this is not only a docs issue. It should be solved in some way during runtime. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956

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

2012-05-30 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: If you directly import __init__ then it would just be a module within the package (the magic of packages should stay with the implicit interpretation of __init__). -- ___ Python tracker

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No it shouldn't. As mentioned in the Fedora thread you linked, this is no different than the user setting LD_LIBRARY_PATH to something that screws up a system installed program. -- ___

[issue14673] add sys.implementation

2012-05-30 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: One small test that I think is missing is a test that sys.implementation.version and sys.implementation.hexversion are equal (modulo format differences). -- ___ Python tracker

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

2012-05-30 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 20b8f0ee3d64 by Eli Bendersky in branch 'default': Issue #14007: implemented the 'element_factory' feature of TreeBuilder in http://hg.python.org/cpython/rev/20b8f0ee3d64 --

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-05-30 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: What I'd prefer to look for the compiler: * in distutils: if $CC is an absolute path and exists, use that * look for clang on $PATH, use it if found (default configure looks for GCC in preference of other compilers, but with

[issue14673] add sys.implementation

2012-05-30 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I'm not a fan of using a module, and less of a fan of structseq, so I think I'll discount those two. I'll play with namespace and type next. -- ___ Python tracker rep...@bugs.python.org

[issue14962] When changing IDLE configuration all text in shell window loses highlighting

2012-05-30 Thread Roger Serwy
Changes by Roger Serwy roger.se...@gmail.com: -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14962 ___ ___ Python-bugs-list mailing

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

2012-05-30 Thread Ronan Lamy
Ronan Lamy ronan.l...@gmail.com added the comment: Reverting to the previous behaviour, then? OK. As I understand it, the issue comes from a DRY violation: both FileFinder.find_loader() and _LoaderBasics.is_package() have their own notion of what is a package and they disagree. Since the

[issue14673] add sys.implementation

2012-05-30 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I'm inclined to go with the as_simple_namespace patch. As you say, the pro are that this is a much better fit for this use case, while the con is that this does kind of sneak in a new type. Given that the type is not exposed in the API,

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

2012-05-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10053 ___ ___ Python-bugs-list

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

2012-05-30 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: I'm not sure that encoding to UTF-8 is time indenpendant. You may try UTF-32-LE or unicode-internal? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org

[issue14952] Cannot run regrtest with amd64/debug on windows

2012-05-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This should block beta1. -- nosy: +georg.brandl priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14952 ___

[issue14909] Fix incorrect use of *Realloc() and *Resize()

2012-05-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14909 ___ ___ Python-bugs-list

[issue14810] tarfile does not support timestamp older 1970-01-01

2012-05-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Bug in tarfile - tarfile does not support timestamp older 1970-01-01 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14810 ___

[issue14909] Fix incorrect use of *Realloc() and *Resize()

2012-05-30 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Since this is a trivial patch I'm going to go ahead and apply it. I was just waiting for the ability to run the full test suite in 64 bits, but that is currently broken due to some other issues. --

[issue14673] add sys.implementation

2012-05-30 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: History with dictproxy means I'm also OK with new type by stealth. Perhaps add some tests to check type(sys.implementation)() does something sane? -- ___ Python tracker rep...@bugs.python.org

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: If we don't expose the mechanism behind -E to embedding applications via the C API, then a non-docs change may be needed. However, writing (or at least trying to write) the relevant docs is a good way to check whether or not that is the case.

[issue14904] test_unicode_repr_oflw (in test_bigmem) crashes

2012-05-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14904 ___ ___ Python-bugs-list

[issue14942] add PyType_New()

2012-05-30 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14942 ___ ___ Python-bugs-list mailing

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

2012-05-30 Thread Ray Donnelly
Changes by Ray Donnelly mingw.andr...@gmail.com: Added file: http://bugs.python.org/file25761/python-py3k-20120318-MINGW-330a2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___

[issue3754] cross-compilation support for python build

2012-05-30 Thread Ray Donnelly
Changes by Ray Donnelly mingw.andr...@gmail.com: Added file: http://bugs.python.org/file25762/python-py3k-20120318-CROSS-330a2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3754 ___

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

2012-05-30 Thread alon horev
alon horev alo...@gmail.com added the comment: The iterative approach turned out elegant and concise. It actually now resembeles the implementation of nested's __exit__. -- keywords: +patch nosy: +alonho Added file: http://bugs.python.org/file25763/14963.patch

[issue3754] cross-compilation support for python build

2012-05-30 Thread Ray Donnelly
Ray Donnelly mingw.andr...@gmail.com added the comment: Hi Roumen, Many thanks for your patches, I've been using a 2.7.1 version of your patches for Python integration with GDB (pretty-printing) of my own version of the Android NDK for ages now (part of the Necessitas Qt project) and I really

  1   2   >