ackward-0.4 released

2011-08-01 Thread Austin Bingham
I'm happy to announce the release of ackward-0.4. http://code.google.com/p/ackward/ Ackward is a C++ API for parts of the Python standard library. This release focuses primarily on logging, and it includes a number of API improvements, bug fixes, and a great deal of improvement to the

Re: Quick question about threads and interpreters.

2011-08-01 Thread Chris Angelico
On Mon, Aug 1, 2011 at 6:04 AM, Ira Gray tkjthing...@gmail.com wrote: I come along, write a .DLL and throw it into the program. My .dll has its own thread (right?), Not unless you actually create one. A DLL is simply a puddle of code; the application calls your code, you do whatever you do, you

Re: Spam

2011-08-01 Thread Chris Rebert
On Sun, Jul 31, 2011 at 9:56 PM, Ghodmode ghodm...@ghodmode.com wrote: I've noticed that python-list gets significantly more spam than the other lists I subscribe to.  There's an example below. I'm wondering how the list is managed.  Can anyone post, or only members? Since we're gatewayed to

Re: What's in a name?

2011-08-01 Thread Gregory Ewing
Andrew Berg wrote: Well of course. All the good names are taken. :P I even came up with cavelib and it was taken ( http://www.mechdyne.com/cavelib.aspx ). A couple of ideas that don't seem to turn up anything software-related: Flummux Flavius -- Greg --

Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong?

2011-08-01 Thread Gregory Ewing
Andrew Berg wrote: I have a method that writes the data to disk, but at this point, I don't see any problems with just pickling the class instance. Just keep in mind that if you're not careful, pickles can end up being tied more closely that you would like to various internal details of your

Re: Spam

2011-08-01 Thread Gregory Ewing
Chris Rebert wrote: On Sun, Jul 31, 2011 at 9:56 PM, Ghodmode ghodm...@ghodmode.com wrote: I'm wondering how the list is managed. Can anyone post, or only members? Since we're gatewayed to USENET's comp.lang.python anyway, I'd strongly suspect the former. You may get a better experience

Re: Spam

2011-08-01 Thread Steven D'Aprano
Ghodmode wrote: I've noticed that python-list gets significantly more spam than the other lists I subscribe to. There's an example below. Thanks for that! I missed it the first time, so it is very helpful for you to forward it. It's especially helpful that you included all the spammer's URLs,

Re: PyWart: os.path needs immediate attention!

2011-08-01 Thread Teemu Likonen
* 2011-07-30T10:57:29+10:00 * Steven D'Aprano wrote: Teemu Likonen wrote: Pathnames and the separator for pathname components should be abstracted away, to a pathname object. Been there, done that, floundered on the inability of people to work out the details.

Question

2011-08-01 Thread Camilo Andres Roca Duarte
Hello My name is Camilo Roca, I'm a student and recently installed the 2.7.2 Python version. The problem is that anytime I try to run a script from the Python Shell it returns an error message. I am new using python so I am not sure what to do since what I'm typing in the shell is in a

Code War at PyCon Au 2011

2011-08-01 Thread Ryan Kelly
A huge hit at PyCon-Au last year, Code War is back! Eight teams, onstage knockout rounds of short programming bouts, loud crowd...mildly impressive prizes. Any language allowed, no holds bared. Think of it like cage fighting for coders. Originally based on an idea from the book PeopleWare,

Re: Question

2011-08-01 Thread Chris Angelico
On Sun, Jul 31, 2011 at 12:38 AM, Camilo Andres Roca Duarte caro...@unal.edu.co wrote: $ python myfunctions.py SyntaxError: invalid syntax This is an error from Python, so it probably means something is wrong in your .py file. Check the contents of the file with 'cat myfunctions.py'. Is the

Re: Question

2011-08-01 Thread Andrew Berg
On 2011.07.30 06:38 PM, Camilo Andres Roca Duarte wrote: $ python myfunctions.py SyntaxError: invalid syntax It helps to include the full traceback. If we don't know the code that caused the error, it's pretty hard to say what went wrong, especially with an exception as broad as SyntaxError.

Re: Question

2011-08-01 Thread Steven D'Aprano
Camilo Andres Roca Duarte wrote: Hello My name is Camilo Roca, I'm a student and recently installed the 2.7.2 Python version. The problem is that anytime I try to run a script from the Python Shell it returns an error message. I am new using python so I am not sure what to do since what I'm

Re: Question

2011-08-01 Thread Peter Otten
Camilo Andres Roca Duarte wrote: My name is Camilo Roca, I'm a student and recently installed the 2.7.2 Python version. The problem is that anytime I try to run a script from the Python Shell it returns an error message. I am new using python so I am not sure what to do since what I'm typing

where the function has problem? n = 900 is OK , but n = 1000 is ERROR

2011-08-01 Thread jc
# Get Fibonacci Value #Fibonacci(N) = Fibonacci(N-1) + Fibonacci(N-2) # # n = 900 is OK # n = 1000 is ERROR , Why # # What Wrong? # cache = [] def fibo( n ): try: if cache[n] != -1: return cache[n] else: if 0 == n: r = 0

Re: where the function has problem? n = 900 is OK , but n = 1000 is ERROR

2011-08-01 Thread Steven D'Aprano
jc wrote: # Get Fibonacci Value #Fibonacci(N) = Fibonacci(N-1) + Fibonacci(N-2) # # n = 900 is OK # n = 1000 is ERROR , Why How should we know? Please tell us what the error is, don't expect us to guess. [...] if __name__ == '__main__': # This n = 900 is OK # But n = 1000 is ERROR

Re: where the function has problem? n = 900 is OK , but n = 1000 is ERROR

2011-08-01 Thread Gennadiy Zlobin
The maximum depth of the Python interpreter stack is limited to 1000 calls by default. You can get it by import sys; sys.getrecursionlimit() and set a new value to sys.setrecursionlimit(new_value) - Gennadiy gennad.zlo...@gmail.com On Mon, Aug 1, 2011 at 4:11 PM, jc chen...@gmail.com wrote:

Notifications when process is killed

2011-08-01 Thread Andrea Di Mario
Hi, i've created a twisted server application and i want that the server send me a message when someone stops or kills the process. I want to override reactor.stop(), but do this way send me message when the process is stopped by a system kill? Could you suggest me if there's a way to do this?

Re: Notifications when process is killed

2011-08-01 Thread Thomas Jollans
On 01/08/11 11:56, Andrea Di Mario wrote: Hi, i've created a twisted server application and i want that the server send me a message when someone stops or kills the process. I want to override reactor.stop(), but do this way send me message when the process is stopped by a system kill? Could

Re: how to solve it?

2011-08-01 Thread Michael Poeltl
* 守株待兔 1248283...@qq.com [2011-08-01 06:22]: from matplotlib.matlab import * Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named matlab does this work? import matplotlib next check 'gallery' at http://matplotlib.sourceforge.net/index.html choose

Re: where the function has problem? n = 900 is OK , but n = 1000 is ERROR

2011-08-01 Thread Dave Angel
On 01/-10/-28163 02:59 PM, jc wrote: # Get Fibonacci Value #Fibonacci(N) = Fibonacci(N-1) + Fibonacci(N-2) # # n = 900 is OK # n = 1000 is ERROR , Why # # What Wrong? # cache = [] def fibo( n ): try: if cache[n] != -1: return cache[n] else:

Re: where the function has problem? n = 900 is OK , but n = 1000 is ERROR

2011-08-01 Thread Ulrich Eckhardt
Steven D'Aprano wrote: jc wrote: n = 900 cache = range(0 , n + 1 , 1) for i in cache: cache[i] = -1 This is a waste of time. Better to write: cache = [-1]*900 Since he's computing the Fibonacci number of n, and n is 900, he needs cache = [-1] * (n + 1) ;^) Even

How add/change password for RSA priv key using PyCrypto

2011-08-01 Thread k2
Hi, maybe somebody be able to help me. I'm using PyCrypto to generate a pair of RSA keys. The public key and private key. I try to add a password to the private key, and I do not know how to do it. This is a piece of my code. #encoding:utf-8 from Crypto.PublicKey import RSA pass_alice='ala'

Re: Spam

2011-08-01 Thread Matty Sarro
I agree, the Bollywood spam sucks. There's not even any boobies! On Aug 1, 2011 4:16 AM, Steven Dapos;Aprano steve+comp.lang.pyt...@pearwood.info wrote: Ghodmode wrote: I've noticed that python-list gets significantly more spam than the other lists I subscribe to. There's an example below.

Re: Question

2011-08-01 Thread mark ferguson
Peter - well caught! I've been wondering how that line could have arisen when running a script through the interpreter from the command line! Pasting it into Idle gives exactly that output. It was the leading $ that threw me, I took it as the shell prompt. I think that Camilo was actually typing

Re: how to solve it?

2011-08-01 Thread Michael Poeltl
* 守株待兔 1248283...@qq.com [2011-08-01 06:22]: from matplotlib.matlab import * Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named matlab is this what you were looking for? from matplotlib.pylab import * cheers Michael -- Michael Poeltl

Re: [ANN] IPython 0.11 is officially out

2011-08-01 Thread Thorsten Kampe
* Fernando Perez (Sun, 31 Jul 2011 17:26:50 + (UTC)) on behalf of the IPython development team, I'm thrilled to announce, after more than two years of development work, the official release of IPython 0.11. This release brings a long list of improvements and new features (along with

Re: where the function has problem? n = 900 is OK , but n = 1000 is ERROR

2011-08-01 Thread Billy Mays
On 08/01/2011 05:11 AM, jc wrote: # Get Fibonacci Value #Fibonacci(N) = Fibonacci(N-1) + Fibonacci(N-2) # # n = 900 is OK # n = 1000 is ERROR , Why # # What Wrong? # I have fixed the problem for you: def fibo(n): phi = (1+5**.5)/2; iphi = 1-phi; return (phi**n - iphi**n) /

Re: where the function has problem? n = 900 is OK , but n = 1000 is ERROR

2011-08-01 Thread Thomas Rachel
Am 01.08.2011 11:11 schrieb jc: except: print EXCEPT: + str(n) If you catch all exceptions here, it is clear that you only get this. Why don't you do except Exception, e: print EXCEPT: + str(n), e ? Then you could at least ask why do I get a unsupported operand type(s)

python reading file memory cost

2011-08-01 Thread Tong Zhang
Hello, everyone! I am trying to read a little big txt file (~1 GB) by python2.7, what I want to do is to read these data into a array, meanwhile, I monitor the memory cost, I found that it cost more than 6 GB RAM! So I have two questions: 1: How to estimate memory cost before exec python

Re: PEP 8 and extraneous whitespace

2011-08-01 Thread Thomas 'PointedEars' Lahn
OKB (not okblacke) wrote: Thomas 'PointedEars' Lahn wrote: Automatic word-wrap, where available, really is not a solution; it is a bad workaround to a problem caused by the original author of the source code that can be easily avoided by them taking more care while coding. I think

Re: python reading file memory cost

2011-08-01 Thread Thomas Jollans
On 01/08/11 17:05, Tong Zhang wrote: Hello, everyone! I am trying to read a little big txt file (~1 GB) by python2.7, what I want to do is to read these data into a array, meanwhile, I monitor the memory cost, I found that it cost more than 6 GB RAM! So I have two questions: 1: How

Complex sort on big files

2011-08-01 Thread aliman
Hi all, Apologies I'm sure this has been asked many times, but I'm trying to figure out the most efficient way to do a complex sort on very large files. I've read the recipe at [1] and understand that the way to sort a large file is to break it into chunks, sort each chunk and write sorted

Notifications when process is killed

2011-08-01 Thread Andrea Di Mario
Thanks Thomas, it is what i'm looking for. Regards -- Andrea Di Mario -- http://mail.python.org/mailman/listinfo/python-list

Re: python reading file memory cost

2011-08-01 Thread Dan Stromberg
A code snippet would work wonders in making sure you've communicated what you really need, or at least what you have now. But if you read the data into one big string, that'll be much more efficient than if you read it as a list of integers or even as a list of lines. Processing the data one

Re: Complex sort on big files

2011-08-01 Thread Dan Stromberg
Python 2.x, or Python 3.x? What are the types of your sort keys? If you're on 3.x and the key you need reversed is numeric, you can negate the key. If you're on 2.x, you can use an object with a __cmp__ method to compare objects however you require. You probably should timsort the chunks

Re: Complex sort on big files

2011-08-01 Thread Peter Otten
aliman wrote: Apologies I'm sure this has been asked many times, but I'm trying to figure out the most efficient way to do a complex sort on very large files. I've read the recipe at [1] and understand that the way to sort a large file is to break it into chunks, sort each chunk and write

Re: What's in a name?

2011-08-01 Thread Andrew Berg
Hmm How about Rainbow Video Encoder Wrapper (Rainbow View for short - RView is taken, possibly multiple times)? I added an arbitrary word to a generic name, and the result doesn't seem to be taken by anything software-related. It wraps more than just video encoders (in fact, x264 will likely

Re: os.path.dirname(sys.argv[0]) always returns nothing

2011-08-01 Thread Chris Angelico
On Mon, Aug 1, 2011 at 6:38 PM, happykid psyking...@gmail.com wrote: I want to use this function to get the directory path of the running script, but it always returns empty string. Can anyone help me solve this? Thank you. As long as you haven't changed directory since startup, you should be

Re: os.path.dirname(sys.argv[0]) always returns nothing

2011-08-01 Thread Thijs Engels
On Mon, 01 Aug 2011 10:38 -0700, happykid psyking...@gmail.com wrote: I want to use this function to get the directory path of the running script, but it always returns empty string. Can anyone help me solve this? Thank you. -- http://mail.python.org/mailman/listinfo/python-list I think

Re: os.path.dirname(sys.argv[0]) always returns nothing

2011-08-01 Thread Benjamin Kaplan
On Mon, Aug 1, 2011 at 1:38 PM, happykid psyking...@gmail.com wrote: I want to use this function to get the directory path of the running script, but it always returns empty string. Can anyone help me solve this? Thank you. -- sys.argv[0] is the name of the script you called. If you call

Re: os.path.dirname(sys.argv[0]) always returns nothing

2011-08-01 Thread John Gordon
In 9797b629-3fba-4b90-920f-e42668359...@a12g2000vbf.googlegroups.com happykid psyking...@gmail.com writes: I want to use this function to get the directory path of the running script, but it always returns empty string. Can anyone help me solve this? Thank you. What is the value of

Re: os.path.dirname(sys.argv[0]) always returns nothing

2011-08-01 Thread Chris Angelico
On Mon, Aug 1, 2011 at 6:55 PM, Thijs Engels th...@buckazoids.com wrote: argv[0] returns the name of the current file (string), but no path information if I recall correct. It will give path information if you're invoking a script from another directory. Under some circumstances it might happen

Re: Spam

2011-08-01 Thread harrismh777
Steven D'Aprano wrote: I've noticed that python-list gets significantly more spam than the other lists I subscribe to. There's an example below. Thanks for that! I missed it the first time, so it is very helpful for you to forward it. It's especially helpful that you included all the

Re: where the function has problem? n = 900 is OK , but n = 1000 is ERROR

2011-08-01 Thread Steven D'Aprano
Billy Mays wrote: I have fixed the problem for you: def fibo(n): phi = (1+5**.5)/2; iphi = 1-phi; return (phi**n - iphi**n) / (5**.5) Does your definition of fixed mean gives wrong results for n = 4 ? fibo(4) == 3 False -- Steven --

test systems

2011-08-01 Thread Ethan Furman
Howdy, I'm going to setup a few linux systems for testing (probably three) as well as the three FreeBSD, OpenBSD, and (possibly) NetBsd. Oh, and Windows. ;) Any recommendations on which linuces to pick? ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list

Re: test systems

2011-08-01 Thread Dan Stromberg
I've been testing my Python code on these using virtualbox and/or physical machines (but mostly virtualbox): CentOS 6.0 Debian DragonflyBSD Fedora 15 FreeBSD Haiku R1 alpha 3 Linux Mint Minix OpenIndiana openSUSE Sabayon Scientific Linux 6 Slackware Solaris Express Ubuntu Windows 7 Sadly, I

Re: test systems

2011-08-01 Thread Alister Ware
On Mon, 01 Aug 2011 15:42:19 -0700, Ethan Furman wrote: Howdy, I'm going to setup a few linux systems for testing (probably three) as well as the three FreeBSD, OpenBSD, and (possibly) NetBsd. Oh, and Windows. ;) Any recommendations on which linuces to pick? ~Ethan~ I would suggest

Re: test systems

2011-08-01 Thread Steven D'Aprano
Ethan Furman wrote: Howdy, I'm going to setup a few linux systems for testing (probably three) as well as the three FreeBSD, OpenBSD, and (possibly) NetBsd. Oh, and Windows. ;) Any recommendations on which linuces to pick? What are you testing? Is this for buildbots? Are you testing

Re: Hostmonster : Installing MySQLdb at a specific location

2011-08-01 Thread Tim Johnson
* Tim Johnson t...@johnsons-web.com [110731 11:47]: I don't want to discourage any further input, but I'm looking at https://my.hostmonster.com/cgi/help/000531?step=000531 regarding installing django and I think the instructions can be extrapolated for MySQLdb. I will report what

Re: os.path.dirname(sys.argv[0]) always returns nothing

2011-08-01 Thread Gregory Ewing
Thijs Engels wrote: argv[0] returns the name of the current file (string), but no path information if I recall correct. It's the path that was used to specify the script by whatever launched it, so it could be either absolute or relative to the current directory. -- Greg --

Re: test systems

2011-08-01 Thread Thomas Jollans
On 02/08/11 00:42, Ethan Furman wrote: Howdy, I'm going to setup a few linux systems for testing (probably three) as well as the three FreeBSD, OpenBSD, and (possibly) NetBsd. Oh, and Windows. ;) Any recommendations on which linuces to pick? I would say that the Debian vs Red Hat issue

RE: Convert '165.0' to int

2011-08-01 Thread Prasad, Ramit
-Original Message- From: python-list-bounces+ramit.prasad=jpmchase@python.org [mailto:python-list-bounces+ramit.prasad=jpmchase@python.org] On Behalf Of Frank Millman Sent: Monday, July 25, 2011 12:51 AM To: python-list@python.org Subject: Re: Convert '165.0' to int On Jul 25,

RE: Convert '165.0' to int

2011-08-01 Thread Prasad, Ramit
-Original Message- From: python-list-bounces+ramit.prasad=jpmchase@python.org [mailto:python-list-bounces+ramit.prasad=jpmchase@python.org] On Behalf Of Gregory Ewing Sent: Sunday, July 24, 2011 7:05 PM To: python-list@python.org Subject: Re: Convert '165.0' to int Frank Millman

Re: test systems

2011-08-01 Thread Chris Angelico
On Mon, Aug 1, 2011 at 11:42 PM, Ethan Furman et...@stoneleaf.us wrote: Howdy, I'm going to setup a few linux systems for testing (probably three) as well as the three FreeBSD, OpenBSD, and (possibly) NetBsd.  Oh, and Windows.  ;) Any recommendations on which linuces to pick? Others have

Re: test systems

2011-08-01 Thread James Matthews
Wow, why don't you find some cloud providers and write bootstrap programs. James On Mon, Aug 1, 2011 at 6:35 PM, Dan Stromberg drsali...@gmail.com wrote: I've been testing my Python code on these using virtualbox and/or physical machines (but mostly virtualbox): CentOS 6.0 Debian

Re: python reading file memory cost

2011-08-01 Thread Tony Zhang
Thanks! Actually, I used .readline() to parse file line by line, because I need to find out the start position to extract data into list, and the end point to pause extracting, then repeat until the end of file. My file to read is formatted like this: blabla...useless useless... /sign/ data

Re: Spam

2011-08-01 Thread Ghodmode
On Tue, Aug 2, 2011 at 3:17 AM, harrismh777 har...@member.fsf.org wrote: Steven D'Aprano wrote: I've noticed that python-list gets significantly more spam than the other lists I subscribe to. There's an example below. Thanks for that! I missed it the first time, so it is very helpful for

Map-based module imports with import hook

2011-08-01 Thread mpj
Hi, I've experience working at companies where, because of the network set up, having a long PYTHONPATH and searching it is quite a heavy task and can slow down the start up of the interpreter when there are lots of imports. As a proof of concept I wanted to look at a map-based approach. The

Re: python reading file memory cost

2011-08-01 Thread Dan Stromberg
You could try forcing a garbage collection... On Mon, Aug 1, 2011 at 8:22 PM, Tony Zhang warriorla...@gmail.com wrote: Thanks! Actually, I used .readline() to parse file line by line, because I need to find out the start position to extract data into list, and the end point to pause

Re: Spam

2011-08-01 Thread Chris Angelico
On Tue, Aug 2, 2011 at 4:58 AM, Ghodmode ghodm...@ghodmode.com wrote: I hope it's clear that reading an email doesn't constitute visiting all of the sites linked in the email and therefore doesn't improve Google page ranks or provide any other tracking information.  Also note that the original

[issue12673] SEGFAULT error on OpenBSD (sparc)

2011-08-01 Thread rpointel
New submission from rpointel pyt...@xiri.fr: Hello, on OpenBSD (arch: sparc), I got a SIGBUS error during the compilation. gdb info: #0 0x089f136c in listextend (self=0xb6232d8, b=0xb611060) at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Objects/listobject.c:838 838

[issue12648] Wrong import module search order on Windows

2011-08-01 Thread kota
kota nospam.kotarou.d...@gmail.com added the comment: Ok. Time to get those people over at glib to fix up their python script then :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12648

[issue12631] Mutable Sequence Type in .remove() is consistent only with lists, but not with bytearrays

2011-08-01 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12631 ___ ___ Python-bugs-list

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-08-01 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: See also #12631 regarding the remove() method for bytearray. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170 ___

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-08-01 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: See also #12631 regarding the remove() method for bytearray. AFAICS, it's about bytearray.remove() working but bytearray.index() not working as documented, and that's why I marked is as a duplicate of this issue. --

[issue12667] Better logging.handler.SMTPHandler doc for 'secure' argument

2011-08-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 42f40f53fd73 by Vinay Sajip in branch '2.7': Closes #12667: Corrected documentation for SMTPHandler secure argument. http://hg.python.org/cpython/rev/42f40f53fd73 New changeset ba5bd8c1ae27 by Vinay Sajip in branch

[issue12673] SEGFAULT error on OpenBSD (sparc)

2011-08-01 Thread rpointel
rpointel pyt...@xiri.fr added the comment: This bug seems to be the same than 7424: http://bugs.python.org/issue7424 Sorry I didn't seen it before. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12673

[issue12674] pydoc str.split does not find the method

2011-08-01 Thread thp
New submission from thp t...@thpinfo.com: If I want to get help on a method on a built-in class (e.g. list or str) I can use the help function in the interactive shell: help(str.split) help(list.append) However, when I try to do the same with the command-line utility pydoc it does not

[issue12674] pydoc str.split does not find the method

2011-08-01 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - pydoc str works but not pydoc str.translate type: - behavior ___ Python tracker rep...@bugs.python.org

[issue12673] SEGFAULT error on OpenBSD (sparc)

2011-08-01 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - segmentation fault in listextend during install ___ Python tracker rep...@bugs.python.org

[issue11104] distutils sdist ignores MANIFEST

2011-08-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5d3e22d69d4f by Éric Araujo in branch '3.2': Fix regression with distutils MANIFEST handing (#11104, #8688). http://hg.python.org/cpython/rev/5d3e22d69d4f -- nosy: +python-dev

[issue9860] Building python outside of source directory fails

2011-08-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 313a71664781 by Éric Araujo in branch '3.2': Let “make patchcheck” work for out-of-dir builds (#9860) http://hg.python.org/cpython/rev/313a71664781 New changeset 5993f91598ce by Éric Araujo in branch 'default':

[issue12331] lib2to3 and packaging tests fail because they write into protected directory

2011-08-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2b5a0c4e052b by Éric Araujo in branch '3.2': Stop trying to write into the stdlib during lib2to3 tests (#12331). http://hg.python.org/cpython/rev/2b5a0c4e052b New changeset 7ee8f413188e by Éric Araujo in branch

[issue7424] segmentation fault in listextend during install

2011-08-01 Thread rpointel
Changes by rpointel pyt...@xiri.fr: -- nosy: +rpointel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7424 ___ ___ Python-bugs-list mailing list

[issue12331] lib2to3 and packaging tests fail because they write into protected directory

2011-08-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a425408f1e52 by Éric Araujo in branch '2.7': Stop trying to write into the stdlib during lib2to3 tests (#12331). http://hg.python.org/cpython/rev/a425408f1e52 -- ___

[issue11104] distutils sdist ignores MANIFEST

2011-08-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 21feea7f35e5 by Éric Araujo in branch '2.7': Fix regression with distutils MANIFEST handing (#11104, #8688). http://hg.python.org/cpython/rev/21feea7f35e5 -- ___ Python

[issue9860] Building python outside of source directory fails

2011-08-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bea11ce24bb0 by Éric Araujo in branch '2.7': Let “make patchcheck” work for out-of-dir builds (#9860) http://hg.python.org/cpython/rev/bea11ce24bb0 -- ___ Python tracker

[issue12331] lib2to3 and packaging tests fail because they write into protected directory

2011-08-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This is now fixed. Let me just eat these words: “This should not be too hard to fix”. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker

[issue11104] distutils sdist ignores MANIFEST

2011-08-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I did some more work on the patch and committed. Thanks again to both of you. I also thought again about this remark: Changeset r83996 was introduced to prevent sdist from overwriting a project maintained manifest by testing for a comment at

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-01 Thread Gareth Rees
New submission from Gareth Rees g...@garethrees.org: The tokenize module is happy to tokenize Python source code that the real tokenizer would reject. Pretty much any instance where tokenizer.c returns ERRORTOKEN will illustrate this feature. Here are some examples: Python 3.3.0a0

[issue12676] Bug in http.client

2011-08-01 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: There appears to be used a variable that is not defined in HTTPConnection.send method. The approximate line is 781. How to reproduce: import http.client import urllib.parse c = urllib.parse.urlencode({user:claudiu, password:1}) c =

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Some notes: - By doing things this way, we lose the ability to specify custom arguments to the interpreter with $(TESTPYTHONOPTS). Might this be a problem? Yes, some buildbots use it. Can't you add support for it in the test runner? - The

[issue12676] Bug in http.client

2011-08-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: It looks like “it” should be “data”. -- assignee: - orsenthil keywords: +easy nosy: +eric.araujo, orsenthil stage: - needs patch versions: +Python 2.7, Python 3.3 ___ Python tracker

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-01 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm not familiar with the parser internals (I'm nosying someone who is), but I suspect what you are seeing at the command line is the errors being caught at a stage later than the tokenizer. -- nosy: +benjamin.peterson,

[issue12562] calling mmap twice fails on Windows

2011-08-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Vlad, thank you for the diagnosis. Indeed by passing a different tagname (or no tagname at all), the problem doesn't occur. Since mmap.mmap() matches the semantics chosen by Microsoft here, I tend to think this is not a bug; besides, fixing it

[issue12436] Missing items in installation/setup instructions

2011-08-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I propose that we just narrow the scope of this report. If you agree with my earlier message, the current docs just need a few patches: - How to prepare a text editor - How to run Python code from a file (if the tutorial or using docs don’t

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: As an aside, the quicktest would probably deserve an update. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___

[issue12677] Turtle, fix right/left rotation orientation

2011-08-01 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: Hello, following up http://mail.python.org/pipermail/docs/2011-July/005235.html here's 2 patch (for 3.3 + 3.2 and 2.7) to correct the orientation in the documentation, using turtle.right instead of turtle.left, since the work

[issue12677] Turtle, fix right/left rotation orientation

2011-08-01 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: Added file: http://bugs.python.org/file22819/turtle_right-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12677 ___

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Some notes: - By doing things this way, we lose the ability to specify custom arguments to the interpreter with $(TESTPYTHONOPTS). Might this be a problem? Yes, some buildbots use it. Can't you add support for it in the test

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-01 Thread Gareth Rees
Gareth Rees g...@garethrees.org added the comment: These errors are generated directly by the tokenizer. In tokenizer.c, the tokenizer generates ERRORTOKEN when it encounters something it can't tokenize. This causes parsetok() in parsetok.c to stop tokenizing and return an error. --

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: As an aside, the quicktest would probably deserve an update. How so? Should it perhaps use -u none? No, I meant the list of tests that it disables. -- ___ Python tracker rep...@bugs.python.org

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: What changes do you suggest? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What changes do you suggest? Not sure, I never use it. But test_concurrent_futures is not in the list for example. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651

[issue12562] calling mmap twice fails on Windows

2011-08-01 Thread Piotr Zolnierczuk
Piotr Zolnierczuk piotr.zolnierc...@gmail.com added the comment: OK. I will work around it. I was using 'mapping object of a specified size that is backed by the system paging file instead of by a file in the file system' - map-handle == INVALID_HANDLE_VALUE (-1), i.e. shared memory for

[issue10087] HTML calendar is broken

2011-08-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch looks good. I made a few very minor style comments on Rietveld (follow the “review” link). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10087

[issue12562] calling mmap twice fails on Windows

2011-08-01 Thread Piotr Zolnierczuk
Piotr Zolnierczuk piotr.zolnierc...@gmail.com added the comment: Just looked into my partner C++ code and he's using it very much like in Python 2.5: m_obj-map_handle = CreateFileMapping (INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE,

[issue12562] calling mmap twice fails on Windows

2011-08-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Note that multiprocessing can abstract this kind of things for you: http://docs.python.org/library/multiprocessing#sharing-state-between-processes http://docs.python.org/library/multiprocessing#module-multiprocessing.sharedctypes --

[issue12562] calling mmap twice fails on Windows

2011-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12562 ___ ___ Python-bugs-list

  1   2   >