Re: Am I The Only One Who Keeps Reading “Numpy” as “Numpty”?

2010-11-12 Thread Daniel Fetchinson
As in Numpty Dumpty? Sorry... -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- http://mail.python.org/mailman/listinfo/python-list

Re: How to test if a module exists?

2010-11-12 Thread Tim Chase
On 11/11/10 14:26, Lawrence D'Oliveiro wrote: In messagemailman.843.1289438674.2218.python-l...@python.org, Tim Chase wrote: Amusingly, as others have noted, you replied with an unobfuscated email address. This http://mail.python.org/pipermail/python-list/2010-November/1260153.html would

What is the information I can get?

2010-11-12 Thread ChunLai Zhu
* Hello,I have knew the python mail list neamed python-list@python.org,I want to know what is the information I can get from the mail list?Thank you!* -- *=:-)* *Keep Stupid,Keep Thirsty!* -- http://mail.python.org/mailman/listinfo/python-list

Re: Am I The Only One Who Keeps Reading “Numpy” as “Numpty”?

2010-11-12 Thread Stefan Behnel
rantingrick, 11.11.2010 19:07: On Nov 10, 5:35 pm, Arnaud Delobellearno...@gmail.com wrote: So pypy is pie-pee, not pie-pie or pee-pee. With that edifying thought, I'm off to bed. :) Good catch! Actually i've always thought of pypi as pie-pie and Scipy as cy-pie. Num-pie does not work

Re: os.tmpfile() vs. tempfile.TemporaryFile()

2010-11-12 Thread Carl Banks
On Nov 11, 10:32 am, John Nagle na...@animats.com wrote:    Is there any reason to prefer tempfile.TemporaryFile() over os.tmpfile()?  Both create a nameless temporary file that will be deleted on close. os.tmpfile calls your OS's tmpfile system call. tempfile.TemporaryFile creates the

How can I read the information?

2010-11-12 Thread ChunLai Zhu
Hi, I'm learning the python program language.I get someinformation from the python-list,but I felt boring to read a text-information ,so how can I read the python-list's FAQs quickly? Thank you! -- *=:-)* *Keep Stupid,Keep Thirsty!* -- http://mail.python.org/mailman/listinfo/python-list

Sending changed parameters into nested generators

2010-11-12 Thread John O'Hagan
I have a generator function which takes as arguments another generator and a dictionary of other generators like this: def modgen(gen, gendict): for item in gen(): for k, v in gendict: do_something_called_k(item, v.next()) yield item I want to control the

COM ERROR

2010-11-12 Thread Girish
Hello All, I have an issue while accessing COM API of an application. I got following error when I tried to run following command: win32com.client.Dispatch(app ID) File C:\Python25\Lib\site-packages\win32com\client\__init__.py, line 95, in Dispatch dispatch, userName =

HAI WANT TO MEET FRIENDS FOR REAL FUN, CLICK FRIENDS-4-FUN

2010-11-12 Thread fun for u all
HAI WANT TO MEET FRIENDS FOR REAL FUN, CLICK FRIENDS-4-FUN http://tinyurl.com/friend-4-fun or http://goo.gl/1bour or http://tinyurl.com/friend-4-fun1 -- http://mail.python.org/mailman/listinfo/python-list

argparse '--' not working?

2010-11-12 Thread Neal Becker
It is a 'standard' behaviour that a lone '--' terminates options. argparse says: If you have positional arguments that must begin with '-' and don’t look like negative numbers, you can insert the pseudo-argument '--' which tells parse_args that everything after that is a positional argument:

Re: argparse '--' not working?

2010-11-12 Thread Peter Otten
Neal Becker wrote: It is a 'standard' behaviour that a lone '--' terminates options. argparse says: If you have positional arguments that must begin with '-' and don’t look like negative numbers, you can insert the pseudo-argument '--' which tells parse_args that everything after that is

http-headers for soappy

2010-11-12 Thread Johann Spies
How do I pass the following header Header name: Cookie Header value: [SID=the session identifier] to SOAP.HeaderHandler(): class HeaderHandler: # Initially fail out if there are any problems. def __init__(self, header, attrs): for i in header.__dict__.keys():

Re: is there an Python equivalent for the PHP super globals like $_POST, $_COOKIE ?

2010-11-12 Thread Neil Cerutti
On 2010-11-12, Martin Gregorie mar...@address-in-sig.invalid wrote: On Thu, 11 Nov 2010 13:01:01 -0500, Steve Holden wrote: Moving from one language to anther is not just a matter of transliterating the code. Of you try that you will end up with a messy code base that looks like PHP written

Use company name for module

2010-11-12 Thread Micah Carrick
My company is working on releasing some of our code as open-source python modules. I don't want my foo module conflicting with other modules called foo on PyPi or github or a user's system. Is there anything wrong, from a conventions standpoint, with having modules like company.foo and company.bar

Re: A matter of queues, tasks and multiprocessing

2010-11-12 Thread Emanuele D'Arrigo
On Nov 11, 3:13 pm, Tim Golden m...@timgolden.me.uk wrote: Try Celery    http://ask.github.com/celery/getting-started/introduction.html Thank you Tim, looks very interesting! Manu -- http://mail.python.org/mailman/listinfo/python-list

Re: subprocess.Popen deadlocks

2010-11-12 Thread eraserix
On Nov 12, 6:58 am, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message 2cf9a225-7d1c-4490-8a62-807e79bdd...@n30g2000vbb.googlegroups.com, Why not skip all the threads and just spawn all the processes in your main loop? Then after getting the SIGINT, send that signal to

Re: Use company name for module

2010-11-12 Thread Robert Kern
On 11/12/10 8:12 AM, Micah Carrick wrote: My company is working on releasing some of our code as open-source python modules. I don't want my foo module conflicting with other modules called foo on PyPi or github or a user's system. Is there anything wrong, from a conventions standpoint, with

Re: Sending changed parameters into nested generators

2010-11-12 Thread Ian
On Nov 12, 2:47 am, John O'Hagan resea...@johnohagan.com wrote: I have tried using a deep update function on the original nested dictionary, but this only works if I  change the contents of a list, not if I want to, say, change a node from a list to a dictionary or vice versa, because in that

=== LOAN AND INTERNSHIP PROGRAM ===

2010-11-12 Thread PHP.CCC
=== LOAN AND INTERNSHIP PROGRAM === European Union (EU) allows for the free movement of goods between Italy and other member states: Austria, Belgium, Bulgaria, Cyprus, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Ireland, Latvia, Lithuania, Luxembourg, Malta,

Re: Sending changed parameters into nested generators

2010-11-12 Thread Arnaud Delobelle
John O'Hagan resea...@johnohagan.com writes: I have a generator function which takes as arguments another generator and a dictionary of other generators like this: def modgen(gen, gendict): for item in gen(): for k, v in gendict: do_something_called_k(item,

importing site fails - why?

2010-11-12 Thread Helmut Jarausch
Hi, as often before, I've cloned a working system (GenToo) onto another machine. There, from a livecd and chroot to the cloned root partition python -v import site fails with the following error Python 2.6.6 (r266:84292, Oct 13 2010, 09:06:24) [GCC 4.4.4] on linux2 Type help, copyright,

Re: importing site fails - why?

2010-11-12 Thread Stefan Sonnenberg-Carstens
Am 12.11.2010 19:32, schrieb Helmut Jarausch: Hi, as often before, I've cloned a working system (GenToo) onto another machine. There, from a livecd and chroot to the cloned root partition python -v import site fails with the following error Python 2.6.6 (r266:84292, Oct 13 2010, 09:06:24)

Supporting Python 2.x and 3.x on a PC

2010-11-12 Thread Doug Stell
I support multiple projects, some of which will remain on Python 2.x and some of which want to use Python 3.1.2. While I have installed both on my Windows PC, only the last installed version can be used. I do not have admin rights on the machine, so altering registry settings is not an option. Any

Re: Supporting Python 2.x and 3.x on a PC

2010-11-12 Thread Stefan Sonnenberg-Carstens
Am 12.11.2010 20:05, schrieb Doug Stell: I support multiple projects, some of which will remain on Python 2.x and some of which want to use Python 3.1.2. While I have installed both on my Windows PC, only the last installed version can be used. I do not have admin rights on the machine, so

Re: importing site fails - why?

2010-11-12 Thread Helmut Jarausch
On Fri, 12 Nov 2010 19:42:46 +0100, Stefan Sonnenberg-Carstens wrote: Am 12.11.2010 19:32, schrieb Helmut Jarausch: Hi, as often before, I've cloned a working system (GenToo) onto another machine. There, from a livecd and chroot to the cloned root partition python -v import site fails

Re: importing site fails - why?

2010-11-12 Thread Stefan Sonnenberg-Carstens
Am 12.11.2010 20:24, schrieb Helmut Jarausch: On Fri, 12 Nov 2010 19:42:46 +0100, Stefan Sonnenberg-Carstens wrote: Am 12.11.2010 19:32, schrieb Helmut Jarausch: Hi, as often before, I've cloned a working system (GenToo) onto another machine. There, from a livecd and chroot to the cloned

Newbie question about import arcgisscripting

2010-11-12 Thread Becky Kern
Hi, I'm a brand new Python 2.7 user, attempting to use it to convert a raster file to an ASCII file. I used ArcGis9.3 to create the raster file. My code begins with the line import arcgisscripting However, Python gives an error message ImportError: DLL load failed: The specified module could

Re: Copy Protected PDFs and PIL

2010-11-12 Thread Brett Bowman
To answer various question: MRAB - I've tried worker threads, and it kills the thread only and not the program as a whole. I could use that as a work-around, but I would prefer something more direct, in case other problems arise. Steve Holden - A traceback sounds like a great idea, but I don't

Re: A matter of queues, tasks and multiprocessing

2010-11-12 Thread John Nagle
On 11/10/2010 9:25 AM, Emanuele D'Arrigo wrote: Greetings everybody, I've tried to come up with this message for a couple of weeks now and it doesn't look like I'm getting any clearer in my thoughts so I decided that it's probably best to take the plunge and ask you guys to kindly throw me a

Re: A matter of queues, tasks and multiprocessing

2010-11-12 Thread John Nagle
On 11/12/2010 12:18 PM, John Nagle wrote: On 11/10/2010 9:25 AM, Emanuele D'Arrigo wrote: Greetings everybody, I've tried to come up with this message for a couple of weeks now and it doesn't look like I'm getting any clearer in my thoughts so I decided that it's probably best to take the

Re: Copy Protected PDFs and PIL

2010-11-12 Thread Robert Kern
On 11/12/10 2:00 PM, Brett Bowman wrote: A whoops, good catch. I meant to say gfx and swftools. I'm using PIL to modify the images once I get a PNG from swftools, and I mis-spoke. There is nothing you can do to catch the error. swftools is not written to be used as a Python library, so it

Re: Copy Protected PDFs and PIL

2010-11-12 Thread Emile van Sebille
On 11/12/2010 12:00 PM Brett Bowman said... FATAL PDF disallows copying I ran into something like this about six months ago. IIRC, I was able to detect this setting (using reportlab I think), but a quick look to rediscover what I did specifically didn't yield anything useful. I'm pretty

Re: Copy Protected PDFs and PIL

2010-11-12 Thread Steve Holden
On 11/12/2010 12:00 PM, Brett Bowman wrote: Steve Holden - A traceback sounds like a great idea, but I don't know how to go about it, or know what is involved. Could you suggest a tutorial I could follow? The traceback is the listing of modules and line numbers that you normally get when a

Is a 32-bit build faster than a 64-bit build

2010-11-12 Thread Raymond Hettinger
Has anyone here benchmarked a 32-bit Python versus a 64-bit Python for Django or some other webserver? My hypotheses is that for apps not needing the 64-bit address space, the 32-bit version has better memory utilization and hence better cache performance. If so, then switching python versions

Re: Is a 32-bit build faster than a 64-bit build

2010-11-12 Thread Stefan Sonnenberg-Carstens
Am 12.11.2010 22:24, schrieb Raymond Hettinger: My hypotheses is that for apps not needing the 64-bit address space, the 32-bit version has better memory utilization and hence better cache performance. If so, then switching python versions may enable a single server to handle a greater traffic

Re: Is a 32-bit build faster than a 64-bit build

2010-11-12 Thread Stefan Behnel
Raymond Hettinger, 12.11.2010 22:24: Has anyone here benchmarked a 32-bit Python versus a 64-bit Python for Django or some other webserver? My hypotheses is that for apps not needing the 64-bit address space, the 32-bit version has better memory utilization and hence better cache performance.

Newbie question about python garbage collection when keeping only a reference to an object's member

2010-11-12 Thread George Burdell
My understanding is that any object which is not pointed to by any variable will be automatically deleted. What if I create a class object, but only keep a reference to one of its members, and not a reference to the object itself? What goes on internally in Python? Does Python retain the whole

Re: Newbie question about python garbage collection when keeping only a reference to an object's member

2010-11-12 Thread Robert Kern
On 11/12/10 4:03 PM, George Burdell wrote: My understanding is that any object which is not pointed to by any variable will be automatically deleted. What if I create a class object, but only keep a reference to one of its members, and not a reference to the object itself? What goes on

Re: Newbie question about python garbage collection when keeping only a reference to an object's member

2010-11-12 Thread Steve Holden
On 11/12/2010 2:03 PM, George Burdell wrote: My understanding is that any object which is not pointed to by any variable will be automatically deleted. What if I create a class object, but only keep a reference to one of its members, and not a reference to the object itself? What goes on

Re: Newbie question about python garbage collection when keeping only a reference to an object's member

2010-11-12 Thread Emile van Sebille
On 11/12/2010 2:03 PM George Burdell said... My understanding is that any object which is not pointed to by any variable will be automatically deleted. What if I create a class object, but only keep a reference to one of its members, and not a reference to the object itself? What goes on

Re: How to test if a module exists?

2010-11-12 Thread Steven D'Aprano
On Thu, 11 Nov 2010 16:51:38 -0800, Ethan Furman wrote: Lawrence D'Oliveiro wrote: As for those who persisted in posting my address after being warned of this, I’m still deciding what to do. You can be such an ass sometimes. Sometimes? -- Steven --

drawing with the mouse with turtle

2010-11-12 Thread Brian Blais
I'd like to draw on a turtle canvas, but use the mouse to direct the turtle. I don't see a good way of getting the mouse coordinates and the button state. I tried to do something like this: import turtle def gothere(event): print event.x print event.y turtle.goto(event.x,event.y)

Re: How to test if a module exists?

2010-11-12 Thread Steve Holden
On 11/12/2010 3:51 PM, Steven D'Aprano wrote: On Thu, 11 Nov 2010 16:51:38 -0800, Ethan Furman wrote: Lawrence D'Oliveiro wrote: As for those who persisted in posting my address after being warned of this, I’m still deciding what to do. You can be such an ass sometimes. Sometimes?

Re: drawing with the mouse with turtle

2010-11-12 Thread Steven D'Aprano
On Fri, 12 Nov 2010 19:24:50 -0500, Brian Blais wrote: I'd like to draw on a turtle canvas, but use the mouse to direct the turtle. I don't see a good way of getting the mouse coordinates and the button state. I think the right way to do that is by creating an event handler to the turtle.

need some debug-infos on a simple regex

2010-11-12 Thread Martin Kaspar
hello dear list! i'm very new to programming and self teaching myself. I'm having a problem with a little project. I'm trying to preform an fetch-process, but every time i try it i runs into errors. i have read the Python-documents for more than ten hours now! And i have several books here -

Re: need some debug-infos on a simple regex

2010-11-12 Thread Martin Gregorie
On Fri, 12 Nov 2010 17:21:04 -0800, Martin Kaspar wrote: hello dear list! i'm very new to programming and self teaching myself. I'm having a problem with a little project. This doesn't directly help with your problem, but the tool at this URL: http://www.solmetra.com/scripts/regex/ may be

Re: Sending changed parameters into nested generators

2010-11-12 Thread John O'Hagan
On Fri, 12 Nov 2010, Ian wrote: On Nov 12, 2:47 am, John O'Hagan resea...@johnohagan.com wrote: I have tried using a deep update function on the original nested dictionary, but this only works if I change the contents of a list, not if I want to, say, change a node from a list to a

Re: drawing with the mouse with turtle

2010-11-12 Thread Brian Blais
On Nov 12, 2010, at 8:05 PM, Steven D'Aprano wrote: On Fri, 12 Nov 2010 19:24:50 -0500, Brian Blais wrote: I'd like to draw on a turtle canvas, but use the mouse to direct the turtle. I don't see a good way of getting the mouse coordinates and the button state. I think the right way to

Re: need some debug-infos on a simple regex

2010-11-12 Thread MRAB
On 13/11/2010 01:21, Martin Kaspar wrote: hello dear list! i'm very new to programming and self teaching myself. I'm having a problem with a little project. I'm trying to preform an fetch-process, but every time i try it i runs into errors. i have read the Python-documents for more than ten

ANN: psutil 0.2.0 released

2010-11-12 Thread Giampaolo Rodolà
Hi, I'm pleased to announce the 0.2.0 release of psutil: http://code.google.com/p/psutil === About === psutil is a module providing an interface for retrieving information on running processes and system utilization (CPU, memory) in a portable way by using Python, implementing many

Re: Sending changed parameters into nested generators

2010-11-12 Thread Steven D'Aprano
On Fri, 12 Nov 2010 09:47:26 +, John O'Hagan wrote: I have a generator function which takes as arguments another generator and a dictionary of other generators like this: def modgen(gen, gendict): for item in gen(): for k, v in gendict:

Air Drop Pro iPhone Game Review

2010-11-12 Thread PHP.CCC
Air Drop Pro iPhone Game Review AirDrop Pro is is based on the aid delivery service within the third world etc. So we should all know what to expect from this iPhone and iPod Touch game. The format of the games goes like this a plane flies in a straight line through the screen from

Re: need some debug-infos on a simple regex

2010-11-12 Thread Steve Holden
On 11/12/2010 5:51 PM, Martin Gregorie wrote: On Fri, 12 Nov 2010 17:21:04 -0800, Martin Kaspar wrote: hello dear list! i'm very new to programming and self teaching myself. I'm having a problem with a little project. This doesn't directly help with your problem, but the tool at this URL:

Re: Sending changed parameters into nested generators

2010-11-12 Thread John O'Hagan
On Sat, 13 Nov 2010, Steven D'Aprano wrote: On Fri, 12 Nov 2010 09:47:26 +, John O'Hagan wrote: I have a generator function which takes as arguments another generator and a dictionary of other generators like this: def modgen(gen, gendict): for item in gen(): for k, v in

[issue10371] Deprecate trace module undocumented API

2010-11-12 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Alexander, http://bugs.python.org/file19553/trace-deprecations.diff looks good to me -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10371

[issue962772] when both maintainer and author provided, author discarded

2010-11-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I think this might be more than a documentation bug. Akira's example shows that the maintainer is erroneously listed as the author. This does not seem fair to an author who in general will have written most of a package. I'd prefer a

[issue962772] when both maintainer and author provided, author discarded

2010-11-12 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: PEP 345 adds a Maintainer field to fix this, and this is now present and active in Ditsutils2. You can now have both. -- resolution: - fixed status: open - closed ___ Python tracker

[issue9264] trace.py documentation is incomplete

2010-11-12 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Alexander, I'm submitting a patch for Doc/library/trace.rst for 3.2, incorporating the stylistic changes you propose. It would be really great to see this fixed for the next release of 3.2, since the documentation improvement is major, and

[issue10359] ISO C cleanup

2010-11-12 Thread Hallvard B Furuseth
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment: STINNER Victor writes: Python-ast.c: why do you move req_name and req_type outside PyAST_obj2mod()? Eh, in case I've managed to be sufficiently unclear: The reason I modified it at all was because the initialization is not valid

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-12 Thread Hallvard B Furuseth
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment: Martin v. Löwis writes: And I still don't understand the rationale for this request. Can you please post an example Python module that has this markup you are asking for, so I can show you how to achieve what you want without

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think 2to3 is designed to take 2.x code and turn it into 3.x code. Codebases using tricks and hacks to support both 2.x and 3.x (like the example you linked to) cannot be handled by 2to3. You have to make a choice between manual maintenance

[issue10393] with statement isn't thread-safe

2010-11-12 Thread Abyx
New submission from Abyx fl.l...@gmail.com: Code to reproduce the bug: #include python.h #include windows.h DWORD WINAPI thread_fn(void* code) { PyGILState_STATE state = PyGILState_Ensure(); PyRun_SimpleString(with sync: print('.')\n); PyGILState_Release(state);

[issue10394] subprocess Popen deadlock

2010-11-12 Thread Christoph Mathys
New submission from Christoph Mathys erase...@gmail.com: The ctor of subprocess.Popen has a race condition, which the attached program should demonstrate (on my computer a few seconds are enough). Program One sleeps for 2 seconds, Program Two exits right after execve. Now I would expect

[issue10393] with statement isn't thread-safe

2010-11-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Agreed. There was a similar issue in python2.6 with list comprehensions. The issue is that both threads run the code with the same globals dictionary, and top-level code use the same dict for locals and globals. This is already fixed

[issue10395] os.path.commonprefix broken by design

2010-11-12 Thread Ronald Oussoren
New submission from Ronald Oussoren ronaldousso...@mac.com: The documentation for os.path.commonprefix notes: os.path.commonprefix(list) Return the longest path prefix (taken character-by-character) that is a prefix of all paths in list. If list is empty, return the empty string (''). Note

[issue10395] os.path.commonprefix broken by design

2010-11-12 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Indeed, that behavior seems completely useless. I've verified that it works the same in 2.5.1. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10395

[issue10395] os.path.commonprefix broken by design

2010-11-12 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Although there are test cases in test_genericpath that verify this behavior, so apparently it's intentional. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10395

[issue10393] with statement isn't thread-safe

2010-11-12 Thread Abyx
Abyx fl.l...@gmail.com added the comment: Thanks. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10393 ___ ___

[issue10364] Color coding fails after running program.

2010-11-12 Thread Typo
Typo lol.rab...@yahoo.com added the comment: Hey, I found out what the problem was. I wasn't saving the files as a .py file. As soon as I did that the color came back. Sorry to have wasted your time . -- ___ Python tracker rep...@bugs.python.org

[issue10395] os.path.commonprefix broken by design

2010-11-12 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: That's why I write 'broken by design' in the title. A fix for this will have to a new function, if any get added (I've written a unix implementation that finds the longest shared path several times and can provide an implementation and

[issue10364] Color coding fails after running program.

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Thank you for reporting back. This could be closed as invalid, but since I think this is something I should have known or guessed, I will leave it open for now as a reminder to look at the docs sometime and see if anything should be added

[issue10359] ISO C cleanup

2010-11-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Stable branches (2.7 and 3.1) only get bug fixes, not new features or code cleanups. Éric, making code compliant *is* a bug fix (admittedly of minor importance here, since all modern compilers accept the non-compliant code anyway). --

[issue1625576] add ability to specify name to os.fdopen

2010-11-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The requested feature would require an additional argument to fdopen() and open(), which already have many args. It would be better IMO to make the `name` attribute on file objects writeable. By the way, right now (in 3.x) fdopen() gives you

[issue10373] Setup Script example incorrect

2010-11-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. Setuptools is not a part of Python, and distutils docs don’t mention issues specific to third-party tools. I think I will reject this bug. -- assignee: d...@python - eric.araujo nosy: +eric.araujo status: open -

[issue8332] regrtest single TestClass/test_method

2010-11-12 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Yes. You're missing the second case. In: regrtest [options] test_file.test_method You don't specify class name. This saves some time you need to navigate and copy/paste name of container class. It will save more time if masks are used

[issue10396] stdin argument to pdb.Pdb doesn't work unless you also set Pdb.use_rawinput = False

2010-11-12 Thread Michael Hoffman
New submission from Michael Hoffman qq9jsuv...@snkmail.com: If you create a Pdb instance with an stdin argument, the default behavior is for commands to be retrieved using raw_input(), which uses sys.stdin instead, thereby causing the stdin argument to be without effect. You can work around

[issue10396] stdin argument to pdb.Pdb doesn't work unless you also set Pdb.use_rawinput = False

2010-11-12 Thread Michael Hoffman
Changes by Michael Hoffman qq9jsuv...@snkmail.com: Added file: http://bugs.python.org/file19581/expected_behavior.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10396 ___

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: What is the best way to pass around source code? - file-like objects, line iterators, readline-like function? Line iterator (list of lines) as returned by open().readlines. Memory should not be an issue. Read disk once and close. with

[issue10344] codecs.readline doesn't care buffering=0

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Please suggest a specific alteration in the codecs.readline doc that we can then discuss. -- assignee: - d...@python components: +Documentation -Library (Lib) nosy: +d...@python, terry.reedy ___

[issue10356] decimal.py: hash of -1

2010-11-12 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10356 ___ ___ Python-bugs-list

[issue4471] IMAP4 missing support for starttls

2010-11-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The starttls patch has been committed in r86431. Thank you very much for writing the initial patch. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: That suggests that the last statement needs to be guarded somehow. I re-versioned to 3.2 because 3.1.final will be out very soon. I expect 3.2 and 2.7 should have same problem. -- nosy: +terry.reedy versions: +Python 3.2 -Python 3.1

[issue10375] 2to3 print(single argument)

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: [Copied from Issue10070.] which is to say (for the benefit of other reviewers): This was a minor sub-issue mentioned there in passing and independent of the main issue and ignored in the extensive discussion thereof. -- nosy:

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-11-12 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1589 ___ ___ Python-bugs-list mailing list

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-12 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Nov 12, 2010 at 12:54 PM, Terry J. Reedy rep...@bugs.python.org wrote: .. What is the best way to pass around source code? - file-like objects, line iterators, readline-like function? Line iterator (list of

[issue10385] Mark up subprocess as module in its doc

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 1. Does the markup make any visual difference? 2. Does the markup affect the index? 3. What do other module docs do? I notice that 'Tkinter' appears in several section headings. Is it marked? (Is the upper case a holdover that should be

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I don't understand the example, either. If I run 2to3 on it, I get, as the only change if sys.version_info[0] 3: # Python 2 -from urllib import quote, unquote -from urlparse import urlparse,

[issue10384] SyntaxError should contain exact location of the invalid character in identifier

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I see the marker pointing to the space after '=', which is *really* not helpful. If '5' were instead an identifier, one might be really misdirected. So best would be Invalid char '0x' at position n in identifier 'something' +1 to any

[issue10397] Unified Benchmark Suite fails on py3k with --track-memory

2010-11-12 Thread Bobby Impollonia
New submission from Bobby Impollonia bob...@gmail.com: Steps to reproduce (requires linux because the --track-memory (-m) option to perf.py is linux-only): hg clone http://hg.python.org/benchmarks/ py2benchmarks mkdir py3benchmarks cd py3benchmarks ../py2benchmarks/make_perf3.sh

[issue10385] Mark up subprocess as module in its doc

2010-11-12 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Nov 12, 2010 at 2:09 PM, Terry J. Reedy rep...@bugs.python.org wrote: .. 1. Does the markup make any visual difference? It does on my browser. (I wouldn't have noticed it otherwise.) See

[issue10350] errno is read too late

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: This stuff is hard to write automated tests for, hence there are none. The patch is mostly straightforward: capture errno with new variable err at point of possible error when intervening calculation is needed before testing the value of

[issue10395] os.path.commonprefix broken by design

2010-11-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This goes back to issue400788 and http://mail.python.org/pipermail/python-dev/2000-July/005897.html http://mail.python.org/pipermail/python-dev/2000-August/008385.html Skip changed it to do something meaningful (more than ten years ago),

[issue10398] errors in docs re module initialization vs self arg to functions

2010-11-12 Thread Jani Poikela
New submission from Jani Poikela poppis.poik...@gmail.com: Copy of issue 6421 Affects 2.7 too... -- assignee: d...@python components: Documentation messages: 121064 nosy: Jani.Poikela, aleax, d...@python, georg.brandl priority: normal severity: normal status: open title: errors in docs

[issue10398] errors in docs re module initialization vs self arg to functions

2010-11-12 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, done in r86432. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10398 ___

[issue10385] Mark up subprocess as module in its doc

2010-11-12 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Eric: any :mod: role never affects the index. Only the module directive does. Otherwise, I concur that it's not mandatory to mark up every occurrence of the module name, but it's nice in section headings. --

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Line iterator does not carry the information about source encoding which may be important for annotating the source code. I would pass around both encoding and lines, possibly as a tuple. A person heavily into OO might define a _Source class

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: In msg#120541 of issue#1346238 Raymond suggested to aim high, so here goes... I'm opening this as a separate bug as it's a very different approach to the patches in that bug; adding those on the nosy list for that bug. Sorry in advance

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: Added file: http://bugs.python.org/file19584/before.png ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10399 ___

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: Added file: http://bugs.python.org/file19585/after.png ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10399 ___

[issue10385] Mark up subprocess as module in its doc

2010-11-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: http://docs.python.org/dev/contents.html The only thing I see there is the bold-facing of *PEP 3101*. Is that what you are referring to? In any case, with Georg's concurrence go ahead with this and any other modules you care about. --

  1   2   >