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

2010-10-31 Thread Richard Thomas
On Oct 31, 5:42 am, Zeynel azeyn...@gmail.com wrote: 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 =

no line breaks in xml file with elementTree

2010-10-31 Thread hackingKK
Hello all. I want to know if there is a way to have the ElementTree module write to an xml file with line breaks? I find that when I use the write function from the module on a tree object, the resulting file has no line breaks. I don't want to use prittyprint because it is adding extra tabs

playing with berp: python3 to haskell compiler in haskell

2010-10-31 Thread Alia Khouri
In case anyone finds this worthwhile: there is a pretty impressive python3 to haskell compiler written in haskell called berp that looks very interesting: http://github.com/bjpop/berp/wiki I highly recommend reading through the berp implementation code for a fascinating (but currently incomplete)

Re: no line breaks in xml file with elementTree

2010-10-31 Thread Lawrence D'Oliveiro
In message mailman.412.1288509358.2218.python-l...@python.org, hackingKK wrote: I want to know if there is a way to have the ElementTree module write to an xml file with line breaks? Why does it matter? The XML files you generate are not for humans to look at, are they? Further more, I

Re: no line breaks in xml file with elementTree

2010-10-31 Thread hackingKK
On Sunday 31 October 2010 01:58 PM, Lawrence D'Oliveiro wrote: In messagemailman.412.1288509358.2218.python-l...@python.org, hackingKK wrote: I want to know if there is a way to have the ElementTree module write to an xml file with line breaks? Why does it matter? The XML files you

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

2010-10-31 Thread Dave Angel
On 2:59 PM, Zeynel wrote: 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

A bug for raw string literals in Py3k?

2010-10-31 Thread Yingjie Lan
Hi, I tried this in the IDLE (version 3.1.2) shell: r'\' SyntaxError: EOL while scanning string literal But according to the py3k docs (http://docs.python.org/release/3.0.1/whatsnew/3.0.html): All backslashes in raw string literals are interpreted literally. So I suppose this is a bug?

Re: A bug for raw string literals in Py3k?

2010-10-31 Thread Martin v. Loewis
So I suppose this is a bug? It's not, see http://docs.python.org/py3k/reference/lexical_analysis.html#literals # Specifically, a raw string cannot end in a single backslash Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Compare source code

2010-10-31 Thread jf
Hi, I've a project with tabs and spaces mixed (yes I know it's bad). I edit each file to remove tabs, but it's so easy to make a mistake. Do you know a tools to compare the initial file with the cleaned one to know if the algorithms are the same ? By comparing pyc files for example. Thanks.

Re: Compare source code

2010-10-31 Thread Martin v. Loewis
I've a project with tabs and spaces mixed (yes I know it's bad). I edit each file to remove tabs, but it's so easy to make a mistake. Do you know a tools to compare the initial file with the cleaned one to know if the algorithms are the same ? By comparing pyc files for example.

Re: A bug for raw string literals in Py3k?

2010-10-31 Thread Yingjie Lan
So I suppose this is a bug? It's not, see http://docs.python.org/py3k/reference/lexical_analysis.html#literals # Specifically, a raw string cannot end in a single backslash Thanks! That looks weird to me ... doesn't this contradict with: All backslashes in raw string literals are

Re: no line breaks in xml file with elementTree

2010-10-31 Thread Stefan Behnel
hackingKK, 31.10.2010 10:04: On Sunday 31 October 2010 01:58 PM, Lawrence D'Oliveiro wrote: hackingKK wrote: Further more, I just was curious why elementtree is not having the namespace facility? ElementTree handles namespaces just fine. So is there a function to generate tags with

Re: Compare source code

2010-10-31 Thread jf
Le 31/10/2010 13:10, Martin v. Loewis a écrit : I've a project with tabs and spaces mixed (yes I know it's bad). I edit each file to remove tabs, but it's so easy to make a mistake. Do you know a tools to compare the initial file with the cleaned one to know if the algorithms are the same ?

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

2010-10-31 Thread Zeynel
On Oct 31, 3:00 am, Richard Thomas chards...@gmail.com wrote: On Oct 31, 5:42 am, Zeynel azeyn...@gmail.com wrote: class Rep(db.Model):     author = db.UserProperty()     replist = db.ListProperty(str)     unique = db.ListProperty(str)     date = db.DateTimeProperty(auto_now_add=True)

Py3: Import relative path module

2010-10-31 Thread Gnarlodious
I am loathe to duplicate programming in files that should just load a copy from a module. I tried all kinds of tricks to import a module from one level up. What's the secret? It works if I say: from Data import DumpHT but ONLY if the search path in sys.path. I want a relative path import

import ImageGrab fails on Ubuntu 10.4

2010-10-31 Thread News123
Hi, It's the first time I wanted to use ImageGrab. importing ImageGrab fails as seen below: $ python -c import ImageGrab Traceback (most recent call last): File string, line 1, in module File /usr/lib/python2.6/dist-packages/PIL/ImageGrab.py, line 34, in module import _grabscreen

Re: import ImageGrab fails on Ubuntu 10.4

2010-10-31 Thread News123
On 10/31/2010 05:04 PM, News123 wrote: importing ImageGrab un Ubuntu 10.4 fails as seen below: import _grabscreen ImportError: No module named _grabscreen Well I found a partial answer on http://www.pythonware.com/library/pil/handbook/imagegrab.htm The ImageGrab module can be used

Re: Py3: Import relative path module

2010-10-31 Thread Дамјан Георгиевски
I am loathe to duplicate programming in files that should just load a copy from a module. I tried all kinds of tricks to import a module from one level up. What's the secret? It works if I say: from Data import DumpHT but ONLY if the search path in sys.path. I want a relative path

text file reformatting

2010-10-31 Thread iwawi
I have this fixed width data file (data.txt) which I would like to reformat. Data is something like this, with hundreds of rows and columns, every row finishes to END: PRJ01001 4 00100END PRJ01002 3 00110END PRJ01003 3 00120END PRJ01004 2 00130END PRJ01005 1 00140END PRJ01006 1 00150END PRJ01007

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

2010-10-31 Thread Zeynel
On Oct 31, 5:52 am, Dave Angel da...@ieee.org wrote: On 2:59 PM, Zeynel wrote: 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

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

2010-10-31 Thread Richard Thomas
On Oct 31, 7:04 pm, Zeynel azeyn...@gmail.com wrote: On Oct 31, 5:52 am, Dave Angel da...@ieee.org wrote: On 2:59 PM, Zeynel wrote: class Rep(db.Model):      author = db.UserProperty()      replist = db.ListProperty(str)      unique = db.ListProperty(str)      date =

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

2010-10-31 Thread Benjamin Kaplan
On Sun, Oct 31, 2010 at 3:04 PM, Zeynel azeyn...@gmail.com wrote:        Rep().replist = L        Rep().put()        query = Rep.all()        for result in query:            self.response.out.write(result.replist) The output of this is: [u'a', u'b'][u'a', u'b'][u'a', u'b']. . . So,

Re: text file reformatting

2010-10-31 Thread Tim Chase
PRJ01001 4 00100END PRJ01002 3 00110END I would like to pick only some columns to a new file and put them to a certain places (to match previous data) - definition file (def.csv) could be something like this: VARIABLEFIELDSTARTS FIELD SIZE NEW PLACE IN NEW DATA FILE ProjID ;

RE: text file reformatting

2010-10-31 Thread Braden Faulkner
I also am having issues with this. Date: Sun, 31 Oct 2010 14:48:09 -0500 From: python.l...@tim.thechases.com To: iwawi...@gmail.com Subject: Re: text file reformatting CC: python-list@python.org PRJ01001 4 00100END PRJ01002 3 00110END I would like to pick only some columns to a

Re: Compare source code

2010-10-31 Thread Alan Harris-Reid
Hi jf, I use Beyond Compare (by Scooter Software) for comparing text files and find it an indespensible tool. You can configure it so that it ignores tabs/whitespace, or treats spaces and tabs as different characters. Not sure if it will work with compiled .pyc files, though (but then you

Re: text file reformatting

2010-10-31 Thread Tim Chase
On 10/31/10 14:52, Braden Faulkner wrote: import csv f = file('def.csv', 'rb') f.next() # discard the header row r = csv.reader(f, delimiter=';') fields = [ (varname, slice(int(start), int(start)+int(size)), width) for varname, start, size, width in r

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-31 Thread Fabio Zadrozny
On Mon, Oct 4, 2010 at 5:03 AM, TheOne daewon.y...@gmail.com wrote: Hi. I installed eclipse/pydev today. I created a pydev project and added python source files with utf-8 BOM. Eclipse/Pydev reports lexical error :  Lexical error at line 1, column 1. Encountered: \ufeff (65279), after :

RE: text file reformatting

2010-10-31 Thread Braden Faulkner
Sorry to clarify, I was having issues getting this to work. I'm relatively new to Python. Sorry for the miscommunication. Date: Sun, 31 Oct 2010 16:13:42 -0500 From: python.l...@tim.thechases.com To: brad...@hotmail.com CC: python-list@python.org Subject: Re: text file reformatting On

Re: A bug for raw string literals in Py3k?

2010-10-31 Thread John Machin
On Oct 31, 11:23 pm, Yingjie Lan lany...@yahoo.com wrote: So I suppose this is a bug? It's not, see http://docs.python.org/py3k/reference/lexical_analysis.html#literals # Specifically, a raw string cannot end in a single backslash Thanks! That looks weird to me ... doesn't this

Re: text file reformatting

2010-10-31 Thread cbr...@cbrownsystems.com
On Oct 31, 12:48 pm, Tim Chase python.l...@tim.thechases.com wrote: PRJ01001 4 00100END PRJ01002 3 00110END I would like to pick only some columns to a new file and put them to a certain places (to match previous data) - definition file (def.csv) could be something like this:

Re: no line breaks in xml file with elementTree

2010-10-31 Thread Diez B. Roggisch
hackingKK hackin...@gmail.com writes: On Sunday 31 October 2010 01:58 PM, Lawrence D'Oliveiro wrote: In messagemailman.412.1288509358.2218.python-l...@python.org, hackingKK wrote: I want to know if there is a way to have the ElementTree module write to an xml file with line breaks?

Re: Compare source code

2010-10-31 Thread Martin v. Loewis
Should I be worry about this comment in reindent.py So long as the input files get a clean bill of health from tabnanny.py, reindent should do a good job. ? I don't think so: IIUC, this is about comments that are not reasonably aligned with preceding or following code lines, most likely, you

Re: A bug for raw string literals in Py3k?

2010-10-31 Thread Ben Finney
John Machin sjmac...@lexicon.net writes: On Oct 31, 11:23 pm, Yingjie Lan lany...@yahoo.com wrote: Thanks! That looks weird to me ... doesn't this contradict with: All backslashes in raw string literals are interpreted literally.

Re: Compare source code

2010-10-31 Thread Lawrence D'Oliveiro
In message 4ccd5ad9$0$19151$426a7...@news.free.fr, jf wrote: I edit each file to remove tabs ... expand -i oldfile newfile Do you know a tools to compare the initial file with the cleaned one to know if the algorithms are the same ? diff -b oldfile newfile --

Re: Python 2.7 or 3.1

2010-10-31 Thread Lawrence D'Oliveiro
In message mailman.395.1288392513.2218.python-l...@python.org, Jorge Biquez wrote: Would you consider a not so intelligent move for a newsbie to Python to have maybe version 2.7 and 3.x (if that's possible to be running together on the same machine) to have them run and be learning mainly in

Re: Exception Handling in Python 3

2010-10-31 Thread Lawrence D'Oliveiro
In message mailman.372.1288353590.2218.python-l...@python.org, Antoine Pitrou wrote: If you want to present exceptions to users in a different way ... sys.stderr.write \ ( Traceback (most recent call last):\n ... AttributeError: blah blah blah ...\n ) --

Re: Pythonic way of saying 'at least one of a, b, or c is in some_list'

2010-10-31 Thread Lawrence D'Oliveiro
In message 4cca5aaf$0$1600$742ec...@news.sonic.net, John Nagle wrote: This is cheaper than intersection ... All together now: “PREMATURE OPTIMIZATION IS THE ROOT OF ALL EVIL!” -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonic way of saying 'at least one of a, b, or c is in some_list'

2010-10-31 Thread Lawrence D'Oliveiro
In message 687bcb76-0093-4d68-ba56-0390a3e1e...@30g2000yql.googlegroups.com, cbr...@cbrownsystems.com wrote: I should note that efficiency is not an issue to me here; this is for when you have, say, a list user_options of at most around 15 options or so, and you want to perform some action if

Re: Pythonic way of saying 'at least one of a, b, or c is in some_list'

2010-10-31 Thread cbr...@cbrownsystems.com
On Oct 31, 4:27 pm, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message 687bcb76-0093-4d68-ba56-0390a3e1e...@30g2000yql.googlegroups.com, cbr...@cbrownsystems.com wrote: I should note that efficiency is not an issue to me here; this is for when you have, say, a list

[Beginer Question] I heard about python needing some sort of _VariableName_ boiler plate?

2010-10-31 Thread Braden Faulkner
Can anyone explain to me how this works, I don't seem to have to do it in IDLE? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: [Beginer Question] I heard about python needing some sort of _VariableName_ boiler plate?

2010-10-31 Thread Chris Rebert
On Sun, Oct 31, 2010 at 7:09 PM, Braden Faulkner brad...@hotmail.com wrote: I heard about python needing some sort of _VariableName_ boiler plate? Can anyone explain to me how this works, I don't seem to have to do it in IDLE? Your question is extremely vague. Please give more details.

Re: A bug for raw string literals in Py3k?

2010-10-31 Thread Yingjie Lan
All backslashes in raw string literals are interpreted literally. (seehttp://docs.python.org/release/3.0.1/whatsnew/3.0.html): All backslashes in syntactically-correct raw string literals are interpreted literally. That's a good way of putting it. Syntactical correctness

Re: [Beginer Question] I heard about python needing some sort of_VariableName_ boiler plate?

2010-10-31 Thread bradenf
Sorry, to clarify I heard that when you declare a variable in python you have to use some sort of standard boiler plate _variable_ however this has not been my experience using IDLE so is this even true? Thanks! --Original Message-- From: Chris Rebert Sender: ch...@rebertia.com To:

Re: A bug for raw string literals in Py3k?

2010-10-31 Thread MRAB
On 01/11/2010 03:30, Yingjie Lan wrote: All backslashes in raw string literals are interpreted literally. (seehttp://docs.python.org/release/3.0.1/whatsnew/3.0.html): All backslashes in syntactically-correct raw string literals are interpreted literally. That's a good way of putting it.

Re: I heard about python needing some sort of _VariableName_ boiler plate?

2010-10-31 Thread rantingrick
On Oct 31, 10:18 pm, Chris Rebert c...@rebertia.com wrote: On Sun, Oct 31, 2010 at 7:09 PM, Braden Faulkner brad...@hotmail.com wrote: I heard about python needing some sort of _VariableName_ boiler plate? Can anyone explain to me how this works, I don't seem to have to do it in IDLE? Oh

Re: I heard about python needing some sort of_VariableName_ boiler plate?

2010-10-31 Thread rantingrick
On Oct 31, 10:37 pm, brad...@hotmail.com wrote: Sorry, to clarify I heard that when you declare a variable in python you have to use some sort of standard boiler plate _variable_ however this has not been my experience using IDLE so is this even true? Halloween night and i am bored... hmm...

Re: I heard about python needing some sort of_VariableName_ boiler plate?

2010-10-31 Thread rantingrick
Brad, Serously, i have never heard of any boilerplate variables in Python. Could you show us an example using Python code that compiles? Of could you even show us some puesdo that resembles any thing that you are suggesting? I am perplexed! Is this a troll or are you really serious? --

Re: A bug for raw string literals in Py3k?

2010-10-31 Thread Yingjie Lan
According to msg56377, the behaviour is optimal for regular expressions. Well, I use regular expressions a lot, and I still think it's a nuisance! Thanks for bringing that up. Using an otherwise 'dead' backlash to escape quotes in raw strings seems like the black magic of necromancy to me.

Re: [Beginer Question] I heard about python needing some sort of_VariableName_ boiler plate?

2010-10-31 Thread James Mills
On Mon, Nov 1, 2010 at 1:37 PM, brad...@hotmail.com wrote: Sorry, to clarify I heard that when you declare a variable in python you have to use some sort of standard boiler plate _variable_ however this has not been my experience using IDLE so is this even true? Boilerplate, what

Re: [Beginer Question] I heard about python needing some sort of_VariableName_ boiler plate?

2010-10-31 Thread Ben Finney
brad...@hotmail.com writes: Sorry, to clarify I heard that when you declare a variable in python you have to use some sort of standard boiler plate _variable_ however this has not been my experience using IDLE so is this even true? I don't know what “some sort of boiler plate _variable_”

with block for multiple files

2010-10-31 Thread Yingjie Lan
Hi, Suppose I am working with two files simultaneously, it might make sense to do this: with open('scores.csv'), open('grades.csv', wt) as f,g: g.write(f.read()) sure, you can do this with nested with-blocks, but the one above does not seem too complicated, it is like having a multiple

Re: with block for multiple files

2010-10-31 Thread Chris Rebert
On Sun, Oct 31, 2010 at 10:03 PM, Yingjie Lan lany...@yahoo.com wrote: Hi, Suppose I am working with two files simultaneously, it might make sense to do this: with open('scores.csv'), open('grades.csv', wt) as f,g:     g.write(f.read()) sure, you can do this with nested with-blocks, but

Re: with block for multiple files

2010-10-31 Thread James Mills
On Mon, Nov 1, 2010 at 3:03 PM, Yingjie Lan lany...@yahoo.com wrote: with open('scores.csv'), open('grades.csv', wt) as f,g:     g.write(f.read()) One could write their own ContextManager here... cheers James -- -- James Mills -- -- Problems are solved by method --

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

2010-10-31 Thread Jacques Grove
Jacques Grove jacq...@tripitinc.com added the comment: And another, bit less pathological, testcase. Sorry for the ugly testcase; it was much worse before I boiled it down :-) $ cat test.py import re, regex text = \nTest\nxyz\nxyz\nEnd regexp = '(\nTest(\n+.+?){0,2}?)?\n+End' print

[issue5729] Allows tabs for indenting JSON output

2010-10-31 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Updated and applied in r86022. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5729

[issue10260] Add a threading.Condition.wait_for() method

2010-10-31 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- title: Add a thrading.Condition.wait_for() method - Add a threading.Condition.wait_for() method ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10260

[issue9974] tokenizer.untokenize not invariant with line continuations

2010-10-31 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: My patch handles the described situation, albeit a bit poorly ... Let us know when you've got a cleaned-up patch and have run the round-trip tests on a broad selection of files. For your test case, don't feel compelled to

[issue10261] tarfile iterator without members caching

2010-10-31 Thread Karsten Wolf
New submission from Karsten Wolf karste...@web.de: It would be helpful to have a tarfile iterator that does not cache every archive member encountered. This makes it nearly impossible to iterate over an archive with millions of files. -- components: Library (Lib) messages: 120041

[issue10261] tarfile iterator without members caching

2010-10-31 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: I assume you're using Python 2.x. because tarfile's memory footprint was significantly reduced in Python 3.0, see the patch in issue2058 and r62337. This patch was not backported to the 2.x branch back then. As the 2.x branch has been closed

[issue10261] tarfile iterator without members caching

2010-10-31 Thread Karsten Wolf
Karsten Wolf karste...@web.de added the comment: Yes, I'm on 2.6. I checked the Python 3.x tarfile just for this one line in TarFile.next(): self.members.append(tarinfo) to conclude it would have the same problem. Reducing 2.5gb memory usage as measured in my particular case by 60%, still

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

2010-10-31 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/issue10254 ___

[issue10261] tarfile iterator without members caching

2010-10-31 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- type: feature request - resource usage versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10261 ___

[issue10262] Add --disable-abi-flags option to `configure`

2010-10-31 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: Some packagers might want to disable ABI flags. The attached patch adds --disable-abi-flags option to `configure`. -- components: Build files: python-abi-flags.patch keywords: patch messages: 120044 nosy:

[issue10263] python -m site does not print path details

2010-10-31 Thread Doug Hellmann
New submission from Doug Hellmann doug.hellm...@gmail.com: Running python -m site is supposed to print a report about the current import path and its components (like USER_BASE and USER_SITE). This works under 2.6 and 3.1, but not 2.7. No output is produced under 2.7 at all. When I add a

[issue10258] Fix resource warnings in test_tokenize

2010-10-31 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: Fixing title. -- title: Fix resource warnings in distutil test_tokenize - Fix resource warnings in test_tokenize ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10258

[issue10263] python -m site does not print path details

2010-10-31 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +eric.araujo, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10263 ___ ___

[issue10264] Fix resource warnings in test_smtplib

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

[issue9561] distutils: set encoding to utf-8 for input and output files

2010-10-31 Thread Mike Auty
Changes by Mike Auty mike.a...@gmail.com: -- nosy: +ikelos ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9561 ___ ___ Python-bugs-list mailing

[issue10263] python -m site does not print path details

2010-10-31 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Since it works for me (I tried both r84120, my old 2.7 build from August or so, and r86033, which is the 2.7 head), we'll need more information. The starting blurb from the interactive prompt would be a good place to start. (-m was slightly

[issue10265] Fix fd leak in sunau

2010-10-31 Thread Brian Brazil
New submission from Brian Brazil brian.bra...@gmail.com: Please see attached. It's possible that this change will lead to fds leaking if someone is passing in a fd, however a) this is consistent with how other modules (e.g. uu) do it and b) of the 2 (!) uses of this module I found on Google

[issue6715] xz compressor support

2010-10-31 Thread Per Øyvind Karlsen
Per Øyvind Karlsen peroyv...@mandriva.org added the comment: I've uploaded a new version of the patch to http://codereview.appspot.com/2724043/ now. I'd be okay on doing maintenance directly against the CPython repository btw. :) -- ___ Python

[issue10265] Fix fd leak in sunau

2010-10-31 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Forget the attachment? -- nosy: +brian.curtin type: - resource usage versions: +Python 3.2 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10265

[issue10263] python -m site does not print path details

2010-10-31 Thread Doug Hellmann
Doug Hellmann doug.hellm...@gmail.com added the comment: I downloaded an OS X installer from python.org, but I don't remember the date I did that. Here's the output when I start the interpreter: $ which python /Library/Frameworks/Python.framework/Versions/2.7/bin/python $ python Python 2.7

[issue10263] python -m site does not print path details

2010-10-31 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Note also that site.py runs twice when used with -m: once implicitly during interpreter startup, and a second time as the main module. Due to the way the interpreter starts up and figures out sys.path, it is possible for the implicit import

[issue10266] uu.decode fd leak if in_file is a filename

2010-10-31 Thread Brian Brazil
New submission from Brian Brazil brian.bra...@gmail.com: I missed this when fixing issue 10246. The attached patch fixes this and adds a test that produces a resource warning with the old code. -- components: Library (Lib) files: uu_decode_fd_leak.patch keywords: patch messages: 120054

[issue10263] python -m site does not print path details

2010-10-31 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10263 ___ ___ Python-bugs-list

[issue10263] python -m site does not print path details

2010-10-31 Thread Doug Hellmann
Doug Hellmann doug.hellm...@gmail.com added the comment: Actually I'm trying to update the PyMOTW article about site, and I discovered that the output from the old examples that showed using --user-base and --user-site were no longer producing any output. It looks like the build of 2.7 I

[issue10265] Fix fd leak in sunau

2010-10-31 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: That'd help alright. -- keywords: +patch Added file: http://bugs.python.org/file19446/sunau_fd_leak.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10265

[issue10263] python -m site does not print path details

2010-10-31 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: r82508 is the correct release binary (created after the error I mentioned above was fixed). I've CC'ed Ronald to see if he can shed any light - it may be a platform specific issue with the way sys.path is calculated. --

[issue10263] python -m site does not print path details

2010-10-31 Thread Doug Hellmann
Doug Hellmann doug.hellm...@gmail.com added the comment: Ah, I assumed that since the revision number was older there might be a newer build available now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10263

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

2010-10-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The PyUnicode_GET_SIZE issue was still there, but I've fixed it and committed in r86036. Thanks for your contribution! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue10263] python -m site does not print path details

2010-10-31 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: No, there won't be another binary release until 2.7.1 comes out. The SVN revision number ratchets up pretty fast, since it is counting checkins on *all* branches, even experimental ones. -- ___

[issue10265] Fix fd leak in sunau

2010-10-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It's possible that this change will lead to fds leaking if someone is passing in a fd I don't think so, why do you say that? That said, there's an indentation problem in your patch. -- nosy: +pitrou

[issue10264] Fix resource warnings in test_smtplib

2010-10-31 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +giampaolo.rodola, r.david.murray stage: - patch review type: - resource usage ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10264 ___

[issue10266] uu.decode fd leak if in_file is a filename

2010-10-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Now that the previous patch has been committed, could you post a patch against current SVN? -- nosy: +pitrou type: - resource usage versions: +Python 3.2 -Python 3.3 ___ Python tracker

[issue10241] gc fixes for module m_copy attribute

2010-10-31 Thread Neil Schemenauer
Neil Schemenauer nas-pyt...@arctrix.com added the comment: Oops, my patch doesn't work since m_base can be shared by more than one module instance. I guess a different solution would be to cleanup the m_copy references on interpreter shutdown. Somehow they would have to be found though.

[issue10266] uu.decode fd leak if in_file is a filename

2010-10-31 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: The patch is against current SVN. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10266 ___

[issue10266] uu.decode fd leak if in_file is a filename

2010-10-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oops, sorry. I hadn't seen that this was about a different function. I've committed the patch in r86037. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10265] Fix fd leak in sunau

2010-10-31 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: Currently, if you pass in a fd it'll be closed by the __del__. My patch no longer does this so any use of the module depending on this behaviour could leak an fd. However, noone seems to use the module that way. V2 attached. --

[issue10267] test_ttk_guionly leaks many references

2010-10-31 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This can be seen on all 3 branches: $ ./python -m test.regrtest -uall -R 3:2 test_ttk_guionly [306/349] test_ttk_guionly beginning 5 repetitions 12345 . test_ttk_guionly leaked [590, 590] references, sum=1180 -- components: Tkinter

[issue9685] tuples should remember their hash value

2010-10-31 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: rhettinger - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9685 ___

[issue6715] xz compressor support

2010-10-31 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: After starting to review the code, I'm becoming skeptical whether this is the right approach. This does way to much action in C, and thus becomes complicated but also limited. An alternative approach would be to just expose lzma_code to

[issue10268] Add --enable-loadable-sqlite-extensions option to `configure`

2010-10-31 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: I would like to suggest introduction of --enable-loadable-sqlite-extensions option, so that packagers (and maybe other users) don't need to comment out 1 line in setup.py. I'm attaching the patch. --

[issue10268] Add --enable-loadable-sqlite-extensions option to `configure`

2010-10-31 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: r86045 -- nosy: +benjamin.peterson resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10268

[issue10264] Fix resource warnings in test_smtplib

2010-10-31 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: r86046. Thanks -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10264

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

2010-10-31 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: On Sat, Oct 30, 2010 at 06:04, Antoine Pitrou rep...@bugs.python.org wrote: 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. Or not at all. I honestly have

[issue10110] Queue doesn't recognize it is full after shrinking maxsize

2010-10-31 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Applied in r86049. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10110 ___

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

2010-10-31 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: The garbage collector should take care of the vast majority of these, it's only bugs in the C like issue 10253 that I'd worry about. -- ___ Python tracker rep...@bugs.python.org

[issue9846] ZipExtFile provides no mechanism for closing the underlying file object

2010-10-31 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: A fix to this would help silence a number of ResourceWarning messages coming out of the test suite. -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9846

[issue10025] random.seed not initialized as advertised

2010-10-31 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Removed the inaccurate description. See r86053. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10025

  1   2   >