Python Bootcamp - 2 weeks left, Register Now! (Nov 15-19, 2010)

2010-10-30 Thread Chander Ganesan
Just a reminder that there are only 2 weeks remaining to register for the Open Technology Group's Python Bootcamp, a 5 day hands-on, intensive, in-depth introduction to Python. This course is confirmed and guaranteed to run. OTG's Python Bootcamp is a 5 day intensive course that teaches

[ANN] Pyspread 0.1.2 released

2010-10-30 Thread Martin Manns
Pyspread 0.1.2 released === I am pleased to announce the new release 0.1.2 of pyspread. About: -- Pyspread is a cross-platform Python spreadsheet application. It is based on and written in the programming language Python. Instead of spreadsheet formulas, Python

Re: A question I have...

2010-10-30 Thread Steven D'Aprano
On Sat, 30 Oct 2010 15:05:37 +1300, Lawrence D'Oliveiro wrote: In message mailman.168.1287872943.2218.python-l...@python.org, geremy condra wrote: ... dividing strings by a number doesn't make sense. The logical meaning would be the opposite of multiplying strings by a number: abc

Re: embarrassing class question

2010-10-30 Thread Gregory Ewing
Paul Rudin wrote: Gregory Ewing greg.ew...@canterbury.ac.nz writes: You can clean up dir() by defining __all__ as a list of names that you want to officially export. I'm not sure that's necessarily a good idea... when you're trying to figure out why something behaves in a certain way you

Re: functions, list, default parameters

2010-10-30 Thread Gregory Ewing
Steven D'Aprano wrote: And how does Python know whether some arbitrary default object is mutable or not? It doesn't, that's the whole point. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: str(int_var) formatted

2010-10-30 Thread Tracubik
Il Fri, 29 Oct 2010 19:18:41 -0700, John Yeung ha scritto: On Oct 29, 11:59 am, Tracubik affdfsdfds...@b.com wrote: i've to convert integer x to string, but if x 10, the string have to be '0x' instead of simple 'x' for example: x = 9 str(x) -- '09' Everyone else seems to prefer the

Re: functions, list, default parameters

2010-10-30 Thread Steven D'Aprano
On Sat, 30 Oct 2010 19:31:53 +1300, Gregory Ewing wrote: Steven D'Aprano wrote: And how does Python know whether some arbitrary default object is mutable or not? It doesn't, that's the whole point. I think we're in violent agreement :) -- Steven --

Re: embarrassing class question

2010-10-30 Thread Steven D'Aprano
On Sat, 30 Oct 2010 19:30:21 +1300, Gregory Ewing wrote: (BTW, there are no function names that have a special meaning in a module dict -- a module is not like a class.) Pity... it would be nice to have a __main__() function, or perhaps main(), that was automatically called when you call the

Re: multiprocessing signal defect

2010-10-30 Thread Adam Skutt
On Oct 29, 10:08 am, Adam Tauno Williams awill...@whitemice.org wrote: No, I don't think so.  You're asking the module to over generalize behavior.  Reaping of the child is important, and that the child needs to be reaped may matter to the master child (why? did something go wrong?). And such

Using PHP to Dynamically Compress CSS and JavaScript ...

2010-10-30 Thread neha shena
Using PHP to Dynamically Compress CSS and JavaScript ... CSS and JavaScript files are simple plain text files with large amounts of unused space. Compressing all your style sheets into one page ... read more http://childschooledu.blogspot.com/ --

Re: Python changes

2010-10-30 Thread Steve Holden
On 10/28/2010 2:14 PM, Craig McRoberts wrote: First off, greetings from a newbie! Here's the deal. I gained a passable knowledge of Python nearly ten years ago. Then I decided a career in the computer sciences wasn't for me, and I let it go. Now I find myself back in the development arena,

Re: How on Factorial

2010-10-30 Thread Wolfram Hinderer
On 27 Okt., 10:27, Arnaud Delobelle arno...@gmail.com wrote: True.  It's far too verbose.  I'd go for something like:     f=lambda n:n=0 or n*f(~-n) I've saved a few precious keystrokes and used the very handy ~- idiom! You can replace n=0 with n1. Then you can leave out the space before or

[ANN] Pyspread 0.1.2 released

2010-10-30 Thread Martin Manns
Pyspread 0.1.2 released === I am pleased to announce the new release 0.1.2 of pyspread. About: -- Pyspread is a cross-platform Python spreadsheet application. It is based on and written in the programming language Python. Instead of spreadsheet formulas, Python

Tkinter Scrollbar bad behavior [re. bug #10232]

2010-10-30 Thread Robert A. Lerche
I am trying to use Tkinter to create a custom scrollable widget, similar to a list box but with 3 Entry fields per row. In the real application each Entry has a separate input validation routine. I have placed a test case file in the bug I reported: http://bugs.python.org/issue10232 The most

Re: [OFF] sed equivalent of something easy in python

2010-10-30 Thread Mark Wooding
Jussi Piitulainen jpiit...@ling.helsinki.fi writes: Daniel Fetchinson writes: The pattern is that the first line is deleted, then 2 lines are kept, 3 lines are deleted, 2 lines are kept, 3 lines are deleted, etc, etc. So, is there some simple expression in Python for this? (item for i,

Re: Generating PDF file in Python

2010-10-30 Thread David Boddie
On Saturday 30 October 2010 04:27, Lawrence D'Oliveiro wrote: In message mailman.256.1288099490.2218.python-l...@python.org, Ed Keith wrote: I need to generate PDF files and I'm exploring what tools to use. I was planing on using ReportLab, but recently found some references to pango

Re: curses and processing terminal escape characters

2010-10-30 Thread Tim Harig
On 2010-10-30, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message iaf0l9$3h...@speranza.aioe.org, Tim Harig wrote: Python could easily process the escape codes for any given terminal; but, in general, you would want something that works for more then a single terminal

Re: curses and processing terminal escape characters

2010-10-30 Thread Emile van Sebille
On 10/29/2010 9:48 PM Lawrence D'Oliveiro said... In messageiaf0l9$3h...@speranza.aioe.org, Tim Harig wrote: Python could easily process the escape codes for any given terminal; but, in general, you would want something that works for more then a single terminal type. Does anyone still

Re: Tkinter Scrollbar bad behavior [re. bug #10232]

2010-10-30 Thread rantingrick
Robert, First and foremost if you wish to scroll a window then why not use the TIX.ScrolledWindow widget instead. It even shows and hides the scrollbar when necessary. #-- Start Script --# from Tix import * #from Tkconstants import * class App(Tk): # Must use Tk for Tix incompability def

Re: Python 2.7 or 3.1

2010-10-30 Thread Lawrence D'Oliveiro
In message mailman.393.1288390263.2218.python-l...@python.org, Christian Heimes wrote: Am 29.10.2010 23:16, schrieb Lawrence D'Oliveiro: In message mailman.289.1288150693.2218.python-l...@python.org, Jorge Biquez wrote: I was wondering if you can comment more about what alternatives to

Re: Python 2.7 or 3.1

2010-10-30 Thread bradenf
I agree +1 Sent wirelessly from my BlackBerry. -Original Message- From: Lawrence D'Oliveiro l...@geek-central.gen.new_zealand Sender: python-list-bounces+bradenf=hotmail@python.org Date: Sun, 31 Oct 2010 13:30:38 To: python-list@python.org Subject: Re: Python 2.7 or 3.1 In message

Re: factorial of negative one (-1)

2010-10-30 Thread Robert Kern
On 2010-10-30 00:29 , Bj Raz wrote: Thank you Robert for the clarification. Since I'm an amateur programmer, could you please give me a sample of how I would do it. Chris Rebert just showed you. I'll take some time to study arrays as well, and how to write them, I know of lists, and tuples,

How to write pbm file in Python 3?

2010-10-30 Thread André
I'm trying to create pbm (portable bitmap) files using Python 3 and have run into a problem. The example I am using is the Python 2 Mandelbrot program found at http://shootout.alioth.debian.org/u32/program.php?test=mandelbrotlang=pythonid=1 When I run it using Python 2 with size=100, I get a

Re: How to write pbm file in Python 3?

2010-10-30 Thread bradenf
Sorry for the newb question but, what would this be for? Just out of curiousuty Thanks --Original Message-- From: André Sender: python-list-bounces+bradenf=hotmail@python.org To: Python List Subject: How to write pbm file in Python 3? Sent: Oct 30, 2010 11:32 PM I'm trying to

Re: How to write pbm file in Python 3?

2010-10-30 Thread Chris Rebert
On Sat, Oct 30, 2010 at 8:32 PM, André andre.robe...@gmail.com wrote: I'm trying to create pbm (portable bitmap) files using Python 3 and have run into a problem.   The example I am using is the Python 2 Mandelbrot program found at

Re: How to write pbm file in Python 3?

2010-10-30 Thread André
On Oct 31, 1:11 am, Chris Rebert c...@rebertia.com wrote: On Sat, Oct 30, 2010 at 8:32 PM, André andre.robe...@gmail.com wrote: I'm trying to create pbm (portable bitmap) files using Python 3 and have run into a problem.   The example I am using is the Python 2 Mandelbrot program found at

Re: How to write pbm file in Python 3?

2010-10-30 Thread Chris Rebert
On Sat, Oct 30, 2010 at 9:21 PM, André andre.robe...@gmail.com wrote: On Oct 31, 1:11 am, Chris Rebert c...@rebertia.com wrote: On Sat, Oct 30, 2010 at 8:32 PM, André andre.robe...@gmail.com wrote: I'm trying to create pbm (portable bitmap) files using Python 3 and have run into a problem.  

Re: How to write pbm file in Python 3?

2010-10-30 Thread Andre Roberge
On Sun, Oct 31, 2010 at 1:32 AM, Chris Rebert c...@rebertia.com wrote: On Sat, Oct 30, 2010 at 9:21 PM, André andre.robe...@gmail.com wrote: On Oct 31, 1:11 am, Chris Rebert c...@rebertia.com wrote: On Sat, Oct 30, 2010 at 8:32 PM, André andre.robe...@gmail.com wrote: I'm trying to create

Is there a way to pring a list object in Python?

2010-10-30 Thread Zeynel
class Rep(db.Model): author = db.UserProperty() replist = db.ListProperty(str) unique = db.ListProperty(str) date = db.DateTimeProperty(auto_now_add=True) Rep().replist = L Rep().put() mylist = Rep().all().fetch(10) I am trying to display mylist; but I am getting the

[issue10240] dict.update.__doc__ is misleading

2010-10-30 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I'm not sure that we should mention the fast path for dicts. That is an implementation detail and may not be present in IronPython, PyPy, Jython, etc. The current version includes: D.updated(E, **F) -- None. Updated D

[issue10240] dict.update.__doc__ is misleading

2010-10-30 Thread ivank
ivank b...@ludios.org added the comment: CPython's dict(obj) ignores `keys` and `__iter__` if obj is a subclass of dict. I thought this was an important language detail, not just an implementation quirk. But, I just tested pypy 1.3, and it is calling .keys() on dicts. Oh well. I think the

[issue10243] Packaged Pythons

2010-10-30 Thread Max Skaller
New submission from Max Skaller max.skal...@gmail.com: Not sure if this is a bug or not. I am unable to find libpython.so for Python3 on either my Mac or Ubuntu. Perhaps this is a packaging fault, however some documentation in the Wiki suggests otherwise. It appears the builders have reverted

[issue6105] json.dumps doesn't respect OrderedDict's iteration order

2010-10-30 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Backported to 2.7 See r85966 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6105

[issue10243] Packaged Pythons

2010-10-30 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Python 2.6, for example, does ship a shared library. That is not really the case. Python 2.6 ships in source form. It builds with a libpython shared library only if you configure with --enable-shared. In particular it is NOT acceptable

[issue10221] {}.pop('a') raises non-standard KeyError exception

2010-10-30 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: See r85967, r85968 and r85969. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10221

[issue10224] Build 3.x documentation using python3.x

2010-10-30 Thread Zbyszek Szmek
Changes by Zbyszek Szmek zbys...@in.waw.pl: -- nosy: +zbysz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10224 ___ ___ Python-bugs-list mailing

[issue10220] Make generator state easier to introspect

2010-10-30 Thread Zbyszek Szmek
Changes by Zbyszek Szmek zbys...@in.waw.pl: -- nosy: +zbysz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10220 ___ ___ Python-bugs-list mailing

[issue10244] PEP100 has broken links

2010-10-30 Thread Maciej Fijalkowski
New submission from Maciej Fijalkowski fij...@gmail.com: PEP100 (http://www.python.org/dev/peps/pep-0100/) links to python starship. Should it just link to python.org for the newest version of this doc? -- assignee: d...@python components: Documentation messages: 119967 nosy:

[issue10244] PEP100 has broken links

2010-10-30 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Why do you say that the link is broken? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10244 ___

[issue10244] PEP100 has broken links

2010-10-30 Thread Maciej Fijalkowski
Maciej Fijalkowski fij...@gmail.com added the comment: Python starship is down, I thought it's permanently down, isn't it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10244 ___

[issue10244] PEP100 has broken links

2010-10-30 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The link works fine for me right now, and the starship is alive and well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10244 ___

[issue10244] PEP100 has broken links

2010-10-30 Thread Maciej Fijalkowski
Maciej Fijalkowski fij...@gmail.com added the comment: That is really weird, it definitely doesn't for me. Anyway, closing the ticket then. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10244

[issue10244] PEP100 has broken links

2010-10-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Well, obviously only the first link works (does for me too), the second needs to have a version filled in :) -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue10244] PEP100 has broken links

2010-10-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Maciej Fijalkowski wrote: New submission from Maciej Fijalkowski fij...@gmail.com: PEP100 (http://www.python.org/dev/peps/pep-0100/) links to python starship. Should it just link to python.org for the newest version of this doc? The

[issue10245] Fix resource warnings in test_telnetlib

2010-10-30 Thread Brian Brazil
New submission from Brian Brazil brian.bra...@gmail.com: Please see attached patch and closing files and sockets in a timely manner in the stdlib on python-dev. -- components: Tests files: test_telnetlib_fd_leak.patch keywords: patch messages: 119974 nosy: bbrazil, brett.cannon

[issue10246] uu.encode fd leak if arguments are filenames

2010-10-30 Thread Brian Brazil
New submission from Brian Brazil brian.bra...@gmail.com: Please see attached patch, I'm not sure if this is the cleanest way to fix this. This also fixes the resource warnings in the test. -- components: Library (Lib) files: uu_fd_leak.patch keywords: patch messages: 119975 nosy:

[issue10246] uu.encode fd leak if arguments are filenames

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think there should be a try..finally block so that those files get closed even when there's an error in-between. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue10246] uu.encode fd leak if arguments are filenames

2010-10-30 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: How does v2 look? -- Added file: http://bugs.python.org/file19426/uu_fd_leak_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10246

[issue10240] dict.update.__doc__ is misleading

2010-10-30 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Maybe the fastpath should do a strict check and not be used for subclasses of dict? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10240

[issue10246] uu.encode fd leak if arguments are filenames

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: How does v2 look? Nice, thank you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10246 ___

[issue10237] failure in Barrier tests

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I also get a failure here: == FAIL: test_default_timeout (test.test_threading.BarrierTests) -- Traceback (most

[issue10247] mold builder

2010-10-30 Thread Lorenz Quack
New submission from Lorenz Quack d...@amberfisharts.com: RV Plastics is your end to end partner for all your moulds and Injection Moulding requirements. Founded in 2003, RV Plastics dedicates itself to the plastic industry, exporting Plastic injection moulds and molded Components to

[issue10246] uu.encode fd leak if arguments are filenames

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r85975 (3.2). I guess we'll do a big svnmerge to other branches later. -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.2 -Python 3.3 ___

[issue10248] Fix resource warnings in test_xmlrpclib

2010-10-30 Thread Brian Brazil
New submission from Brian Brazil brian.bra...@gmail.com: I'm not 100% comfortable with this patch as my knowledge of the xmlrpc interface is very limited, a simple p.close() would seem cleaner - but that doesn't work. -- files: test_xmlrpclib_fd_leak.patch keywords: patch messages:

[issue10249] Fix resource warnings in test_unicodedata

2010-10-30 Thread Brian Brazil
New submission from Brian Brazil brian.bra...@gmail.com: Please see attached. -- components: Library (Lib) files: test_unicodedata_fd_leak.patch keywords: patch messages: 119984 nosy: bbrazil priority: normal severity: normal status: open title: Fix resource warnings in test_unicodedata

[issue10250] Fix resource warnings in test_urllib2_localnet

2010-10-30 Thread Brian Brazil
New submission from Brian Brazil brian.bra...@gmail.com: Please see attached, not sure this is quite right. -- components: Tests files: test_urllib2_localnet_fd_leak.patch keywords: patch messages: 119985 nosy: bbrazil priority: normal severity: normal status: open title: Fix resource

[issue10248] Fix resource warnings in test_xmlrpclib

2010-10-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis stage: - patch review type: - resource usage versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10248 ___

[issue10250] Fix resource warnings in test_urllib2_localnet

2010-10-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil stage: - patch review type: - resource usage versions: +Python 3.2 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10250

[issue10247] mold builder

2010-10-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- Removed message: http://bugs.python.org/msg119981 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10247 ___

[issue10247] mold builder

2010-10-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: -donlorenzo resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10247 ___

[issue9340] argparse parse_known_args does not work with subparsers

2010-10-30 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I've looked over this patch, and it seems to me that there is no compelling reason to create two new functions. I think it would be clearer to just inline that code in the places it is used. If it turns out later that the code needs

[issue9340] argparse parse_known_args does not work with subparsers

2010-10-30 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: needs patch - patch review versions: +Python 3.1 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9340 ___

[issue10251] Fix resource warnings in test_file

2010-10-30 Thread Brian Brazil
New submission from Brian Brazil brian.bra...@gmail.com: Please see attached. -- components: Tests files: test_file_fd_leak.patch keywords: patch messages: 119987 nosy: bbrazil priority: normal severity: normal status: open title: Fix resource warnings in test_file versions: Python 3.3

[issue10252] Fix resource warnings in distutil tests

2010-10-30 Thread Brian Brazil
New submission from Brian Brazil brian.bra...@gmail.com: Please see attached. -- assignee: tarek components: Distutils files: distutils_fd_leak.patch keywords: patch messages: 119988 nosy: bbrazil, eric.araujo, tarek priority: normal severity: normal status: open title: Fix resource

[issue10251] Fix resource warnings in test_file

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r85977, thanks. -- nosy: +pitrou resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.2 -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue10249] Fix resource warnings in test_unicodedata

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed in r85978, thank you. -- nosy: +pitrou resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.2 -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue10252] Fix resource warnings in distutil tests

2010-10-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review type: - resource usage versions: +Python 3.2 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10252 ___

[issue10226] urlparse example is wrong

2010-10-30 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: How about this: - If the scheme value is not specified, urlparse following the syntax - specifications from RFC 1808, expects the netloc value to start with '//', - Otherwise, it is not possible to distinguish between net_loc and path

[issue10253] Fix fd leak in fileio.c and test resource warnings

2010-10-30 Thread Brian Brazil
New submission from Brian Brazil brian.bra...@gmail.com: fileio_init will leak a fd if you open a file for append that isn't seekable. We should close this fd before returning the failure. The attached patch fixes this and a resource warning in the tests, but I'm unsure if it'd be better to

[issue10253] Fix fd leak in fileio.c and test resource warnings

2010-10-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +amaury.forgeotdarc, benjamin.peterson stage: - patch review type: - resource usage versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue10253] Fix fd leak in fileio.c and test resource warnings

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It should be closed only if closefd is true. Does it fix a warning in the test suite? Otherwise I think it would need its own test. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue1346238] A constant folding optimization pass for the AST

2010-10-30 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1346238 ___ ___ Python-bugs-list

[issue10253] Fix fd leak in fileio.c and test resource warnings

2010-10-30 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: Version 2 of the patch is attached. This fixes a warning at line 256 in test_fileio.py: f = _FileIO(/dev/tty, a) on my Hardy machine. -- Added file: http://bugs.python.org/file19433/fileio_fd_leak_v2.patch

[issue10254] unicodedata.normalize('NFC', s) regression

2010-10-30 Thread Merlijn van Deen
New submission from Merlijn van Deen valhall...@gmail.com: Summary: Somewhere between 2.6.5 r79063 and 3.1 r79147 a regression in the unicode NFC normalization has been introduces. This regression leads to bot edit wars on wikipedia [1]. It is reproducable with a simple script [2].

[issue10254] unicodedata.normalize('NFC', s) regression

2010-10-30 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: Please note: The bug might very well be present in python 3.2 and 3.3. However, I do not have these versions installed, so I cannot confirm this. -- ___ Python tracker rep...@bugs.python.org

[issue10157] Refleaks in pythonrun.c

2010-10-30 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Thank you, I committed your patch in r85980(py3k) and r85981(release31-maint). -- assignee: ocean-city - resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.1

[issue10254] unicodedata.normalize('NFC', s) regression

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Confirmed on Python 3.2. -- nosy: +haypo, loewis, pitrou versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10254 ___

[issue10164] Add an assertBytesEqual to unittest and use it for bytes assertEqual

2010-10-30 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - rhettinger nosy: +rhettinger priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10164 ___

[issue1346238] A constant folding optimization pass for the AST

2010-10-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: -georg.brandl, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1346238 ___ ___

[issue10253] Fix fd leak in fileio.c and test resource warnings

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r85982, thank you. I will backport later. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10093] Warn when files are not explicitly closed

2010-10-30 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: MAL wrote: Antoine wrote: MAL wrote: I don't follow you. Where's the difference between writing: s.close() or s = None for an open socket s ? The difference is when s is still referenced elsewhere. Also, the intent of the

[issue10238] ctypes not building under OS X 10.6 with LLVM/Clang 2.8

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Not sure this is a blocker. There are various assembler syntaxes for x86 and chances are LLVM uses a different one from gcc. -- assignee: - theller nosy: +georg.brandl, pitrou, theller ___ Python

[issue6706] asyncore's accept() is broken

2010-10-30 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/issue6706 ___

[issue10236] Sporadic failures of test_ssl

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The errno printed here is just an error which is expected and tested for. The verbose run was ok, it's the silent run just before which produced an error (or several), but unfortunately: test test_ssl failed -- multiple errors occurred; run in

[issue6706] asyncore's accept() is broken

2010-10-30 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: CVE-2010-3492 references this issue. http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-3492 -- ___ Python tracker rep...@bugs.python.org

[issue10238] ctypes not building under OS X 10.6 with LLVM/Clang 2.8

2010-10-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I agree, this shouldn't be a blocker. -- priority: deferred blocker - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10238 ___

[issue10250] Fix resource warnings in test_urllib2_localnet

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r85983, thank you. -- nosy: +pitrou resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10245] Fix resource warnings in test_telnetlib

2010-10-30 Thread Jack Diederich
Changes by Jack Diederich jackd...@gmail.com: -- assignee: - jackdied nosy: +jackdied versions: +Python 3.2 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10245 ___

[issue10160] operator.attrgetter slower than lambda after adding dotted names ability

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Some comments about the patch: - this seems to be some dead code: if (nattrs = 1) { if (!PyArg_UnpackTuple(args, attrgetter, 1, 1, attr)) return NULL; - you can't call PyUnicode_GET_SIZE or PyUnicode_AS_UNICODE before

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2010-10-30 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Éric, go ahead and consolidate to one issue if you can get to it. Do the other issues shows problems with 3.1 or 3.2 also? I wonder because I have never seen the box in the posted .png and wonder if that is a new 'feature' with 2.7 and

[issue10255] refleak in initstdio

2010-10-30 Thread Neil Schemenauer
New submission from Neil Schemenauer nas-pyt...@arctrix.com: It looks to me like initstdio leaks a reference to open. AFAIK, PyObject_SetAttrString() does not steal a reference. -- assignee: pitrou components: Interpreter Core files: initstdio_refleak.txt messages: 120008 nosy:

[issue10255] refleak in initstdio

2010-10-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: LGTM. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10255 ___ ___

[issue9981] let make_buildinfo use a temporary directory on windows

2010-10-30 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Is there a reason this removes the Release x64 configuration? -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9981 ___

[issue9981] let make_buildinfo use a temporary directory on windows

2010-10-30 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Let me rephrase that: What makes the Release x64 configuration unnecessary, thus removed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9981

[issue10237] failure in Barrier tests

2010-10-30 Thread Stephen Hansen
Stephen Hansen me+pyt...@ixokai.io added the comment: FWIW, my snow leopard slave isn't slow at all so I doubt there's a timeout related to machine speed going on here, as its failing thus: test test_threading failed -- Traceback (most recent call last): File

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-10-30 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: issue2636-20101030a.zip is a new version of the regex module. This bug was a bit more difficult to fix, but I think it's OK now! -- Added file: http://bugs.python.org/file19435/issue2636-20101030a.zip

[issue10256] Fix resource warnings in test_pkgimport

2010-10-30 Thread Brian Brazil
New submission from Brian Brazil brian.bra...@gmail.com: Please see attached patch. -- components: Tests files: test_pkgimport_fd_leak.patch keywords: patch messages: 120014 nosy: bbrazil priority: normal severity: normal status: open title: Fix resource warnings in test_pkgimport

[issue10257] Fix resource warnings in test_os

2010-10-30 Thread Brian Brazil
New submission from Brian Brazil brian.bra...@gmail.com: Please see attached. -- components: Tests files: test_os_fd_leak.patch keywords: patch messages: 120015 nosy: bbrazil priority: normal severity: normal status: open title: Fix resource warnings in test_os versions: Python 3.3

[issue10257] Fix resource warnings in test_os

2010-10-30 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: I'm used to a slightly different style guide, v2 has the right indentation. -- Added file: http://bugs.python.org/file19438/test_os_fd_leak_v2.patch ___ Python tracker rep...@bugs.python.org

[issue10257] Fix resource warnings in test_os

2010-10-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t see any difference :) -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10257 ___

  1   2   >