[ANN] Call for Papers: Workshop Python for High Performance and Scientific Computing

2010-11-20 Thread Andreas.Schreiber
Workshop Python for High Performance and Scientific Computing June 1-3, 2011, Tsukuba, Japan part of The International Conference on Computational Science (ICCS 2011) http://www.dlr.de/sc/iccs2011 === Call for Papers === Introduction Python is an accepted

constructin trees in python

2010-11-20 Thread Maxim Mercury
Hi , Iam very much new to python. Iam trying to construct a xml dom tree using the builtin HTMLParser class (on data event callbacks). Iam maintaining the childs as a list of elements and whenver the sax parser encounters a tag i push it to a local stack, my basic logic is below. **

Re: constructin trees in python

2010-11-20 Thread Peter Otten
Maxim Mercury wrote: here is the definintion of htmlelement class HTMLElement: tag=None attrs={} data='' childs=[] the issue is the though new elements are pushed in the stack (1), whenever i append the child to the stack top all other elements in the stack is getting

Re: what's the precision of fractions.Fraction?

2010-11-20 Thread Arnaud Delobelle
Peter Pearson ppear...@nowhere.invalid writes: On Fri, 19 Nov 2010 07:29:59 -0800 (PST), RJB rbott...@csusb.edu wrote: Does Fractions remove common factors the way it should? If it does and you want to find the closest fraction with a smaller denominator i think tou'll need some number

Is it possible to use Google's advanced search options?

2010-11-20 Thread Petar Milin
Hello! Can anyone help me with getting number of hits from Google, but with restricton on domain (e.g., .edu) and language (e.g., lang_de)? I have tried with the Pygoogle (from: http://code.google.com/p/pygoogle/

Re: what's the precision of fractions.Fraction?

2010-11-20 Thread Mark Dickinson
On Nov 19, 3:29 pm, RJB rbott...@csusb.edu wrote: Does Fractions remove common factors the way it should? If it does and you want to find the closest fraction with a smaller denominator i think tou'll need some number theory and continued fractions. Or perhaps just use the existing

Re: Is it possible to use Google's advanced search options?

2010-11-20 Thread Stefan Sonnenberg-Carstens
Am 20.11.2010 10:37, schrieb Petar Milin: Hello! Can anyone help me with getting number of hits from Google, but with restricton on domain (e.g., .edu) and language (e.g., lang_de)? I have tried with the Pygoogle (from: http://code.google.com/p/pygoogle/

Re: another newbie question

2010-11-20 Thread Anssi Saari
Roy Smith r...@panix.com writes: I'm still searching for as nice a font to use on Linux. Envy Code R is a lookalike, so maybe worth considering. I haven't tried actual Monaco on Linux, but apparently it's possible. Personally, I use -lfp-gamow-medium-r-*-*-7-*-*-*-*-*-*-* in Linux (Emacs). --

Re: what's the precision of fractions.Fraction?

2010-11-20 Thread Hrvoje Niksic
Mark Dickinson dicki...@gmail.com writes: On Nov 19, 3:29 pm, RJB rbott...@csusb.edu wrote: Does Fractions remove common factors the way it should? If it does and you want to find the closest fraction with a smaller denominator i think tou'll need some number theory and continued fractions.

Re: dict diff

2010-11-20 Thread Steven D'Aprano
On Sat, 20 Nov 2010 01:11:53 -0500, Steve Holden wrote: On 11/19/2010 8:58 PM, Jin Yi wrote: so i came up with a diff method to compare 2 dicts. [...] A PEP *and* some explanation of why you would want such an obscure piece of code built in to the dict object, yes. You've never wanted to

Re: Module locale throws exception: unsupported locale setting

2010-11-20 Thread Sibylle Koczian
Am 19.11.2010 21:27, schrieb Ned Deily: There have been a lot of changes going into Python 3.2, currently in alpha testing, in the areas of encodings and how they affect the interfaces to/from the various platform operating systems Python 3 runs on. It would be very useful if you could try the

Re: what's the precision of fractions.Fraction?

2010-11-20 Thread Peter Otten
Hrvoje Niksic wrote: Mark Dickinson dicki...@gmail.com writes: On Nov 19, 3:29 pm, RJB rbott...@csusb.edu wrote: Does Fractions remove common factors the way it should? If it does and you want to find the closest fraction with a smaller denominator i think tou'll need some number theory

Re: constructin trees in python

2010-11-20 Thread Maxim Mercury
On Nov 20, 2:03 pm, Peter Otten __pete...@web.de wrote: Maxim Mercury wrote: here is the definintion of htmlelement class HTMLElement:     tag=None     attrs={}     data=''     childs=[] the issue is the though new elements are pushed in the stack (1), whenever i append the

R U READY TO DATE WITH HOT COMMITED COUPLES....

2010-11-20 Thread d...@couples
R U READY TO DATE WITH HOT COMMITED COUPLES JUST FOLLOW THE LINK... WE R WAITING http://adultfriendfinder.com/go/g1271112-ppc http://adultfriendfinder.com/go/g1271112-ppc http://adultfriendfinder.com/go/g1271112-ppc http://adultfriendfinder.com/go/g1271112-ppc --

Inserting class namespace into method scope

2010-11-20 Thread Steven D'Aprano
I find myself having need of a class where the class scope is included in the scope of methods in the class. A simple example from Python 3.1: x = outside class Magic: x = inside def method(self): return x I would like Magic().method() to return inside rather than outside.

RE: try to use unicode

2010-11-20 Thread Mikael B
From: mba...@live.se To: python-list@python.org Subject: RE: try to use unicode Date: Sat, 20 Nov 2010 08:49:59 +0100 Date: Sat, 20 Nov 2010 08:47:18 +0100 From: stefan.sonnenb...@pythonmeister.com To: mba...@live.se CC: python-list@python.org Subject: Re: try to use unicode

Weibull distr. random number generation

2010-11-20 Thread Dimos
Dear Python list subscribers, Sorry of this has been covered already...This is a newbie question about actual scripting/syntax. I would like to use the random module, and if I understand well the Random class, to create 1300 decimal numbers in python, by providing the 2 Weibull parameters

Re: Inserting class namespace into method scope

2010-11-20 Thread Duncan Booth
Steven D'Aprano st...@remove-this-cybersource.com.au wrote: But in this specific case I have reasons for wanting to avoid both of the normal behaviours. Do not judge me, please accept that I have a good reason for wanting this, or at least allow me to shoot myself in the foot this way *wink*.

Re: Inserting class namespace into method scope

2010-11-20 Thread Günther Dietrich
Steven D'Aprano st...@remove-this-cybersource.com.au wrote: I find myself having need of a class where the class scope is included in the scope of methods in the class. A simple example from Python 3.1: x = outside class Magic: x = inside def method(self): return x I would

Re: Weibull distr. random number generation

2010-11-20 Thread Mark Dickinson
On Nov 19, 3:21 pm, Dimos dimos_anastas...@yahoo.com wrote: I would like to use the random module, and if I understand well the Random class, to create  1300 decimal numbers in python, by providing the 2 Weibull parameters (b,c). How this can be done??? import random print random

Re: Inserting class namespace into method scope

2010-11-20 Thread Emile van Sebille
On 11/20/2010 6:59 AM Steven D'Aprano said... I find myself having need of a class where the class scope is included in the scope of methods in the class. A simple example from Python 3.1: x = outside class Magic: x = inside def method(self): return x I would like

Re: another newbie question

2010-11-20 Thread Slie
I really enjoyed it when I put the MacOsx font on my Ubuntu or any other. Anssi Saari a...@sci.fi wrote: Roy Smith r...@panix.com writes: I'm still searching for as nice a font to use on Linux. Envy Code R is a lookalike, so maybe worth considering. I haven't tried actual Monaco on Linux,

Installing pysqlite on Win64

2010-11-20 Thread Navid Parvini
Dear All, I want to install pysqlite on my Windows 64 bit machine. I have python 2.4.3 on it. Would you please let me know how can I do it? That is, I need to use the source file (i.e pysqlite-2.5.6.tar.gz) or there is an executable file to install. Thank you in advance. Regards, Navid

Printing from Web Page

2010-11-20 Thread Victor Subervi
Hi; I need to be able to print something from a Web page: not the entire page but what I specify. I am writing the page and the client is surfing to it. How do I do this? TIA, beno -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 86, Issue 176

2010-11-20 Thread Petar Milin
Thanks so much! However, 'options lang:de' does not exactly the same as would 'lr=lang_de'? Am I right? Since I need number of hits, I would like to have the best, most correct values! :-) Sincerely, PM On Sat, Nov 20, 2010 at 12:00 PM, python-list-requ...@python.org wrote: Send Python-list

Re: Is Unladen Swallow dead?

2010-11-20 Thread Stefan Behnel
Mark Wooding, 19.11.2010 02:35: John Nagle writes: This has been pointed out many times by many people. There's even a PhD thesis on the topic. Without a few restrictions, so that a compiler can at least tell when support for the hard cases is needed, Python cannot be compiled well.

Re: dict diff

2010-11-20 Thread Jin Yi
right. i moved to a 2-value tuple return value basically to illustrate exactly where each dict is providing a different value. it turns out to be much easier to grok than the 3-value one since it's all there and lines up correctly with the inputs... On Sat, Nov 20, 2010 at 12:00:16PM +,

Re: Does Pygoogle allows for advanced search options?

2010-11-20 Thread Chris Rebert
On Thu, Nov 18, 2010 at 3:26 AM, neocortex pmi...@gmail.com wrote: The library doesn't seem to have built-in support for filtering by language (and Google lacks a search query-string-based operator for that), but it looks like you could implement that feature by adding an lr parameter with an

Re: Inserting class namespace into method scope

2010-11-20 Thread Ben Finney
Steven D'Aprano st...@remove-this-cybersource.com.au writes: I also understand that the usual way of getting this would be to return self.x or self.__class__.x from method, instead of x. Again, normally I would do this. But in this specific case I have reasons for wanting to avoid both of

Where's the bug? (cPickle/thread edition) (was Re: How to optimize and monitor garbage collection?)

2010-11-20 Thread Aahz
In article mailman.214.1287979505.2218.python-l...@python.org, Steve Holden st...@holdenweb.com wrote: [aside: in general, if you think your program is not working because of a bug in Python, look harder at your program]. Good advice, I certainly agree with you. But sometimes it's not so

building a web interface

2010-11-20 Thread Shel
Hello, I am pretty new to all this. I have some coding experience, and am currently most comfortable with Python. I also have database design experience with MS Access, and have just created my first mySQL db. So right now I have a mySQL db structure and some Python code. My end goal is to

Re: Installing pysqlite on Win64

2010-11-20 Thread Philip Semanchuk
On Nov 20, 2010, at 12:37 PM, Navid Parvini wrote: Dear All, I want to install pysqlite on my Windows 64 bit machine. I have python 2.4.3 on it. Would you please let me know how can I do it? That is, I need to use the source file (i.e pysqlite-2.5.6.tar.gz) or there is an executable

Re: dict diff

2010-11-20 Thread geremy condra
On Sat, Nov 20, 2010 at 4:00 AM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Sat, 20 Nov 2010 01:11:53 -0500, Steve Holden wrote: On 11/19/2010 8:58 PM, Jin Yi wrote: so i came up with a diff method to compare 2 dicts. [...] A PEP *and* some explanation of why you would

Persistent Database Cursors

2010-11-20 Thread Navkirat Singh
Hi Guys, I am having trouble with database cursors. I am using py-postgresql cursors to fetch data over HTTP. I want to be able to refer to the cursor over multiple HTTP requests. Any light on this matter would be of great help. Regards, Nav --

Installed modules from Synaptic in Ubuntu problem

2010-11-20 Thread goldtech
Hi, Using Ubuntu linux 9.04 and have python 2.6. I'm trying to add a module from the synaptic installer. It's µTidylib a wrapper for HTML Tidy. It installed with out a problem, when I do a $ help ('modules') I see a module called tidy. But when I do an import tidy in a script I get an error...

Re: building a web interface

2010-11-20 Thread Martin Gregorie
On Sat, 20 Nov 2010 14:40:16 -0800, Shel wrote: Hello, I am pretty new to all this. I have some coding experience, and am currently most comfortable with Python. I also have database design experience with MS Access, and have just created my first mySQL db. So right now I have a mySQL

Re: building a web interface

2010-11-20 Thread Stef Mientki
On 20-11-2010 23:40, Shel wrote: Hello, I am pretty new to all this. I have some coding experience, and am currently most comfortable with Python. I also have database design experience with MS Access, and have just created my first mySQL db. So right now I have a mySQL db structure and

Re: Inserting class namespace into method scope

2010-11-20 Thread Steven D'Aprano
On Sun, 21 Nov 2010 08:59:30 +1100, Ben Finney wrote: C'mon, Steven, you know the drill. If you want us to help you solve a problem, don't start with “I want to use this behaviour that seems loony, and I won't say why”. Instead, help us by telling us what problem you're trying to solve.

CGI FieldStorage instances?

2010-11-20 Thread Gnarlodious
I'm having a hard time understanding this, can someone explain? Running a CGI with query string: ?action=Findpage=Data Script includes these lines: form=cgi.FieldStorage(keep_blank_values=1) print(Content-type:text/html\n\n) print(cgi.print_form(form)) Output: Form Contents: action: class

Re: building a web interface

2010-11-20 Thread Shel
X-No-Archive:Thanks for your advice. Will take a look at rickadamsadventure.org. Although I am not actually creating an adventure game, I'm sure it will be helpful. Sorry I wasn't clear about the db part. Most of the data has already been written and/or generated and tested with the code. I

Re: Inserting class namespace into method scope

2010-11-20 Thread Ben Finney
Steven D'Aprano st...@remove-this-cybersource.com.au writes: I have a bunch of related functions and objects which are private to a module, with a single public function that acts as the API to those functions. I'd like to have these private functions in a namespace, separate from the rest of

Re: building a web interface

2010-11-20 Thread Shel
Thanks for your help. I know that they have Python and mySQL. They have mySQL set up so that they just have to create the db, which they've already done and I've defined the tables and modified the data and whatnot, so that seems good. Not sure about mod-python v. mod-wsgi. Ah, the Django

Re: building a web interface

2010-11-20 Thread Shel
Thanks for your help. I know that they have Python and mySQL. They have mySQL set up so that they just have to create the db, which they've already done and I've defined the tables and modified the data and whatnot, so that seems good. Not sure about mod-python v. mod-wsgi. Ah, the Django

Re: building a web interface

2010-11-20 Thread Shel
This looks very promising. Thanks so much! Shel On Nov 20, 4:36 pm, Stef Mientki stef.mien...@gmail.com wrote: On 20-11-2010 23:40, Shel wrote: Hello, I am pretty new to all this. I have some coding experience, and am currently most comfortable with Python.  I also have database design

Re: Printing from Web Page

2010-11-20 Thread Hidura
Explain better what you try to do. 2010/11/20, Victor Subervi victorsube...@gmail.com: Hi; I need to be able to print something from a Web page: not the entire page but what I specify. I am writing the page and the client is surfing to it. How do I do this? TIA, beno -- Enviado desde mi

Re: building a web interface

2010-11-20 Thread Ian Kelly
On 11/20/2010 3:40 PM, Shel wrote: So right now I have a mySQL db structure and some Python code. My end goal is to create a browser-based interactive fiction/game thing. My code is currently just using dummy data rather than pulling in data from the db, but I think/hope it won't be too big of a

Pickling a database cursor?

2010-11-20 Thread Navkirat Singh
Hi Guys, Is there any way to pickle a database cursor? I would like a persistent cursor over multiple HTTP requests. Any help would be awesome ! Nav -- http://mail.python.org/mailman/listinfo/python-list

Re: Pickling a database cursor?

2010-11-20 Thread Chris Rebert
On Sat, Nov 20, 2010 at 10:08 PM, Navkirat Singh navkir...@gmail.com wrote: Hi Guys, Is there any way to pickle a database cursor? I would like a persistent cursor over multiple HTTP requests. Any help would be awesome ! You can't. It's like a file handle in that respect. Cheers, Chris --

[issue10399] AST Optimization: inlining of function calls

2010-11-20 Thread Alex
Alex alex.gay...@gmail.com added the comment: There are a couple places you mention not doing the optimization when specific functions are used (e.g. dir, globals, locals), how exactly do you verify that, given those functions could be bound to any name? --

[issue10464] netrc module not parsing passwords containing #s.

2010-11-20 Thread the_isz
New submission from the_isz the_...@gmx.de: The netrc module stops parsing passwords at # characters, which can be part of passwords. Tested with Python 2.7 and 3.1. -- components: Extension Modules messages: 121598 nosy: the_isz priority: normal severity: normal status: open title:

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-20 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Force it to export that 'round' symbol in the core, perhaps? Sure. That might involve first understanding why it's not being exported. That's where I'm a bit stuck, especially without a Solaris system to test on. If someone can figure

[issue10450] Fix markup in Misc/NEWS

2010-11-20 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I ran Misc/NEWS through rst2hml, and apart from unknown python-specific interpreter roles, there are two warnings: Misc/NEWS:64: (WARNING/2) Inline strong start-string without end-string. Misc/NEWS:128: (WARNING/2) Inline emphasis start-string

[issue10450] Fix markup in Misc/NEWS

2010-11-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10450 ___ ___

[issue10450] Fix markup in Misc/NEWS

2010-11-20 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: A fix to Misc/NEWS was committed by Georg in revision 86550. Now Misc/NEWS no longer causes warnings with `rst2html`. Éric - if this is what you meant, the issue can be closed. -- ___ Python tracker

[issue9965] Loading malicious pickle may cause excessive memory usage

2010-11-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Closing as won't fix. -- nosy: +georg.brandl resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9965

[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I will write a codecs.rst for this. Any suggestion of where in c-api/index.html it should be linked? -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org

[issue10325] PY_LLONG_MAX co - preprocessor constants or not?

2010-11-20 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Fixed in r86552. Thanks! -- assignee: - mark.dickinson resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10002] Installer doesn't install on Windows Server 2008 DataCenter R2

2010-11-20 Thread joblack
joblack johannes.bl...@gmail.com added the comment: No it seems a problem of the installation routine. If you have installed a program before Python it sometimes doesn't work. On 11/20/2010 03:59 AM, Brian Curtin wrote: Brian Curtincur...@acm.org added the comment: joblack - are you still

[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Please call it codec.rst. It is probably best placed under utilities. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10439

[issue10465] gzip module calls getattr incorrectly

2010-11-20 Thread Neil Muller
New submission from Neil Muller drnlmuller+b...@gmail.com: gzip._PaddedFile.__getattr__ chains out to getattr, but does so incorrectly (found via running the numpy test suite). The attached patch fixes this. -- files: gzip_getattr.diff keywords: patch messages: 121607 nosy: Neil

[issue10465] gzip module calls getattr incorrectly

2010-11-20 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Add a test demonstrating the error. -- Added file: http://bugs.python.org/file19653/gzip_getattr_test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10465

[issue9920] test_cmath on atan fails on AIX

2010-11-20 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This should now be fixed in r86553. If you have a chance to test and report back, that would be great! -- resolution: - fixed stage: - committed/rejected status: open - pending ___ Python

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-20 Thread Jeremy Thurgood
Jeremy Thurgood fir...@gmail.com added the comment: Attached a patch to test for and fix the first two issues described in this ticket. Basically, it modifies SimpleHTTPRequestHandler.send_head() to operate on a path already stripped of the query string and fragment rather than the

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-20 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10231 ___ ___ Python-bugs-list

[issue2244] urllib and urllib2 decode userinfo multiple times

2010-11-20 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: back-ported to release27-maint in r86554. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2244 ___

[issue10465] gzip module calls getattr incorrectly

2010-11-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks for the catch, fixed in r86555. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10465

[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: While preparing a .rst document for this, I ran into a possible inaccuracy in a comment in codecs.h: /* Lookup the error handling callback function registered under the name error. As a special case NULL can be passed, in which case the

[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yes, apparently the parameter was (intended to be) called error at some point. Can you put the correction in your patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10439

[issue4236] Crash when importing builtin module during interpreter shutdown

2010-11-20 Thread Simon Cross
Simon Cross hodges...@gmail.com added the comment: I'm attaching a patch to relax the check in PyModule_Create2 as suggested by the Amaury (http://bugs.python.org/issue4236#msg75409). The patch uses PyThreadState_Get()-interp-modules == NULL to determine whether the import machinery has been

[issue10466] locale.py throws exception on Windows / Non-UTF8 system

2010-11-20 Thread Sibylle Koczian
New submission from Sibylle Koczian nulla.epist...@web.de: Running locale.py as a module on Windows, using the Python command window, produces this output: C:\Python31\Liblocale.py Locale aliasing: Locale defaults as determined by getdefaultlocale():

[issue10460] Misc/indent.pro does not reflect PEP 7

2010-11-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Done in r86561. Thanks for the report! -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10460

[issue10467] io.BytesIO.readinto() segfaults when used on BytesIO object seeked beyond end.

2010-11-20 Thread Sebastian Hagen
New submission from Sebastian Hagen sh_pyb...@memespace.net: io.BytesIO().readinto() does not correctly handle the case of being called on a BytesIO object that has been seeked past the end of its data. It consequently ends up reading into unallocated memory, and (typically?) segfaulting if

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This is the old issue of casting the result of malloc() -- frowned upon in C, but required in C++. Looking at the Python sources, most uses of PyMem_Malloc seem to have the cast, so it doesn't seem wrong to add one here (where it actually can

[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Submitting a patch. What was touched: 1. Include/codecs.h - minor inaccuracy and inconsistency in a comment 2. Doc/c-api/codec.rst - new reST documentation file for the codecs.h C API 3. Doc/c-api/utilities.rst - for linking to codec.rst, per

[issue8705] shutil.rmtree with empty filepath

2010-11-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Just as an FYI, a similar situation exists on Solaris. I had to fix one of the Python test suite tests once because it was naively trying to rmtree the CWD. -- nosy: +r.david.murray ___

[issue10461] Use with statement throughout the docs

2010-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: with also replaces open-try-do stuff-finally-close, the correct idiom for ensuring file handles are always closes in all VMs. I don’t think the doc style guide is the right place, since this is a code issue. with is advertised in

[issue10464] netrc module not parsing passwords containing #s.

2010-11-20 Thread Xuanji Li
Xuanji Li xua...@gmail.com added the comment: Included test case for the reported bug. Test fails on my machine. Also split up test_case_1 (in order to put in the new test case cleanly) -- keywords: +patch nosy: +xuanji Added file:

[issue10450] Fix markup in Misc/NEWS

2010-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Fixed indeed. Dave: Please open a feature request, this is a good idea. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Éric, although grepping for all such references may be tricky, could you specify the places where you did see them? I guess a few fixed places is better than none at all. -- nosy: +eli.bendersky ___

[issue809163] Can't add files with spaces

2010-11-20 Thread John Keyes
John Keyes johnke...@gmail.com added the comment: I'll change the test to use TESTFN later today. Thanks for the feedback. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue809163 ___

[issue10461] Use with statement throughout the docs

2010-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Certainly. Here is my secret grep: $ cd py3k/Doc $ grep -n --color=auto -d skip -I --exclude-dir .svn --exclude-dir .hg -R open\(.*\).read *.rst c-api distutils documenting extending faq howto library reference tutorial using List without

[issue809163] Can't add files with spaces

2010-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the patch John. Instead of low-level use of TESTFN, you can use distutils.tests.support.TempdirManager to create a temporary directory and write files to it in a few lines. -- assignee: tarek - eric.araujo stage: needs patch

[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Thanks for the patch, it looks good, I have 2 remarks though: - under the name name could be replaced by under the given name. - The *search_function*'s refcount is incremented by this function. This information is not useful to the

[issue10463] Wrong return type for xml.etree.ElementTree.parse()

2010-11-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: works for me - invalid stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10463 ___

[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Eric, I'm attaching a provisional fix for library/atexit.rst just to be sure this is what you mean. -- Added file: http://bugs.python.org/file19659/atexit.rst ___ Python tracker

[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file19660/issue10461.1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10461 ___

[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: Removed file: http://bugs.python.org/file19659/atexit.rst ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10461 ___

[issue10351] Add autocompletion for keys in dictionaries

2010-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I will review your patch later today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10351 ___

[issue10424] better error message from argparse when positionals missing

2010-11-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10424 ___ ___ Python-bugs-list

[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Amaury, Thanks for the review comments. I'm attaching a fixed patch. -- Added file: http://bugs.python.org/file19661/issue10439.2.patch ___ Python tracker rep...@bugs.python.org

[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Please also keep to 3-space indentation in directives. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10439 ___

[issue10461] Use with statement throughout the docs

2010-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Yes, that’s it. Please don’t change whitespace in your patches. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10461 ___

[issue10461] Use with statement throughout the docs

2010-11-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: FWIW, this doesn't belong in the style guide; it is obvious that the docs should exhibit best practice Python code, and using the with statement when opening resources is certainly such a best practice now. -- nosy: +georg.brandl

[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Georg, Thanks. Submitting fixed patch with 3-space indentation in directives. -- Added file: http://bugs.python.org/file19662/issue10439.3.patch ___ Python tracker rep...@bugs.python.org

[issue10461] Use with statement throughout the docs

2010-11-20 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Eric, which whitespace change do you refer to. I changed to 4-spaces indentation in the code sample to conform to PEP-8. Shouldn't I have? -- ___ Python tracker rep...@bugs.python.org

[issue10461] Use with statement throughout the docs

2010-11-20 Thread SilentGhost
SilentGhost michael.mischurow+...@gmail.com added the comment: Here is the patch for Docs/library/cmd.rst -- nosy: +SilentGhost Added file: http://bugs.python.org/file19663/cmd.rst.diff ___ Python tracker rep...@bugs.python.org

[issue10461] Use with statement throughout the docs

2010-11-20 Thread SilentGhost
SilentGhost michael.mischurow+...@gmail.com added the comment: Here is the patch for Doc/library/difflib.rst -- Added file: http://bugs.python.org/file19664/difflib.rst.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10461

[issue10464] netrc module not parsing passwords containing #s.

2010-11-20 Thread Xuanji Li
Changes by Xuanji Li xua...@gmail.com: Removed file: http://bugs.python.org/file19658/issue_10464_testcase.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10464 ___

[issue10439] PyCodec C API is not documented in reST

2010-11-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Reviewed and applied in r86562. Thanks! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10439

[issue10468] Document UnicodeError access functions

2010-11-20 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: There are a couple of functions for accessing UnicodeError subclass properties that are needed e.g. in codec error handlers. They should be documented in exceptions.rst. -- assignee: d...@python components: Documentation messages:

  1   2   3   4   5   >