ANN: pymunk 1.0.0 (a 2d physics lib)

2010-03-18 Thread Victor Blomqvist
Hi everyone, Im glad to announce that pymunk 1.0.0 have been released, a library wrapping the 2d physics engine Chipmunk. You can find it here: http://code.google.com/p/pymunk/ What is pymunk? === pymunk is a easy-to-use pythonic 2d physics library that can be used whenever you need

D-Bus

2010-03-18 Thread Zubin Mithra
Hello, I have experience writing scripts to connect to the D-Bus interface provided by different applications but have no experience writing a D-Bus interface for an application. Could someone point me in the right direction? A tutorial or a good example would be nice. Cheers!!! Zubin Mithra

Re: import antigravity

2010-03-18 Thread Lawrence D'Oliveiro
In message mailman.820.1268725930.23598.python-l...@python.org, Chris Rebert wrote: I see that you published my unobfuscated e-mail address on USENET for all to see. I obfuscated it for a reason, to keep the spammers away. I'm assuming this was a momentary lapse of judgement, for which I expect

Re: C-API PyObject_Call

2010-03-18 Thread Stefan Behnel
moerchendiser2k3, 17.03.2010 23:35: 1) put the line number information into the message string when you raise the exception you mean the line and file information of the C code, right? Funny that you (being the OP) ask *me* what kind of line information *you* want. Stefan --

Re: import antigravity

2010-03-18 Thread Stefan Behnel
Lawrence D'Oliveiro, 18.03.2010 08:49: In messagemailman.820.1268725930.23598.python-l...@python.org, Chris Rebert wrote: I see that you published my unobfuscated e-mail address on USENET for all to see. I obfuscated it for a reason, to keep the spammers away. I'm assuming this was a momentary

Recall: How to add a library path to pythonpath ?

2010-03-18 Thread Barak, Ron
Barak, Ron would like to recall the message, How to add a library path to pythonpath ?. -- http://mail.python.org/mailman/listinfo/python-list

Re: C++ code generation

2010-03-18 Thread CHEN Guang
- Original Message - From: Dan Goodmandg.gm...@thesamovar.net I'm doing some C++ code generation using Python, and would be interested in any comments on the approach I'm taking. PythoidC ( http://pythoidc.googlecode.com ) is a C code generator (not C++) It would be nice if you

Re: import antigravity

2010-03-18 Thread Alf P. Steinbach
* Lawrence D'Oliveiro: In message mailman.820.1268725930.23598.python-l...@python.org, Chris Rebert wrote: I see that you published my unobfuscated e-mail address on USENET for all to see. I obfuscated it for a reason, to keep the spammers away. I'm assuming this was a momentary lapse of

Re: Win32All On 64-Bit Operating Systems

2010-03-18 Thread Tim Golden
On 17/03/2010 20:43, Tim Daneliuk wrote: The intent is just to provide as similar as possible a user experience. From a coding POV, it is surely simpler to just use 'winuser' and 'wingroup', but I am sort of philosophically wired to not throw information away if it's a available from the OS.

Re: Recall: How to add a library path to pythonpath ?

2010-03-18 Thread Chris Rebert
On Tue, Mar 16, 2010 at 4:56 AM, Barak, Ron ron.ba...@lsi.com wrote: Barak, Ron would like to recall the message, How to add a library path to pythonpath ?. Good luck with that. :) - Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: import antigravity

2010-03-18 Thread Stefan Behnel
Alf P. Steinbach, 18.03.2010 09:53: headers source=your article Path: feeder.eternal-september.org!eternal-september.org!feeder.erje.net!newsfeed.straub-nv.de!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail From: Lawrence D'Oliveiro

did anybody play with python and window mobile broadband?

2010-03-18 Thread News123
Hi, I'd like to use a mobile broadband device with a windows python app. Did anybody play already with python and the window mobile broadband interface? I'm looking for examples: - how to connect/disconnect a mobile broadband device (currently I use rasdial. not sure it's the best solution) -

Re: did anybody play with python and window mobile broadband?

2010-03-18 Thread Sanjiva P.
On 03/18/2010 10:20 AM, News123 wrote: I'm looking for examples: - how to connect/disconnect a mobile broadband device (currently I use rasdial. not sure it's the best solution) - to obtain the device's current mode (GPRS / EDGE / . . . ) - to obtain the current signal level Thanks a lot

Re: import antigravity

2010-03-18 Thread Alf P. Steinbach
* Stefan Behnel: Alf P. Steinbach, 18.03.2010 09:53: headers source=your article Path: feeder.eternal-september.org!eternal-september.org!feeder.erje.net!newsfeed.straub-nv.de!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail From:

Re: import antigravity

2010-03-18 Thread Jussi Piitulainen
Alf P. Steinbach writes: The point is, if he's upset about Chris quoting that, then he's probably unaware that he's posting it in plaintext himself. The complaint was not about quoting but about using in public. Chris sent his piece to three addresses. From his headers, redacted:

ARE YOU ARE FAMILIAR WITH ANY COMPUTER LANGUAGE-GET GOOD LUCK

2010-03-18 Thread LALITHA N
http://123maza.com/75/expressions -- http://mail.python.org/mailman/listinfo/python-list

Re: import antigravity

2010-03-18 Thread Alf P. Steinbach
* Jussi Piitulainen: Alf P. Steinbach writes: The point is, if he's upset about Chris quoting that, then he's probably unaware that he's posting it in plaintext himself. The complaint was not about quoting but about using in public. Chris sent his piece to three addresses. From his headers,

Re: did anybody play with python and window mobile broadband?

2010-03-18 Thread egl...@gmail.com
On 18 мар, 11:20, News123 news1...@free.fr wrote: I'd like to use a mobile broadband device with a windows python app. Did anybody play already with python and the window mobile broadband interface? There was a discussion on this subject in some local forum recently. I assume you're using

Re: url2lib (windows 7) does not notice when network reconnects (getaddrinfo problem)

2010-03-18 Thread egl...@gmail.com
On 18 мар, 00:47, News123 news1...@free.fr wrote: Hi, I'd like to write a function, that knows when the 'internet' is reachable. My setup is a windows7 host with a wireless USB modem. The modem might connect / disconnect any time. I thought I write a small function just checking whether I

Re: Nested Scopes unintended behaviour ?

2010-03-18 Thread Michael Sparks
On Mar 17, 8:29 pm, Terry Reedy tjre...@udel.edu wrote: On 3/17/2010 11:44 AM, Emile van Sebille wrote: On 3/17/2010 8:16 AM Michael Sparks said... Hi, Is the following behaviour expected ? In short, yes. Assignment within a function forces the variable to locals. In 3.x, one can

Re: os.walk restart

2010-03-18 Thread Tim Chase
Steve Howell wrote: If that's the case, then you might be able to get away with just leaving some kind of breadcrumbs whenever you've successfully processed a directory or a file, Unless you're indexing a read-only device (whether hardware read-only like a CD, or permission-wise read-only

Re: import antigravity

2010-03-18 Thread Steve Holden
Jussi Piitulainen wrote: Alf P. Steinbach writes: The point is, if he's upset about Chris quoting that, then he's probably unaware that he's posting it in plaintext himself. The complaint was not about quoting but about using in public. Chris sent his piece to three addresses. From his

Re: import antigravity

2010-03-18 Thread Steven D'Aprano
On Thu, 18 Mar 2010 09:17:43 +0100, Stefan Behnel wrote: Lawrence D'Oliveiro, 18.03.2010 08:49: In messagemailman.820.1268725930.23598.python-l...@python.org, Chris Rebert wrote: I see that you published my unobfuscated e-mail address on USENET for all to see. I obfuscated it for a reason,

Re: bug in bdist_wininst cross compile?

2010-03-18 Thread Robin Becker
On 17/03/2010 21:37, Gabriel Genellina wrote: En Wed, 17 Mar 2010 11:38:16 -0300, Robin Becker ro...@reportlab.com escribió: has anyone had any success with cross compilation and bdist_wininst; I have modified build_ext very slightly to fix a small bug in cross compilation related to library

sqlite3, memory db and multithreading

2010-03-18 Thread królewna
The problem is simple: I have multiple threads within one program. At least 2 threads have to have access to in-memory sqlite database. It is not possible to pass sqlite objects to those threads because an exception is rised: ProgrammingError: SQLite objects created in a thread can only be

Re: Feeding differeent data types to a class instance?

2010-03-18 Thread Christian
On Mar 14, 2:16 pm, kuru maymunbe...@gmail.com wrote: Hi Thank you so much for all these great suggestions. I will have time today to try all these and see which one works best for me Answers to your question have spread onto the Python blogosphere as well.

Re: converting a timezone-less datetime to seconds since the epoch

2010-03-18 Thread Chris Withers
Hey Chris, Chris Rebert wrote: def timestamp(dttm): return time.mktime(dttm.timetuple()) from calendar import timegm def timestamp(dttm): return timegm(dttm.utctimetuple()) #the *utc*timetuple change is just for extra consistency #it shouldn't actually make a difference here Ah,

Re: Win32All On 64-Bit Operating Systems

2010-03-18 Thread Tim Daneliuk
On 3/18/2010 3:54 AM, Tim Golden wrote: On 17/03/2010 20:43, Tim Daneliuk wrote: The intent is just to provide as similar as possible a user experience. From a coding POV, it is surely simpler to just use 'winuser' and 'wingroup', but I am sort of philosophically wired to not throw

Re: C-API PyObject_Call

2010-03-18 Thread moerchendiser2k3
Funny that you (being the OP) ask *me* what kind of line information *you* want. Stefan Well, I need the line/file information of Python : -- http://mail.python.org/mailman/listinfo/python-list

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-18 Thread DreiJane
Hello, i've used reportlabs over two years now and was content with its quality. These days i have turned to cairo and can only recommend to do so: It is still easier to use (than the well-designed reportlabs tools) and an engine working in a lot of other software too, for example firefox.

Install 2.6.4 as non-admin on Windows

2010-03-18 Thread Mark Carter
How do I install python 2.6.4 on Windows without admin privileges? Can I install it on a machine I control, zip up the contents, copy it across to an admin-restricted machine, and set up a couple of environemtn variables? Does python install files to system directories, making this impossible? --

Re: sqlite3, memory db and multithreading

2010-03-18 Thread DreiJane
Hello, i cannot help you directly with sqlite2 in the Standardlib, since i am used to work with Roger Binns's apsw. After a short experiment with pysqlite leading to data loss - caused by one of the unclearer exception messages of sqlite3 and me having a bad day - i at once turned back to apsw.

Re: Install 2.6.4 as non-admin on Windows

2010-03-18 Thread egl...@gmail.com
On 18 мар, 16:45, Mark Carter alt.mcar...@googlemail.com wrote: How do I install python 2.6.4 on Windows without admin privileges? Can I install it on a machine I control, zip up the contents, copy it across to an admin-restricted machine, and set up a couple of environemtn variables? Does

Re: Install 2.6.4 as non-admin on Windows

2010-03-18 Thread Mark Carter
On 18 Mar, 15:23, egl...@gmail.com egl...@gmail.com wrote: The only file written to a system folder is python2x.dll (I think it's not true for python2.6 any longer), so your approach is perfectly valid if you can put this dll into a folder where it can be found by the system. Thanks. That

Need to create subprocess...

2010-03-18 Thread drstoka
Hello, I have to run a program as a child process inside my python program and redirect it's output through a pipe to a parent program process. So, I wrote this: pipe = Popen('example_program', shell=True, bufsize=0, stdout=PIPE).stdout and it works great. Now, in parent program I need to

Re: C++ code generation

2010-03-18 Thread Chris Colbert
I think Stefan was telling you, in a nice way, to stop spamming every thread about code generation with a plug for your project. 2010/3/17 CHEN Guang dr...@126.com - Original Message - From: Dan Goodmandg.gm...@thesamovar.net I'm doing some C++ code generation using Python, and

Re: C-API PyObject_Call

2010-03-18 Thread Stefan Behnel
moerchendiser2k3, 18.03.2010 14:58: Funny that you (being the OP) ask *me* what kind of line information *you* want. Stefan Well, I need the line/file information of Python : Then please explain what kind of Python line number you expect to find in C code. Hint: providing details often

Re: Method / Functions - What are the differences?

2010-03-18 Thread John Posner
On 3/10/2010 8:37 PM, Gabriel Genellina wrote: En Wed, 10 Mar 2010 11:45:38 -0300, John Posner jjpos...@optimum.net escribió: As I promised/threatened, here's the *start* of a write-up on properties, aimed at non-advanced Python programmers:

Re: Need to create subprocess...

2010-03-18 Thread Martin P. Hellwig
On 03/18/10 16:17, drstoka wrote: Hello, I have to run a program as a child process inside my python program and redirect it's output through a pipe to a parent program process. So, I wrote this: pipe = Popen('example_program', shell=True, bufsize=0, stdout=PIPE).stdout and it works great.

Re: Need to create subprocess...

2010-03-18 Thread Patrick Maupin
On Mar 18, 11:17 am, drstoka filip.popravi.stojmeno...@fer.hr wrote: Hello, I have to run a program as a child process inside my python program and redirect it's output through a pipe to a parent program process. So, I wrote this: pipe = Popen('example_program', shell=True, bufsize=0,

Re: class inheritance

2010-03-18 Thread JLundell
On Mar 17, 5:12 pm, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: On Mon, 15 Mar 2010 16:34:35 -0700,JLundellwrote: It's also unfortunate that Python doesn't have an approximately-equal operator; it'd come in handy for floating-point applications while preserving hash. If

Re: did anybody play with python and window mobile broadband?

2010-03-18 Thread News123
Hi Sanjiva, Sanjiva P. wrote: On 03/18/2010 10:20 AM, News123 wrote: I'm looking for examples: - how to connect/disconnect a mobile broadband device (currently I use rasdial. not sure it's the best solution) - to obtain the device's current mode (GPRS / EDGE / . . . ) - to obtain the

Re: did anybody play with python and window mobile broadband?

2010-03-18 Thread News123
Hy Eglyph, egl...@gmail.com wrote: On 18 мар, 11:20, News123 news1...@free.fr wrote: I'd like to use a mobile broadband device with a windows python app. Did anybody play already with python and the window mobile broadband interface? There was a discussion on this subject in some local

Re: highlight words by regex in pdf files using python

2010-03-18 Thread TP
On Wed, Mar 17, 2010 at 7:53 AM, Peng Yu pengyu...@gmail.com wrote: On Tue, Mar 16, 2010 at 11:12 PM, Patrick Maupin pmau...@gmail.com wrote: On Mar 4, 6:57 pm, Peng Yu pengyu...@gmail.com wrote: I don't find a general pdf library in python that can do any operations on pdfs. I want to

importing python project in my application

2010-03-18 Thread Betül
Hello All, I am new this mail list. I try to embedding python in C++. I want to use this project's class http://gamera.informatik.hsnr.de/ It is a framework in python. I want use Gamera 's classes,functions..etc in my c++ project. I have information about embedding python in c++ but i just want

Re: question about tkinter

2010-03-18 Thread furlan
On Wed, 17 Mar 2010 09:32:46 -0400, robert schaefer wrote: Peter, Most of my life has been dealing with recalcitrant HAL's in one guise or another. These days, I think HAL has permanently taken up residence in Toyota's engine and brakes. Stop the car Dave? Have you changed my oil or even

Re: Need advice on starting a Python group

2010-03-18 Thread Mike Orr
On Mar 11, 7:57 am, gb345 gb...@invalid.com wrote: I'm hoping to get advice from anyone with prior experience setting up a Python group. A friend of mine and I have been trying to start a scientific-programming-oriented Python group in our school (of medecine and bio research), with not much

Re: logging: local functions == loss of lineno

2010-03-18 Thread Hellmut Weber
Am 11.03.2010 12:14, schrieb Peter Otten: Hellmut Weber wrote: Logging works very well giving the filename and line number of the point where it is called. As long as I use the loggers directly. BUT when I have to wrap the logger call in some other function, I always get file name and line

Re: Nested Scopes unintended behaviour ?

2010-03-18 Thread Terry Reedy
On 3/18/2010 6:21 AM, Michael Sparks wrote: After hearing it's expected behaviour in 2.6 it's clear that assigning a name to a value declares the variable to be local, unless there is a global/nonlocal declaration and that unlike much of python (but like yield) this appears based on static

Re: sqlite3, memory db and multithreading

2010-03-18 Thread Aahz
In article hnt81m$fs...@news.task.gda.pl, =?UTF-8?B?a3LDs2xld25h?= króle...@ee.pl wrote: The problem is simple: I have multiple threads within one program. At least 2 threads have to have access to in-memory sqlite database. It is not possible to pass sqlite objects to those threads because an

should writing Unicode files be so slow

2010-03-18 Thread djc
I have a simple program to read a text (.csv) file and split it into several smaller files. Tonight I decided to write a unicode variant and was surprised at the difference in performance. Is there a better way? from __future__ import with_statement import codecs def _rowreader(filename,

Re: Python bindings tutorial

2010-03-18 Thread Dave Angel
Alf P. Steinbach wrote: * Dave Angel: Stefan Behnel wrote: div class=moz-text-flowed style=font-family: -moz-fixedmikelisa...@gmail.com, 17.03.2010 10:08: Its interesting you've mentioned the hard work involved in this interface (binding to an EXE instead of a DLL). A year or more ago I was

Re: Python bindings tutorial

2010-03-18 Thread Alf P. Steinbach
* Dave Angel: Alf P. Steinbach wrote: * Dave Angel: Stefan Behnel wrote: div class=moz-text-flowed style=font-family: -moz-fixedmikelisa...@gmail.com, 17.03.2010 10:08: Its interesting you've mentioned the hard work involved in this interface (binding to an EXE instead of a DLL). A year or

GC is very expensive: am I doing something wrong?

2010-03-18 Thread Weeble
I am loading a dictionary from a text file and constructing a trie data structure in memory. However, it takes longer than I'm happy with - about 12 seconds on my computer. I profiled it, came up with some clever ideas to cut down on the work (such as by exploiting the fact that the dictionary is

Re: GC is very expensive: am I doing something wrong?

2010-03-18 Thread Xavier Ho
Weeble, Try to use the full arguments of insert(i, x), instead of using list slices. Every time you create a slice, Python copies the list into a new memory location with the sliced copy. That's probably a big performance impact there if done recursively. My 2cp, Xav On Fri, Mar 19, 2010 at

Re: GC is very expensive: am I doing something wrong?

2010-03-18 Thread Terry Reedy
On 3/18/2010 8:13 PM, Weeble wrote: I thought that the cost of garbage collection would be in some way proportional to the amount of garbage created, but I didn't think I was creating any: as far as I can tell the only objects deallocated during the load are strings, which could not be

Truoble With A Search Script for ImageBin.org

2010-03-18 Thread Brandon Conner
Hey Pythoners, its my first post here, yay! I'm trying to develop a script that will return the results of a POST request that should list all images uploaded by a user. However, when i run the script, i get returned the HTML of the page with the search form. I am wondering what am i doing

Re: should writing Unicode files be so slow

2010-03-18 Thread Ben Finney
djc slais-...@ucl.ac.uk writes: I have a simple program to read a text (.csv) file Could you please: * simplify it further: make a minimal version that demonstrates the difference you're seeing, without any extraneous stuff that doesn't appear to affect the result. * make it complete: the

Re: import antigravity

2010-03-18 Thread Chris Rebert
On Thu, Mar 18, 2010 at 12:49 AM, Lawrence D'Oliveiro no-s...@extra.super.obfuscation wrote: I see that you published my unobfuscated e-mail address on USENET for all to see. I obfuscated it for a reason, to keep the spammers away. I'm assuming this was a momentary lapse of judgement, for which

Re: Truoble With A Search Script for ImageBin.org

2010-03-18 Thread Steve Holden
Brandon Conner wrote: Hey Pythoners, its my first post here, yay! I'm trying to develop a script that will return the results of a POST request that should list all images uploaded by a user. However, when i run the script, i get returned the HTML of the page with the search form. I am

Re: import antigravity

2010-03-18 Thread John Bokma
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes: In message mailman.820.1268725930.23598.python-l...@python.org, Chris Rebert wrote: I see that you published my unobfuscated e-mail address on USENET for all to see. I obfuscated it for a reason, to keep the spammers away. I'm

Re: Truoble With A Search Script for ImageBin.org

2010-03-18 Thread Cameron Simpson
On 18Mar2010 22:43, Steve Holden st...@holdenweb.com wrote: | Brandon Conner wrote: | I'm trying to develop a script that will return the results of a POST | request that should list all images uploaded by a user. However, when i | run the script, i get returned the HTML of the page with the

example of ssl with SimpleXMLRPCServer in 2.6?

2010-03-18 Thread Rowland Smith
Anyone have an example of using the new ssl module with SimpleXMLRPCServer in 2.6? Thanks, -- -Rowland -- http://mail.python.org/mailman/listinfo/python-list

Re: multiprocessing on freebsd

2010-03-18 Thread Tim Arnold
Martin P. Hellwig martin.hell...@dcuktec.org wrote in message news:hnrabj$c4...@news.eternal-september.org... On 03/17/10 13:30, Tim Arnold wrote: Hi, I'm checking to see if multiprocessing works on freebsd for any version of python. My server is about to get upgraded from 6.3 to 8.0 and I'd

Re: Python bindings tutorial

2010-03-18 Thread Tim Roberts
Dave Angel da...@ieee.org wrote: There's no real reason parts of an exe cannot be exported, same as a dll. They are in fact the same structure. And in fact many other files in the Windows environment are also the same structure, from fonts to ocx's Well, there IS a fundamental difference.

Re: sqlite3, memory db and multithreading

2010-03-18 Thread John Nagle
królewna wrote: The problem is simple: I have multiple threads within one program. At least 2 threads have to have access to in-memory sqlite database. It is not possible to pass sqlite objects to those threads because an exception is rised: ProgrammingError: SQLite objects created in a

Re: GC is very expensive: am I doing something wrong?

2010-03-18 Thread Patrick Maupin
On Mar 18, 7:13 pm, Weeble clockworksa...@gmail.com wrote: I am loading a dictionary from a text file and constructing a trie data structure in memory. However, it takes longer than I'm happy with - about 12 seconds on my computer. I profiled it, came up with some clever ideas to cut down on

[issue8133] test_imp fails on OS X 10.6; filename normalization issue.

2010-03-18 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Test failing on 3.1.2rc1. Should this be considered a release blocker? Perhaps just disable temporarily? -- nosy: +benjamin.peterson, ned.deily ___ Python tracker rep...@bugs.python.org

[issue8118] PYTHON_API_VERSION needs to be bumped?

2010-03-18 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: But should PYTHON_API_VERSION be increased for the 2.7 release? I think it should because of the binary incompatible differences between 2.5 and 2.6. In a perfect world that would have resulted in an increase of PYTHON_API_VERSION

[issue8118] PYTHON_API_VERSION needs to be bumped?

2010-03-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: But should PYTHON_API_VERSION be increased for the 2.7 release? Sounds like a good idea. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8118

[issue8167] test_tk, test_ttk_guionly, and test_ttk_textonly crash when run from install directory

2010-03-18 Thread Ned Deily
New submission from Ned Deily n...@acm.org: When installation tests are run on a user system using the OS X installer, the three tests fail with a crash. Similar results would be expected on other unix-y platforms when tests are run from the install destination, and not the source or build

[issue8168] python3 py_compile does not ignore UTF-8 BOM characters

2010-03-18 Thread Ned Deily
New submission from Ned Deily n...@acm.org: $ cat bom3.py # coding: utf-8 print(BOM BOOM!) $ file bom3.py bom3.py: UTF-8 Unicode (with BOM) text $ python3.1 Python 3.1.1+ (r311:74480, Jan 20 2010, 00:37:31) [GCC 4.4.3 20100108 (prerelease)] on linux2 Type help, copyright, credits or license

[issue8169] SyntaxError messages during install due to compilation of lib2to3 test files

2010-03-18 Thread Ned Deily
New submission from Ned Deily n...@acm.org: On Python 3.1.2rc1 and py3k, make install results in two identical spurious error messages: Compiling /path/to/lib/python3.1/lib2to3/tests/data/bom.py ... *** File /usr/local/lib/python3.1/lib2to3/tests/data/bom.py, line 1 # coding: utf-8

[issue8170] Wrong Paths for distutils build --plat-name=win-amd64

2010-03-18 Thread Robin Becker
New submission from Robin Becker rgbec...@users.sourceforge.net: When building extensions on win32 distutils with --plat-name=win-amd64 adds PCBuild/AMD64 in the wrong place. This patch ensures the AMD64 location comes first -- assignee: tarek components: Distutils files: patch.txt

[issue8171] bdist_wininst builds wrongly for --plat-name=win-amd64

2010-03-18 Thread Robin Becker
New submission from Robin Becker rgbec...@users.sourceforge.net: I notice this from win32 setup.py bdist_wininst --plat-name=win-amd64 running bdist_wininst running build running build_py creating build creating build\lib.win32-2.6 creating build\lib.win32-2.6\reportlab copying

[issue8135] urllib.unquote doesn't decode mixed-case percent escapes

2010-03-18 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed this in r79047. If we are to backport this to release26-maint, we need barry's approval. Barry, any thoughts? The change is a minor improvement, we have lived with normal case percent escape for long, mixed case would be bonus in

[issue8172] Documentation of Property needs example

2010-03-18 Thread Mitchell Model
New submission from Mitchell Model m...@acm.org: Strangely, the extensive documentation of the property function in the Built-in Functions of the documentation has no example of the use of a property. Readers unfamiliar with properties should be told that obj.x invokes the getter, obj.x=value

[issue8142] libffi update to 3.0.9

2010-03-18 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: the ports which are maintained separately still need an update: libffi_msvc libffi trunk now has a port to x86/msvc. might require some extra updates from libffi. I'll take care of this one. Would it be a good idea to upgrade to

[issue8142] libffi update to 3.0.9

2010-03-18 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: no access to solaris hardware. please could you run the libffi testsuite on this machine? make sure that expect is installed. I don't have access to such hardware. I noticed the buildbot failures since libffi was upgraded.

[issue6081] str.format_from_mapping()

2010-03-18 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: I have created a small patch, that adds method that formats using a dict. It's the first time I have written anything in python implementation, so I would very appreciate any advice. Change allows the following: m = Mapping(a='b')

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: I'm seeing this on Python 2.6.4 on Windows XP with the latest MinGW/msys. -- nosy: +janssen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2698

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: Re-opening. -- keywords: +26backport priority: high - normal resolution: invalid - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2698

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: My bad. Adding --compiler=mingw32 eliminates this error. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2698

[issue6081] str.format_from_mapping()

2010-03-18 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Thanks for the patch. It would be nice if you could include unit tests too. -- priority: - normal stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6081

[issue7713] implement ability to disable automatic search path additions

2010-03-18 Thread Jesus Rivero
Changes by Jesus Rivero jesus.rive...@gmail.com: -- nosy: +Neurogeek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7713 ___ ___ Python-bugs-list

[issue8154] os.execlp('true') crashes the interpreter on 2.x

2010-03-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Crash reproduced under Mandriva Linux 2010.0 (glibc-2.10.1-6.2mnb2). Stack trace is as follows: (gdb) bt #0 0x7fb59f2eba9a in strrchr () from /lib64/libc.so.6 #1 0x004010ae in ?? () #2 0x00400ff3 in ?? () #3

[issue8154] os.execlp('true') crashes the interpreter on 2.x

2010-03-18 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Thomas, Do you remember why your patch for issue1039 was not backported? Probably an oversight only. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8154

[issue6081] str.format_from_mapping()

2010-03-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I don't think this patch satisfies Raymond's request. It is explicitly checking for a __missing__ attribute, but Raymond was talking about a more general facility whereby you can pass in an arbitrary object that implements the mapping

[issue6081] str.format_from_mapping()

2010-03-18 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I agree with David. Although it's not clear to my why the code doesn't just work with the addition of do_string_format_using_mapping and without the other code. It's possible the existing code is too dict-specific and should be calling a more

[issue8154] os.execlp('true') crashes the interpreter on 2.x

2010-03-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I agree that this should be fixed, since we presumably want to be strictly conforming to the posix standards, but it looks like this is a regression in either linux or glibc. From the standard's rational section: Early proposals

[issue8156] pybsddb 4.8.3+ integration

2010-03-18 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: issue7975 finally reproduced. Solved in pybsddb 4.8.3+, and added relevant testcases. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8156

[issue7975] dbshelve.py throws exception: AttributeError: 'DB' object has no attribute '__iter__'

2010-03-18 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: This bug was introduced in pybsddb 4.7.2, when migration to ABC (Abstract Base Classes). I have solved it in 4.8.3+, and added relevant testcases. I plan to integrate 4.8.3+ in Python 2.7. See issue8156. --

[issue8155] Incompatible change to test.test_support.check_warnings behaviour

2010-03-18 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Fixed with r79049 and r79050. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue8154] os.execlp('true') crashes the interpreter on 2.x

2010-03-18 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: On Thu, Mar 18, 2010 at 3:32 PM, R. David Murray rep...@bugs.python.org wrote: .. I agree that this should be fixed, since we presumably want to be strictly conforming to the posix standards, but it looks like this is a

[issue8166] hashlib constructors for sha224, sha256, sha384, sha512 missing in Python 3.1.2rc1 with openssl 0.9.7

2010-03-18 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8166 ___ ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-18 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Florent you are right, good catch. I can not use context managers because with is invalid syntax in python 2.3 and 2.4, that I must support for a while. I have implemented a context manager manually, following the description in PEP 343. This

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7092 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-18 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Florent you are right, good catch. I can not use context managers because with is invalid syntax in python 2.3 and 2.4, that I must support for a while. I have implemented a context manager manually, following the description in PEP 343. This

[issue1083] Confusing error message when dividing timedelta using /

2010-03-18 Thread Miki Tebeka
Miki Tebeka miki.teb...@gmail.com added the comment: I see the same problem when from __future__ import division on the 2.x series. Seem like the timedelta objects is missing the __truediv__ method. -- nosy: +tebeka versions: +Python 2.7 ___ Python

[issue8156] pybsddb 4.8.3+ integration

2010-03-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8156 ___

  1   2   >