http://porn-extreme.2304310.n4.nabble.com/

2012-05-13 Thread jimmy970
http://porn-extreme.2304310.n4.nabble.com/ -- View this message in context: http://python.6.n6.nabble.com/AMPUTEE-INCEST-MIDGET-2012-tp4708963p4974351.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list

Re: Good data structure for finding date intervals including a given date

2012-05-13 Thread Alec Taylor
There is an ordered dict type since Python 3.1[1] and Python 2.7.3[2]. If you are looking for the best possible self-sorting structure for searching, then perhaps you are looking for what's outlined in the 2002 article by Han Thorup: Integer Sorting in O(n sqrt(log log n)) Expected Time and

How to call and execute C code in Python?

2012-05-13 Thread David Shi
Can anyone tell me how to call and exectute C code in Python? Regards. David From: python-list-requ...@python.org python-list-requ...@python.org To: python-list@python.org Sent: Friday, 11 May 2012, 5:35 Subject: Python-list Digest, Vol 104, Issue 57 -

Re: Good data structure for finding date intervals including a given date

2012-05-13 Thread Arnaud Delobelle
On 13 May 2012 13:29, Alec Taylor alec.tayl...@gmail.com wrote: There is an ordered dict type since Python 3.1[1] and Python 2.7.3[2]. I don't think that'll help the OP. Python's OrderedDict keeps track of the order in which the keys were inserted into the dictionary (a bit like a list), it

Re: Good data structure for finding date intervals including a given date

2012-05-13 Thread Emile van Sebille
On 5/12/2012 5:17 AM Jean-Daniel said... Hello, I have a long list of n date intervals that gets added or suppressed intervals regularly. I am looking for a fast way to find the intervals containing a given date, without having to check all intervals (less than O(n)). ISTM the fastest way is

Re: How to call and execute C code in Python?

2012-05-13 Thread Chris Angelico
On Sun, May 13, 2012 at 11:25 PM, David Shi davidg...@yahoo.co.uk wrote: Can anyone tell me how to call and exectute C code in Python? Browse the documentation about Extending and Embedding Python, there's an extensive API. Chris Angelico -- http://mail.python.org/mailman/listinfo/python-list

Re: How to call and execute C code in Python?

2012-05-13 Thread Stefan Behnel
David Shi, 13.05.2012 15:25: Can anyone tell me how to call and exectute C code in Python? Take a look at Cython, a Python-like language that supports native calls to and from C/C++ code. It translates your code into very efficient C code, so the wrapping code tends to be very fast (often faster

Re: How to call and execute C code in Python?

2012-05-13 Thread Mark Lawrence
On 13/05/2012 16:39, Chris Angelico wrote: On Sun, May 13, 2012 at 11:25 PM, David Shidavidg...@yahoo.co.uk wrote: Can anyone tell me how to call and exectute C code in Python? Browse the documentation about Extending and Embedding Python, there's an extensive API. Chris Angelico I like

Re: How to call and execute C code in Python?

2012-05-13 Thread Mark Lawrence
On 13/05/2012 16:58, Stefan Behnel wrote: David Shi, 13.05.2012 15:25: Can anyone tell me how to call and exectute C code in Python? Take a look at Cython, a Python-like language that supports native calls to and from C/C++ code. It translates your code into very efficient C code, so the

Re: How to call and execute C code in Python?

2012-05-13 Thread Stefan Behnel
Mark Lawrence, 13.05.2012 19:23: On 13/05/2012 16:39, Chris Angelico wrote: On Sun, May 13, 2012 at 11:25 PM, David Shi wrote: Can anyone tell me how to call and exectute C code in Python? Browse the documentation about Extending and Embedding Python, there's an extensive API. I like your

Re: How to call and execute C code in Python?

2012-05-13 Thread Stefan Behnel
Mark Lawrence, 13.05.2012 19:27: On 13/05/2012 16:58, Stefan Behnel wrote: David Shi, 13.05.2012 15:25: Can anyone tell me how to call and exectute C code in Python? Take a look at Cython, a Python-like language that supports native calls to and from C/C++ code. It translates your code into

Re: How to call and execute C code in Python?

2012-05-13 Thread Mark Lawrence
On 13/05/2012 18:38, Stefan Behnel wrote: Mark Lawrence, 13.05.2012 19:23: On 13/05/2012 16:39, Chris Angelico wrote: On Sun, May 13, 2012 at 11:25 PM, David Shi wrote: Can anyone tell me how to call and exectute C code in Python? Browse the documentation about Extending and Embedding

Re: How to call and execute C code in Python?

2012-05-13 Thread Stefan Behnel
Mark Lawrence, 13.05.2012 19:44: On 13/05/2012 18:38, Stefan Behnel wrote: Mark Lawrence, 13.05.2012 19:23: On 13/05/2012 16:39, Chris Angelico wrote: On Sun, May 13, 2012 at 11:25 PM, David Shi wrote: Can anyone tell me how to call and exectute C code in Python? Browse the documentation

Re: How to call and execute C code in Python?

2012-05-13 Thread Mark Lawrence
On 13/05/2012 19:14, Stefan Behnel wrote: Mark Lawrence, 13.05.2012 19:44: On 13/05/2012 18:38, Stefan Behnel wrote: Mark Lawrence, 13.05.2012 19:23: On 13/05/2012 16:39, Chris Angelico wrote: On Sun, May 13, 2012 at 11:25 PM, David Shi wrote: Can anyone tell me how to call and exectute C

Re: How to call and execute C code in Python?

2012-05-13 Thread Stefan Behnel
Mark Lawrence, 13.05.2012 20:25: My response to Chris Angelico was simple and you've gone off at a complete tangent whilst writing War and Peace. Or is it a simple matter that my newsreader is better than your newsreader? Ah, sorry. I didn't know we were discussing at *that* level. Stefan --

Re: How to call and execute C code in Python?

2012-05-13 Thread Terry Reedy
On 5/13/2012 9:25 AM, David Shi wrote: Can anyone tell me how to call and exectute C code in Python? Regards. David *From:* python-list-requ...@python.org python-list-requ...@python.org *To:* python-list@python.org

write a bot

2012-05-13 Thread admin lewis
Hi, I want write a bot in python, it should explore a site, click links and extract some info. I know mechanize but I would like to know if there is something better for performance. Thanks a lot lewis. -- Linux Server, Microsoft Windows 2003/2008 Server, Exchange 2007

.py to .pyc

2012-05-13 Thread Colin J. Williams
Is there some way to ensure that a .pyc file is produced when executing a .py file? It seems that for small files the .pyc file is not produced. Colin W. -- http://mail.python.org/mailman/listinfo/python-list

Re: .py to .pyc

2012-05-13 Thread Irmen de Jong
On 13-5-2012 23:27, Colin J. Williams wrote: Is there some way to ensure that a .pyc file is produced when executing a .py file? It seems that for small files the .pyc file is not produced. Colin W. All modules no matter how small produce a .pyc file *when they are imported*. If you

.py to .pyc

2012-05-13 Thread Colin J. Williams
Is there some way to ensure that a .pyc file is produced when executing a .py file? It seems that for small files the .pyc file is not produced. Colin W. PLEASE IGNORE - I was in the wrong directory. Colin W. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to call and execute C code in Python?

2012-05-13 Thread Chris Angelico
On Mon, May 14, 2012 at 3:23 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 13/05/2012 16:39, Chris Angelico wrote: On Sun, May 13, 2012 at 11:25 PM, David Shidavidg...@yahoo.co.uk  wrote: Can anyone tell me how to call and exectute C code in Python? Browse the documentation about

Re: .py to .pyc

2012-05-13 Thread Tim Chase
On 05/13/12 16:36, Irmen de Jong wrote: Why do you care anyway? Pyc files are an implementation detail. I could see wanting to pre-compile .pyc files for performance if they'll then be stored on a read-only medium (a CD/DVD, a RO network share, or a RO drive partition all come to mind). You can

Re: How to call and execute C code in Python?

2012-05-13 Thread Devin Jeanpierre
On Sun, May 13, 2012 at 11:58 AM, Stefan Behnel stefan...@behnel.de wrote: David Shi, 13.05.2012 15:25: Can anyone tell me how to call and exectute C code in Python? Take a look at Cython, a Python-like language that supports native calls to and from C/C++ code. It translates your code into

Re: .py to .pyc

2012-05-13 Thread Steven D'Aprano
On Sun, 13 May 2012 23:36:02 +0200, Irmen de Jong wrote: On 13-5-2012 23:27, Colin J. Williams wrote: Is there some way to ensure that a .pyc file is produced when executing a .py file? It seems that for small files the .pyc file is not produced. Colin W. All modules no matter how

Need to get Tags and Values from Dom

2012-05-13 Thread TommyVee
I have a very simple XML document that I need to walk, and I'm using xml.dom.minidom. No attributes, just lots of nested tags and associated values. All I'm looking to do is iterate through each of the highest sibling nodes, check what the tag is, and process its value accordingly. If a

Re: write a bot

2012-05-13 Thread Emile van Sebille
On 5/13/2012 2:25 PM admin lewis said... Hi, I want write a bot in python, it should explore a site, click links and extract some info. I know mechanize but I would like to know if there is something better for performance. Have you looked into Scrapy? http://scrapy.org Emile --

Re: write a bot

2012-05-13 Thread admin lewis
2012/5/14 Emile van Sebille em...@fenx.com: On 5/13/2012 2:25 PM admin lewis said... Hi, I want write a bot in python, it should explore a site, click links and extract some info. I know mechanize but I would like to know if there is something better for performance. Have you looked into

Re: Looking for video/slides from PyCon 2011...

2012-05-13 Thread Kushal Kumaran
On Fri, May 11, 2012 at 5:42 AM, Monte Milanuk memila...@gmail.com wrote: ...specifically the two lectures on creating GUI applications with Python + QT http://us.pycon.org/2011/schedule/presentations/207/ Various searches on the 'Net don't seem to be turning up much... kinda curious as to

Re: Need to get Tags and Values from Dom

2012-05-13 Thread Kushal Kumaran
On Mon, May 14, 2012 at 6:20 AM, TommyVee x...@xx.xxx wrote: I have a very simple XML document that I need to walk, and I'm using xml.dom.minidom.  No attributes, just lots of nested tags and associated values.  All I'm looking to do is iterate through each of the highest sibling

[issue9120] Reduce pickle size for an empty set

2012-05-13 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Ok, so I'm closing it. -- nosy: +loewis resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9120

[issue14366] Supporting lzma compression in zip files

2012-05-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fccdcd83708a by Martin v. Löwis in branch 'default': Issue #14366: Support lzma compression in zip files. http://hg.python.org/cpython/rev/fccdcd83708a -- nosy: +python-dev

[issue14366] Supporting lzma compression in zip files

2012-05-13 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks for the patch! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14366 ___

[issue14793] broken grammar in Built-in Types doc

2012-05-13 Thread Roundup Robot
New submission from Roundup Robot devn...@psf.upfronthosting.co.za: New changeset e0dcd732055f by Sandro Tosi in branch '3.2': Issue #14793: fix grammar in bytes object paragraph; patch by Tshepang Lekhonkhobe http://hg.python.org/cpython/rev/e0dcd732055f -- nosy: +python-dev

[issue14793] broken grammar in Built-in Types doc

2012-05-13 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Committed, thanks for the patch. For next times, please invest even a small amount of time describing why you opened the issue and what the patch fixes: it's definitely nicer not having to infer it from the diff. -- nosy:

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: When it's possible to not overallocate, the speed up is around 10% for short strings (I suppose that it's much better to longer strings). Well, please post a benchmark for long strings, then :-) I think 10% on a micro-benchmark is not worth the

[issue14732] PEP 3121 Refactoring applied to _csv module

2012-05-13 Thread Robin Schreiber
Changes by Robin Schreiber robin.schrei...@me.com: Added file: http://bugs.python.org/file25559/csv_pep3121_fix1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14732 ___

[issue14366] Supporting lzma compression in zip files

2012-05-13 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Thank you, Martin. Both of these patches basically your merit. Maybe take a look also at the small patches to issue14315 and issue10376? -- ___ Python tracker rep...@bugs.python.org

[issue14773] fwalk breaks on dangling symlinks

2012-05-13 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Just to stress it once more: a fwalk that _ignores_ dangling symlinks is worthless for rmtree. And wasn't rmtree the initial reason to implement fwalk in the first place? ;) Indeed, my bad :-) So I've changed the patch to ignore

[issue14732] PEP 3121 Refactoring applied to _csv module

2012-05-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 90cf321615e5 by Antoine Pitrou in branch 'default': Remove Skip from the csv experts (see issue #14732). http://hg.python.org/devguide/rev/90cf321615e5 -- nosy: +python-dev

[issue14795] Pdb incorrectly handles a method breakpoint when module not imported

2012-05-13 Thread Xavier de Gaye
New submission from Xavier de Gaye xdeg...@gmail.com: In the following test, breakpoint 2 is set incorrectly at line 1 and pdb does not know how to set a breakpoint on method C.c_foo. However setting those two breakpoints on both methods is ok after the class definition has been executed. ===

[issue14315] zipfile.ZipFile() unable to open zip File

2012-05-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14315 ___ ___ Python-bugs-list

[issue14751] Pdb does not stop at a breakpoint

2012-05-13 Thread Xavier de Gaye
Xavier de Gaye xdeg...@gmail.com added the comment: Uploaded pdb_default_2.patch that corrects the initial patch: the trace function must be set in all frames whose co_filename is the breakpoint file name and not just the first frame of this set. -- Added file:

[issue14796] Calendar module test coverage improved

2012-05-13 Thread Oleg Plakhotnyuk
New submission from Oleg Plakhotnyuk oleg...@gmail.com: I've improved calendar.py test coverage a bit. Before: 41071% calendar (.../Lib/calendar.py) After: 41077% calendar (.../Lib/calendar.py) -- components: Tests files: test_calendar.patch keywords: patch

[issue13210] Support Visual Studio 2010

2012-05-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 38d7d944370e by Brian Curtin in branch 'default': Fix #13210. Port the Windows build from VS2008 to VS2010. http://hg.python.org/cpython/rev/38d7d944370e -- nosy: +python-dev

[issue13210] Support Visual Studio 2010

2012-05-13 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: What I just pushed has functioning debug and release builds for both 32 and 64 bit, and the tests introduce no new failures. As noted on python-dev, we may not have build slaves setup for this change yet, so the Windows builds may appear

[issue14796] Calendar module test coverage improved

2012-05-13 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14796 ___ ___ Python-bugs-list

[issue14797] Deprecate imp.find_module()/load_module()

2012-05-13 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: With importlib.find_loader() now implemented, imp.find_module() (and its companion, imp.load_module()) can go away and stop inflicting their bad API upon the world. The trick, though, is fixing code that uses the API. That means pkgutil,

[issue13959] Re-implement parts of imp in pure Python

2012-05-13 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- dependencies: +Deprecate imp.find_module()/load_module() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13959 ___

[issue14797] Deprecate imp.find_module()/load_module()

2012-05-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14797 ___ ___

[issue14796] Calendar module test coverage improved

2012-05-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14796 ___

[issue14798] pyclbr raises KeyError when the prefix of a dotted name is not a package

2012-05-13 Thread Xavier de Gaye
New submission from Xavier de Gaye xdeg...@gmail.com: pyclbr must raise ImportError instead of KeyError. The attached patch fixes the problem. A test case is included. -- components: Library (Lib) files: pdb_default.patch keywords: patch messages: 160523 nosy: xdegaye priority: normal

[issue13959] Re-implement parts of imp in pure Python

2012-05-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 59870239813c by Brett Cannon in branch 'default': Issue #13959: Document imp.find_module/load_module as deprecated. http://hg.python.org/cpython/rev/59870239813c -- ___

[issue14797] Deprecate imp.find_module()/load_module()

2012-05-13 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: http://hg.python.org/lookup/59870239813c documents imp.find_module/load_module as deprecated w/o actually raising the deprecation. The code works fine, but the API is just crap. So in the name of ease of transition (and my own personal sanity),

[issue14797] Deprecate imp.find_module()/load_module()

2012-05-13 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: BTW, I'm leaving this issue open in case someone wants to take a stab and removing the uses of imp.find_module()/load_module() from the stdlb. -- ___ Python tracker rep...@bugs.python.org

[issue14796] Calendar module test coverage improved

2012-05-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the patch. There are a couple of things I'd change, which I or someone could do while committing if you prefer, but if you'd like to tune up the patch yourself that would be great. The first is that I'd break up the tests

[issue14770] Minor documentation fixes

2012-05-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9d2a1f35421d by Ezio Melotti in branch '2.7': #14770: improve the library FAQ. http://hg.python.org/cpython/rev/9d2a1f35421d New changeset 7a046f1ddd07 by Ezio Melotti in branch '3.2': #14770: improve the library

[issue14770] Minor documentation fixes

2012-05-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bf3cb58dcfe7 by Ezio Melotti in branch '2.7': #14770: backport a couple of changes from 3.x. http://hg.python.org/cpython/rev/bf3cb58dcfe7 -- ___ Python tracker

[issue14770] Minor documentation fixes

2012-05-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I addressed Éric comments and committed the patch. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14794] slice.indices raises OverflowError

2012-05-13 Thread Paul Upchurch
Paul Upchurch pau...@gmail.com added the comment: That's true; it doesn't work with today's downloads from python.org. The version I tested was win32 but I don't think that should matter. Python has always supported large numbers on 32-bit OSs. My observations: [1] Debian Wheezy, python3.2,

[issue13210] Support Visual Studio 2010

2012-05-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: All the old .vcproj files are still there. Probably not useful since the .sln file has been upgraded to VisualStudio 2010. -- ___ Python tracker rep...@bugs.python.org

[issue6818] remove/delete method for zipfile/tarfile objects

2012-05-13 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Yuval, can you please submit a contributor agreement? See http://www.python.org/psf/contrib/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6818

[issue6818] remove/delete method for zipfile/tarfile objects

2012-05-13 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: As for adding yourself to the CC list: notice the string ubershmekel appearing in the CC field of http://bugs.python.org/review/6818/show. It means that you are already on the CC list. -- ___

[issue13210] Support Visual Studio 2010

2012-05-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 924c178c0d1d by Brian Curtin in branch 'default': Move out VS9 project files to PC\VS9.0 folder. Fixes #13210 http://hg.python.org/cpython/rev/924c178c0d1d -- ___ Python

[issue13210] Support Visual Studio 2010

2012-05-13 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Thanks for noticing. I moved them out to PC\VS9.0 rather than outright deleting. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13210 ___

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-05-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ddcc8ee680d7 by Charles-François Natali in branch 'default': Issue #14532: Add a secure_compare() helper to the hmac module, to mitigate http://hg.python.org/cpython/rev/ddcc8ee680d7 -- nosy: +python-dev

[issue14315] zipfile.ZipFile() unable to open zip File

2012-05-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file25564/zipfile_extra_test.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14315 ___

[issue14315] zipfile.ZipFile() unable to open zip File

2012-05-13 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Serhiy: can you please provide a unit test? The OP's test case is unsuitable because of both size and copyright. As for the actual issue: the extra data (type 0xcafe) is apparently added by jar tools to make the jar file executable:

[issue14315] zipfile.ZipFile() unable to open zip File

2012-05-13 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Serhiy: can you please provide a unit test? The OP's test case is unsuitable because of both size and copyright. I provided the test several minutes ago. -- ___ Python tracker

[issue14796] Calendar module test coverage improved

2012-05-13 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk oleg...@gmail.com added the comment: Thanks for the review. I'll happily tune the patch myself. Just when I have some spare time again. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14796

[issue14797] Deprecate imp.find_module()/load_module()

2012-05-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14797 ___

[issue14315] zipfile.ZipFile() unable to open zip File

2012-05-13 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I can sympathize with the desire to accept the zipfile, anyway (i.e. despite it being broken). At the same time, I also think that Python should not let errors pass silently. I do not know other implementation of ZIP, which output an

[issue10376] ZipFile unzip is unbuffered

2012-05-13 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: Added file: http://bugs.python.org/file25565/zipfile_optimize_read.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10376 ___

[issue10376] ZipFile unzip is unbuffered

2012-05-13 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Thank you, Martin, now I understood why not work Rietveld review. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10376 ___

[issue14417] dict RuntimeError workaround

2012-05-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 93748e2d64e3 by Antoine Pitrou in branch 'default': Issue #14417: Mutating a dict during lookup now restarts the lookup instead of raising a RuntimeError (undoes issue #14205).

[issue14205] Raise an error if a dict is modified during a lookup

2012-05-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 93748e2d64e3 by Antoine Pitrou in branch 'default': Issue #14417: Mutating a dict during lookup now restarts the lookup instead of raising a RuntimeError (undoes issue #14205).

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-13 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Patch looks good for me, works fine. I think it can be applied to 2.7 as well. There are only problem: I don't know how to make test for it without using external tools like xclip or ctypes bindings for X so library. --

[issue14417] dict RuntimeError workaround

2012-05-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I have committed an updated patch, with a fix to Victor's test. I don't think anything else remains to be done. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python

[issue14799] Tkinter ttk tests hang on linux

2012-05-13 Thread Andrew Svetlov
New submission from Andrew Svetlov andrew.svet...@gmail.com: By default python doesn't run full test suite, but regrtest accepts -u parameter. The simplest way to reproduce is: $ ./python -m test.regrtest -u gui test_ttk_guionly -- components: Tkinter messages: 160547 nosy: asvetlov

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-13 Thread Thomas Kluyver
Thomas Kluyver tak...@gmail.com added the comment: Indeed, and there don't seem to be any other tests for the clipboard functionality. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14777

[issue14667] No IDLE

2012-05-13 Thread James Lu
James Lu jam...@gmail.com added the comment: thanks! james On Thu, Apr 26, 2012 at 1:02 AM, Brian Curtin rep...@bugs.python.orgwrote: Brian Curtin br...@python.org added the comment: James, since you attached a Windows executable I'll assume that's the platform you're on. Try the

[issue14315] zipfile.ZipFile() unable to open zip File

2012-05-13 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: So as a way out, I propose that the ZipFile class gains a strict attribute, indicating whether acceptable violations of the spec are ignored or reported as exceptions. It is a not easy task (and unnecessary, I suppose). Now zipfile

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-13 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: You are right: there are no tests as well as for the most part of tkinter. Why don't make it if possible? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14777

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-13 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm skeptical about the patch. In both 2.7 and 3.x, clipboard_get returns a Unicode string, yet it fails to decode it properly. So I think this is the bug that ought to be fixed (using the proper encoding). Defaulting to UTF8_STRING is a

[issue14315] zipfile.ZipFile() unable to open zip File

2012-05-13 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Just add a strict flag, make it false by default, and raise an error if there is any unparsable extra data. If the module does not actually checks the correctness of all (including local file headers, which now it ignores), it will be a

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-13 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Martin, is that a way for _tkinter to know whether the result returned from Tcl/Tk is an encoded string or not in this case? With regard to the patch, it would be better to cache the results of the first-time call to get the windowingsystem value so

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-13 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- Removed message: http://bugs.python.org/msg160554 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14777 ___

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-13 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Martin, is there a way for _tkinter to know whether the result returned from Tcl/Tk is an encoded string or not in this case? With regard to the patch, it would be better to cache the results of the first-time call to get the windowingsystem value so

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-13 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: У пт, 2012-05-11 у 21:25 +, Thomas Kluyver пише: So far, I've not found any case on X where STRING works but UTF8_STRING doesn't. Perhaps there will be problems with the old (very old) closed source software. A few years ago (in

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-13 Thread Thomas Kluyver
Thomas Kluyver tak...@gmail.com added the comment: But the encoding used seemingly depends on the source application - Geany (GTK 2, I think) seemingly sends UTF8 text anyway, whereas Firefox escapes the unicode character. So I don't think we can correctly decode the STRING value in all

[issue14794] slice.indices raises OverflowError

2012-05-13 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I did a little compiling party with official releases and all permutations of Linux, OS X x 3.2.2, 3.2.3 worked. Both ran on 64bit (Linux in a VirtualBox). Python 3.2.2 (default, May 13 2012, 21:24:38) [GCC 4.6.3] on linux2 Type help, copyright,

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-13 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: But the encoding used seemingly depends on the source application - Geany (GTK 2, I think) seemingly sends UTF8 text anyway, whereas Firefox escapes the unicode character. So I don't think we can correctly decode the STRING value in

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-13 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Martin, is that a way for _tkinter to know whether the result returned from Tcl/Tk is an encoded string or not in this case? Off-hand, I don't know. I suppose there is a way to do this correctly, but one might have to dig through many

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-13 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: But the encoding used seemingly depends on the source application - Geany (GTK 2, I think) seemingly sends UTF8 text anyway, whereas Firefox escapes the unicode character. So I don't think we can correctly decode the STRING value in all

[issue14797] Deprecate imp.find_module()/load_module()

2012-05-13 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14797 ___ ___ Python-bugs-list

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-13 Thread Ned Deily
Ned Deily n...@acm.org added the comment: +1 to Martin's proposal -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14777 ___ ___ Python-bugs-list

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-13 Thread Thomas Kluyver
Thomas Kluyver tak...@gmail.com added the comment: OK, I'll produce an updated patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14777 ___

[issue12098] Child process running as debug on Windows

2012-05-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12098 ___ ___ Python-bugs-list mailing list

[issue14245] float rounding examples in FAQ are outdated

2012-05-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2b2a7861255d by Mark Dickinson in branch '3.2': Issue #14245: Improve floating-point entry in FAQ. Thanks Zbyszek Jędrzejewski-Szmek for some of the wording. http://hg.python.org/cpython/rev/2b2a7861255d New

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-13 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: When it's possible to not overallocate, the speed up is around 10% for short strings (I suppose that it's much better to longer strings). Well, please post a benchmark for long strings, then :-) Ok, here you have. I don't understand

[issue14245] float rounding examples in FAQ are outdated

2012-05-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for all the feedback. I made another round of minor edits to the latest version and committed the result. -- resolution: - fixed status: open - closed ___ Python tracker

  1   2   >