Re: Does py2app improves speed?

2011-11-24 Thread Ian Kelly
On Wed, Nov 23, 2011 at 11:36 PM, Ricardo Mansilla rick.mansi...@gmail.com wrote: Hi everyone.. My question is exactly as in the subject of This Mail. I have made a Python  script which is to slow and i have heard (and common sense also suggest) that if you use some libraries to frozen the

Re: Capturing SIGSTOP

2011-11-24 Thread Chris Angelico
On Thu, Nov 24, 2011 at 5:36 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:    os.kill(os.getpid(), signal.SIGSTOP)  # Hit myself with a brick. Sometimes there'll be a raise() function but it's going to do the same thing. Yep, that would be the way to do it. ChrisA --

Re: Capturing SIGSTOP

2011-11-24 Thread Chris Angelico
On Thu, Nov 24, 2011 at 5:36 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:    os.kill(os.getpid(), signal.SIGSTOP)  # Hit myself with a brick. It seems to work for me (on Linux), but is it the right way? And - if your system has SIGTSTP, it'll have SIGSTOP and this will be

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread Tim Golden
On 24/11/2011 06:22, Chris Angelico wrote: On Thu, Nov 24, 2011 at 5:11 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: One of us is confused, and I'm pretty sure it's you :) Tim went on to say Obviously this only applies when an underlying cmd session persists, which I

reading optional configuration from a file

2011-11-24 Thread Ulrich Eckhardt
Hi! I have a few tests that require a network connection. Typically, the target will be localhost on port 2. However, sometimes these settings differ, so I want to be able to optionally set them. What I'm currently doing is this: try: from settings import REMOTE_HOST,

suitability of python

2011-11-24 Thread Rudra Banerjee
Dear friends, I am a newbie in python and basically i use python for postprocessing like plotting, data manipulation etc. Based on ease of programming on python I am wondering if I can consider it for the main development as well. My jobs (written on fortran) runs for weeks and quite CPU

Re: suitability of python

2011-11-24 Thread Laurent Claessens
Le 24/11/2011 13:31, Rudra Banerjee a écrit : Dear friends, I am a newbie in python and basically i use python for postprocessing like plotting, data manipulation etc. Based on ease of programming on python I am wondering if I can consider it for the main development as well. My jobs (written on

Re: suitability of python

2011-11-24 Thread Dave Angel
On 11/24/2011 07:31 AM, Rudra Banerjee wrote: Dear friends, I am a newbie in python and basically i use python for postprocessing like plotting, data manipulation etc. Based on ease of programming on python I am wondering if I can consider it for the main development as well. My jobs (written on

Re: Does py2app improves speed?

2011-11-24 Thread Ricardo Mansilla
Well, that's sad... I think Im gonna end getting back to C++ for This. But anyway, thanks a lot for the quick answer... Bye. -- http://mail.python.org/mailman/listinfo/python-list

Re: Does py2app improves speed?

2011-11-24 Thread Dave Angel
On 11/24/2011 08:26 AM, Ricardo Mansilla wrote: Well, that's sad... I think Im gonna end getting back to C++ for This. But anyway, thanks a lot for the quick answer... Bye. Just because Py2app doesn't improve speed doesn't mean there aren't other ways to gain speed, while still using the

Re: Does py2app improves speed?

2011-11-24 Thread Ricardo Mansilla
Most of méthods for improving the speed are related to efficient memory management and using specific structures for a specific tasks... But i have already optimized my code (which is very short actually) following all these rules and it is very slow yet. Do you think there is another way to

Re: Does py2app improves speed?

2011-11-24 Thread Matt Joiner
Yes. Try posting your code. On Fri, Nov 25, 2011 at 1:02 AM, Ricardo Mansilla rick.mansi...@gmail.com wrote: Most of méthods for improving the speed are related to efficient memory management and using specific structures for a specific tasks... But i have already optimized my code (which is

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread Ulrich Eckhardt
Am 17.11.2011 00:59, schrieb Ben Finney: David Robinowdrobi...@gmail.com writes: but your code works fine on Windows. Thanks. I'm glad to know that. Perhaps you could investigate why, and suggest an update to the above documentation if it's wrong? The bug tracker at

Re: reading optional configuration from a file

2011-11-24 Thread Matt Joiner
   REMOTE_HOST = 'localhost'    REMOTE_PORT = 2    try: from .settings import *    except ImportError:        pass This works? If you're using an old version of Python you may need to mess about with __future__. On Thu, Nov 24, 2011 at 10:56 PM, Ulrich Eckhardt

Re: Does py2app improves speed?

2011-11-24 Thread Dave Angel
On 11/24/2011 09:02 AM, Ricardo Mansilla wrote: Most of méthods for improving the speed are related to efficient memory management and using specific structures for a specific tasks... But i have already optimized my code (which is very short actually) following all these rules and it is very

WAVE file writing, confused about setsampwidth(n)

2011-11-24 Thread Alex van der Spek
I am confused about the Wave_write object setsampwidth(n). Is the sample width n the total sample width, i.e. for a stereo sample consisting of short (2 byte) integers; n=4 or is the sample width the number of bytes in either the left or the right channel? Regards, Alex van der Spek --

DTrace probes in Python 2.7 (and next 3.3)

2011-11-24 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all. I have spend some time trying to integrate DTrace probes in official Python: Currently I have a patch to python 2.7, and my plan in to integrate officially in 3.3. The initial probes were based on previous work from OpenSolaris, and similar,

Re: Tree data structure with: single, double and triple children option along with AVM data at each node

2011-11-24 Thread Miki Tebeka
There a many ways to do this, here's one: from collections import namedtuple Tree = namedtuple('Tree', ['feature', 'children']) t = Tree(1, [Tree('hello', []), Tree(3, [])]) -- http://mail.python.org/mailman/listinfo/python-list

YOU MUST KNOW THIS MAN !!!!!!!!!!!!!!!

2011-11-24 Thread BV
In The Name Of Allah, Most Gracious, Most Merciful YOU MUST KNOW THIS MAN MUHAMMAD You may be an atheist or an agnostic; or you may belong to anyone of the religious denominations that exist in the world today. You may be a Communist or a believer in democracy and freedom. No matter what you are,

Re: [oi-dev] DTrace probes in Python 2.7 (and next 3.3)

2011-11-24 Thread Andrzej Szeszo
Hi Jesus Just noticed that there is a python 2.7 package in Oracle's userland repo here: http://hg.openindiana.org/upstream/oracle/userland-gate/file/ea6a3f09379c/components/python/python27 It includes DTrace patch. Did you see/use that? Andrzej On 24/11/2011 16:46, Jesus Cea wrote:

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread W. eWatson
On 11/23/2011 2:29 PM, Alan Meyer wrote: On 11/23/2011 12:38 PM, W. eWatson wrote: So unless Alan Meyer has further interest in this, it looks like it's at an end. It may be time to move on to c++. C++ is a ton of fun. You haven't lived until you've made a syntax error in a template

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread W. eWatson
Whoops, I thought I was replying to Matt Meyers just above you. However, I think he chimed in above about ActiveState back on the 22nd. In any case, I think this thread has ceased to be productive. -- http://mail.python.org/mailman/listinfo/python-list

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread W. eWatson
On 11/23/2011 10:29 AM, Arnaud Delobelle wrote: On 23 November 2011 17:38, W. eWatsonwolftra...@invalid.com wrote: [...] It may be time to move on to c++. Good Luck. Bye! We, pardn meee. -- Steve Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Does py2app improves speed?

2011-11-24 Thread Dominic Binks
On 11/23/2011 10:36 PM, Ricardo Mansilla wrote: Hi everyone.. My question is exactly as in the subject of This Mail. I have made a Python script which is to slow and i have heard (and common sense also suggest) that if you use some libraries to frozen the script the performance improves

Re: reading optional configuration from a file

2011-11-24 Thread Ben Finney
Ulrich Eckhardt ulrich.eckha...@dominolaser.com writes: I have a few tests that require a network connection. Typically, the target will be localhost on port 2. However, sometimes these settings differ, so I want to be able to optionally set them. I subscribe to the view that an

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread Alexander Kapps
On 24.11.2011 22:22, W. eWatson wrote: Whoops, I thought I was replying to Matt Meyers just above you. Above who? As said by somebody already, most people use a mail-client (Thunderbird/Outlook) or a Usenet client to read this forum. Google Groups is (In My Opinion at least) just crap (and

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread Alexander Kapps
On 25.11.2011 00:18, Alexander Kapps wrote: Do you get an Edit with IDLE then? And even if not. Why are you so obsessive about IDLE? I mean, seriously, IDLE is just a bare-level if-nothing-else-is-available editor/IDE. It's better than notepad, OK. I really don't buy it, that your are

Re: [oi-dev] DTrace probes in Python 2.7 (and next 3.3)

2011-11-24 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 24/11/11 19:49, Andrzej Szeszo wrote: Hi Jesus Just noticed that there is a python 2.7 package in Oracle's userland repo here: http://hg.openindiana.org/upstream/oracle/userland-gate/file/ea6a3f09379c/components/python/python27 It

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread Steven D'Aprano
On Thu, 24 Nov 2011 17:25:23 -0600, Tony the Tiger wrote: On Wed, 23 Nov 2011 17:43:20 -0800, Dennis Lee Bieber wrote: Windows PowerShell includes more than one hundred basic core cmdlets, and you can write your own cmdlets and share them with other users. Oh, goodie! They've found yet

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread Steven D'Aprano
On Fri, 25 Nov 2011 00:18:44 +0100, Alexander Kapps wrote: Now, we are talking about Python 3.2.* on Win7, correct? I only have Win7 32bit in a VBox VM, but still. I believe that W. eWatson's problems occurred when he installed a 32-bit version of Python 3.2 on a 64-bit version of Windows 7.

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread Alexander Kapps
On 25.11.2011 01:04, Steven D'Aprano wrote: So by your reasoning, that's at least 20 ways to infect my Linux system. I never realised just how insecure Linux must be! Yes, there are 20+ ways to infect your (and mine) Linux system. You cannot trust *any* kind of 3rd party code. Period. Have

Re: suitability of python

2011-11-24 Thread Terry Reedy
On 11/24/2011 7:31 AM, Rudra Banerjee wrote: Dear friends, I am a newbie in python and basically i use python for postprocessing like plotting, data manipulation etc. Based on ease of programming on python I am wondering if I can consider it for the main development as well. My jobs (written on

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread Terry Reedy
On 11/24/2011 7:16 PM, Steven D'Aprano wrote: As far as I can tell, nobody running the 64-bit version of Windows 7 has chimed in to either confirm or refute W. eWatson's claim that IDLE doesn't show up, On the contrary, back when he first posted, I stated that 64-bit Python 3.2.2 on my

Return of an old friend

2011-11-24 Thread Rick Johnson
Hello Fellow Pythonistas, I am very glad to be back after an unfortunate incident caused my Google account to be deleted. Unfortunately for those of you that have been following along and supporting my crusade to bring fairness and humility to the python community, my old posts under rantingrick

memory leaks - tools and docs

2011-11-24 Thread Aljosa Mohorovic
i've been trying to find memory leaks in a wsgi application using gunicorn to run it and after a lot of time invested in research and testing tools i did find a lot of useful information (most really old) but i'm left with a feeling that this should be easier, better documented and with tools that

Re: memory leaks - tools and docs

2011-11-24 Thread Mike C. Fletcher
On 11-11-24 10:00 PM, Aljosa Mohorovic wrote: i've been trying to find memory leaks in a wsgi application using gunicorn to run it and after a lot of time invested in research and testing tools i did find a lot of useful information (most really old) but i'm left with a feeling that this

Re: suitability of python

2011-11-24 Thread 88888 Dihedral
On Friday, November 25, 2011 8:51:10 AM UTC+8, Terry Reedy wrote: On 11/24/2011 7:31 AM, Rudra Banerjee wrote: Dear friends, I am a newbie in python and basically i use python for postprocessing like plotting, data manipulation etc. Based on ease of programming on python I am wondering if

Re: suitability of python

2011-11-24 Thread alex23
Terry Reedy tjre...@udel.edu wrote: This lead to Numerical Python, now Numpy, SciPy, and later Sage and other scientific and Python packages. I believe SciPy has an f2py (fortran to py) module to help with running Fortran under Python (but it has been years since I read the details). Andrew

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread alex23
On Nov 24, 6:51 pm, Tim Golden m...@timgolden.me.uk wrote: The Ctrl-Z thing is what *exits* the interpreter on Windows (a la Ctrl-D on Linux). With ActivePython, Ctrl-D works as well, which is a godsend as I'm constantly working across Windows linux. In short - on Windows, within one cmd

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread alex23
Tim Golden m...@timgolden.me.uk wrote: The interpreter inherits the command shell's history function: Open a cmd window and then a Python session. Do some stuff. Ctrl-Z to exit to the surrounding cmd window. Do some random cmd stuff: dir, cd, etc. Start a second Python session. up-arrow

Re: memory leaks - tools and docs

2011-11-24 Thread Christian Heimes
Am 25.11.2011 04:00, schrieb Aljosa Mohorovic: i mostly used http://guppy-pe.sourceforge.net/#Heapy but found http://pysizer.8325.org/ and http://code.google.com/p/pympler/ also interesting. Guppy is a extremely powerful tool because it can also track non GC objects without a debug build of

Re: suitability of python

2011-11-24 Thread Alan Meyer
On 11/24/2011 07:31 AM, Rudra Banerjee wrote: Dear friends, I am a newbie in python and basically i use python for postprocessing like plotting, data manipulation etc. Based on ease of programming on python I am wondering if I can consider it for the main development as well. My jobs (written on

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread Steven D'Aprano
On Thu, 24 Nov 2011 20:06:24 -0500, Terry Reedy wrote: On 11/24/2011 7:16 PM, Steven D'Aprano wrote: As far as I can tell, nobody running the 64-bit version of Windows 7 has chimed in to either confirm or refute W. eWatson's claim that IDLE doesn't show up, On the contrary, back when he

Re: Return of an old friend

2011-11-24 Thread Matt Joiner
I haven't heard of you before, but feel like I've missed out on something. Do you (or someone else) care to link to some of your more contentious work? On Fri, Nov 25, 2011 at 1:19 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: Hello Fellow Pythonistas, I am very glad to be back after

online form filling jobs

2011-11-24 Thread brisk brisk
online form filling jobs http://onlinejobsprocess.weebly.com/ -- http://mail.python.org/mailman/listinfo/python-list

Strange result ffor object to bool

2011-11-24 Thread ZhouPeng
Hi all, In my program, I get a listen element by listen = graphics.find(listen) print listen is Element listen at 6afc20 print type listen is type 'instance' I am sure listen is not None and can be accessed properly. But print bool(listen) is False if not listen is True -- Zhou Peng --

[issue13466] new timezones

2011-11-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Amaury Forgeot d'Arc wrote: Amaury Forgeot d'Arc amaur...@gmail.com added the comment: A fairly correct way is to query the time zone database at time module import time by using the DST and GMT offset of that time. But that does

[issue12776] argparse: type conversion function should be called only once

2011-11-24 Thread flying sheep
flying sheep flying-sh...@web.de added the comment: this is annoying: i’m creating a reindentation script that reindents any valid python script. the user can specify if, and how many spaces he/she wants to use per indentation level. `0` or leaving the option out means “one tab per level”.

[issue12776] argparse: type conversion function should be called only once

2011-11-24 Thread Arnaud Fontaine
Arnaud Fontaine ar...@debian.org added the comment: Does the patch I attached fix your issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12776 ___

[issue13465] A Jython section in the dev guide would be great

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hosting docs.python.org/devguide/jython doesn't seem like an unreasonable idea at all to me, and what's the benefit to CPython in making the Jython team go to the effort of building out independent deployment and source control infrastructure

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Just a thought: Would this change be worthy for the What's new in 3.3 list? I think so. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170

[issue13466] new timezones

2011-11-24 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: But that does not give the *other* timezone :-( Which other timezone ? I meant the other timezone *name*. I think we don't understand each other: - time.timezone is the offset of the local (non-DST) timezone. - time.altzone is the

[issue12776] argparse: type conversion function should be called only once

2011-11-24 Thread flying sheep
flying sheep flying-sh...@web.de added the comment: i don’t know, since i get python from the ubuntu repositories, sorry. in which python release will this patch first be integrated? -- ___ Python tracker rep...@bugs.python.org

[issue13466] new timezones

2011-11-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Amaury Forgeot d'Arc wrote: Amaury Forgeot d'Arc amaur...@gmail.com added the comment: But that does not give the *other* timezone :-( Which other timezone ? I meant the other timezone *name*. I think we don't understand each

[issue12776] argparse: type conversion function should be called only once

2011-11-24 Thread Arnaud Fontaine
Arnaud Fontaine ar...@debian.org added the comment: It would definitely help if you could apply the patch for Python 2.7 manually on your local installation (after making a backup of course). You can just download the patch for Python 2.7 then (only the first part of the patch can be applied,

[issue13415] del os.environ[key] ignores errors

2011-11-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Using broken_unsetenv.diff + autoconf, Python compiles correctly on Mac OS X Tiger. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13415

[issue13470] A user may need ... when she has ...

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: they is right and she is actually right too. See http://en.wikipedia.org/wiki/Singular_they -- nosy: +pitrou resolution: - works for me status: open - pending ___ Python tracker

[issue13469] TimedRotatingFileHandler fails to handle intervals of several weeks correctly

2011-11-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +vinay.sajip type: - behavior versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13469

[issue6407] multiprocessing Pool should allow custom task queue

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: As the name implies, _setup_queues is a private method. It feels a bit weird to recommend overriding it in a subclass. -- nosy: +pitrou stage: test needed - needs patch versions: +Python 3.3 -Python 3.2

[issue13415] del os.environ[key] ignores errors

2011-11-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1b83fd683e28 by Victor Stinner in branch 'default': Close #13415: Test in configure if unsetenv() has a return value or not. http://hg.python.org/cpython/rev/1b83fd683e28 -- resolution: - fixed stage: patch

[issue6407] multiprocessing Pool should allow custom task queue

2011-11-24 Thread Ask Solem
Ask Solem a...@celeryproject.org added the comment: @swindmill, if you provide a doc/test patch then this can probably be merged. @pitrou, We could change it to `setup_queues`, though I don't think even changing the name of private methods is a good idea. It could simply be an alias to

[issue10359] ISO C cleanup

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Do the changes to Python/Python-ast.c and Modules/_ctypes/libffi/src/x86/ffi.c still apply? (libffi is an external project, but our copy is already edited so we might as well do one more change). --

[issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-24 Thread Thorsten Simons
New submission from Thorsten Simons t...@snomis.de: Using Python '3.2.2 (default, Sep 4 2011, 09:07:29) [MSC v.1500 64 bit (AMD64)]' on Windows 7 Professional SP1: If you set an access time for a file beyond Jan. 2038 on a file stored in a local NTFS filesystem, all's well:

[issue13472] Quick Start in devguide doesn’t mention build dependencies

2011-11-24 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: The Quick Start section in the devguide does not tell people what they need to install in order to compile Python. A short mention or a link to a section with all info should be added. I can contribute info for Debian and derivative systems:

[issue12776] argparse: type conversion function should be called only once

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Mucking with your installed Python is probably a bad idea, and it may also be an old version (compared to the current development version which has seen hundreds of changes) where testing the patch would not give useful results. Please see the

[issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The timestamp is converted to time_t (32 bits) and then to FILE_TIME (64 bits). A function to convert directly a PyObject to FILE_TIME should be written. -- nosy: +haypo ___ Python

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW Antoine, will you update the doc to mention __qualname__ or would you like help? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Doc patch looks good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___ ___

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: And of course, right after I post this I look at my terminal and see the “Add docs” commit. Ignore me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg148253 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg148252 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___

[issue12934] pysetup doesn’t work for the docutils project

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This is a problem on my side, not in distutils2. My pysetupX.Y scripts are just shell one-liners of this form: PYTHONPATH=~/path/to/d2 pythonX.Y -m distutils2.run $@ Because of sys.path initialization, d2 tried to import docutils from the

[issue13472] Quick Start in devguide doesn’t mention build dependencies

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, it's a quick start. The link to build Python actually tells you about dependencies. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13472

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What if you replace: PyObject *decoded = PyObject_CallMethod( self-decoder, decode, s#, input, 1); with: PyObject *decoded = PyObject_CallMethod( self-decoder, decode, s#, input, (Py_ssize_t) 1); -- nosy:

[issue13473] Add tests for files byte-compiled by distutils[2]

2011-11-24 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: I recently changed packaging.util.byte_compile, the function used by the build_py and install_lib commands, so that it can create .pyc and/or .pyo files independently of the calling’s Python -O or -B flags (dad02a080bbc), but I think I

[issue13470] A user may need ... when she has ...

2011-11-24 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: This explanation is enough. Thanks. -- resolution: works for me - invalid stage: needs patch - committed/rejected status: pending - closed ___ Python tracker rep...@bugs.python.org

[issue13473] Add tests for files byte-compiled by distutils[2]

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: (For the reference, the bug I added is this: http://hg.python.org/cpython/rev/c10946a17420#l6.45 p7g.util.byte_compile calls py_compile.compile with a filename ending in .pyc or .pyo as appropriate, but the optimization level in the

[issue11886] test_time.test_tzset() fails on x86 FreeBSD 7.2 3.x: AEST timezone called EST

2011-11-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Issue #13313 has been marked as a duplicate of this issue. Interesting message from flox: Maybe it is related. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810 Ambiguous timezone names (AEST vs EST) -- nosy: +flox

[issue13313] test_time fails: tzset() do not change timezone

2011-11-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Duplicate of #11886. -- nosy: +haypo resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13313

[issue2377] Replace __import__ w/ importlib.__import__

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2377 ___ ___ Python-bugs-list

[issue11886] test_time.test_tzset() fails on x86 FreeBSD 7.2 3.x: AEST timezone called EST

2011-11-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Is there a way to force configure run on the bot? ./configure is run for each build of each buildbot. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11886

[issue12759] (?P=) input for Tools/scripts/redemo.py raises unnhandled exception

2011-11-24 Thread Masha Katsman
Masha Katsman mkats...@yahoo.com added the comment: Updating the patch with the test. The test checks that the re exception is thrown in case of the (?P=) and (?P) expressions. It used to raise an Index exception. My only question is, the exception we raise now says, there invalid characters

[issue11886] test_time.test_tzset() fails on x86 FreeBSD 7.2 3.x: AEST timezone called EST

2011-11-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I don't see this issue as a bug in Python, but just that the timezone database is different on some OSes. Can't we just accept both names, AEST and EST? Attached patch changes test_time to tolerate EST name for

[issue13224] Change str(x) to return only __qualname__ for some types

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You are right, I misinterpreted “use”. I cloned the the PEP 3155 repo and ran my test script (I’ll attach it for reference) and reprs/strs are indeed class '__main__.A.B' and function makestrip.locals.strip at ..., so this request is not

[issue13224] Change str(x) to return only __qualname__ for some types

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Added file: http://bugs.python.org/file23772/test-str-repr.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224 ___

[issue13224] Change str(x) to return only __qualname__ for some types

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file23468/change-class-__str__.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224 ___

[issue13224] Change str(x) to return only __qualname__ for some types

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file23591/change-some-__str__.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224 ___

[issue13224] Change str(x) to return only the (qual)name for some types

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: Change str(x) to return only __qualname__ for some types - Change str(x) to return only the (qual)name for some types ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224

[issue13443] wrong links and examples in the functional HOWTO

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the fixed links amk. I think they can be fixed in the repo right now. [Eli] I still think it's a bigger problem that the page discusses a module which is not available on Python 3.x - this means that a user following the page

[issue13472] devguide doesn’t list all build dependencies

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Okay. I just hope that people following the quick start and having build issues will follow the link. I followed it and the section only mentions zlib, I think it could be exhaustive. -- title: Quick Start in devguide doesn’t mention

[issue10507] Check well-formedness of reST markup within make patchcheck

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Alternatively, make patchcheck could print “Did you build the docs?”, just as it currently prints “Did you run the test suite?” if C or Python files were modified. Building the docs would not check Misc/NEWS, the original motivation for this

[issue7611] shlex not posix compliant when parsing foo#bar

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The manual just says When operating in POSIX mode, shlex will try to be as close as possible to the POSIX shell parsing rules. but gives no reference to which authority it is following or what the rules are in either case. I think it

[issue13443] wrong links and examples in the functional HOWTO

2011-11-24 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Before doing that, would you have the time to contact its author and inquire about porting plans? I hope to find the time. I was also thinking about an alternative - since the HOWTO probably uses just a handful of functions from that module

[issue1521950] shlex.split() does not tokenize like the shell

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the comments. There are really two cases in one bug. The first part is that the shell will split tokens at characters that shlex doesn't. The handling of , |, ;, , and could be done by adjusting the definition of

[issue13455] Reorganize tracker docs in the devguide

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: [...] The devguide is *already* too big. [...] The devguide was supposed to be something that you read quickly and easily, not an exhaustive reference of how development works. Or at least there should be a clear separation between the two

[issue13422] Subprocess: children hang due to open pipes

2011-11-24 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: The problem I have with the solution that is currently implemented is that subprocess is waiting for the spawned child although the child is not running anymore. In my case this issue occured when invoking samba or the small

[issue13443] wrong links and examples in the functional HOWTO

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Good idea. The functions used are: compose, partial (which we have in functools), flip, foldl. I will disagree with “unhealthy”: I’m sure adding this link was a deliberate exposure of an external module, to put a well-written solution to the

[issue5302] Allow package_data specs/globs to match directories

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I need to fix this for distutils2’s next release (with #13463 and #5302), to include distutils2/tests/fake_dists. -- assignee: tarek - eric.araujo priority: high - release blocker title: Allow package_data globs match directories - Allow

[issue13463] Fix parsing of package_data

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- dependencies: +Allow package_data specs/globs to match directories, package_data only allows one glob per-package ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13463

[issue11805] package_data only allows one glob per-package

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I need this to package test files for distutils2’s own next release, so pragmatism/compatibility will win for the short term :) I’ll fix it together with #13463 and #5302. -- priority: normal - release blocker

  1   2   >