ANN: eGenix mxODBC Zope/Plone Database Adapter 2.1.0

2012-09-18 Thread eGenix Team: M.-A. Lemburg
ANNOUNCEMENT mxODBC Zope/Plone Database Adapter Version 2.1.0 for Zope and the Plone CMS Available for Plone 4.0, 4.1 and 4.2,

PyCon Argentina 2012: Schedule, Early Bird Registration and more...

2012-09-18 Thread Mariano Reingart
PyCon Argentina 2012, the 4th National Spanish-speaking Python Conference will be held from November 12th to 17th, in Buenos Aires at the main venue of the National University of Quilmes (Bernal City, in the Great Buenos Aires metropolitan area), Urban Station and EducacionIT (Buenos Aires City

Re: reportlab and python 3

2012-09-18 Thread wxjmfauth
Le lundi 17 septembre 2012 10:48:30 UTC+2, Laszlo Nagy a écrit : Reportlab is on the wall of shame. http://python3wos.appspot.com/ Is there other ways to create PDF files from python 3? There is pyPdf. I haven't tried it yet, but it seem that it is a low level library. It does not

How to use __getattr__ to the current module, for automatically add attributes of the real-time

2012-09-18 Thread sergeiiv65
Want to work so: import sys class Foo(object): def __getattr__(self, t): print 'use __getattr__ - ', t return type(t, (object,), {}) def funct1(self): pass def funct2(self): pass sys.modules[__name__] = Foo() ttt('yy') name 'ttt' is not defined. __getattr__ not work

Re: Hiring Python Developer @ CA, USA

2012-09-18 Thread Paul Rudin
nithinm...@gmail.com writes: ...Must be an export in this language... Are you hiring proof readers as well? :) -- http://mail.python.org/mailman/listinfo/python-list

Re: How to queue functions

2012-09-18 Thread Kushal Kumaran
On Tue, Sep 18, 2012 at 10:26 AM, Dhananjay dhananjay.c.jo...@gmail.com wrote: Dear all, I am trying to use multiprocessing module. I have 5 functions and 2000 input files. First, I want to make sure that these 5 functions execute one after the other. Is there any way that I could queue

ANN: eGenix mxODBC Zope/Plone Database Adapter 2.1.0

2012-09-18 Thread eGenix Team: M.-A. Lemburg
ANNOUNCEMENT mxODBC Zope/Plone Database Adapter Version 2.1.0 for Zope and the Plone CMS Available for Plone 4.0, 4.1 and 4.2,

Re: reportlab and python 3

2012-09-18 Thread Laszlo Nagy
A big yes and it is very easy. I assume you know how to write a plain text file with Python :-). Use your Python to generate a .tex file and let it compile with one of the pdf TeX engines. Potential problems: - It requires a TeX installation (a no problem). - Of course I requires some TeX

Re: How to use __getattr__ to the current module, for automatically add attributes of the real-time

2012-09-18 Thread Jean-Michel Pichavant
- Original Message - Want to work so: import sys class Foo(object): def __getattr__(self, t): print 'use __getattr__ - ', t return type(t, (object,), {}) def funct1(self): pass def funct2(self): pass sys.modules[__name__] = Foo() ttt('yy') name

Re: Docstring parsing and formatting

2012-09-18 Thread Joel Goldstick
On Tue, Sep 18, 2012 at 1:03 AM, Terry Reedy tjre...@udel.edu wrote: On 9/17/2012 10:03 PM, Ben Finney wrote: Howdy all, Where can I find a standard implementation of the docstring parsing and splitting algorithm from PEP 257? Do you know about pydoc? I haven't looked at its source, but

Re: Hiring Python Developer @ CA, USA

2012-09-18 Thread Jonathan Holloway
Incidentally and I know this is region specific, but what's the average salary approximately in the US/UK for a Senior Python programmer? ITJobsWatch in the UK says - http://www.itjobswatch.co.uk/jobs/uk/python.do Is that about right? Jon. On 18 September 2012 08:40, Paul Rudin

Re: reportlab and python 3

2012-09-18 Thread wxjmfauth
Le mardi 18 septembre 2012 11:04:19 UTC+2, Laszlo Nagy a écrit : A big yes and it is very easy. I assume you know how to write a plain text file with Python :-). Use your Python to generate a .tex file and let it compile with one of the pdf TeX engines. Potential

a few questions about scrapy

2012-09-18 Thread Nomen Nescio
I've installed scrapy and gotten a basic set-up working, and I have a few odd questions that I haven't been able to find in the documentation. I plan to run it occasionally from the command line or as a cron job, to scrape new content from a few sites. To avoid duplication, I have in memory two

Re: Decorators not worth the effort

2012-09-18 Thread Thomas Rachel
Am 15.09.2012 16:18 schrieb 8 Dihedral: The concept of decorators is just a mapping from a function ... or class ... to another function ... or any other object ... with the same name in python. Thomas -- http://mail.python.org/mailman/listinfo/python-list

SOLVED: Docstring parsing and formatting

2012-09-18 Thread Ben Finney
Joel Goldstick joel.goldst...@gmail.com writes: On Tue, Sep 18, 2012 at 1:03 AM, Terry Reedy tjre...@udel.edu wrote: On 9/17/2012 10:03 PM, Ben Finney wrote: Where can I find a standard implementation of the docstring parsing and splitting algorithm from PEP 257? Do you know about pydoc?

Re: Batching HTTP requests with httplib (Python 2.7)

2012-09-18 Thread Neil Cerutti
On 2012-09-14, Xavier Combelle xavier.combe...@free.fr wrote: Le 14/09/2012 12:56, Dwight Hutto a ?crit : service_num_list = [num for num in range(0,5)] for service_num in service_num_list: eval(web_service_call%i(%i) % (service_num,service_num)) service_num_list = [num for num in

Re: 'indent'ing Python in windows bat

2012-09-18 Thread David Smith
Thank you all. Roy Smith gets the most thanks, though he didn't answer my general question -- he showed me how to look at that specific structure differently. Terry Reedy might get thanks for her idea if I can ever figure the correct escape sequences that will make both windows and the Python

Re: Decorators not worth the effort

2012-09-18 Thread Neil Cerutti
On 2012-09-14, Chris Angelico ros...@gmail.com wrote: But then again, who actually ever needs fibonacci numbers? If it should happen that your question is not facetious: http://en.wikipedia.org/wiki/Fibonacci_number#Applications -- Neil Cerutti --

Re: Decorators not worth the effort

2012-09-18 Thread Chris Angelico
On Tue, Sep 18, 2012 at 11:19 PM, Neil Cerutti ne...@norwich.edu wrote: On 2012-09-14, Chris Angelico ros...@gmail.com wrote: But then again, who actually ever needs fibonacci numbers? If it should happen that your question is not facetious:

Re: reportlab and python 3

2012-09-18 Thread Laszlo Nagy
I understood, you have Python on a platform and starting from this you wish to create pdf files. Obviously, embedding TeX is practically a no solution, although distibuting a portable standalone TeX distribution is a perfectly viable solution, especially on Windows! To I wanted to learn TeX

Re: subprocess call is not waiting.

2012-09-18 Thread andrea crotti
I have a similar problem, something which I've never quite understood about subprocess... Suppose I do this: proc = subprocess.Popen(['ls', '-lR'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) now I created a process, which has a PID, but it's not running apparently... It only seems to run

Re: splitting numpy array unevenly

2012-09-18 Thread Wanderer
On Monday, September 17, 2012 7:43:06 PM UTC-4, Martin De Kauwe wrote: On Tuesday, September 18, 2012 8:31:09 AM UTC+10, Wanderer wrote: I need to divide a 512x512 image array with the first horizontal and vertical division 49 pixels in. Then every 59 pixels in after that. hsplit and

[Ann] pyBug - Python Belgian User Group

2012-09-18 Thread Jonas Geiregat
Hello everyone and, especially all python user from Belgium. I'm proud to announce the creation of a User Group around Python for the Belgium community. It has been baptized pyBug which stands for Python Belgian User Group. We're just starting out and will need all the help we can get , even

Re: Decorators not worth the effort

2012-09-18 Thread 88888 Dihedral
Chris Angelico於 2012年9月18日星期二UTC+8下午9時25分04秒寫道: On Tue, Sep 18, 2012 at 11:19 PM, Neil Cerutti ne...@norwich.edu wrote: On 2012-09-14, Chris Angelico ros...@gmail.com wrote: But then again, who actually ever needs fibonacci numbers? If it should happen that your question is not

Re: Comparing strings from the back?

2012-09-18 Thread Ethan Furman
Neil Hodgson wrote: Ethan Furman: *plonk* I can't work out who you are plonking. While more than one of the posters on this thread seem worthy of a good plonk, by not including sufficient context, you've left me feeling puzzled. Is there a guideline for this in basic netiquette?

Re: Comparing strings from the back?

2012-09-18 Thread Dwight Hutto
On Tue, Sep 18, 2012 at 11:12 AM, Ethan Furman et...@stoneleaf.us wrote: Neil Hodgson wrote: Ethan Furman: *plonk* I can't work out who you are plonking. While more than one of the posters on this thread seem worthy of a good plonk, by not including sufficient context, you've left me

Re: Comparing strings from the back?

2012-09-18 Thread Dwight Hutto
sufficient context, you've left me feeling puzzled. Is there a guideline for this in basic netiquette? www.woodgate.org/FAQs/netiquette.html -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing strings from the back?

2012-09-18 Thread Dwight Hutto
You're right, my apologies. Dwight Hutto is the one I plonked. You can call me David. I go by my middle name. And it seem to me I made some valid points about a few simple trimming of postings, that didn't seem necessary in the context of a small quick conversation. --

Re: Comparing strings from the back?

2012-09-18 Thread Chris Angelico
On Wed, Sep 19, 2012 at 2:17 AM, Dwight Hutto dwightdhu...@gmail.com wrote: You're right, my apologies. Dwight Hutto is the one I plonked. You can call me David. I go by my middle name. You're most often going to be addressed by the name that's given in your post headers. In this case David

Re: reportlab and python 3

2012-09-18 Thread wxjmfauth
Le mardi 18 septembre 2012 15:31:52 UTC+2, Laszlo Nagy a écrit : I understood, you have Python on a platform and starting from this you wish to create pdf files. Obviously, embedding TeX is practically a no solution, although distibuting a portable standalone TeX distribution is

Re: Decorators not worth the effort

2012-09-18 Thread Dieter Maurer
Jean-Michel Pichavant jeanmic...@sequans.com writes: - Original Message - Jean-Michel Pichavant wrote: [snip] One minor note, the style of decorator you are using loses the docstring (at least) of the original function. I would add the @functools.wraps(func) decorator inside your

Re: reportlab and python 3

2012-09-18 Thread Terry Reedy
On 9/18/2012 9:31 AM, Laszlo Nagy wrote: capable of that. Another requirement would be: easy installation under unix and windows, good multilingual support. By using 3.3, your Python string manipulations will act the same on all platforms, even when using extended plane (non-BMP) characters.

Re: HMM based Chunker NLTK

2012-09-18 Thread Mark Lawrence
On 18/09/2012 19:35, subhabangal...@gmail.com wrote: Dear Group, If anyone of the learned members can kindly help with a HMM/CRF based chunker on NLTK. Regards, Subhabrata. Certainly but how do you intend paying us? :) An alternative approach is to provide us with an idea of what you've

Re: HMM based Chunker NLTK

2012-09-18 Thread subhabangalore
On Wednesday, September 19, 2012 12:40:00 AM UTC+5:30, Mark Lawrence wrote: On 18/09/2012 19:35, subhabangal...@gmail.com wrote: Dear Group, If anyone of the learned members can kindly help with a HMM/CRF based chunker on NLTK. Regards, Subhabrata. Certainly but

User defined lexical scoping... can I do this?

2012-09-18 Thread porkfried
I want to define a 'with' command that makes entries in dictionary available within the local scope, and stores new local variables into that dictionary. The original scope should be restored on exit, and called functions should not see anything special. Can I do this? my_dict = dict(a=1, b=2)

Re: Comparing strings from the back?

2012-09-18 Thread Dwight Hutto
You're most often going to be addressed by the name that's given in your post headers. In this case David has been reduced to an initial, and is visible only in your email address, whereas Dwight My sig says David, but it was just to let him know he can call me by my used name. -- Best

Re: User defined lexical scoping... can I do this?

2012-09-18 Thread Thomas Jollans
On 09/18/2012 10:10 PM, porkfried wrote: I want to define a 'with' command that makes entries in dictionary available within the local scope, and stores new local variables into that dictionary. The original scope should be restored on exit, and called functions should not see anything

Re: User defined lexical scoping... can I do this?

2012-09-18 Thread weissman . mark
On Tuesday, September 18, 2012 4:10:32 PM UTC-4, porkfried wrote: I want to define a 'with' command that makes entries in dictionary available within the local scope, and stores new local variables into that dictionary. The original scope should be restored on exit, and called

Re: User defined lexical scoping... can I do this?

2012-09-18 Thread Thomas Jollans
On 09/18/2012 10:50 PM, weissman.m...@gmail.com wrote: Well there's wired stuff like this: In [1]: locals()[x] = 5 In [2]: print x 5 No, there isn't. Modifying the dictionary returned by locals() has no effect. def f (): ... locals()[x] = 1 ... return x ... f () Traceback

Re: User defined lexical scoping... can I do this?

2012-09-18 Thread Mark Lawrence
On 18/09/2012 21:10, porkfried wrote: I want to define a 'with' command that makes entries in dictionary available within the local scope, and stores new local variables into that dictionary. The original scope should be restored on exit, and called functions should not see anything special.

Re: Decorators not worth the effort

2012-09-18 Thread 88888 Dihedral
Terry Reedy於 2012年9月15日星期六UTC+8上午4時40分32秒寫道: 2nd try, hit send button by mistake before On 9/14/2012 5:28 AM, Jean-Michel Pichavant wrote: Decorators are very popular so I kinda already know that the fault is mine. Now to the reason why I have troubles writing them, I don't

Re: Comparing strings from the back?

2012-09-18 Thread Mark Lawrence
On 18/09/2012 21:40, Dwight Hutto wrote: You're most often going to be addressed by the name that's given in your post headers. In this case David has been reduced to an initial, and is visible only in your email address, whereas Dwight My sig says David, but it was just to let him know he

Fwd: Programming Issues

2012-09-18 Thread Nathan Spicer
-- Forwarded message -- From: Nathan Spicer njsp...@gmail.com Date: Tue, Sep 18, 2012 at 8:32 PM Subject: Programming Issues To: webmas...@python.org Hello, My name is Nathan Spicer. I'm taking a computer programming class using python. I have a project that's due in a week and

Re: Comparing strings from the back?

2012-09-18 Thread Steven D'Aprano
On Tue, 18 Sep 2012 12:17:40 -0400, Dwight Hutto wrote: You can call me David. I go by my middle name. If you want to be known as David, why do you give your name as Dwight? In your email client or newsreader, set your name as David and attributions will be to David, and people will know to

Re: Fwd: Programming Issues

2012-09-18 Thread Dave Angel
On 09/18/2012 08:47 PM, Nathan Spicer wrote: -- Forwarded message -- From: Nathan Spicer njsp...@gmail.com Date: Tue, Sep 18, 2012 at 8:32 PM Subject: Programming Issues To: webmas...@python.org Hello, My name is Nathan Spicer. I'm taking a computer programming class

Re: User defined lexical scoping... can I do this?

2012-09-18 Thread Terry Reedy
On 9/18/2012 5:51 PM, Thomas Jollans wrote: On 09/18/2012 10:50 PM, weissman.m...@gmail.com wrote: Well there's wired stuff like this: In [1]: locals()[x] = 5 In [2]: print x 5 No, there isn't. Modifying the dictionary returned by locals() has no effect. Last time I tried it, it does

Re: Python presentations

2012-09-18 Thread Trent Nelson
On Thu, Sep 13, 2012 at 09:00:19AM -0700, andrea crotti wrote: I have to give a couple of Python presentations in the next weeks, and I'm still thinking what is the best approach. In one presentation for example I will present decorators and context managers, and my biggest doubt is how much

Re: User defined lexical scoping... can I do this?

2012-09-18 Thread Steven D'Aprano
On Tue, 18 Sep 2012 21:38:19 -0400, Terry Reedy wrote: On 9/18/2012 5:51 PM, Thomas Jollans wrote: On 09/18/2012 10:50 PM, weissman.m...@gmail.com wrote: Well there's wired stuff like this: In [1]: locals()[x] = 5 In [2]: print x 5 No, there isn't. Modifying the dictionary returned by

Re: 'indent'ing Python in windows bat

2012-09-18 Thread Jason Friedman
I'm converting windows bat files little by little to Python 3 as I find time and learn Python. The most efficient method for some lines is to call Python like: python -c import sys; sys.exit(3) How do I indent if I have something like: if (sR=='Cope'): sys.exit(1) elif (sR=='Perform')

python immersion

2012-09-18 Thread Steve Howell
It's been several years since I announced this page the first time, so I feel like it's okay to announce it again, possibly introducing a few new people to Python's elegance and simplicity. This is my attempt to teach Python to programmers who have experience in other languages, using gentle

iPhone App To Help You Learn Chinese (Mandarin) Faster By Using Flashcards With Pictures

2012-09-18 Thread qunxfum943
http://goo.gl/lCAUy - Chinese Flashcards with Pictures is an iPhone app that will help you learn Chinese (Mandarin) faster by using flashcards with pictures (learn over 300 most commonly used words in the English / Chinese language from A to Z), thanks. --

[issue12075] python3.2 memory leak when reloading class with attributes

2012-09-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/issue12075 ___

[issue15960] logging.shutdown should cope with IO errors from handler.release methods

2012-09-18 Thread Nick Coghlan
New submission from Nick Coghlan: logging.shutdown includes a try/except block to avoid emitting spurious IO errors while the interpreter is shutting down. This fails if a registered handler tries to do IO (such as calling flush()) in its release method. It would be better if the

[issue15960] logging.shutdown should cope with IO errors from handler.release methods

2012-09-18 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +vinay.sajip type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15960 ___ ___

[issue15956] backreference to named group does not work

2012-09-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: And why isn't \ggroupname part of the pattern language, anyway, or at least some way to refer to a match made in a previous *named* group? But this way exists: (?P=startquote) is what you want. To me \g is an exception, and frankly I did not know

[issue8786] Add support for IEEE 754 contexts to decimal module.

2012-09-18 Thread Michele Orrù
Michele Orrù added the comment: Something like this? That's a pretty trivial draft for the patch. About byte sequences, those features should be available using builtins bin(), oct() and hex(), hacking on __index__, or with internal methods? I am lacking imagination, what else there should be

[issue15903] Make rawiobase_read() read directly to bytes object

2012-09-18 Thread Stefan Krah
Stefan Krah added the comment: So the problem is that readinto(view) might result in several references to view? I don't think that can be solved on the memoryview side. One could do: view = PyMemoryView_FromObject(b); // Lie about writability ((PyMemoryViewObject

[issue15903] Make rawiobase_read() read directly to bytes object

2012-09-18 Thread Richard Oudkerk
Richard Oudkerk added the comment: Then the view owns a reference to the bytes object. But that does not solve the problem that writable memoryviews based on a readonly object might be hanging around. How about doing PyObject_GetBuffer(b, buf, PyBUF_WRITABLE); view =

[issue15961] Missing return value in ``system_message``

2012-09-18 Thread Malthe Borch
New submission from Malthe Borch: When ``docutils`` are importable, distutils uses a reporter implementation that incorrectly drops a return value from the ``system_message`` override (see patch). -- assignee: eric.araujo components: Distutils files: patch.diff keywords: patch

[issue15962] Windows STDIN/STDOUT Redirection is actually FIXED

2012-09-18 Thread Nacsa Kristóf
New submission from Nacsa Kristóf: The Python docs faq says that due to a bug in Windows NT's cmd.exe, the output redirection and piping won't work when started from file extension. http://docs.python.org/faq/windows.html#how-do-i-make-python-scripts-executable

[issue15962] Windows STDIN/STDOUT Redirection is actually FIXED

2012-09-18 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +brian.curtin, terry.reedy, tim.golden stage: - needs patch type: - enhancement versions: -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-09-18 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425 ___ ___ Python-bugs-list mailing

[issue15903] Make rawiobase_read() read directly to bytes object

2012-09-18 Thread Richard Oudkerk
Richard Oudkerk added the comment: The current non-test uses of PyMemoryView_FromBuffer() are in _io.BufferedReader.read(), _io.BufferedWriter.write(), PyUnicode_Decode(). It looks like they can each be made to leak a memoryview that references a deallocated buffer. (Maybe the answer is

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2012-09-18 Thread Trent Nelson
Changes by Trent Nelson tr...@snakebite.org: -- title: Numerous utime ns tests fail on FreeBSD w/ ZFS - Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS) ___ Python tracker rep...@bugs.python.org

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-09-18 Thread Kristof Keppens
Changes by Kristof Keppens kkepp...@gmail.com: -- nosy: +Kristof.Keppens ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9720 ___ ___

[issue15963] Improve ./configure's support for 32/64-bit debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary UNIX systems (Solaris/HP-UX/AIX et al).

2012-09-18 Thread Trent Nelson
New submission from Trent Nelson: Gripe: if you want a 64-bit, non-gcc (i.e. vendor's cc) build on a proprietary UNIX system (i.e. Solaris, HP-UX, AIX etc), you're going to have a bad time. Coercing a 64-bit build from a vendor's cc currently requires explicit CFLAGS/LDFLAGS/configure

[issue15963] Improve ./configure's support for 32/64-bit debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary UNIX systems (Solaris/HP-UX/AIX et al).

2012-09-18 Thread Trent Nelson
Trent Nelson added the comment: On the s10 slave (Solaris 10/nitrogen) for 3.x: (cpython@nitrogen:ttypts/4) (Tue/12:32) .. % ../../src/configure --with-pydebug

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-09-18 Thread Christian Heimes
Christian Heimes added the comment: Serhiy: If I understand you correctly it should be easy to fix. The code in close() has to check if any file is beyond the ZIP64 limit and then write all headers with extra args. Is that correct? -- keywords: +needs review nosy: +christian.heimes

[issue15963] Improve ./configure's support for 32/64-bit debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary UNIX systems (Solaris/HP-UX/AIX et al).

2012-09-18 Thread Jeremy Kloth
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com: -- nosy: +jkloth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15963 ___ ___

[issue15964] SyntaxError in asdl when building 2.7 with system Python 3

2012-09-18 Thread Chris Jerdonek
New submission from Chris Jerdonek: Building with-- ./configure --with-pydebug make -j2 errors out after switching branches from default to 2.7 when the system Python is Python 3 (on Mac OS X 10.7.4 using MacPorts). To reproduce: $ sudo port select python python32 $ python No such file or

[issue15960] logging.shutdown should cope with IO errors from handler.release methods

2012-09-18 Thread Vinay Sajip
Vinay Sajip added the comment: I'm not against making this change, but I'm curious - why would a handler do clean-up I/O in its release() method (which is just for releasing the I/O lock) where it could just as easily override the close() method to do the same thing? It seems like programmer

[issue15965] AT_FDCWD is 0xffd19553 on Solaris 10, resulting in compiler warnings.

2012-09-18 Thread Trent Nelson
New submission from Trent Nelson: On Solaris (s10/nitrogen): % find /usr/include -type f | xargs fgrep -ni AT_FDCWD /usr/include/sys/fcntl.h:320:#defineAT_FDCWD 0xffd19553 (AIX uses -2, FreeBSD uses -100.) Anyway, that results in: (cpython@nitrogen:ttypts/10)

[issue15965] AT_FDCWD is 0xffd19553 on Solaris 10, resulting in compiler warnings.

2012-09-18 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15965 ___ ___ Python-bugs-list

[issue15965] AT_FDCWD is 0xffd19553 on Solaris 10, resulting in compiler warnings.

2012-09-18 Thread Trent Nelson
Trent Nelson added the comment: Easy fix, cast AT_FDCWD to (int): % hg diff diff -r 3a880d640981 Modules/posixmodule.c --- a/Modules/posixmodule.c Tue Sep 18 07:21:18 2012 +0300 +++ b/Modules/posixmodule.c Tue Sep 18 16:04:58 2012 + @@ -414,7 +414,14 @@ #ifdef AT_FDCWD

[issue15966] concurrent.futures: Executor.submit keyword arguments may not be called 'fn' (or 'self')

2012-09-18 Thread Mark Dickinson
New submission from Mark Dickinson: The submit methods of concurrent.futures.ThreadPoolExecutor and concurrent.futures.ProcessPoolExectutor raise TypeError when submitting a callable with a keyword argument named 'fn' or 'self': Python 3.3.0rc2+ (default:3a880d640981, Sep 18 2012,

[issue2286] Stack overflow exception caused by test_marshal on Windows x64

2012-09-18 Thread Trent Nelson
Trent Nelson added the comment: Closing issue; this has been fixed. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2286 ___

[issue15966] concurrent.futures: Executor.submit keyword arguments may not be called 'fn' (or 'self')

2012-09-18 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch. The solution is ugly enough that I'm wondering whether this is even worth fixing. -- keywords: +patch Added file: http://bugs.python.org/file27216/futures.patch ___ Python tracker

[issue15955] gzip, bz2, lzma: add method to get decompressed size

2012-09-18 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15955 ___ ___ Python-bugs-list

[issue15957] README.txt points to broken contributing url in python wiki

2012-09-18 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. I think the wiki was modified to redirect /thing to /moin/thing some months ago, so it may be the recent hardware migration that broke that. I’ll follow up with the pydotorg-www mailing list (or feel free to do it). --

[issue15963] Improve ./configure's support for 32/64-bit debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary UNIX systems (Solaris/HP-UX/AIX et al).

2012-09-18 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, loewis versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15963 ___

[issue15961] Missing return value in ``system_message``

2012-09-18 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report and patch. I think a similar issue was reported for distutils2 (maybe only orally, not on this tracker, I have to search). How did you find the bug? In other words, can you add a unit test for this? :) -- components: +Distutils2

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2012-09-18 Thread Michael Foord
Michael Foord added the comment: The patch is just waiting for me to look over it and commit. I'll get to it ASAP. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15836 ___

[issue4711] Wide literals in the table of contents overflow in documentation

2012-09-18 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4711 ___ ___ Python-bugs-list

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-18 Thread Vitaly
Vitaly added the comment: In the work-around, we need to watch out for what 'man 2 read' on Mac OS refers to as normal file: == Upon successful completion, read(), readv(), and pread() return the number of bytes actually read and placed in the buffer. *The system guarantees to read the

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-18 Thread Ralf Schmitt
Changes by Ralf Schmitt python-b...@systemexit.de: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15896 ___ ___ Python-bugs-list

[issue15956] backreference to named group does not work

2012-09-18 Thread Matthew Barnett
Matthew Barnett added the comment: There needed to be a way of referring to named groups in the replacement template. The existing form \groupnumber clearly wouldn't work. Other regex implementations, such as Perl, do have \g and also \k (for named groups). In my implementation I added

[issue15903] Make rawiobase_read() read directly to bytes object

2012-09-18 Thread Richard Oudkerk
Richard Oudkerk added the comment: I am rather confused about the ownership semantics when one uses PyMemoryView_FromBuffer(). It looks as though PyMemoryView_FromBuffer() steals ownership of the buffer since, when the associated _PyManagedBufferObject is garbage collected,

[issue15903] Make rawiobase_read() read directly to bytes object

2012-09-18 Thread Stefan Krah
Stefan Krah added the comment: Richard Oudkerk rep...@bugs.python.org wrote: PyObject_GetBuffer(b, buf, PyBUF_WRITABLE); view = PyMemoryView_FromBuffer(buf); // readinto view PyBuffer_Release(buf); Would attempts to access a leaked reference to view now result in

[issue15903] Make rawiobase_read() read directly to bytes object

2012-09-18 Thread Stefan Krah
Stefan Krah added the comment: Richard Oudkerk rep...@bugs.python.org wrote: The documentation is not very helpful. It just says that calls to PyObject_GetBuffer() must be matched with calls to PyBuffer_Release(). Yes, we need to sort that out, see #15821. --

[issue15963] Improve ./configure's support for 32/64-bit debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary UNIX systems (Solaris/HP-UX/AIX et al).

2012-09-18 Thread Trent Nelson
Trent Nelson added the comment: Solaris 10 release (i.e. optimized) build requires the following: ../../src/configure --without-gcc CFLAGS=-v -fsimple=0 -m64 -mt=yes -xbuiltin -xhwcprof -xF -xarch=native -xchip=native -fma=fused -g -xO5 -xlibmil -xlibmopt -xmemalign=8s -xregs=frameptr

[issue15956] backreference to named group does not work

2012-09-18 Thread Steve Newcomb
Steve Newcomb added the comment: But this way exists: (?P=startquote) is what you want. I know how I missed it: I searched for backref in the documentation. I did not find it in the discussion of the pattern language, because that word does not appear where ?P= is discussed. contributions

[issue15967] Slaves don't seem to clean up their /tmp mess if a step fails.

2012-09-18 Thread Trent Nelson
New submission from Trent Nelson: All my slaves' /tmp's are polluted with regrtest fluff. I haven't checked yet, but I presume no cleanup is done if a test/run fails. nitrogen% find /tmp -user cpython 2 /dev/null | wc -l 197 netbsd51-x64-1$ find /tmp -user cpython 2 /dev/null | wc -l 142

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-18 Thread Charles-François Natali
Charles-François Natali added the comment: What's wrong with working around this bug by reading a smaller amount? How much data is there supposed to be? Nothing, except that there are probably other places in the stdlib where we can get bitten by this bug. Note that this should eventually be

[issue15039] module/ found before module.py when both are in the CWD

2012-09-18 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15039 ___

[issue15965] AT_FDCWD is 0xffd19553 on Solaris 10, resulting in compiler warnings.

2012-09-18 Thread Larry Hastings
Larry Hastings added the comment: Lgtm. Trent Nelson rep...@bugs.python.org wrote: Trent Nelson added the comment: Easy fix, cast AT_FDCWD to (int): % hg diff diff -r 3a880d640981 Modules/posixmodule.c --- a/Modules/posixmodule.c Tue Sep 18 07:21:18 2012 +0300 +++

[issue15956] backreference to named group does not work

2012-09-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Thanks for the patch! The new formulation looks much better, but I'll let a native speaker have another check. Some comments: I preferred the previous example id because it's not obvious what \042\047 is. And a bullet list would be less heavyweight

[issue15967] Slaves don't seem to clean up their /tmp mess if a step fails.

2012-09-18 Thread R. David Murray
R. David Murray added the comment: Cleanup on test failure is supposed to be done. Cleanup on crash or buildbot timeout isn't done as far as I know (and that was a concern I had with the changes made to support.TESTFN and the cwd, but I didn't articulate it very well). If you find tests

[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2012-09-18 Thread Jeremy Kloth
New submission from Jeremy Kloth: This patch incorporates Tcl/Tk/Tix into the MSVC build in the same fashion as OpenSSL has been done. Highlights: - A new project, tcltk, is added that simply calls the Python script build_tkinter.py to build the externals. - New helper module

[issue15952] format(value) and value.__format__() behave differently with unicode format

2012-09-18 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is a proposed patch. One note on the patch. I feel the second sentence of the note is worth adding because value.__format__() departs from what PEP 3101 says: Note for Python 2.x: The 'format_spec' argument will be either a string object or a unicode

[issue15956] backreference to named group does not work

2012-09-18 Thread Steve Newcomb
Steve Newcomb added the comment: I preferred the previous example id because it's not obvious what \042\047 is. Yeah, but the example I wrote has an in-pattern backreference and a real reason to use one. In the attached patch, I have changed [\042\047] to [\'\]. That's certainly clearer

  1   2   >