How can I intentionally crash my lappy?

2010-12-20 Thread mechtheist
I am no programmer, but know the rudiments [the rudi'est of rudiments] of working with Python. I have a simple need, to have a simple script/app I can run that will crash my PC. On my desktops, I can always hit the reset, but that is not an option with my laptop. Can anyone tell me of an

Dynamic list name from a string

2010-12-20 Thread MarcoS
Hi, I need to create a list with a dynamic name, something like this: '%s_list' %my_dynamic list = [] It's this possible? -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I intentionally crash my lappy?

2010-12-20 Thread Steven D'Aprano
On Mon, 20 Dec 2010 02:45:18 -0600, mechtheist wrote: I am no programmer, but know the rudiments [the rudi'est of rudiments] of working with Python. I have a simple need, to have a simple script/app I can run that will crash my PC. On my desktops, I can always hit the reset, but that is

Re: Dynamic list name from a string

2010-12-20 Thread Steven D'Aprano
On Mon, 20 Dec 2010 02:08:57 -0800, MarcoS wrote: Hi, I need to create a list with a dynamic name, something like this: '%s_list' %my_dynamic list = [] It's this possible? I'm pretty sure you don't *need* to, you just think you do. It is highly unlikely that there is anything you can do

Re: How can I intentionally crash my lappy?

2010-12-20 Thread Stefan Sonnenberg-Carstens
http://pcsupport.about.com/od/tipstricks/ht/makebsodxp.htm Am Mo, 20.12.2010, 09:45 schrieb mechtheist: I am no programmer, but know the rudiments [the rudi'est of rudiments] of working with Python. I have a simple need, to have a simple script/app I can run that will crash my PC. On my

Re: Dynamic list name from a string

2010-12-20 Thread Andre Alexander Bell
Hello, On 12/20/2010 11:08 AM, MarcoS wrote: Hi, I need to create a list with a dynamic name, something like this: '%s_list' %my_dynamic list = [] It's this possible? I would suggest you use a dictionary to store your lists like this: lists = {} lists[my_dynamic_list] = [] Maybe you

encoding attribute codecs.getwriter-produced streams

2010-12-20 Thread Hrvoje Niksic
Try this code: # foo.py import sys, codecs stream = codecs.getwriter('utf-8')(sys.stdout) print stream.encoding $ python foo.py | cat None I expected the `encoding' attribute to be UTF-8, since the stream otherwise correctly functions as a utf-8 encoding stream. Is this a bug in the stream

Re: Dynamic list name from a string

2010-12-20 Thread MarcoS
Ok, thanks Steven and Andre for yours reply. This is my situation: I've a list of objects of differents classes, with a common attribute name Something like this: class Object1: obj1_name other fields date class Object2: obj2_name other fields date ... class

Re: How can I intentionally crash my lappy?

2010-12-20 Thread rob
On 12/20/2010 4:22 AM, Steven D'Aprano wrote: On Mon, 20 Dec 2010 02:45:18 -0600, mechtheist wrote: I am no programmer, but know the rudiments [the rudi'est of rudiments] of working with Python. I have a simple need, to have a simple script/app I can run that will crash my PC. On my

Re: True lists in python?

2010-12-20 Thread Duncan Booth
Vito 'ZeD' De Tullio zak.mc.kra...@libero.it wrote: Steven D'Aprano wrote: I can't see any way to go from this linked list: node1 - node2 - node3 - node4 - node5 - node6 - node7 to this: node1 - node6 - node5 - node4 - node3 - node2 - node7 in constant time. You have to touch each

Re: How can I intentionally crash my lappy?

2010-12-20 Thread Paul Scott
On 20/12/2010 10:45, mechtheist wrote: I am no programmer, but know the rudiments [the rudi'est of rudiments] of working with Python. I have a simple need, to have a simple script/app I can run that will crash my PC. On my desktops, I can always hit the reset, but that is not an option

Re: How can I intentionally crash my lappy?

2010-12-20 Thread rob
Thanks, that is exactly what I was looking for. Unfortunately, it is only for /non/-USB keyboards, I may be able to figure something out from there with hotkey or something. On 12/20/2010 3:31 AM, Stefan Sonnenberg-Carstens wrote: http://pcsupport.about.com/od/tipstricks/ht/makebsodxp.htm Am

Re: How can I intentionally crash my lappy?

2010-12-20 Thread Christian Heimes
Am 20.12.2010 09:45, schrieb mechtheist: I am no programmer, but know the rudiments [the rudi'est of rudiments] of working with Python. I have a simple need, to have a simple script/app I can run that will crash my PC. On my desktops, I can always hit the reset, but that is not an option

Re: Creating custom types from C code

2010-12-20 Thread Eric Frederich
Thanks for the reply. I remember reading about named tuples when they were back-ported to the 2.X series but I never played with them. Is there a way to instantiate a named tuple from C code? Maybe I'm over-thinking this whole thing. Is there a simple way that I can define a class in Python and

Re: Creating custom types from C code

2010-12-20 Thread Stefan Behnel
Eric Frederich, 20.12.2010 16:23: I remember reading about named tuples when they were back-ported to the 2.X series but I never played with them. Is there a way to instantiate a named tuple from C code? There isn't a dedicated C-API for named tuples, but you can instantiate any Python type

Re: Python-list Digest, Vol 87, Issue 122

2010-12-20 Thread Randy Given
ZS On Dec 19, 2010 6:05 AM, python-list-requ...@python.org wrote: Send Python-list mailing list submissions to python-list@python.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/python-list or, via email, send a message with subject or

Re: Python-list Digest, Vol 87, Issue 122

2010-12-20 Thread Randy Given
as On Dec 19, 2010 6:05 AM, python-list-requ...@python.org wrote: Send Python-list mailing list submissions to python-list@python.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/python-list or, via email, send a message with subject or

Re: Catching user switching and getting current active user from root on linux

2010-12-20 Thread mpnordland
I give up, I will never try to use a usenet group again. For the ones of you who tried to help thank you. You helped to identify some of my troubles, as for you @usernet, you are a troll -- http://mail.python.org/mailman/listinfo/python-list

Re: how to measure TCP congestion windows using python ??

2010-12-20 Thread MrJean1
FWIW, on CentOS 4.7, the ctypes version works fine, but the struct version fails, because len(tcp_info) is only 100 bytes while struct.calcsize('B...L') is 104. However, if the format is changed to '7B23L', i.e. one 'L' shorter, the struct version works and returns to same result as the ctypes

Questions

2010-12-20 Thread lewisr2
Folks, 1. As a free lance developer I need to use Python with Web Content Services using IIS7 (Windows 7). However, I don't have a lot of time to learn IIS7. Can someone tell me how to configure IIS7 to be used by Python CGI scripts? 2. I noticed that the latest distribution from ActiveState has

**** httplib.InvalidURL: nonnumeric port ****

2010-12-20 Thread Anurag Chourasia
All, When i try to open a URL of the form http://joule:8041/DteEnLinea/ws/EnvioGuia.jws, I am getting an error as below complaining for some non-numeric port. wm (wmosds) [zibal] - /u01/home/apli/wm/app/gdd :python Python 2.4.1 (#2, May 30 2005, 09:40:30) [C] on aix5 Type help, copyright,

Sending XML to a WEB Service and Getting Response Back

2010-12-20 Thread Anurag Chourasia
Dear Python Mates, I have a requirement to send a XML Data to a WEB Service whose URL is of the form http://joule:8041/DteEnLinea/ws/EnvioGuia.jws I also have to read back the response returned as a result of sending this data to this WebService. This web service implements the following

Re: **** httplib.InvalidURL: nonnumeric port ****

2010-12-20 Thread Kev Dwyer
On Tue, 21 Dec 2010 00:01:44 +0530, Anurag Chourasia wrote: import httplib help(httplib.HTTP) Help on class HTTP in module httplib: class HTTP | Compatibility class with httplib.py from 1.5. | | Methods defined here: | | __init__(self, host='', port=None, strict=None) The

help with link parsing?

2010-12-20 Thread Littlefield, Tyler
Hello all, I have a question. I guess this worked pre 2.6; I don't remember the last time I used it, but it was a while ago, and now it's failing. Anyone mind looking at it and telling me what's going wrong? Also, is there a quick way to match on a certain site? like links from google.com and

Re: **** httplib.InvalidURL: nonnumeric port ****

2010-12-20 Thread Anurag Chourasia
Hi Kevin, Thanks for the response. I tried with HTTPConnection but the same problem. h1 = httplib.HTTPConnection(' http://joule:8041/DteEnLinea/ws/EnvioGuia.jws') Traceback (most recent call last): File stdin, line 1, in ? File /u01/home/apli/wm/python241/lib/python2.4/httplib.py, line

Trying to parse a HUGE(1gb) xml file

2010-12-20 Thread spaceman-spiff
Hi c.l.p folks This is a rather long post, but i wanted to include all the details everything i have tried so far myself, so please bear with me read the entire boringly long post. I am trying to parse a ginormous ( ~ 1gb) xml file. 0. I am a python xml n00b, s have been relying on the

Re: Questions

2010-12-20 Thread Terry Reedy
On 12/20/2010 12:10 PM, lewi...@verizon.net wrote: 3. I have used Tk in the past with Tcl and IncrTcl. Where can I find a lot of Python/Tk examples so that I can save some time in developing GUIs? Do a search, or possibly a google codesearch, on tkinter or Tkinter, which is Python's tk

Re: **** httplib.InvalidURL: nonnumeric port ****

2010-12-20 Thread Chris Rebert
On Tue, Dec 21, 2010 at 12:42 AM, Kev Dwyer kevin.p.dw...@gmail.com wrote: On Tue, 21 Dec 2010 00:01:44 +0530, Anurag Chourasia wrote: import httplib help(httplib.HTTP) Help on class HTTP in module httplib: class HTTP  |  Compatibility class with httplib.py from 1.5.  |  |  Methods

Re: help with link parsing?

2010-12-20 Thread Chris Rebert
On Mon, Dec 20, 2010 at 11:14 AM, Littlefield, Tyler ty...@tysdomain.com wrote: Hello all, I have a question. I guess this worked pre 2.6; I don't remember the last time I used it, but it was a while ago, and now it's failing. Anyone mind looking at it and telling me what's going wrong?

Re: **** httplib.InvalidURL: nonnumeric port ****

2010-12-20 Thread Kev Dwyer
On Tue, 21 Dec 2010 01:00:36 +0530, Anurag Chourasia wrote: Anurag, HTTPConnection takes a host and a port number as arguments, not just a URL. So you could construct your connection request like this: conn = httplib.HTTPConnection('joule', 8041) then use the request() method on the connection

Re: Trying to parse a HUGE(1gb) xml file

2010-12-20 Thread Tim Harig
[Wrapped to meet RFC1855 Netiquette Guidelines] On 2010-12-20, spaceman-spiff ashish.mak...@gmail.com wrote: This is a rather long post, but i wanted to include all the details everything i have tried so far myself, so please bear with me read the entire boringly long post. I am trying to

Re: Sending XML to a WEB Service and Getting Response Back

2010-12-20 Thread Hidura
I recommend you use the urllib.request in the library of python says everything that you want to know. 2010/12/20, Anurag Chourasia anurag.choura...@gmail.com: Dear Python Mates, I have a requirement to send a XML Data to a WEB Service whose URL is of the form

Re: Trying to parse a HUGE(1gb) xml file

2010-12-20 Thread Adam Tauno Williams
On Mon, 2010-12-20 at 11:34 -0800, spaceman-spiff wrote: Hi c.l.p folks This is a rather long post, but i wanted to include all the details everything i have tried so far myself, so please bear with me read the entire boringly long post. I am trying to parse a ginormous ( ~ 1gb) xml file.

Re: Trying to parse a HUGE(1gb) xml file

2010-12-20 Thread spaceman-spiff
Hi Usernet First up, thanks for your prompt reply. I will make sure i read RFC1855, before posting again, but right now chasing a hard deadline :) I am sorry i left out what exactly i am trying to do. 0. Goal :I am looking for a specific element..there are several 10s/100s occurrences of that

Re: Trying to parse a HUGE(1gb) xml file

2010-12-20 Thread Adam Tauno Williams
On Mon, 2010-12-20 at 12:29 -0800, spaceman-spiff wrote: I need to detect them then for each 1, i need to copy all the content b/w the element's start end tags create a smaller xml file. Yep, do that a lot; via iterparse. 1. Can you point me to some examples/samples of using SAX,

Why do my list go uni-code by itself?

2010-12-20 Thread Martin Hvidberg
I'm reading a fixed format text file, line by line. I hereunder present the code. I have snipped out part not related to the file reading. Only relevant detail left out is the lstCutters. It looks like this: [[1, 9], [11, 21], [23, 48], [50, 59], [61, 96], [98, 123], [125, 150]] It specifies the

Re: Trying to parse a HUGE(1gb) xml file

2010-12-20 Thread Terry Reedy
On 12/20/2010 2:49 PM, Adam Tauno Williams wrote: Yes, this is a terrible technique; most examples are crap. Yes, this is using DOM. DOM is evil and the enemy, full-stop. You're still using DOM; DOM is evil. For serial processing, DOM is superfluous superstructure. For random access

Re: Trying to parse a HUGE(1gb) xml file

2010-12-20 Thread Tim Harig
On 2010-12-20, spaceman-spiff ashish.mak...@gmail.com wrote: 0. Goal :I am looking for a specific element..there are several 10s/100s occurrences of that element in the 1gb xml file. The contents of the xml, is just a dump of config parameters from a packet switch( although imho, the contents

Re: Why do my list go uni-code by itself?

2010-12-20 Thread MRAB
I'm reading a fixed format text file, line by line. I hereunder present the code. I have snipped out part not related to the file reading. Only relevant detail left out is the lstCutters. It looks like this: [[1, 9], [11, 21], [23, 48], [50, 59], [61, 96], [98, 123], [125, 150]] It specifies

Re: Why do my list go uni-code by itself?

2010-12-20 Thread Ian Kelly
On Mon, Dec 20, 2010 at 2:08 PM, Martin Hvidberg mar...@hvidberg.net wrote: Question: In the last printout, tagged InReturLst all entries turn into uni-code. What happens here? Actually, they were all unicode to begin with. You're using codecs.open to read the file, which transparently

Modifying an existing excel spreadsheet

2010-12-20 Thread Ed Keith
I have a user supplied 'template' Excel spreadsheet. I need to create a new excel spreadsheet based on the supplied template, with data filled in. I found the tools here http://www.python-excel.org/,  and http://sourceforge.net/projects/pyexcelerator/. I have been trying to use the former,

Re: Why do my list go uni-code by itself?

2010-12-20 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Martin Hvidberg wrote: I'm reading a fixed format text file, line by line. I hereunder present the code. I have snipped out part not related to the file reading. Only relevant detail left out is the lstCutters. It looks like this: [[1, 9], [11, 21], [23, 48], [50, 59],

Re: Sending XML to a WEB Service and Getting Response Back

2010-12-20 Thread Ian Kelly
On Mon, Dec 20, 2010 at 11:58 AM, Anurag Chourasia anurag.choura...@gmail.com wrote: Dear Python Mates, I have a requirement to send a XML Data to a WEB Service whose URL is of the form http://joule:8041/DteEnLinea/ws/EnvioGuia.jws I also have to read back the response returned as a result of

Class-override of a sort-key method?

2010-12-20 Thread pythonlist . calin79
Hi all - it would seem that these days, all the cool kids use the sort function's 'key' kwarg in order to sort a list of custom objects quickly. Unfortunately, as opposed to using 'cmp', where you can implent __cmp__ to get 'automatic sorting' in a similar fashion, there doesn't seem to be a

Re: Class-override of a sort-key method?

2010-12-20 Thread Chris Rebert
On Mon, Dec 20, 2010 at 3:23 PM, pythonlist.cali...@spamgourmet.com wrote: Hi all - it would seem that these days, all the cool kids use the sort function's 'key' kwarg in order to sort a list of custom objects quickly. Really? They don't bother to define __cmp__ or similar? Sounds lazy and

Re: Catching user switching and getting current active user from root on linux

2010-12-20 Thread Steve Holden
On 12/20/2010 12:54 PM, mpnordland wrote: I give up, I will never try to use a usenet group again. For the ones of you who tried to help thank you. You helped to identify some of my troubles, as for you @usernet, you are a troll Don't give up after one experience. Usenet can be really useful

Redundant importing of modules

2010-12-20 Thread Jshgwave
When writing a function that uses a module such as NumPy, it is tempting to include the statement import numpy or import numpy as np in the definition of the function, in case the  function is used in a script that hasn't already imported NumPy. That could lead to the script issuing the import

Re: Class-override of a sort-key method?

2010-12-20 Thread Steve Holden
On 12/20/2010 7:10 PM, Chris Rebert wrote: On Mon, Dec 20, 2010 at 3:23 PM, pythonlist.cali...@spamgourmet.com wrote: Hi all - it would seem that these days, all the cool kids use the sort function's 'key' kwarg in order to sort a list of custom objects quickly. Really? They don't bother to

Re: Redundant importing of modules

2010-12-20 Thread Steve Holden
On 12/20/2010 8:36 PM, Jshgwave wrote: When writing a function that uses a module such as NumPy, it is tempting to include the statement import numpy or import numpy as np in the definition of the function, in case the function is used in a script that hasn't already imported NumPy. That

Bug in fixed_point?!

2010-12-20 Thread C Barrington-Leigh
I cannot figure out what I'm doing wrong. The following does not return a fixed point: from scipy import optimize xxroot= optimize.fixed_point(lambda xx: exp(-2.0*xx)/2.0, 1.0, args=(), xtol=1e-12, maxiter=500) print ' %f solves fixed point, ie f(%f)=%f ?'% (xxroot,xxroot,exp(-2.0*xxroot)/2.0)

Re: Modifying an existing excel spreadsheet

2010-12-20 Thread Stefan Sonnenberg-Carstens
Am 20.12.2010 22:56, schrieb Ed Keith: I have a user supplied 'template' Excel spreadsheet. I need to create a new excel spreadsheet based on the supplied template, with data filled in. I found the tools here http://www.python-excel.org/, and http://sourceforge.net/projects/pyexcelerator/. I

Re: Bug in fixed_point?!

2010-12-20 Thread Terry Reedy
On 12/20/2010 10:03 PM, C Barrington-Leigh wrote: I cannot figure out what I'm doing wrong. The following does not return a fixed point: What did it do? For nearly all such questions, cut and paste actual output or traceback. from scipy import optimize xxroot= optimize.fixed_point(lambda

Re: Google AI challenge: planet war. Lisp won.

2010-12-20 Thread Jon Harrop
Wasn't that the challenge where they wouldn't even accept solutions written in many other languages (including both OCaml and F#)? Cheers, Jon. Xah Lee xah...@gmail.com wrote in message news:44a8f48f-e291-463e-a042-d0cbc31a2...@z17g2000prz.googlegroups.com... discovered this rather late.

Re: Sending XML to a WEB Service and Getting Response Back

2010-12-20 Thread John Nagle
On 12/20/2010 12:14 PM, Hidura wrote: I recommend you use the urllib.request in the library of python says everything that you want to know. 2010/12/20, Anurag Chourasiaanurag.choura...@gmail.com: Dear Python Mates, I have a requirement to send a XML Data to a WEB Service whose URL is of the

Re: Google AI challenge: planet war. Lisp won.

2010-12-20 Thread Jason Earl
On Mon, Dec 20 2010, Jon Harrop wrote: Wasn't that the challenge where they wouldn't even accept solutions written in many other languages (including both OCaml and F#)? Cheers, Jon. http://ai-contest.com/faq.php Question: There is no starter package for my favorite language. What

Re: Sending XML to a WEB Service and Getting Response Back

2010-12-20 Thread Ian Kelly
On 12/20/2010 11:34 PM, John Nagle wrote: SOAPpy is way out of date. The last update on SourceForge was in 2001. 2007, actually: http://sourceforge.net/projects/pywebsvcs/files/ And there is repository activity within the past 9 months. Still, point taken. --

[issue10461] Use with statement throughout the docs

2010-12-20 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I've already made the change, Terry, just holding off committing it because Georg has frozen the py3k branch until 3.2b2 is released. There are a few other changes I'm making, will commit these soon after 3.2b2 is released. --

[issue4761] create Python wrappers for openat() and others

2010-12-20 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4761 ___ ___ Python-bugs-list

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le lundi 20 décembre 2010 07:55:08, vous avez écrit : +#define NFAULT_SIGNALS (sizeof(fault_signals) / sizeof(fault_signals[0])) +static fault_handler_t fault_handlers[4]; , should use NFAULT_SIGNALS instead of 4. Ah yes,

[issue10739] Subprocess behavior on Windows

2010-12-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This might be an example of the general problem that on windows, sockets and files don't mix well. You can't use a file in a select call, either. I think there are two possibilities here: either makefile doesn't produce anything very

[issue10694] zipfile.py end of central directory detection not robust

2010-12-20 Thread Kevin Hendricks
Kevin Hendricks kevin.hendri...@sympatico.ca added the comment: I have not looked at how other tools handle this. They could simply ignore what comes after a valid endrecdata is found, they could strip it out (truncate it) or make it into a final comment. I guess for simply unpacking a zip

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The fault handler is unable to retrieve the thread state if the GIL is released. I will try to fix that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863

[issue10739] Subprocess behavior on Windows

2010-12-20 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Since the code in subprocess gets the underlying fileno of the file-like object (line 819 of subprocess.py), I presume it is an example of the general problem of files and sockets not mixing very well on Windows. So, I have attached a

[issue10694] zipfile.py end of central directory detection not robust

2010-12-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It's pretty easy, really, to do an SVN checkout of python and compile it on a mac, if you are at all familiar with the unix command line. If you don't have the time or desire for that, though, someone will eventually get to it, we just

[issue10694] zipfile.py end of central directory detection not robust

2010-12-20 Thread Kevin Hendricks
Kevin Hendricks kevin.hendri...@sympatico.ca added the comment: Been programming on unix/vax and then linux since the mid 80s and on punch cards in the late 70s. Grew my first beard writing 8080 and Z80 assembler. All of that was over 30 years ago. All I want to do is report a damn bug!

[issue10087] HTML calendar is broken

2010-12-20 Thread Ron Adam
Changes by Ron Adam ron_a...@users.sourceforge.net: -- nosy: +ron_adam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10087 ___ ___

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread Scott Urban
New submission from Scott Urban scott.ur...@isilon.com: The python sqlite module automatically commits open transactions when it encounters a DDL statement. This is unnecessary; DDL is transactional in my testing (see attached). Attached patch addresses the issue. Patch is against 2.6.1, but

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread Scott Urban
Scott Urban scott.ur...@isilon.com added the comment: Here are some tests. -- Added file: http://bugs.python.org/file20119/test_sqlite_ddl.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740

[issue10741] PyGILState_GetThisThreadState() lacks a doc entry

2010-12-20 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: PyGILState_GetThisThreadState() is documented in Include/pystate.h but not in the official docs. It should be documented along PyGILState_Ensure() and friends. -- assignee: d...@python components: Documentation messages: 124394 nosy:

[issue10739] Subprocess behavior on Windows

2010-12-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think I'll leave that decision up to the doc crew. My thought was that makefile was supposedly returning a file, therefore it was appropriate to document there that it wasn't really a file on windows, whereas subprocess docs are only

[issue10694] zipfile.py end of central directory detection not robust

2010-12-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Sorry, I thought I was being clear that if you *wanted* to help further here was how you could, but if you didn't then we'd get to it eventually. We're all volunteers here, just like you, so every bit of help...helps, and we thank you

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-20 Thread Scott Dial
Scott Dial sc...@scottdial.com added the comment: On 12/20/2010 8:30 AM, STINNER Victor wrote: Write into a closed file descriptor just does nothing. Closed file descriptors are not a problem. My issue not with a closed file descriptor, it is with an open file descriptor that is not what

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: See also Issue 8145. It would be nice if someone could sort all this out, but I'm not knowledgeable enough to do so. For this patch, it would be a significant change it behaviour. Therefore it would have to be a new feature controlled

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The problem is to detect that stderr file descriptor changes (eg. closed, duplicated, reopened, etc.). I don't think that it's possible to detect such changes (with a portable function). When I said that, I hadn't fully investigated

[issue10557] Malformed error message from float()

2010-12-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10557 ___

[issue10715] uninformative error message

2010-12-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +IO nosy: +eric.araujo versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10715

[issue10728] argparse.ArgumentParser.print_help uses sys.stdout

2010-12-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Alright, I didn’t know you were doing mass merges. I personally prefer to leave reports open until backported, now I’ll know your habits. -- ___ Python tracker rep...@bugs.python.org

[issue8145] Documentation about sqlite3 isolation_level

2010-12-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file17940/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8145 ___

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: +1 on adding SVG types in 3.2 or 3.3. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___

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

2010-12-20 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Attached patch, issue10254a.diff, adds the OP's cases to test_unicodedata and changes the code as I suggested in msg124173 because ISTM that comb = comb1 matches the pr-29 definition: D2'. In any character sequence

[issue3871] cross and native build of python for mingw32 with distutils

2010-12-20 Thread alesko
Changes by alesko askon...@gmail.com: -- nosy: +alesko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___ ___ Python-bugs-list mailing list

[issue10742] memoryview.readonly attribute is not documented

2010-12-20 Thread flashk
New submission from flashk fla...@gmail.com: The 'readonly' attribute is not explicitly described, even though it is used in the sample code for the memoryview type. I've attached a patch that adds a description of the 'readonly' attribute. -- assignee: d...@python components:

[issue1243654] Faster output if message already has a boundary

2010-12-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Turns out there's a bug in my version of the patch, and no test in the email test suite traversed that code path. Attached patch fixes this; I'll commit and backport after trunk unfreezes. Note that the backport contains a second bug

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-20 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: From http://code.google.com/p/virtualenv5/issues/detail?id=6 - it seems that the `sysconfig` module is looking for Makefile in wrong directory, while ideally it must be looking into the base Python install. import sysconfig;

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

2010-12-20 Thread Pauli Virtanen
New submission from Pauli Virtanen p...@iki.fi: Ctypes arrays have invalid buffer interface information (on Python 3.1.2): import ctypes x = (ctypes.c_double*2)() y = memoryview(x) y.shape (2,) y.format '(2)d' This implies that the array contains 2 items, each consisting of 2 floats,

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread Scott Urban
Scott Urban scott.ur...@isilon.com added the comment: I find the way that the sqlite3 module handles transactions pretty surprising in general, but I agree that someone who got used to DDL not rolling back could in theory find this patch surprising. We will apply this patch to our python build

[issue10745] --user option, per user site-packages undocumented in Installing Python Modules document

2010-12-20 Thread Chris Lasher
New submission from Chris Lasher chris.las...@gmail.com: Python 2.6 saw the introduction of per user site-packages directory for easy installation of Python packages into a guaranteed location in which the user has appropriate permissions. http://bugs.python.org/issue1799

[issue10087] HTML calendar is broken

2010-12-20 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net added the comment: The problem is in the following line... return ''.join(v).encode(encoding, xmlcharrefreplace) The .encode(encoding, xmlcharrefreplace) is returning a bytes object. Here is the simplest change to resolve the problem. return

[issue10745] setup.py install --user option undocumented

2010-12-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: tarek - eric.araujo components: +Distutils2 -Distutils title: --user option, per user site-packages undocumented in Installing Python Modules document - setup.py install --user option undocumented versions: +3rd party -Python 2.6,

[issue10087] HTML calendar is broken

2010-12-20 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: Sorry in advance for the long winded response. Ron, have you looked at my patch? The underlying issue is that the semantics for print() between Python 1 and 3. print() does not accept a bytes type in Python 3. In Python 2 str was a

[issue10746] ctypes c_long c_bool have incorrect PEP-3118 type codes

2010-12-20 Thread Pauli Virtanen
New submission from Pauli Virtanen p...@iki.fi: Currently on Python 3.x: import ctypes memoryview(ctypes.c_long()).format 'l' This is invalid on 64-bit platforms: the above means 32-bit little-endian float. The '' endian specification turns on the standard size mode (similarly as for the

[issue10746] ctypes c_long c_bool have incorrect PEP-3118 type codes

2010-12-20 Thread Pauli Virtanen
Changes by Pauli Virtanen p...@iki.fi: -- assignee: - theller components: +ctypes nosy: +theller type: - behavior versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10746

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: That does seem to be a regression since distutils.sysconfig works correctly in a virtualenv: $ python3.2 -c 'import distutils.sysconfig;print(distutils.sysconfig.get_makefile_filename())'

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Setting to deferred blocker for 3.2 release manager evaluation. -- nosy: +georg.brandl priority: normal - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10743

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___

[issue10087] HTML calendar is broken

2010-12-20 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net added the comment: Oops. You're right. I miss understood how the encode method works in this particular case. ;-/ I agree with your comments as well. -- ___ Python tracker rep...@bugs.python.org

[issue10715] uninformative error message

2010-12-20 Thread Phillip M. Feldman
Phillip M. Feldman phillip.m.feld...@gmail.com added the comment: I eventually determined that a call to `subprocess.Popen` was responsible for the message, but could have determined this much more quickly if the message had included the name of the file that could not be opened (executed).

[issue10715] uninformative error message

2010-12-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file20125/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10715 ___

[issue10715] uninformative error message

2010-12-20 Thread Phillip M. Feldman
Phillip M. Feldman phillip.m.feld...@gmail.com added the comment: Why was this removed? On Mon, Dec 20, 2010 at 8:30 PM, Alexander Belopolsky rep...@bugs.python.org wrote: Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file:

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

2010-12-20 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Dec 20, 2010 at 2:50 PM, Alexander Belopolsky rep...@bugs.python.org wrote: .. Unfortunately, all tests pass with either comb = comb1 or comb == comb1, so before I commit, I would like to figure out the test

  1   2   >