[issue5070] Distutils should create install dir if needed

2009-01-26 Thread Andy Buckley
New submission from Andy Buckley a...@insectnation.org: If you attempt to call python setup.py install --prefix=/foo, and /foo/lib/pythonX.Y/site-packages does not exist, the installation will fail, requiring that the directory be made by hand. Since there is no easy way to know in advance

[issue5071] Distutils should not fail if install dir is not in PYTHONPATH

2009-01-26 Thread Andy Buckley
New submission from Andy Buckley a...@insectnation.org: At present, distutils exits with an error return code if the directory that modules are being installed into is not in PYTHONPATH. Since the install path is not easily obtained (it at least requires running Python to work out the version

[issue5070] Distutils should create install dir if needed

2009-01-26 Thread Andy Buckley
Andy Buckley a...@insectnation.org added the comment: Thanks for the rapid feedback: yes, I am using setuptools and didn't realise it would be responsible for this override. Is setuptools feedback done completely independently from this tracker? ___ Python

[issue4672] Distutils SWIG support blocks use of SWIG -outdir option

2008-12-15 Thread Andy Buckley
New submission from Andy Buckley a...@insectnation.org: When using distutils to build an extension module using SWIG, it makes most sense to use the built-in SWIG support. However, the distutils seem to vet the options passed via the Extension.swig_opts attr/arg: [...] ext_modules=[Extension

[issue4673] Distutils should provide an uninstall command

2008-12-15 Thread Andy Buckley
New submission from Andy Buckley a...@insectnation.org: It would make package maintenance easier, as well as integration with other build systems e.g. autotools (necessary for projects where not everything is Python), if the distutils supported an uninstallation command, e.g. python setup.py

[issue1479255] Fix building with SWIG's -c++ option set in setup.py

2008-12-15 Thread Andy Buckley
Andy Buckley a...@insectnation.org added the comment: This works in my current version of distutils (Python 2.5.2, from Ubuntu Intrepid). Maybe it was fixed and no-one noticed that this bug was relevant ;) -- nosy: +andybuckley ___ Python tracker rep

[issue4279] Module 'parser' fails to build

2008-11-10 Thread Andy
Andy [EMAIL PROTECTED] added the comment: Martin: Looking at it I agree with you 100% - the patch is too complicated for what it is intending to resolve. It simply does not need another accessor function to muddy the waters when making the symbol public as done in #4288 resolves the issue

[issue4279] Module 'parser' fails to build

2008-11-09 Thread Andy
Andy [EMAIL PROTECTED] added the comment: bah I *am* a idiot, #4288 and Christian's comments point out that I can't use 'find' 'xargs' properly :-( Will modify patch to use the correct grammar file c. (and maybe one day I might actually say something sensible to do with Python development

[issue4279] Module 'parser' fails to build

2008-11-09 Thread Andy
Changes by Andy [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11960/parsermodule_fix.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4279

[issue4279] Module 'parser' fails to build

2008-11-09 Thread Andy
Andy [EMAIL PROTECTED] added the comment: a new patch that will use the grammar definition from Python/graminit.c - it is as of yet untested for Cygwin (can't get to that machine right now). It follows the same pattern as the previous, i.e. it makes us of an accessor function to get the grammar

[issue4288] parsermodule and grammar variable

2008-11-09 Thread Andy
Andy [EMAIL PROTECTED] added the comment: looks like it might be a similar root issue to the one I raised in #4279. Looks like this patch breaks the data hiding that I think has been attempted :-( though it doesn't mess with setup.py in the way mine does :-) Don't know how Christian's comment

[issue4288] parsermodule and grammar variable

2008-11-09 Thread Andy
Andy [EMAIL PROTECTED] added the comment: Christian: sorry my 'find' kung fu is weak :-( :-$ I see why. Will work on a better patch. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4288

[issue4288] parsermodule and grammar variable

2008-11-09 Thread Andy
Andy [EMAIL PROTECTED] added the comment: Christian: Cool, thanks for the feedback d00d - it took longer than i though to get what I predicted :-) No worries on the whole core target platform thing - I understand it perfectly, had the same issue for work related things: too many platform

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

2008-11-03 Thread Andy Buckley
New submission from Andy Buckley [EMAIL PROTECTED]: optparse is a great option parser, but one thing that would make it even greater would be if it provided a standard option (cf. --help) which lists all the available options in a parseable form. Something prefixed with --help, e.g. --help

[issue3713] Compile warning for Objects/stringlib

2008-08-28 Thread Andy
New submission from Andy [EMAIL PROTECTED]: Checked out the PY3K branch and built. Received a warning about characters after #ifdef ignored from Objects/stringlib/find.h the line in question is: #ifdef STRINGLIB_WANT_CONTAINS_OBJ !defined(FROM_BYTEARRAY) Which is likely to mean

[issue3713] Compile warning for Objects/stringlib

2008-08-28 Thread Andy
Andy [EMAIL PROTECTED] added the comment: patch for issue attached. gcc -v = gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7) tests: ./runtests.sh = 0 BAD 297 GOOD 27 SKIPPED 324 total -- keywords: +patch Added file: http://bugs.python.org/file11291/issue3713.patch

[issue3704] cookielib doesn't handle URLs with / in parameters

2008-08-27 Thread Andy Kilpatrick
New submission from Andy Kilpatrick [EMAIL PROTECTED]: cookielib doesn't handle URLs like http://server/script? err=/base/error.htmlok=/base/ok.html, as CookieJar::_cookie_from_cookie_tuple uses rfind(/) to strip off the end of the URL, returning http://server/script? err=/base/error.htmlokc

[issue3570] str.find docstring typo

2008-08-16 Thread Andy Harrington
New submission from Andy Harrington [EMAIL PROTECTED]: When you enter help(.find) you get ... such that sub is contained within s[start,end] ... s[start, end] makes no sense. It should be s[start:end]. -- assignee: georg.brandl components: Documentation messages: 71240 nosy

[issue3353] make built-in tokenizer available via Python C API

2008-07-26 Thread Andy
Andy [EMAIL PROTECTED] added the comment: Did that and it builds fine. So my test procedure was: - checkout clean source - apply patch as per guidelines - remove the file Psrser/tokenizer.h (*) - ./configure - make - ./python setup.py install Build platform: Ubuntu , gcc 4.2.3 All

[issue3353] make built-in tokenizer available via Python C API

2008-07-23 Thread Andy
Andy [EMAIL PROTECTED] added the comment: Sorry for the terribly dumb question about this. Are you meaning that, at this stage, all that is required is: 1. the application of the PyAPI_FUNC macro 2. move the file to the Include directory 3. update Makefile.pre.in to point to the new

[issue3323] Clarify __slots__ behaviour when inheriting

2008-07-09 Thread Andy
New submission from Andy [EMAIL PROTECTED]: Suggest clarification on behaviour of the __slots__ attribute when inheriting from classes that don't have __slots__ defined. Obviously the superclass automatically creates __dict__, and it seems the subclass inherits this. I presume this is expected

[issue2950] silly readline module problem

2008-05-23 Thread Andy Novocin
New submission from Andy Novocin [EMAIL PROTECTED]: I installed python 2.5.2 on my SUSE 10.3 system which came with 2.4.4 and when you type import readline it returns No module named readline. When installing I just unzipped, ./configure, make, sudo make install. Im brand new to Linux

[issue1038909] pydoc method documentation lookup enhancement

2008-03-24 Thread Andy Harrington
Andy Harrington [EMAIL PROTECTED] added the comment: Alexander, I have no idea why your patch languished. On the one hand I might have skipped this if I realized that before. On the other hand, I did add something extra, and I might not have had an open mind if I had looked at yours. Plus

[issue1038909] pydoc method documentation lookup enhancement

2008-03-23 Thread Andy Harrington
Changes by Andy Harrington [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9823/pydoc.PATCH _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1038909

[issue1038909] pydoc method documentation lookup enhancement

2008-03-23 Thread Andy Harrington
Andy Harrington [EMAIL PROTECTED] added the comment: HM, before writing my patch I tested pydoc to see the issue was still there. I did not look at the 2004 patch from aschmolck since it was so old and was clearly not implemented, and brett just listed this issue as one to deal with in 2008

[issue1038909] pydoc method documentation lookup enhancement

2008-03-22 Thread Andy Harrington
Andy Harrington [EMAIL PROTECTED] added the comment: Several points: Additional note in pydoc output: I thought that 'inherited' docs should be marked, so I chose to add to the note for any function that gets docs displayed from an inherited function: ', docs from inherited inherited class

[issue1038909] pydoc method documentation lookup enhancement

2008-03-20 Thread Andy Harrington
Andy Harrington [EMAIL PROTECTED] added the comment: After going to the sprint Monday, I am working on this as my first patch. There is no test file for pydoc. ?? -- nosy: +andyharrington _ Tracker [EMAIL PROTECTED] http://bugs.python.org

[issue2398] test_errno fails with unexpected error value EREMOTEIO

2008-03-18 Thread Andy Balaam
New submission from Andy Balaam [EMAIL PROTECTED]: Running test_errno on my 32-bit Ubuntu Gutsy machine gives me this: $ ./python Lib/test/test_errno.py test_for_improper_attributes (__main__.ErrnoAttributeTests) ... FAIL test_using_errorcode (__main__.ErrnoAttributeTests) ... ok

[issue2398] test_errno fails with unexpected error value EREMOTEIO

2008-03-18 Thread Andy Balaam
Andy Balaam [EMAIL PROTECTED] added the comment: Adding Brett Cannon since it looks like his checkin created the test which fails on my machine. Apologies if this is very bad etiquette. I couldn't find any guidelines about this in the developers' docs, but probably that's because I am

[issue2398] test_errno fails with unexpected error value EREMOTEIO

2008-03-18 Thread Andy Balaam
Andy Balaam [EMAIL PROTECTED] added the comment: Woah! fast response, and what looks like a much more sensible fix. Thanks Brett. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2398

[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2007-10-04 Thread Andy Schumann
New submission from Andy Schumann: On Windows a path can contain spaces (e.g. C:\Program Files\python22 \python.exe). If using popenx each component in a command line has therefore to be double quoted as well as the whole command string. The method run_cgi() of the class CGIHTTPRequestHandler

<    1   2   3   4