Python/Django linux build consultant required

2010-04-05 Thread Si
Hi, we are a San Francisco based startup company and are looking for a Python/Django person to help us roll out our recently completed. We're looking for 5 years + Python experience with a knowledge of tools such as pyinstall (or other build systems). Please contact me directly interested. Rgds.

output from popen

2010-04-05 Thread hiral
Hi, I am trying following script... script import subprocess cmd=['time', 'myCmd'] p = subprocess.Popen(cmd) p.communicate() script Where 'myCmd' is some executable path and combination of arguments. Now I am observing following output... myCmd_output... 0.00user 0.00system 0:00.00elapsed 0%CPU

Re: output from popen

2010-04-05 Thread Kushal Kumaran
On Mon, Apr 5, 2010 at 1:33 PM, hiral hiralsmaill...@gmail.com wrote: Hi, I am trying following script... script import subprocess cmd=['time', 'myCmd'] p = subprocess.Popen(cmd) p.communicate() script Where 'myCmd' is some executable path and combination of arguments. Now I am

Re: In disGuiodoise?

2010-04-05 Thread Martin P. Hellwig
On 04/05/10 00:05, r wrote: knip However i have also considered that maybe *all* the well knowns are in fact the many colorful personalities of Guido. knip De vraag is dan natuurlijk of al zijn persoonlijkheden nog steeds nederlands machtig zijn. -- mph --

Translation docstrings with gettext

2010-04-05 Thread sapient
Hello. I found several discussions where this question was asked, but was not answered. Now I am creating Python-API for my application, and want create it with translation support, including documentation strings for modules, classes, methods etc. It is simple to translate special-marked

pythonrag

2010-04-05 Thread Jason Friedman
I saw this posted in the July issue but did not see any follow-up there: $ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information. a = 500 b = 500 a == b True a is b False p = 50 q = 50 p == q True p is q

Re: pythonrag

2010-04-05 Thread Xavier Ho
Python caches objects for reuse, but I'm not too certain on how it works, either. Seems a bit odd. I just tested on 2.6.5 and got the same result. This hasn't been a problem for me, though. Cheers, Xav -- http://mail.python.org/mailman/listinfo/python-list

Re: In disGuiodoise?

2010-04-05 Thread News123
Martin P. Hellwig wrote: On 04/05/10 00:05, r wrote: knip However i have also considered that maybe *all* the well knowns are in fact the many colorful personalities of Guido. knip De vraag is dan natuurlijk of al zijn persoonlijkheden nog steeds nederlands machtig zijn. Good sock

Re: pythonrag

2010-04-05 Thread superpollo
Jason Friedman ha scritto: I saw this posted in the July issue but did not see any follow-up there: $ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information. a = 500 b = 500 a == b True a is b False p = 50

Re: pythonrag

2010-04-05 Thread Albert Hopkins
On Mon, 2010-04-05 at 11:38 +, Jason Friedman wrote: I saw this posted in the July issue but did not see any follow-up there: $ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information. a = 500 b =

Re: In disGuiodoise?

2010-04-05 Thread Andreas Waldenburger
On Mon, 05 Apr 2010 13:48:15 +0200 News123 news1...@free.fr wrote: Martin P. Hellwig wrote: On 04/05/10 00:05, r wrote: knip However i have also considered that maybe *all* the well knowns are in fact the many colorful personalities of Guido. knip De vraag is dan natuurlijk of

Re: pythonrag

2010-04-05 Thread Irmen de Jong
On 5-4-2010 13:48, superpollo wrote: Jason Friedman ha scritto: I saw this posted in the July issue but did not see any follow-up there: $ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information. a = 500 b =

Re: Translation docstrings with gettext

2010-04-05 Thread Lie Ryan
On 04/05/10 20:31, sapient wrote: Hello. I found several discussions where this question was asked, but was not answered. Why would you want to translate docstring? Docstring is meant for developers not users. Maintaining a translated docstring is going to be a maintenance hell and will

Re: pythonrag

2010-04-05 Thread Gary Herron
Jason Friedman wrote: I saw this posted in the July issue but did not see any follow-up there: $ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information. a = 500 b = 500 a == b True a is b

Interfaces

2010-04-05 Thread Roald de Vries
Dear all, PEP 245 and 246 about interfaces for python are both rejected for 'something much better' (GvR in 246's rejection notice). Does anybody know what this is? I am *very* curious! Kind regards, Roald -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting Local MAC Address

2010-04-05 Thread Booter
All, Thanks for all of the great solutions! Sorry I wasn't more specific in my post and will keep that in mind for future posts. Just FYI I was using a Windows machine and running Python 2.6. Once again thanks for all of your help! Gerad -- http://mail.python.org/mailman/listinfo/python-list

Re: unset TCL_LIBRARY and TK_LIBRARY

2010-04-05 Thread Dave Angel
Wolfman wrote: Hello- was hoping someone could give me a hand in permanently setting my TCL_LIBRARY and TK_LIBRARY. I downloaded Python2.6 to a ThinkPad that came installed with Python2.2, and I can not run IDLE as something automatically sets TCL_LIBRARY and TK_LIBRARY to C:\IBMTools\Python22\

Re: psycopg2 / psycopg2.ProgrammingError: syntax error at or near E'mytable'

2010-04-05 Thread mrdrew
Thanks for the replies. The param style is pyformat. I've tried using the '%s' style with a set and get exactly the same error. c.execute('SELECT * FROM %s LIMIT 1',('mytable',)) psycopg2.ProgrammingError: syntax error at or near E'mytable' LINE 1: SELECT * FROM E'mytable' LIMIT 1 MRAB and

Re: passing command line arguments to executable

2010-04-05 Thread mcanjo
On Apr 4, 6:32 am, Simon Brunning si...@brunningonline.net wrote: On 3 April 2010 18:20, mcanjo mca...@gmail.com wrote: I tried doing the following code: from subprocess import Popen from subprocess import PIPE, STDOUT exefile = Popen('pmm.exe', stdout = PIPE, stdin = PIPE, stderr =

Re: Interfaces

2010-04-05 Thread Richard Thomas
On Apr 5, 4:40 pm, Roald de Vries downa...@gmail.com wrote: Dear all, PEP 245 and 246 about interfaces for python are both rejected for   'something much better' (GvR in 246's rejection notice). Does anybody   know what this is? I am *very* curious! Kind regards, Roald Given that was in

Re: passing command line arguments to executable

2010-04-05 Thread Patrick Maupin
On Apr 5, 11:22 am, mcanjo mca...@gmail.com wrote: On Apr 4, 6:32 am, Simon Brunning si...@brunningonline.net wrote: On 3 April 2010 18:20, mcanjo mca...@gmail.com wrote: I tried doing the following code: from subprocess import Popen from subprocess import PIPE, STDOUT exefile

Tkinter inheritance mess?

2010-04-05 Thread ejetzer
For a school project, I'm trying to make a minimalist web browser, and I chose to use Tk as the rendering toolkit. I made my parser classes into Tkinter canvases, so that I would only have to call pack and mainloop functions in order to display the rendering. Right now, two bugs are affecting the

Re: Tkinter inheritance mess?

2010-04-05 Thread ejetzer
On 5 avr, 12:36, ejetzer ejet...@gmail.com wrote: For a school project, I'm trying to make a minimalist web browser, and I chose to use Tk as the rendering toolkit. I made my parser classes into Tkinter canvases, so that I would only have to call pack and mainloop functions in order to display

Re: local variable referenced before assignment

2010-04-05 Thread John Nagle
Alf P. Steinbach wrote: Best is however to recognize that you have some state (your variable) and some operations on that state (your callback), and that that is what objects are all about. I.e. wrap your logic in a class. Then 'lastModifiedTime' becomes an instance attribute, and 'handler'

case insensitive list ?

2010-04-05 Thread Stef Mientki
hello, AFAIK there's no case insensitive list in Python. By case insentive I mean that that sort and memebr of is case insensitive. Does soeone has a implementation of sucha case insensitive list ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: local variable referenced before assignment

2010-04-05 Thread Robert Kern
On 2010-04-05 12:08 PM, John Nagle wrote: Alf P. Steinbach wrote: Best is however to recognize that you have some state (your variable) and some operations on that state (your callback), and that that is what objects are all about. I.e. wrap your logic in a class. Then 'lastModifiedTime'

Re: case insensitive list ?

2010-04-05 Thread Robert Kern
On 2010-04-05 12:17 PM, Stef Mientki wrote: hello, AFAIK there's no case insensitive list in Python. By case insentive I mean that that sort and memebr of is case insensitive. Does soeone has a implementation of sucha case insensitive list ? mylist.sort(key=lambda x: x.lower()) any(x.lower()

Re: folks, what's wrong with this?

2010-04-05 Thread Ani Sinha
And now for the most import point: __getattr__ is only called as a *last* resort. That is, after the attribute lookup mechanism will have tried *and failed* to find the name in the instance's __dict__. Thanks you all for all the suggestions and thoughts. So in other words, this piece of code:

Re: How to access args as a list?

2010-04-05 Thread kj
In 4bb802f7$0$8827$c3e8...@news.astraweb.com Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Sat, 03 Apr 2010 22:58:43 +, kj wrote: Suppose I have a function with the following signature: def spam(x, y, z): # etc. Is there a way to refer, within the function, to

Re: local variable referenced before assignment

2010-04-05 Thread Stephen Hansen
On 2010-04-05 10:08:51 -0700, John Nagle said: Yes. Functions with persistent state are generally a bad idea. Unfortunately, the signal module requires a callback parameter which is a plain function. So you have to send it a function, closure, or lambda. Here, it's being sent a

string.Template question

2010-04-05 Thread Wells Oliver
Can you use dicts with string.Template? e.g. a structure like: game = { 'home': {'team': row['home_team_full'], 'score': row['home_score'], 'record': '0-0', 'pitcher': { 'id': home_pitcher.attrib['id'], 'name': home_pitcher.attrib['last_name'], 'wins':

Re: In disGuiodoise?

2010-04-05 Thread News123
Andreas Waldenburger wrote: On Mon, 05 Apr 2010 13:48:15 +0200 News123 news1...@free.fr wrote: Martin P. Hellwig wrote: On 04/05/10 00:05, r wrote: knip However i have also considered that maybe *all* the well knowns are in fact the many colorful personalities of Guido. knip De vraag

Re: string.Template question

2010-04-05 Thread Peter Otten
Wells Oliver wrote: Can you use dicts with string.Template? e.g. a structure like: game = { 'home': {'team': row['home_team_full'], 'score': row['home_score'], 'record': '0-0', 'pitcher': { 'id': home_pitcher.attrib['id'], 'name': home_pitcher.attrib['last_name'], 'wins':

Re: Interfaces

2010-04-05 Thread Chris Rebert
On Mon, Apr 5, 2010 at 8:40 AM, Roald de Vries downa...@gmail.com wrote: Dear all, PEP 245 and 246 about interfaces for python are both rejected for 'something much better' (GvR in 246's rejection notice). Does anybody know what this is? I am *very* curious! Abstract Base Classes (ABCs)

PIL question

2010-04-05 Thread Tim Eichholz
I'm trying to cut a BMP with 80 adjacent frames down to 40 using the Image.copy and .paste functions but I'm getting error ValueError: images do not match on the paste line. Here is the source --- import sys from PIL import Image if len(sys.argv) == 2: file = sys.argv[1] else:

Re: C-style static variables in Python?

2010-04-05 Thread Lee Harr
Another approach would be to stuff the static values in the function's __dict__. That's how I did it when I wanted something similar. I created this decorator: def static(**kw):     '''     Used to create a decorator function that will add an     attribute to a function and initialize it.  

ADVERTISED JOBS IN TEXAS jobs in texas jobs in texas usa jobs in texas houston jobs in texas city jobs in texas government jobs in texas austin texas jobs texas jobs online texas j

2010-04-05 Thread saima81
ADVERTISED JOBS IN TEXAS jobs in texas jobs in texas usa jobs in texas houston jobs in texas city jobs in texas government jobs in texas austin texas jobs texas jobs online texas job search http://jobsintexas-usa.blogspot.com/ ADVERTISED JOBS IN TEXAS jobs in texas jobs in texas usa jobs in texas

Re: C-style static variables in Python?

2010-04-05 Thread Ethan Furman
Ethan Furman wrote: Steven D'Aprano wrote: On Fri, 02 Apr 2010 19:48:59 -0700, Ethan Furman wrote: The heuristic I use is, if I expect the try block to raise an exception more than about one time in ten, I change to an explicit test. In this case, since the exception should only be raised

Re: C-style static variables in Python?

2010-04-05 Thread Patrick Maupin
On Apr 5, 6:50 pm, Ethan Furman et...@stoneleaf.us wrote: (Posted some code with a timeit...) Well, I'm not going to debug this, but with the *original* thing you posted, and the thing I posted, with a call and everything (more realistic scenario), the exception version seems slower on my

How to output the commands that are executed in a python script?

2010-04-05 Thread Peng Yu
I want to show what commands have been executed when I run a python script. Is there an option which can instruct python to print the commands automatically? (If you are familiar with R, what I am asking is essentially options(echo=T) in R.) -- Regards, Peng --

Re: Tkinter inheritance mess?

2010-04-05 Thread Lie Ryan
On 04/06/10 02:38, ejetzer wrote: On 5 avr, 12:36, ejetzer ejet...@gmail.com wrote: For a school project, I'm trying to make a minimalist web browser, and I chose to use Tk as the rendering toolkit. I made my parser classes into Tkinter canvases, so that I would only have to call pack and

Re: How to output the commands that are executed in a python script?

2010-04-05 Thread Lie Ryan
On 04/06/10 12:38, Peng Yu wrote: I want to show what commands have been executed when I run a python script. Is there an option which can instruct python to print the commands automatically? (If you are familiar with R, what I am asking is essentially options(echo=T) in R.) It's not

Re: How to output the commands that are executed in a python script?

2010-04-05 Thread Shashwat Anand
You need a debugger here. On Tue, Apr 6, 2010 at 8:41 AM, Lie Ryan lie.1...@gmail.com wrote: On 04/06/10 12:38, Peng Yu wrote: I want to show what commands have been executed when I run a python script. Is there an option which can instruct python to print the commands automatically?

[Click the star to watch this topic] ADVERTISED JOBS IN TEXAS jobs in texas jobs in texas usa jobs in texas houston jobs in texas city jobs in texas government jobs in texas austin te

2010-04-05 Thread Naeem
[Click the star to watch this topic] ADVERTISED JOBS IN TEXAS jobs in texas jobs in texas usa jobs in texas houston jobs in texas city jobs in texas government jobs in texas austin texas jobs texas jobs online texas job search http://jobsintexas-usa.blogspot.com/ [Click the star to watch this

Re: How to access args as a list?

2010-04-05 Thread Steve Howell
On Apr 5, 11:49 am, kj no.em...@please.post wrote: In 4bb802f7$0$8827$c3e8...@news.astraweb.com Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Sat, 03 Apr 2010 22:58:43 +, kj wrote: Suppose I have a function with the following signature: def spam(x, y, z):     #

per-method jit compiler

2010-04-05 Thread Luis M . González
On 4 abr, 00:09, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 03 Apr 2010 22:58:43 +, kj wrote: Suppose I have a function with the following signature: def spam(x, y, z):     # etc. Is there a way to refer, within the function, to all its arguments as a

[issue8300] Allow struct.pack to handle objects with an __index__ method.

2010-04-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8300 ___ ___

[issue4683] urllib2.HTTPDigestAuthHandler fails on third hostname?

2010-04-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Ping? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4683 ___ ___

[issue4683] urllib2.HTTPDigestAuthHandler fails on third hostname?

2010-04-05 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Okay, This vaguely got out of my mind. Shall come with the tests for HTTPAuthDigest. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4683

[issue5198] Strange DeprecationWarning behaviour in module struct

2010-04-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Both examples now give consistent behavior independent of byteorder in trunk: packing floats with H works, packing bytes out of range with B raises. Closing as out of date. -- nosy: +georg.brandl resolution: - out of date status: open

[issue8313] unprintable AssertionError object message in unittest tracebacks

2010-04-05 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: import unittest class Foo(unittest.TestCase): ... def test_fffd(self): self.assertEqual(u'\ufffd', u'\ufffd\ufffd') ... unittest.main(exit=False) F == FAIL:

[issue6869] Embedded python crashed on 4th run, if ctypes is used

2010-04-05 Thread nik
nik nik.l...@gmail.com added the comment: I can confirm that the patch fix this issue. I adapted the patch (variable names changed): 5523a5524 Py_INCREF(Struct_Type); 5529a5531 Py_INCREF(Union_Type); 5535a5538 Py_INCREF(Pointer_Type); 5541a5545

[issue7721] Code in xrange documentation does not work

2010-04-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in release26-maint r79796. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7721 ___

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2010-04-05 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7490 ___ ___ Python-bugs-list

[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-05 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: == FAIL: test_ulonglong (ctypes.test.test_callbacks.Callbacks) -- Traceback (most recent call last):

[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The ubuntu and debian sparc buildbots show the same failure, none of the other buildbots do. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8314

[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-05 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: This bug is already reported here: http://bugs.python.org/issue8142#msg101134 -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8314

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

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

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-05 Thread Thouis (Ray) Jones
Changes by Thouis (Ray) Jones tho...@gmail.com: -- nosy: +thouis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7946 ___ ___ Python-bugs-list

[issue1103213] Adding the missing socket.recvall() method

2010-04-05 Thread Irmen de Jong
Irmen de Jong ir...@razorvine.net added the comment: Ok I think I've got the code and doc changes ready. I added a recvall and a recvall_into method to the socket module. Any partially received data in case of errors is returned to the application as part of the args for a new exception,

[issue1103213] Adding the missing socket.recvall() method

2010-04-05 Thread Irmen de Jong
Changes by Irmen de Jong ir...@razorvine.net: Removed file: http://bugs.python.org/file6439/patch.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1103213 ___

[issue1220212] os.kill on windows

2010-04-05 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: FAQ should be updated http://www.python.org/doc/faq/windows/#how-do-i-emulate-os-kill-in-windows -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org

[issue1103213] Adding the missing socket.recvall() method

2010-04-05 Thread Irmen de Jong
Changes by Irmen de Jong ir...@razorvine.net: Added file: http://bugs.python.org/file16762/socketmodulepatch.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1103213 ___

[issue1103213] Adding the missing socket.recvall() method

2010-04-05 Thread Irmen de Jong
Changes by Irmen de Jong ir...@razorvine.net: Added file: http://bugs.python.org/file16763/libpatch.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1103213 ___

[issue1103213] Adding the missing socket.recvall() method

2010-04-05 Thread Irmen de Jong
Changes by Irmen de Jong ir...@razorvine.net: Added file: http://bugs.python.org/file16764/docpatch.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1103213 ___

[issue7964] -m pdb SyntaxError for \r\n formatted py files

2010-04-05 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Is there a reason this didn't get reviewed for the 3.1.2 release? What steps need to be taken to see that it makes it into a 3.1.3 release? -- ___ Python tracker rep...@bugs.python.org

[issue8315] ./python -m unittest test.test_importlib doesn't work

2010-04-05 Thread Barry A. Warsaw
New submission from Barry A. Warsaw ba...@python.org: Actually, ./python -m unittest test.test_email doesn't work either and those are two cases where the Lib/test module just forwards to the package's own test suite, so maybe that's the problem. -- assignee: michael.foord components:

[issue5103] ssl.SSLSocket timeout not working correctly when remote end is hanging

2010-04-05 Thread David Andrzejewski
Changes by David Andrzejewski site+python@davidandrzejewski.com: -- nosy: +dandrzejewski ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5103 ___

[issue7583] doctest should normalize tabs when comparing output

2010-04-05 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Could you be more specific about why users should not be allowed to use tabs in docstrings. An example use case/user story would help me a lot. I've made a precondition to check tab existence before expanding tabs for performance

[issue1220212] os.kill on windows

2010-04-05 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: How about something like this patch? -- Added file: http://bugs.python.org/file16765/faq_update.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1220212

[issue4256] optparse: provide a simple way to get a programmatically useful list of options

2010-04-05 Thread Andy Buckley
Andy Buckley a...@insectnation.org added the comment: Thanks for the pointers to both of these... I wasn't aware of either. I see argparse has been recently approved for Python stdlib inclusion, too: http://www.python.org/dev/peps/pep-0389/ Congratulations! As far as I can tell, genzshcomp is

[issue5103] ssl.SSLSocket timeout not working correctly when remote end is hanging

2010-04-05 Thread David Andrzejewski
David Andrzejewski site+python@davidandrzejewski.com added the comment: I believe this issue may be responsible for causing a very long hang in my application. Here's an example of it hanging for 30 minutes. Yes - minutes. [UI] 2010-04-03 11:33:34,209 DEBUG: Communicating with GUI on

[issue1103213] Adding the missing socket.recvall() method

2010-04-05 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: Just a couple comments: * If MSG_WAITALL is defined and a signal interrupts recv, will a string shorter than requested will be returned by sock_recvall? * Since MSG_WAITALL is already exposed to Python (when the underlying platform

[issue8316] test_gdb is susceptible to tty width settings

2010-04-05 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: test_gdb's get_gdb_repr carves up a gdb backtrace to try to extract how gdb representated the data. When connected to a tty, gdb will insert additional newlines and spaces based on the width of the tty (internally it has a wrap_here()

[issue8316] test_gdb is susceptible to tty width settings

2010-04-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed in r79803. I changed the assert_ to an if not m/fail, since assert_ is deprecated and I think the if makes it clearer than the assert_ what it is that is being checked. -- components: +Tests priority: - normal

[issue1220212] os.kill on windows

2010-04-05 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Seems good to me, even though I'd rewrite some parts like this: - Prior to Python 2.7 and 3.2, to terminate a process, you can use ctypes:: + Prior to Python 2.7 and 3.2, you can use linksomehow:`ctypes` to terminate a process:: ... In

[issue8317] test_tarfile fails intermittently on Windows

2010-04-05 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: Using Windows 7 32-bit, and /branches/p...@79802. When I run the test_tarfile from the regrtest script, often the first run will succeed and subsequent runs will fail (though sometimes a first run will fail and rarely a subsequent run

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-05 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: My initial troubleshooting indicated to me that the intermittent test_tarfile problem exists independent of the symlink patch, so it was not relevant to this issue. I've tried to do some more thorough troubleshooting, and this continues to

[issue8317] test_tarfile fails intermittently on Windows

2010-04-05 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: So far I've only seen this with os.symlink from #1578269 applied, but I will try more runs on a vanilla py3k to see if I can catch it. -- components: +Windows nosy: +brian.curtin stage: - needs patch type: - behavior

[issue8317] test_tarfile fails intermittently on Windows

2010-04-05 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: To be clear, all of my tests were without any patches applied. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8317 ___

[issue8318] Deprecation of multifile inappropriate or incomplete

2010-04-05 Thread Tres Seaver
New submission from Tres Seaver tsea...@agendaless.com: Import of the multifile module emits a DeprecationWarning, but the warning is either incomplete: - The documentation[1] states that the 'email' module is to be preferred, but doesn't describe what APIs should be used from that module.

[issue1103213] Adding the missing socket.recvall() method

2010-04-05 Thread Irmen de Jong
Irmen de Jong ir...@razorvine.net added the comment: Currently if MSG_WAITALL is defined, recvall() just calls recv() internally with the extra flag. Maybe that isn't the smartest thing to do because it duplicates recv's behavior on errors. Which is: release the data and raise an error. Would

[issue8319] HTMLparser does not handle call to handle_data when a tag contains nor data.

2010-04-05 Thread Winfried Plappert
New submission from Winfried Plappert winfried.plapp...@gmail.com: When parsing HTML and having a string along the lines of td/td, a call to handle_data is not issued between handle_starttag and handle_endtag, but afterwards. The problem is in HTMLparser.goahead, where the position i and j

[issue8320] docs on socket.recv_into doesn't mention the return value

2010-04-05 Thread Irmen de Jong
New submission from Irmen de Jong ir...@razorvine.net: Doc/library/socket.rst doesn't mention the return value for recv_into. Adding a simple Returns the number of bytes received. should fix this. (note that recvfrom_into does mention its return value) -- assignee: georg.brandl

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-05 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: Yes, it's the _sslobj.shutdow() call: File test_ftplib.py, line 332, in handle_close self.socket = self.socket.unwrap() File /usr/local/lib/python2.7/ssl.py, line 258, in unwrap s = self._sslobj.shutdown() error:

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-05 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8108 ___ ___ Python-bugs-list

[issue8319] HTMLparser does not handle call to handle_data when a tag contains no data.

2010-04-05 Thread Winfried Plappert
Changes by Winfried Plappert winfried.plapp...@gmail.com: -- title: HTMLparser does not handle call to handle_data when a tag contains nor data. - HTMLparser does not handle call to handle_data when a tag contains no data. ___ Python tracker

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Since it's not clear to me where exactly this comes from, whether it's from the Python C binding or OpenSSL itself, I tried to put some debugging printf() calls in Modules/_ssl.c, but it seems that after installing OpenSSL 0.9.8m I'm no

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-05 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: No I haven't, but I tried just now and I get the same error. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8108 ___

[issue8318] Deprecation of multifile inappropriate or incomplete

2010-04-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It's not inappropriate, since the facilities *in* the email package are supposed to support other MIME use cases (such as HTML). That it isn't clear how to convert is certainly a doc bug at the very least. However, I wouldn't be

[issue8319] HTMLparser does not handle call to handle_data when a tag contains no data.

2010-04-05 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- keywords: +easy nosy: +orsenthil priority: - normal stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8319 ___

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: No I haven't, but I tried just now and I get the same error. I think inflate is a function exported by the zlib. Perhaps you can add -lz to the linking flags. (Googling hints that OpenSSL can depend on the zlib if compression is enabled)

[issue8318] Deprecation of multifile inappropriate or incomplete

2010-04-05 Thread Tres Seaver
Tres Seaver tsea...@agendaless.com added the comment: [T]here [may be] things you can do with multifile that you can't (yet) do with the facilities from the email package. If so, these will most likely be considered bugs in the email package. Surely the presence of such a feature would

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2010-04-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hello Small documentation question: Does the expression “total ordering” have established usage in maths or computer science? Its meaning is not obvious to the non-maths person that I am. Regards --

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2010-04-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Yes, it's a standard mathematics term. http://en.wikipedia.org/wiki/Total_order -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5479

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2010-04-05 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: http://en.wikipedia.org/wiki/Total_order -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5479 ___

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2010-04-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the link. Please include it in the future doc if you judge it useful for a large number of users. I’m still wondering if “total_ordering” is the best name for a decorator that fills the blanks to provide total ordering. Regards

[issue8318] Deprecation of multifile inappropriate or incomplete

2010-04-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Depending on the feature, I might agree with that, but I wasn't involved in that decision. If email only supports something structured with proper MIME headers and multifile is more general (which I *think* is the case, but I haven't

[issue8287] python-gdb.py triggers compile errors on FreeBSD and Solaris

2010-04-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The buildbots seem happy. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8287

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This patch gives access to the OpenSSL version the _ssl module is linked against, through three attributes: one gives the raw integer, another the decoded 5-tuple of ints, the last one the version string as returned by OpenSSL. --

  1   2   >