StarCluster 0.91 Released - Scientific Computing on Amazon EC2

2010-05-28 Thread Justin Riley
Hi All, The next version, 0.91, of StarCluster (http://web.mit.edu/starcluster) has been released. StarCluster is a utility for creating and managing scientific computing clusters hosted on Amazon's Elastic Compute Cloud (EC2). StarCluster utilizes Amazon's EC2 web service to create and destroy

asciitable 0.2.4: an extensible ASCII table reader

2010-05-28 Thread Tald
I'm pleased to announce the release of version 0.2.4 of the asciitable module. Please see the project home page or PyPI for download and documentation: http://cxc.harvard.edu/contrib/asciitable/ At the top level asciitable looks like many other ASCII table readers since it provides a default

Tryton 1.6 series is out

2010-05-28 Thread ced
Tryton is a three-tiers high-level general purpose application platform under the license GPL-3 written in Python and using PostgreSQL as main database engine. It is the core base of a complete business solution providing modularity, scalability and security. This new release comes with the

Nagare IDE 0.1.0 - Pure Web IDE for the Nagare framework

2010-05-28 Thread Alain Poirier
Hi all, I'm pleased to announce that the first (0.1.0) version of the Nagare IDE is released! Nagare IDE is a pure Web Integrated Development Environment dedicated to the Nagare Web framework. Using YUI, the Bespin editor, ajax and comet communications, it offers the browsing of your projects,

Re: First script. Need some help

2010-05-28 Thread ledpepper
Thanks Everyone. I followed your instructions and my script is successfully copying the result to the clipboard. Now for the fun. To work out the rest of the script :) I use the IDLE IDE and not codepad.org. I just thought that was the standard for pasting scripts here in this group. Thanks all.

Hansika Motwani IN DENIM JEANS Hansika Motwani BEAUTIFUL BELLY Hansika Motwani as college GIRL Hansika Motwani in GYM in RED BRA Hansika Motwani in GREEN SAREE BELLY BOLLYWOOD GIRLS on h

2010-05-28 Thread Naeem
Hansika Motwani IN DENIM JEANS Hansika Motwani BEAUTIFUL BELLY Hansika Motwani as college GIRL Hansika Motwani in GYM in RED BRA Hansika Motwani in GREEN SAREE BELLY BOLLYWOOD GIRLS on http://hollywood-bollywood-pics.blogspot.com Hansika Motwani IN DENIM JEANS Hansika Motwani BEAUTIFUL BELLY

Re: Minor annoyances with properties

2010-05-28 Thread eb303
On May 27, 3:24 pm, Christian Heimes li...@cheimes.de wrote:  Do I miss something? Is this the way to do it, or is there a better one? A better way was introduced in Python 2.6. Seehttp://docs.python.org/library/functions.html?highlight=property#prop... I have a Python only version around

Re: Minor annoyances with properties

2010-05-28 Thread eb303
On May 27, 8:56 pm, Francesco Bochicchio bieff...@gmail.com wrote: On 27 Mag, 14:37, eb303 eric.brunel.pragma...@gmail.com wrote: Hello all, I've been using Python properties quite a lot lately and I've found a few things that are a bit annoying about them in some cases. I wondered if

Re: Minor annoyances with properties

2010-05-28 Thread eb303
On May 27, 3:14 pm, Neil Cerutti ne...@norwich.edu wrote: On 2010-05-27, eb303 eric.brunel.pragma...@gmail.com wrote: I've been using Python properties quite a lot lately and I've found a few things that are a bit annoying about them in some cases. I wondered if I missed something or if

Re: Minor annoyances with properties

2010-05-28 Thread Christian Heimes
Am 28.05.2010 11:31, schrieb eb303: On May 27, 3:24 pm, Christian Heimes li...@cheimes.de wrote: Do I miss something? Is this the way to do it, or is there a better one? A better way was introduced in Python 2.6. Seehttp://docs.python.org/library/functions.html?highlight=property#prop...

Re: if, continuation and indentation

2010-05-28 Thread Jonathan Hartley
On May 27, 1:57 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: HH wrote: I have a question about best practices when it comes to line wrapping/ continuation and indentation, specifically in the case of an if statement. When I write an if statement with many conditions, I prefer

Re: if, continuation and indentation

2010-05-28 Thread Jean-Michel Pichavant
Jonathan Hartley wrote: On May 27, 1:57 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: HH wrote: I have a question about best practices when it comes to line wrapping/ continuation and indentation, specifically in the case of an if statement. When I write an if

Re: if, continuation and indentation

2010-05-28 Thread Jonathan Hartley
On 28/05/2010 11:34, Jean-Michel Pichavant wrote: Jonathan Hartley wrote: On May 27, 1:57 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: HH wrote: I have a question about best practices when it comes to line wrapping/ continuation and indentation, specifically in the case of an if

Sockets and xml problem

2010-05-28 Thread kak...@gmail.com
Hi in the following code class MyClientHandler(SocketServer.BaseRequestHandler): def handle(self): print self.client_address, now( ) time.sleep(5) while True: xmltxt = self.request.recv(1024)--is this ok - enough? if not xmltxt: break

Re: Yet Another MySQL Problem

2010-05-28 Thread Victor Subervi
On Thu, May 27, 2010 at 5:47 PM, Tim Chase python.l...@tim.thechases.comwrote: On 05/27/2010 03:32 PM, Victor Subervi wrote: On Thu, May 27, 2010 at 1:15 PM, Tim Chase wrote: That should be: ', '.join(['%s'] * len(values))) Or as I've done in the past: ', '.join('%s' for _

Re: Some More MySQL

2010-05-28 Thread Victor Subervi
On Fri, May 28, 2010 at 2:17 AM, Dennis Lee Bieber wlfr...@ix.netcom.comwrote: On Thu, 27 May 2010 23:22:24 +0100, MRAB pyt...@mrabarnett.plus.com declaimed the following in gmane.comp.python.general: Placeholders which are handled by .execute shouldn't be wrapped in quotes, even is the

Re: multiprocessing and accessing server's stdout

2010-05-28 Thread Adam Tauno Williams
On Thu, 2010-05-27 at 08:36 -0700, Tim Arnold wrote: On May 26, 4:52 pm, Adam Tauno Williams awill...@whitemice.org wrote: On Wed, 2010-05-26 at 11:47 -0700, Tim Arnold wrote: Hi, I'm using multiprocessing's BaseManager to create a server on one machine and a client on another. The

Re: Sockets and xml problem

2010-05-28 Thread Stefan Behnel
kak...@gmail.com, 28.05.2010 13:50: Hi in the following code class MyClientHandler(SocketServer.BaseRequestHandler): def handle(self): print self.client_address, now( ) time.sleep(5) while True: xmltxt = self.request.recv(1024)--is this ok - enough?

Re: Sockets and xml problem

2010-05-28 Thread kak...@gmail.com
On May 28, 3:23 pm, Stefan Behnel stefan...@behnel.de wrote: kak...@gmail.com, 28.05.2010 13:50: Hi in the following code class MyClientHandler(SocketServer.BaseRequestHandler):      def handle(self):          print self.client_address, now( )          time.sleep(5)          while

Re: Some More MySQL

2010-05-28 Thread Kushal Kumaran
On Fri, May 28, 2010 at 5:46 PM, Victor Subervi victorsube...@gmail.com wrote: On Fri, May 28, 2010 at 2:17 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Thu, 27 May 2010 23:22:24 +0100, MRAB pyt...@mrabarnett.plus.com declaimed the following in gmane.comp.python.general:

Re: Free chapter about Python and databases (MySQL and SQLite)

2010-05-28 Thread Tino Wildenhain
Hi, Am 28.05.2010 04:45, schrieb Sebastian Bassi: Hello, I want to announce that the publisher of Python for Bioinformatis (CRC Press) allowed me to publish a chapter from my book. I decided to publish the chapter about Python and databases. I think it may be useful for somebody. The official

Re: multiprocessing and accessing server's stdout

2010-05-28 Thread Martin P. Hellwig
On 05/28/10 13:17, Adam Tauno Williams wrote: cut You should be able to point it any any file-like object. But, again, why? If you have the data in the process why send it to stdout and redirect it. Why not just send the data to the client directly? Well you might want to multiplex it to

Re: Minor annoyances with properties

2010-05-28 Thread eb303
On May 28, 11:50 am, Christian Heimes li...@cheimes.de wrote: Am 28.05.2010 11:31, schrieb eb303: On May 27, 3:24 pm, Christian Heimes li...@cheimes.de wrote:  Do I miss something? Is this the way to do it, or is there a better one? A better way was introduced in Python 2.6.

Re: Free chapter about Python and databases (MySQL and SQLite)

2010-05-28 Thread Sebastian Bassi
On Fri, May 28, 2010 at 9:41 AM, Tino Wildenhain t...@wildenhain.de wrote: Did you consider adding a part dealing with postgresql too? (Especially interesting in the way you can write stored functions in python there) That is a good idea for the next version/edition. But meanwhile I could

Re: http post

2010-05-28 Thread christian schulze
On 28 Mai, 16:47, yqyq22 yqy...@hotmail.com wrote: Hy, i would like to create a little script to reproduce this one below: Do you have suggestion? POST /folder/path/upload.exe?/dir HTTP/1.1 Host: 192.168.100.1:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: 1.9.2.3)

Re: http post

2010-05-28 Thread yqyq22
On May 28, 5:17 pm, christian schulze xcr...@googlemail.com wrote: On 28 Mai, 16:47, yqyq22 yqy...@hotmail.com wrote: Hy, i would like to create a little script to reproduce this one below: Do you have suggestion? POST /folder/path/upload.exe?/dir HTTP/1.1 Host: 192.168.100.1:8080

Re: Free chapter about Python and databases (MySQL and SQLite)

2010-05-28 Thread christian schulze
On 28 Mai, 17:12, Sebastian Bassi sba...@clubdelarazon.org wrote: On Fri, May 28, 2010 at 9:41 AM, Tino Wildenhain t...@wildenhain.de wrote: Did you consider adding a part dealing with postgresql too? (Especially interesting in the way you can write stored functions in python there) That

Omit the headers from XML message

2010-05-28 Thread kak...@gmail.com
Hi i have the following xml message i want to omit the headers, any hints? POST /test/pcp/Listener HTTP/1.1 User-Agent: Jakarta Commons-HttpClient/3.1 Host: 127.0.0.1:50002 Content-Length: 547 pt_control_message xmlns=http://demo.com/demo; cmdReply sessionList session

Re: http post

2010-05-28 Thread christian schulze
On 28 Mai, 17:20, yqyq22 yqy...@hotmail.com wrote: On May 28, 5:17 pm, christian schulze xcr...@googlemail.com wrote: On 28 Mai, 16:47, yqyq22 yqy...@hotmail.com wrote: Hy, i would like to create a little script to reproduce this one below: Do you have suggestion? POST

Re: http post

2010-05-28 Thread yqyq22
On May 28, 5:24 pm, christian schulze xcr...@googlemail.com wrote: On 28 Mai, 17:20, yqyq22 yqy...@hotmail.com wrote: On May 28, 5:17 pm, christian schulze xcr...@googlemail.com wrote: On 28 Mai, 16:47, yqyq22 yqy...@hotmail.com wrote: Hy, i would like to create a little script to

Re: Some More MySQL

2010-05-28 Thread Victor Subervi
I still have this code: sql = 'select * from options%s where ID=%%s', (opTable[0].upper() + opTable[1:]) cursor.execute(sql, (id,)) which throws this error: /var/www/html/angrynates.com/cart/enterOptionsPrices2.py 70 print 'All options prices have been successfully updated.'

Re: Yet Another MySQL Problem

2010-05-28 Thread Malcolm Greene
Tim, The underscore is a valid variable-name, idiomatically used for I don't care about this, often seen in places like tuple assignment: The underscore is also used as an alias for gettext.gettext or gettext.ugettext so you may want to use another variable-name. Malcolm --

Re: Omit the headers from XML message

2010-05-28 Thread Jon Clements
On 28 May, 16:24, kak...@gmail.com kak...@gmail.com wrote: Hi i have the following xml message i want to omit the headers, any hints? POST /test/pcp/Listener HTTP/1.1 User-Agent: Jakarta Commons-HttpClient/3.1 Host: 127.0.0.1:50002 Content-Length: 547 pt_control_message

Re: Free chapter about Python and databases (MySQL and SQLite)

2010-05-28 Thread Peter Otten
christian schulze wrote: On 28 Mai, 17:12, Sebastian Bassi sba...@clubdelarazon.org wrote: On Fri, May 28, 2010 at 9:41 AM, Tino Wildenhain t...@wildenhain.de wrote: Did you consider adding a part dealing with postgresql too? (Especially interesting in the way you can write stored

Re: Some More MySQL

2010-05-28 Thread MRAB
Victor Subervi wrote: I still have this code: sql = 'select * from options%s where ID=%%s', (opTable[0].upper() + opTable[1:]) cursor.execute(sql, (id,)) which throws this error: /var/www/html/angrynates.com/cart/enterOptionsPrices2.py

Re: Omit the headers from XML message

2010-05-28 Thread kak...@gmail.com
On 28 Μάϊος, 18:45, Jon Clements jon...@googlemail.com wrote: On 28 May, 16:24, kak...@gmail.com kak...@gmail.com wrote: Hi i have the following xml message i want to omit the headers, any hints? POST /test/pcp/Listener HTTP/1.1 User-Agent: Jakarta Commons-HttpClient/3.1 Host:

Re: Omit the headers from XML message

2010-05-28 Thread Stefan Behnel
kak...@gmail.com, 28.05.2010 17:24: Hi i have the following xml message i want to omit the headers, any hints? POST /test/pcp/Listener HTTP/1.1 User-Agent: Jakarta Commons-HttpClient/3.1 Host: 127.0.0.1:50002 Content-Length: 547 pt_control_message xmlns=http://demo.com/demo; cmdReply

Re: Omit the headers from XML message

2010-05-28 Thread Peter Otten
Jon Clements wrote: On 28 May, 16:24, kak...@gmail.com kak...@gmail.com wrote: Hi i have the following xml message i want to omit the headers, any hints? Assuming the header is separated by a blank line, something like: list(islice(dropwhile(bool, s.split('\n')), 1, None)) Making the

Re: ElementTree write creates large one line XML file ....

2010-05-28 Thread robert somerville
Thanks Robert Kern : prettyprint ; indent() does the trick ;-) ElementTree writes exactly what you tell it to. In XML, whitespace is significant. If you want newlines and/or indentation to make it pretty-looking, then you need to add those to your elements. Fredrik provides an example

Like __getattr__ but with args and kwargs as well

2010-05-28 Thread Giampaolo Rodolà
I know, the title doesn't say much, but I had no better ideas. =) I have a class within a serie of redundant methods, which looks like this: class MixedAuthorizer: def __init__(self, *args): # expected a list of class instances self.authorizers = args def get_home(self,

Re: Like __getattr__ but with args and kwargs as well

2010-05-28 Thread Miki
class MixedAuthorizer: def __init__(self, *args): # expected a list of class instances self.authorizers = args self._set_methods() def _set_methods(self): for attr in (home, password): def fn(user): return self._get_attr(user,

Re: Like __getattr__ but with args and kwargs as well

2010-05-28 Thread Chris Rebert
On Fri, May 28, 2010 at 10:08 AM, Giampaolo Rodolà g.rod...@gmail.com wrote: I know, the title doesn't say much, but I had no better ideas. =) I have a class within a serie of redundant methods, which looks like this: class MixedAuthorizer:    def __init__(self, *args):        # expected a

Re: Like __getattr__ but with args and kwargs as well

2010-05-28 Thread Miki
        method = getattr(auths[0], method_name, None) Should be fn = getattr(auths[0], method_name, None) -- http://mail.python.org/mailman/listinfo/python-list

Re: Like __getattr__ but with args and kwargs as well

2010-05-28 Thread Peter Otten
Giampaolo Rodolà wrote: I know, the title doesn't say much, but I had no better ideas. =) I have a class within a serie of redundant methods, which looks like this: class MixedAuthorizer: def __init__(self, *args): # expected a list of class instances

Re: if, continuation and indentation

2010-05-28 Thread Colin J. Williams
On 28-May-10 05:54 AM, Jonathan Hartley wrote: On May 27, 1:57 pm, Jean-Michel Pichavantjeanmic...@sequans.com wrote: HH wrote: I have a question about best practices when it comes to line wrapping/ continuation and indentation, specifically in the case of an if statement. When I write an

Re: Like __getattr__ but with args and kwargs as well

2010-05-28 Thread Giampaolo Rodolà
2010/5/28 Peter Otten __pete...@web.de: Giampaolo Rodolà wrote: I know, the title doesn't say much, but I had no better ideas. =) I have a class within a serie of redundant methods, which looks like this: class MixedAuthorizer:     def __init__(self, *args):         # expected a list of

Re: Like __getattr__ but with args and kwargs as well

2010-05-28 Thread MRAB
Giampaolo Rodolà wrote: I know, the title doesn't say much, but I had no better ideas. =) I have a class within a serie of redundant methods, which looks like this: class MixedAuthorizer: def __init__(self, *args): # expected a list of class instances self.authorizers =

Re: Omit the headers from XML message

2010-05-28 Thread kak...@gmail.com
On May 28, 7:48 pm, Peter Otten __pete...@web.de wrote: Jon Clements wrote: On 28 May, 16:24, kak...@gmail.com kak...@gmail.com wrote: Hi i have the following xml message i want to omit the headers, any hints? Assuming the header is separated by a blank line, something like:

Re: multiprocessing and accessing server's stdout

2010-05-28 Thread Adam Tauno Williams
On Fri, 2010-05-28 at 15:41 +0100, Martin P. Hellwig wrote: On 05/28/10 13:17, Adam Tauno Williams wrote: cut You should be able to point it any any file-like object. But, again, why? If you have the data in the process why send it to stdout and redirect it. Why not just send the data

A Friday Python Programming Pearl: random sampling

2010-05-28 Thread Mark Dickinson
For a lazy Friday evening, here's a Python algorithm that seemed so cute that I just had to share it with everyone. I'm sure it's well known to many here, but it was new to me. Skip directly to the 'sample2' function to see the algorithm and avoid the commentary... Suppose that you want to

Re: TypeError: _new_() takes exactly 3 arguments (2 given) - what does it mean?

2010-05-28 Thread Jesse McDonnell
On Wed, 26 May 2010 14:30:21 -0400 Terry Reedy tjre...@udel.edu wrote: On 5/24/2010 2:52 PM, Jesse McDonnell wrote: I'm attempting to install Powerline http://code.google.com/p/powerline/, a computer reservation software based on CherryPy/Python using a MYSql database, at my local library

Re: multiprocessing and accessing server's stdout

2010-05-28 Thread Martin P. Hellwig
On 05/28/10 21:44, Adam Tauno Williams wrote: On Fri, 2010-05-28 at 15:41 +0100, Martin P. Hellwig wrote: On 05/28/10 13:17, Adam Tauno Williams wrote: cut You should be able to point it any any file-like object. But, again, why? If you have the data in the process why send it to stdout and

Re: function that counts...

2010-05-28 Thread Lie Ryan
On 05/26/10 11:04, Bryan wrote: Jean-Michel Pichavant wrote: I still don't see how many positive integers less than n have digits that sum up to m makes it a partition though if that what prttn means. Surely because I miss the context. A partition of a positive integer m is an unordered

Re: Free chapter about Python and databases (MySQL and SQLite)

2010-05-28 Thread John Bokma
Sebastian Bassi sba...@clubdelarazon.org writes: On Fri, May 28, 2010 at 12:37 AM, John Bokma j...@castleamber.com wrote: I feel more than uncomfortable with example code that uses: user=root What's wrong with this? It is just an example of connection string. The reader will use his/her

Re: Free chapter about Python and databases (MySQL and SQLite)

2010-05-28 Thread Robinow
Mobile On May 28, 2010, at 10:05 PM, John Bokma j...@castleamber.com wrote: Sebastian Bassi sba...@clubdelarazon.org writes: On Fri, May 28, 2010 at 12:37 AM, John Bokma j...@castleamber.com wrote: Even if it's just a few bucks, it's still money saved [0]. On top of that I think it's

Neha Dhupia IN WATER Neha Dhupia IN BIKINI SEXY Neha Dhupia SEXY BELLY Neha Dhupia IN YELLOW BIKINI Neha Dhupia IN WHITE BIKINI Neha Dhupia AS MISS WORLD BOLLYWOOD BIKINI on http://

2010-05-28 Thread Naeem
Neha Dhupia IN WATER Neha Dhupia IN BIKINI SEXY Neha Dhupia SEXY BELLY Neha Dhupia IN YELLOW BIKINI Neha Dhupia IN WHITE BIKINI Neha Dhupia AS MISS WORLD BOLLYWOOD BIKINI on http://hollywood-bollywood-pics.blogspot.com/ Neha Dhupia IN WATER Neha Dhupia IN BIKINI SEXY Neha Dhupia SEXY

[issue8825] int(0,0) throws exception

2010-05-28 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Dino: I think Clark already did this: http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=27186 Sorry; I checked that there was an IronPython issue open before I closed this one, but forgot to mention it here. --

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: New submission from STINNER Victor victor.stin...@haypocalc.com: readbuffer_encode() and charbuffer_encode() are not really encoder nor related to encodings: they are related to PyBuffer. readbuffer_encode() uses

[issue8839] PyArg_ParseTuple(): remove t# format

2010-05-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: New submission from STINNER Victor victor.stin...@haypocalc.com: t# format was introduced by r11803 (11 years ago): Implement new format character 't#'. This is like s#, accepting an object that implements the

[issue8839] PyArg_ParseTuple(): remove t# format

2010-05-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: Patch to remove t#: - Update c-api/arg.rst documentation - Replace t# format by y# in codecs.charbuffer_encode() - Add a note in

[issue8839] PyArg_ParseTuple(): remove t# format

2010-05-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Given that y# is not (yet) in wide-spread use, ... t# is only used once (in codecs.charbuffer_encode()), whereas y# is used by ossaudiodev, socket and mmap modules (there are 8 functions using y#). There are 46 functions using y*

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Those two encoder functions were meant to be used by Python codec implementations which want to use the readbuffer and charbuffer interfaces available in Python via s# and t# to access input object data. Ah ok. They are not

[issue8835] buildbot: support.transient_internet() doesn't catch DNS socket.gaierror

2010-05-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: There is another error: test test_ssl failed -- Traceback (most recent call last): File /scratch/pybot-buildarea/trunk.klose-ubuntu-i386/build/Lib/test/test_ssl.py, line 261, in test_algorithms s.connect(remote) File

[issue8842] sqlite3 library outdated in Windows builds

2010-05-28 Thread Marko Kohtala
New submission from Marko Kohtala marko.koht...@gmail.com: The Windows builds seem to come with SQLite library version 3.5.9, as seen from sqlite3.sqlite_version. This is from 2008-May-12. I've been using the sqlite3 module, but keep running into bugs on Windows. Replacing the

[issue8839] PyArg_ParseTuple(): remove t# format

2010-05-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: Given that y# is not (yet) in wide-spread use, ... t# is only used once (in codecs.charbuffer_encode()), whereas y# is used by ossaudiodev, socket

[issue8843] urllib2 Digest Authorization uri must match request URI

2010-05-28 Thread Andrew Nelis
New submission from Andrew Nelis andrew.ne...@gmail.com: When using Digest authentication to authenticate with a web server, according to rfc2617 (section 3.2.2.5) the uri in the Authorization header MUST match the request URI. urllib2.AbstractDigestAuthHandler doesn't honour this when we

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: Those two encoder functions were meant to be used by Python codec implementations which want to use the readbuffer and charbuffer interfaces

[issue2920] Patch to print symbolic value or errno in EnvironmentError.__str__()

2010-05-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I don't like the import errno while printing an exception... It would be much more robust to store errorcode_dict in a static variable when python starts, and reuse it directly. -- nosy: +amaury.forgeotdarc

[issue8839] PyArg_ParseTuple(): remove t# format

2010-05-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le vendredi 28 mai 2010 13:30:22, vous avez écrit : Looking at the implementation again, I found that y# rejects Unicode, while s# returns the default encoded version like t# does in Python2. Oh, I didn't noticed that. So I

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Any Python object can expose a buffer interface and the above functions then allow accessing these interfaces from within Python. What's the point? The codecs functions already support objects exposing the buffer interface: b = b\xe9

[issue2920] Patch to print symbolic value or errno in EnvironmentError.__str__()

2010-05-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Agreed with Amaury. Module import could fail for various reasons (perhaps the same ones which led to the exception being raised!), or could deadlock if the import lock is being held. Also, having __str__ fail is usually very annoying for users

[issue2920] Patch to print symbolic value or errno in EnvironmentError.__str__()

2010-05-28 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: The patch already checks for failed import and falls back to printing numerical error code. However, I don't like the import either. I will think about the alternatives. On May 28, 2010, at 8:27 AM, Antoine Pitrou

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Any Python object can expose a buffer interface and the above functions then allow accessing these interfaces from within Python. What's the point? The codecs

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’d be grateful if someone could post links to discussion about the removal of codecs like hex and rot13 and about their coming back. It may be useful for a NEWS entry too, not just for my personal curiosity ;) I’ll try to find them next week

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: class BinaryDataCodec(codecs.Codec): # Note: Binding these as C functions will result in the class not # converting them to methods. This is intended. encode = codecs.readbuffer_encode decode = codecs.latin_1_decode What's

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I’d be grateful if someone could post links to discussion about the removal of codecs like hex and rot13 r55932 (~3 years ago): Rip out all codecs that can't work in a unicode/bytes world: base64, uu, zlib, rot_13, hex, quopri,

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the link. Do you have a pointer to the PEP or ML thread discussing that change? “Which coming back?” Martin said these codecs are coming back in 3.2. -- title: Remove codecs.readbuffer_encode()and

[issue8843] urllib2 Digest Authorization uri must match request URI

2010-05-28 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - orsenthil nosy: +orsenthil stage: - patch review versions: +Python 2.6, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8843

[issue8839] PyArg_ParseTuple(): remove t# format

2010-05-28 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8839 ___ ___ Python-bugs-list mailing

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Martin said these codecs are coming back in 3.2. Oh, there is the issue #7485 where Martin wrote: * 2009-12-10 23:15: It was a mistake that they were integrated * 2009-12-12 19:25: I would still be opposed to such a change (...)

[issue7475] codecs missing: base64 bz2 hex zlib ...

2010-05-28 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475 ___ ___

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread Walter Dörwald
Walter Dörwald wal...@livinglogic.de added the comment: I’d be grateful if someone could post links to discussion about the removal of codecs like hex and rot13 r55932 (~3 years ago): That was my commit. ;) Thanks for the link. Do you have a pointer to the PEP or ML thread discussing

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: class BinaryDataCodec(codecs.Codec): # Note: Binding these as C functions will result in the class not # converting them to methods. This is intended.

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, there is the issue #7485 where Martin wrote: Copy/paste failure: issue #7475. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8838

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: Martin said these codecs are coming back in 3.2. I said that and it was discussed on the python-dev mailing list a while back. We'll also add .transform() methods on bytes and str objects to access same-type codecs.

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: readbuffer_encode() and charbuffer_encode() are not really encoder nor related to encodings: they are related to PyBuffer That was the initial problem: codecs is specific to encodings (in Python3), encodes str to bytes, and

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: And all this doesn't address the fact that these functions have never been documented, and don't seem used in the outside world (understandably so, since there's no way to know about their existence, and their intended use). That's a

[issue8842] sqlite3 library outdated in Windows builds

2010-05-28 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: SQLite was upgraded to 3.6.21 about 4 months ago for 2.7 and 3.2. -- nosy: +brian.curtin resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7475] codecs missing: base64 bz2 hex zlib ...

2010-05-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I agree with Martin: codecs choosed the wrong direction in Python2, and it's fixed in Python3. The codecs module is related to charsets (encodings), should encode str to bytes, and should decode bytes (or any read buffer) to str.

[issue7475] codecs missing: base64 bz2 hex zlib ...

2010-05-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Explanation the change in Python3 by Guido: We are adopting a slightly different approach to codecs: while in Python 2, codecs can accept either Unicode or 8-bits as input and produce either as output, in Py3k, encoding is always

[issue4015] [patch] make installed scripts executable on windows

2010-05-28 Thread Per
Per pybugs.pho...@safersignup.com added the comment: On POSIX the interpreter will be read from the first line of a file. On Windows the interpreter will be read from the Registry HKEY_CLASSES_ROOT\.file-extension . So the correct way to associate a interpreter to a file is to invent a

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-05-28 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don't like readbuffer_*encode* and *charbuffer_encode* function names, because there are different than other codecs “transform” as hinted by MvL seems perfect. Thanks everyone for the pointers here and in #7475! I’ll search the missing one

[issue4015] [patch] make installed scripts executable on windows

2010-05-28 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Related to #870479 (should we make that one a meta-bug?) -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4015 ___

[issue7475] codecs missing: base64 bz2 hex zlib ...

2010-05-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: I agree with Martin: codecs choosed the wrong direction in Python2, and it's fixed in Python3. The codecs module is related to charsets (encodings),

[issue7475] codecs missing: base64 bz2 hex zlib ...

2010-05-28 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475 ___ ___ Python-bugs-list mailing

[issue1759169] clean up Solaris port and allow C99 extension modules

2010-05-28 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks for the patch. Committed as r81582 and r81583. Antoine was right: subsequent references to Solaris needed to be removed also. -- resolution: - accepted status: open - closed ___ Python

[issue1100562] deepcopying listlike and dictlike objects

2010-05-28 Thread Ryan Coyner
Changes by Ryan Coyner rcoy...@gmail.com: -- nosy: +rcoyner ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1100562 ___ ___ Python-bugs-list mailing

[issue8713] multiprocessing needs option to eschew fork() under Linux

2010-05-28 Thread Ryan Coyner
Changes by Ryan Coyner rcoy...@gmail.com: -- nosy: +rcoyner ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___ ___ Python-bugs-list mailing

[issue8405] Improve test_os._kill (failing on slow machines)

2010-05-28 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Committed to trunk in r81584 and py3k in r81585. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8405] Improve test_os._kill (failing on slow machines)

2010-05-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Committed to trunk in r81584 and py3k in r81585 sparc solaris10 gcc trunk buildbot slave doesn't compile anymore. I'm not sure that it's related, so I prefer to not reopen the issue :-)

  1   2   >