Leo 4.8 rc1 released

2010-11-16 Thread Edward K. Ream
Leo 4.8 release candidate 1 is now available at: http://sourceforge.net/project/showfiles.php?group_id=3458package_id=29106 Leo is a text editor, data organizer, project manager and much more. See: http://webpages.charter.net/edreamleo/intro.html The highlights of Leo 4.8:

mekk.rtm 0.6.0

2010-11-16 Thread Marcin Kasperski
mekk.rtm provides both: - yet another Python client for RememberTheMilk API (contrary to two other existing libraries, this one tries to define explicit parameters and provide results of known structure) - a few command-line helpers (massively add/remove tag to all tasks satisfying given

ANN: mock 0.7.0 beta 4 release

2010-11-16 Thread Fuzzyman
I've released mock 0.7.0 beta 4. This is intended to be the last release of 0.7.0 before the final. http://pypi.python.org/pypi/mock/ (download) http://www.voidspace.org.uk/python/mock/ (documentation) https://code.google.com/p/mock/ (repo and issue tracker) mock is a Python library for simple

[RELEASED] Python 3.2 alpha 4

2010-11-16 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm happy to announce the fourth and (this time really) final alpha preview release of Python 3.2. Python 3.2 is a continuation of the efforts to improve and stabilize the Python 3.x line. Since the final

Re: strange behavor....

2010-11-16 Thread Hrvoje Niksic
m...@distorted.org.uk (Mark Wooding) writes: So even if the globals() dictionary is custom, its __setitem__ method is *not* called. Fascinating. Thank you. In case it's not obvious, that is because CPython assumes the type for many of its internal or semi-internal structures, and calls the

Re: Some syntactic sugar proposals

2010-11-16 Thread Steven D'Aprano
On Mon, 15 Nov 2010 22:40:00 -0700, Ian Kelly wrote: On 11/15/2010 10:26 PM, Steven D'Aprano wrote: t = foo()+bar()+baz() if pred(it) else baz()-foo()-bar() What does it mean here? it would mean the result of the expression foo()+bar()+baz(). What else could it mean? It could mean the

Re: Getting references to objects without incrementing reference counters

2010-11-16 Thread Artur Siekielski
On Nov 15, 10:06 pm, John Nagle na...@animats.com wrote: On 11/14/2010 11:08 AM, Artur Siekielski wrote: Hi. I'm using CPython 2.7 and Linux. In order to make parallel computations on a large list of objects I want to use multiple processes (by using multiprocessing module). In the first

[RELEASED] Python 3.2 alpha 4

2010-11-16 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm happy to announce the fourth and (this time really) final alpha preview release of Python 3.2. Python 3.2 is a continuation of the efforts to improve and stabilize the Python 3.x line. Since the final

Re: Some syntactic sugar proposals

2010-11-16 Thread Ian Kelly
On 11/16/2010 3:42 AM, Steven D'Aprano wrote: On Mon, 15 Nov 2010 22:40:00 -0700, Ian Kelly wrote: On 11/15/2010 10:26 PM, Steven D'Aprano wrote: t = foo()+bar()+baz() if pred(it) else baz()-foo()-bar() What does it mean here? it would mean the result of the expression foo()+bar()+baz().

first attempt with pybluez on XP fail

2010-11-16 Thread gelonida
Hi, Wanted to write a first simple example with pybluez and offer a serial connection service with a given name. What I tried (being inspired by http://people.csail.mit.edu/albert/bluez-intro/x290.html ) is: server_sock=bluetooth.BluetoothSocket( bluetooth.RFCOMM ) port = bluetooth.PORT_ANY #

Pickle in a POST/GET request give EOFError

2010-11-16 Thread Romaric DEFAUX
Hi everybody ! First time I write to this mailing list :) I started writing in python last week, that's probably why I can't understand the following problem... I create a list called web_site_list. This list contain dictionaries called web_site. And some values in this dictionaries are list

Re: [Python-Dev] [RELEASED] Python 3.2 alpha 3

2010-11-16 Thread Mark Summerfield
Hi Georg, On Tue, 12 Oct 2010 14:40:52 +0200 Georg Brandl ge...@python.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm happy to announce the third and final alpha preview release of Python 3.2. [snip] I built ran Py3.2a4's tests they

Re: Some syntactic sugar proposals

2010-11-16 Thread André
On Nov 15, 2:39 am, Dmitry Groshev lambdadmi...@gmail.com wrote: Here are some proposals. They are quite useful at my opinion and I'm interested for suggestions. It's all about some common patterns. First of all: how many times do you write something like     t = foo()     t = t if pred(t)

Re: [RELEASED] Python 3.2 alpha 3

2010-11-16 Thread Raymond Hettinger
On Nov 16, 9:23 am, Mark Summerfield l...@qtrac.plus.com wrote: I think it might be worth mentioning in What's New: FWIW, I'll be updating the What's New document for the Beta. Raymond -- http://mail.python.org/mailman/listinfo/python-list

Re: Help: Guide needed in trying to delete/flush the content of a fifo file.

2010-11-16 Thread MRAB
On 16/11/2010 06:52, Ton wrote: On Nov 16, 1:47 am, MRABpyt...@mrabarnett.plus.com wrote: On 15/11/2010 11:03, Ton wrote: On Nov 14, 11:55 pm, MRABpyt...@mrabarnett.plus.comwrote: On 14/11/2010 14:48, ton ph wrote:Hi python geeks, I have problem which i have been trying to

Re: What was your strategy?

2010-11-16 Thread Lou Pecora
In article mailman.1013.1289791781.2218.python-l...@python.org, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sun, 14 Nov 2010 16:32:24 -0600, Jorge Biquez jbiq...@icsmx.com declaimed the following in gmane.comp.python.general: I was wondering if you can share what was the strategy you

argparse subparser problem

2010-11-16 Thread Neal Becker
I want to have subparsers, but I also want to be able to say: myprogram --version and get the version # --- import argparse def stop(): pass parser = argparse.ArgumentParser() parser.add_argument ('--version', action='store_true') subparsers =

Re: What was your strategy?

2010-11-16 Thread Steve Holden
On 11/16/2010 2:22 PM, Lou Pecora wrote: I'll jump in and recommend the book Python in a Nutshell by Martelli. It may be a little dated now, but it covers many Python topics in good detail without becoming a bloated reference. Nicely written. It's still the first book I reach for after 6

SQLite3 and lastrowid

2010-11-16 Thread fuglyducky
I am fairly new to Python (no development experience) and brand new to using sqlite through Python. With that said, I created a database with two tables. The first has about 30,000 rows of static data. The second has 9 rows of static data. Before I added the second table I could simply run

first attempts with pybluez on Win XP fail

2010-11-16 Thread Gelonida
Hi, My post from Google groups doesn't sem to get through. SO here once more posted from gmane. Wanted to write a first simple example with pybluez and offer a serial connection service with a given name. What I tried (being inspired by http://people.csail.mit.edu/albert/bluez-intro/x290.html

how to use socket to get packet which destination ip is not local?

2010-11-16 Thread Hans
Hi, Maybe it's a very simple question. I'm trying to write a dhcpclient code with python. The dhcpclient does not have ip address at the very beginning, it sends out dhcpdiscover and then server sends back dhcpoffer. the dhcpoffer will use assigned ip as destination ip, but that ip is not

Help in language development

2010-11-16 Thread pedro igor sampaio avelino
Hello, my name Pedro Igor, I am a student and develop applications in python for 1 year. I enrolled in the group to contribute in developing this wonderful language that helps me both in day-to-day, but I'm going through some difficulties because they do not know where to start, can someone please

Re: SQLite3 and lastrowid

2010-11-16 Thread Ian
On Nov 16, 1:00 pm, fuglyducky fuglydu...@gmail.com wrote: Before I added the second table I could simply run 'print(cursor.lastrowid)' and it would give me the id number. However, with two tables I am unable to do this. It would help if you would show the code where you're trying to do this.

Re: how to use socket to get packet which destination ip is not local?

2010-11-16 Thread MRAB
On 16/11/2010 20:38, Hans wrote: Hi, Maybe it's a very simple question. I'm trying to write a dhcpclient code with python. The dhcpclient does not have ip address at the very beginning, it sends out dhcpdiscover and then server sends back dhcpoffer. the dhcpoffer will use assigned ip as

How to implement a callback COM object in Python

2010-11-16 Thread Michael Bode
Hi, I'm trying to write a COM client to a COM server which controls a power meter. The COM server fires events that should be handled by the client. The docs state that I have to supply a class which implements the IFM2DeviceEvents interface. I need some instructions on how to translate the VB

Re: Help in language development

2010-11-16 Thread Felipe Bastos Nunes
[Portuguese talking, excuse me guys] Pedro, vocês podem dar um olhada no bug tracking, e estudar os códigos pra encontrar soluções. 2010/11/16 pedro igor sampaio avelino pedroigo...@gmail.com Hello, my name Pedro Igor, I am a student and develop applications in python for 1 year. I enrolled in

Python OGL package

2010-11-16 Thread Marc-Andre Belzile
Hi list, could someone recommend a good python ogl package (open source is preferred) ? I found these ones so far: http://pyopengl.sourceforge.net/ http://wiki.wxpython.org/wxOGL thanks -mab -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLite3 and lastrowid

2010-11-16 Thread fuglyducky
On Nov 16, 12:54 pm, Ian ian.g.ke...@gmail.com wrote: On Nov 16, 1:00 pm, fuglyducky fuglydu...@gmail.com wrote: Before I added the second table I could simply run 'print(cursor.lastrowid)' and it would give me the id number. However, with two tables I am unable to do this. It would help

Re: SQLite3 and lastrowid

2010-11-16 Thread Dan M
On Tue, 16 Nov 2010 13:08:15 -0800, fuglyducky wrote: On Nov 16, 12:54 pm, Ian ian.g.ke...@gmail.com wrote: On Nov 16, 1:00 pm, fuglyducky fuglydu...@gmail.com wrote: Before I added the second table I could simply run 'print(cursor.lastrowid)' and it would give me the id number. However,

RE: What was your strategy?

2010-11-16 Thread Sells, Fred
It helps to try to solve a real (to you) problem, that way you discover what you don't know. If your code ends up nested 3 levels or your methods are more than 10 lines, ask for help. -Original Message- From: python-list-bounces+frsells=adventistcare@python.org

Re: SQLite3 and lastrowid

2010-11-16 Thread Ian
On Nov 16, 2:08 pm, fuglyducky fuglydu...@gmail.com wrote: db_connect = sqlite3.connect('test.db') cursor = db_connect.cursor() print(cursor.lastrowid) At this point you haven't executed a query yet, so there is no meaningful value that cursor.lastrowid can take. # Choose random index from

Raw Unicode docstring

2010-11-16 Thread Boštjan Mejak
Hello, how does one write a raw unicode docstring? If I have backslashes in the docstring, I must tuck an 'r' in front of it, like this: rThis is a raw docstring. If I have foreign letters in the docstring, I must tuck a 'u' in front of it, like this: uThis is a Unicode docstring. What if I

Re: Python OGL package

2010-11-16 Thread Xavier Ho
Also try Pyglet, in combination of PyOpenGL. Cheers, Xav On 17 November 2010 04:36, Marc-Andre Belzile marc-andre.belz...@autodesk.com wrote: Hi list, could someone recommend a good python ogl package (open source is preferred) ? I found these ones so far:

Re: Komodo 6, why Workspace Restore after every restart?

2010-11-16 Thread Aahz
[overquoting follows to prove my point] Someone who claims to care as much as you do about Usenet ought to have better quoting habits. You should be ashamed of yourself. In article 4ce0f788$0$30018$c3e8da3$76a7c...@news.astraweb.com, John Doe j...@usenetlove.invalid wrote: alex23 wuwei23

Re: Raw Unicode docstring

2010-11-16 Thread MRAB
On 16/11/2010 21:56, Boštjan Mejak wrote: Hello, how does one write a raw unicode docstring? If I have backslashes in the docstring, I must tuck an 'r' in front of it, like this: rThis is a raw docstring. If I have foreign letters in the docstring, I must tuck a 'u' in front of it, like this:

Re: Raw Unicode docstring

2010-11-16 Thread Robert Kern
On 11/16/10 3:56 PM, Boštjan Mejak wrote: Hello, how does one write a raw unicode docstring? If I have backslashes in the docstring, I must tuck an 'r' in front of it, like this: rThis is a raw docstring. If I have foreign letters in the docstring, I must tuck a 'u' in front of it, like this:

Re: Raw Unicode docstring

2010-11-16 Thread Terry Reedy
On 11/16/2010 4:56 PM, Boštjan Mejak wrote: Hello, how does one write a raw unicode docstring? If I have backslashes in the docstring, I must tuck an 'r' in front of it, like this: rThis is a raw docstring. You only need (and want that) if you want '\' to be taken literally. And even if you

Re: Raw Unicode docstring

2010-11-16 Thread Alexander Kapps
On 16.11.2010 22:56, Boštjan Mejak wrote: Hello, how does one write a raw unicode docstring? If I have backslashes in the docstring, I must tuck an 'r' in front of it, like this: rThis is a raw docstring. If I have foreign letters in the docstring, I must tuck a 'u' in front of it, like this:

Is Unladen Swallow dead?

2010-11-16 Thread laspi
There has been little or no activity at all in this project in the last months, and the last comments on their mailing list seem to conrfim that it's future is uncertain. It's also very strange the lack of updates, news or discussions, specially considering that the merging plan has been approved.

Re: Some syntactic sugar proposals

2010-11-16 Thread John Ladasky
On Nov 14, 11:30 pm, alex23 wuwe...@gmail.com wrote: On Nov 15, 4:39 pm, Dmitry Groshev lambdadmi...@gmail.com wrote:     if x in range(a, b): #wrong! Only in Python 3.x, it's perfectly valid in Python 2.x. To achieve the same in Python 3.x, try:     if x in list(range(a, b,)): # BUT SEE

Re: Is Unladen Swallow dead?

2010-11-16 Thread Dan Stromberg
I'm not a contributor to the U-S project, but I have been monitoring alternative python implementations' progress some, and seem to be adding something to pypy all of a sudden. I think unladen swallow has produced performance improvements, and they are likely to be merged into cpython 3.3.

Re: SQLite3 and lastrowid

2010-11-16 Thread fuglyducky
On Nov 16, 1:52 pm, Ian ian.g.ke...@gmail.com wrote: On Nov 16, 2:08 pm, fuglyducky fuglydu...@gmail.com wrote: db_connect = sqlite3.connect('test.db') cursor = db_connect.cursor() print(cursor.lastrowid) At this point you haven't executed a query yet, so there is no meaningful value

Re: argparse subparser problem

2010-11-16 Thread John O'Hagan
On Tue, 16 Nov 2010, Neal Becker wrote: I want to have subparsers, but I also want to be able to say: myprogram --version and get the version # --- [...] AFAIK, it is not possible ATM to have optional subparsers with argparse:

Re: QT window closes immediately

2010-11-16 Thread Diez B. Roggisch
Martin Caum herrxan...@gmail.com writes: I am attempting to open a window on mouse activity which works, but the window fails to stay open. I set it to terminate when the escape key is pressed even when the program is not currently selected. This works fine. Originally I had it create the

Re: QT window closes immediately

2010-11-16 Thread News123
On 11/15/2010 02:04 AM, Martin Caum wrote: I am attempting to open a window on mouse activity which works, but the window fails to stay open. I set it to terminate when the escape key is pressed even when the program is not currently selected. This works fine. Originally I had it create the

Cannot Remove File: Device or resource busy

2010-11-16 Thread Brett Bowman
I'm spawning a subprocess to fix some formating errors with a library of PDFs with pdftk: try: sp = subprocess.Popen('pdftk.exe %s output %s' % (pdfFile, outputFile)) sp.wait() del sp except Exception, e: return Unable to open file: %s with error: %s %

Re: Cannot Remove File: Device or resource busy

2010-11-16 Thread MRAB
On 17/11/2010 01:37, Brett Bowman wrote: I'm spawning a subprocess to fix some formating errors with a library of PDFs with pdftk: try: sp = subprocess.Popen('pdftk.exe %s output %s' % (pdfFile, outputFile)) sp.wait() del sp except Exception, e:

strange subprocess behavior when calling ps

2010-11-16 Thread Roger Davis
Hi all, I have encountered a strange problem with some code I am writing to search the system process list for certain running processes. I am using subprocess.Popen() to call '/bin/ps -e'. When I save my code to the file pid.py (whose first line is #!/usr/bin/python) and run it with the command

Re: strange subprocess behavior when calling ps

2010-11-16 Thread James Mills
On Wed, Nov 17, 2010 at 12:33 PM, Roger Davis r...@hawaii.edu wrote: Hi all, I have encountered a strange problem with some code I am writing to search the system process list for certain running processes. I am using subprocess.Popen() to call '/bin/ps -e'. When I save my code to the file

Re: strange subprocess behavior when calling ps

2010-11-16 Thread Chris Rebert
On Tue, Nov 16, 2010 at 6:33 PM, Roger Davis r...@hawaii.edu wrote: Hi all, I have encountered a strange problem with some code I am writing to search the system process list for certain running processes. I am using subprocess.Popen() to call '/bin/ps -e'. When I save my code to the file

Re: strange subprocess behavior when calling ps

2010-11-16 Thread Roger Davis
Thanks, Chris, you're at least on the right track. I did upgrade from python.org and the python in my shell PATH is /Library/Frameworks/ Python.framework/Versions/2.6/bin/python: % python Python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin

Re: how to use socket to get packet which destination ip is not local?

2010-11-16 Thread Hans
On Nov 16, 12:57 pm, MRAB pyt...@mrabarnett.plus.com wrote: On 16/11/2010 20:38, Hans wrote: Hi, Maybe it's a very simple question. I'm trying to write a dhcpclient code with python. The dhcpclient does not have ip address at the very beginning, it sends out dhcpdiscover and then server

Re: strange subprocess behavior when calling ps

2010-11-16 Thread Ned Deily
In article 55f26d5c-aba9-4892-9e2c-1caa9988e...@v23g2000vbi.googlegroups.com, Roger Davis r...@hawaii.edu wrote: I have encountered a strange problem with some code I am writing to search the system process list for certain running processes. I am using subprocess.Popen() to call '/bin/ps

Re: strange subprocess behavior when calling ps

2010-11-16 Thread Roger Davis
Hi James, Thanks for the pointer to psutil. I actually did look around on python.org before coding this up to see if there was such a package available but there is not, at least not where I'm looking -- on the other hand, I can't find my car keys most of the time. I would really like to restrict

Re: how to use socket to get packet which destination ip is not local?

2010-11-16 Thread c_c
libpcap On Wed, Nov 17, 2010 at 4:57 AM, MRAB pyt...@mrabarnett.plus.com wrote: On 16/11/2010 20:38, Hans wrote: Hi, Maybe it's a very simple question. I'm trying to write a dhcpclient code with python. The dhcpclient does not have ip address at the very beginning, it sends out

Re: remote server and effective uid

2010-11-16 Thread Tim Arnold
Tim Harig user...@ilthio.net wrote in message news:ibs8h9$jm...@speranza.aioe.org... On 2010-11-15, Tim Arnold a_j...@bellsouth.net wrote: On Nov 15, 10:41 am, Tim Harig user...@ilthio.net wrote: On 2010-11-15, Tim Arnold a_j...@bellsouth.net wrote: How can I enable the server process to

Re: Raw Unicode docstring

2010-11-16 Thread John Machin
On Nov 17, 9:34 am, Alexander Kapps alex.ka...@web.de wrote:   urScheißt\nderBär\nim Wald? Nicht ohne eine Genehmigung von der Umwelt Erhaltung Abteilung. -- http://mail.python.org/mailman/listinfo/python-list

How can I catch segmentation fault in python?

2010-11-16 Thread justin
Hi all, I am calling a program written in C inside Python using ctypes, and it seems that sometimes the program in C crashes while it's being used in Python. Even under the circumstances, I want to get the Python program going by handling the segmentation fault. I've already searched the

Re: remote server and effective uid

2010-11-16 Thread Dan Stromberg
On Tue, Nov 16, 2010 at 9:37 AM, Tim Arnold tim.arn...@sas.com wrote: Tim Harig user...@ilthio.net wrote in message news:ibs8h9$jm...@speranza.aioe.org... On 2010-11-15, Tim Arnold a_j...@bellsouth.net wrote: On Nov 15, 10:41 am, Tim Harig user...@ilthio.net wrote: On 2010-11-15, Tim

Re: How can I catch segmentation fault in python?

2010-11-16 Thread swapnil
On Nov 17, 10:26 am, justin justpar...@gmail.com wrote: Hi all, I am calling a program written in C inside Python using ctypes, and it seems that sometimes the program in C crashes while it's being used in Python. Even under the circumstances, I want to get the Python program going by

Re: Is Unladen Swallow dead?

2010-11-16 Thread swapnil
On Nov 17, 3:30 am, laspi lorena.aspi...@gmail.com wrote: There has been little or no activity at all in this project in the last months, and the last comments on their mailing list seem to conrfim that it's future is uncertain. It's also very strange the lack of updates, news or discussions,

Re: strange subprocess behavior when calling ps

2010-11-16 Thread Roger Davis
Thanks, Ned! That really helps to explain what is going on. Now, just a couple more questions and I think I will know all I need to know. First, I *still* don't quite understand why this happens with my 2.6.6 interpreter but not my 2.6.1, and why another of the respondents to this thread (Chris)

Re: How can I catch segmentation fault in python?

2010-11-16 Thread Chris Rebert
On Tue, Nov 16, 2010 at 9:26 PM, justin justpar...@gmail.com wrote: Hi all, I am calling a program written in C inside Python using ctypes, and it seems that sometimes the program in C crashes while it's being used in Python. Even under the circumstances, I want to get the Python program

Re: Is Unladen Swallow dead?

2010-11-16 Thread John Nagle
On 11/16/2010 10:24 PM, swapnil wrote: On Nov 17, 3:30 am, laspilorena.aspi...@gmail.com wrote: There has been little or no activity at all in this project in the last months, and the last comments on their mailing list seem to conrfim that it's future is uncertain. It's also very strange the

Re: How can I catch segmentation fault in python?

2010-11-16 Thread John Nagle
On 11/16/2010 10:15 PM, swapnil wrote: On Nov 17, 10:26 am, justinjustpar...@gmail.com wrote: Hi all, I am calling a program written in C inside Python using ctypes, and it seems that sometimes the program in C crashes while it's being used in Python. Even under the circumstances, I want to

[issue9253] argparse: optional subparsers

2010-11-16 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: I think the proposed API looks fine and should be backwards compatible since add_subparsers will currently throw an exception with a default= argument. In case someone feels like writing a patch, you'll want to look at

[issue1028088] Cookies without values are silently ignored (by design?)

2010-11-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Revisiting this issue. - Cookie: should contain name=value pairs - Set-Cookie: header can contain a single word like 'secure' The current design is along the same lines only. In the original comment, the request had asked to document the

[issue10394] subprocess Popen deadlock

2010-11-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Did you attach the correct files? You mention about two programs in the description, but you have attached only one file 'deadlock.py'. Also, it does not fail on Python 2.7.1. Please try it on the latest codeline from release27-maint too.

[issue10399] AST Optimization: inlining of function calls

2010-11-16 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10399 ___ ___ Python-bugs-list

[issue10403] Use member consistently

2010-11-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: It is 'attributes' instead of term 'members'. The term 'method' when it denotes methods can be left as such. -- assignee: d...@python - orsenthil nosy: +orsenthil ___ Python tracker

[issue10403] Use member consistently

2010-11-16 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- stage: - needs patch type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10403

[issue8458] buildbot: test_cmd_line failure on Tiger: [Errno 9] Bad file descriptor

2010-11-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: With 3.2a4, OS X 10.4 Tiger buildbot failures reported: == ERROR: test_run_code (test.test_cmd_line.CmdLineTest) --

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have read and closed too fast, Johannes still has the bug on OS X. Can someone turn his example script into a patch adding a unit test? -- resolution: out of date - stage: committed/rejected - unit test needed status: closed - open

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

2010-11-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: That's fair enough. :) Do you want to close this feature request then? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10070 ___

[issue7325] tempfile.mkdtemp() does not return absolute pathname when relative dir is specified

2010-11-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: -Python 2.6, Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7325 ___

[issue10431] Failed issue tracker submission

2010-11-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10431 ___

[issue10431] Failed issue tracker submission

2010-11-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- Removed message: http://bugs.python.org/msg121278 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10431 ___

[issue10431] Failed issue tracker submission

2010-11-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file19614/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10431 ___

[issue10431] Failed issue tracker submission

2010-11-16 Thread admin
New submission from admin roundup-ad...@psf.upfronthosting.co.za: You are not a registered user. Unknown address: Order Real Pfizer rep...@bugs.python.org -- files: unnamed messages: 121278 nosy: admin priority: normal severity: normal status: open title: Failed issue tracker

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: The issue is with a non-ascii character in a *Unicode* docstring. Python has to encode the string to write it to the terminal; the encode is implicit and so fails. The problem doesn't happen with Python 3 unless you run on an ascii

[issue10432] concurrent.futures.as_completed() spins waiting for futures to complete

2010-11-16 Thread Scott Dial
New submission from Scott Dial sc...@scottdial.com: The code in as_completed() waits on a FIRST_COMPLETED event, which means that after the first future completes, it will no longer wait at all. The proposed patch adds a _AsCompletedWaiter and uses a lock to swap out the finished list and

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Adam Bielański
Adam Bielański abg...@gmail.com added the comment: Ok, I apologize for being to hasty. Below you can find my answers: 1. SlowParser used in xmlrpclib doesn't deal with namespaces in any reasonable way. If there's a namespace prefix for tag, it's not separated from tag name, but passed as part

[issue1553375] Add traceback.print_full_exception()

2010-11-16 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Note that my suggestion was to move the if statement out of the loop as-is: you would still be pulling the traceback to display from the caught exception rather than displaying the stack from the current point of execution. If you want the

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: On Tue, Nov 16, 2010 at 11:32:03AM +, Adam Bielański wrote: just accept ex:nil as well as nil and not try to analyze namespaces at all. But even that seems specific to Java/ Apache Extension. If it is, then it might go in as part of

[issue10432] concurrent.futures.as_completed() spins waiting for futures to complete

2010-11-16 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - bquinlan nosy: +bquinlan stage: - patch review versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10432 ___

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Adam Bielański
Adam Bielański abg...@gmail.com added the comment: It is. It might go. Didn't notice issue8792 before, thanks for pointing it out. Whole ex:nil issue is discussed there, so this issue might be closed. -- ___ Python tracker rep...@bugs.python.org

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10425 ___

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2010-11-16 Thread Eugene Kapun
Eugene Kapun abacabadabac...@gmail.com added the comment: Actually, this can't be fixed without modifying C API methods PyArg_ParseTuple and PyArg_ParseTupleAndKeywords, because it's possible to make an object deallocated before PyArg_ParseTuple returns, so Py_INCREF immediately after parsing

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2010-11-16 Thread Eugene Kapun
Changes by Eugene Kapun abacabadabac...@gmail.com: Added file: http://bugs.python.org/file19617/test-ctypes.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6083 ___

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2010-11-16 Thread Eugene Kapun
Changes by Eugene Kapun abacabadabac...@gmail.com: Added file: http://bugs.python.org/file19618/test-functools.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6083 ___

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

2010-11-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: -haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10070 ___ ___

[issue10134] test_email failures on Windows: end of line issue?

2010-11-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: -haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10134 ___ ___

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- superseder: - Support Apache extensions to XML-RPC in xmlrpclib ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10425 ___

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: There's no need to apologize, we welcome contributions like your report and are open to discuss patches :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10425

[issue8792] Support Apache extensions to XML-RPC in xmlrpclib

2010-11-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: An addition: It was reported in #10425 that None values are incorrectly serialized as valuenil//value, instead of just nil/, or maybe {namespace prefix for extensions defined by Apache}:nil/. -- nosy: +Adam.Bielański, eric.araujo,

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Johannes, can you paste the output of the locale command? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10417 ___

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I agree with Stephen. The test in question is *not a valid test* on OSX. Therefore on OSX it should be skipped. If you can think of a way to test the actual behavior of getgroups on OSX, that's even better. --

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- nosy: -michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7900 ___ ___

[issue8792] Support Apache extensions to XML-RPC in xmlrpclib

2010-11-16 Thread Adam Bielański
Adam Bielański abg...@gmail.com added the comment: To make example provided by Amaury complete I'll add that in order to support both ways you also need to replace xmlrpclib.dumps() with code from attached file. Changes to original xmlrpclib.dumps() function are outlined with comments. In

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Please explain how the failure can be reproduced. I've done some testing on my machine using Apple's copy of python 2.6.1 (on OSX 10.6), which has the same getgroups implementation as the current heads of the active branches.

  1   2   >