[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-21 Thread Javier Collado
Javier Collado javier.coll...@gmail.com added the comment: Working on it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9026 ___ ___

[issue9039] IDLE and module Doc

2010-06-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: You will need to delete TCL_LIBRARY and TK_LIBRARY in your environment settings. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9039

[issue9040] using MIMEApplication to attach a PDF raises a TypeError exception

2010-06-21 Thread Enrico Sartori
New submission from Enrico Sartori enry...@gmail.com: To send an email with a PDF attachment the following code should work: msg = MIMEMultipart() msg['From'] = from msg['To'] = to msg['Subject'] = 'test' fp = open('/path/to/file.pdf', 'rb') attach = MIMEApplication(fp.read(), 'pdf') fp.close()

[issue8854] msvc9compiler.py: find_vcvarsall() doesn't work with VS2008 on Windows x64

2010-06-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Tarek Ziadé wrote: Tarek Ziadé ziade.ta...@gmail.com added the comment: The patch looks good but I am not comfortable with this change until it's tested under other windows/VC flavors. The patch is really trivial, but I'll test it on

[issue8854] msvc9compiler.py: find_vcvarsall() doesn't work with VS2008 on Windows x64

2010-06-21 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I am adding srid in the nosy list. I believe he can test those platforms as well if he's around -- nosy: +srid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8854

[issue8340] bytearray undocumented on trunk

2010-06-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This affects 2.6 as well, doesn't it? -- nosy: +mark.dickinson versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8340

[issue8340] bytearray undocumented on trunk

2010-06-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: georg.brandl - d...@python nosy: +d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8340 ___

[issue8854] msvc9compiler.py: find_vcvarsall() doesn't work with VS2008 on Windows x64

2010-06-21 Thread Konstantin Zemlyak
Konstantin Zemlyak z...@zartsoft.ru added the comment: Win2003 x64, VS2008, vanilla python 2.7rc1 amd64 from python.org. Building python packages with C extensions works fine. Tested on simplejson, jinja2 (with enabled speedups) and PIL. -- nosy: +zart

[issue8854] msvc9compiler.py: find_vcvarsall() doesn't work with VS2008 on Windows x64

2010-06-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Konstantin Zemlyak wrote: Konstantin Zemlyak z...@zartsoft.ru added the comment: Win2003 x64, VS2008, vanilla python 2.7rc1 amd64 from python.org. Building python packages with C extensions works fine. Tested on simplejson, jinja2

[issue8340] bytearray undocumented on trunk

2010-06-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Ideally, there should be documentation of 'bytes' and 'bytearray' in the 'Built-in Types' section of the library manual, too. (library/stdtypes.rst). -- ___ Python tracker rep...@bugs.python.org

[issue8854] msvc9compiler.py: find_vcvarsall() doesn't work with VS2008 on Windows x64

2010-06-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: I checked this again using Python 2.7rc1 AMD64 on Windows Vista x64 using VS2008 and get the same error: error: Unable to find vcvarsall.bat Here's an updated patch for Python 2.7rc1. -- Added file:

[issue8854] msvc9compiler.py: find_vcvarsall() doesn't work with VS2008 on Windows x64

2010-06-21 Thread Konstantin Zemlyak
Konstantin Zemlyak z...@zartsoft.ru added the comment: 64-bit Windows, 64-bit cmd.exe, 64-bit python, not patched:: D:\c:\Program Files\Python27\python.exe Python 2.7rc1 (r27rc1:81787, Jun 6 2010, 20:03:36) [MSC v.1500 64 bit (AMD64)] on win32 Type help,

[issue9041] raised exception is misleading

2010-06-21 Thread Pauli Rikula
New submission from Pauli Rikula pauli.rik...@gmail.com: Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information. import ctypes ctypes.c_double(-10L) c_double(-10.0)

[issue8854] msvc9compiler.py: find_vcvarsall() doesn't work with VS2008 on Windows x64

2010-06-21 Thread Konstantin Zemlyak
Konstantin Zemlyak z...@zartsoft.ru added the comment: Tried msvc9compiler-py27.patch. find_vcvarsall() still works with the same result, while distutils.msvc9compiler.VS_BASE has been changed. :: distutils.msvc9compiler.find_vcvarsall(9.0) u'c:\\Program Files

[issue8854] msvc9compiler.py: find_vcvarsall() doesn't work with VS2008 on Windows x64

2010-06-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Konstantin Zemlyak wrote: Konstantin Zemlyak z...@zartsoft.ru added the comment: 64-bit Windows, 64-bit cmd.exe, 64-bit python, not patched:: D:\c:\Program Files\Python27\python.exe Python 2.7rc1 (r27rc1:81787, Jun 6

[issue8854] msvc9compiler.py: find_vcvarsall() doesn't work with VS2008 on Windows x64

2010-06-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Konstantin Zemlyak wrote: Konstantin Zemlyak z...@zartsoft.ru added the comment: Tried msvc9compiler-py27.patch. find_vcvarsall() still works with the same result, while distutils.msvc9compiler.VS_BASE has been changed. ::

[issue9011] ast_for_factor unary minus optimization changes AST

2010-06-21 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +minge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9011 ___ ___ Python-bugs-list mailing list

[issue8854] msvc9compiler.py: find_vcvarsall() doesn't work with VS2008 on Windows x64

2010-06-21 Thread Konstantin Zemlyak
Konstantin Zemlyak z...@zartsoft.ru added the comment: Using the remote shell, those VS2008 env vars are not set and so the build fails. Seems it doesn't load user profile. The output is: VS2008 product dir: None - Software\Microsoft\VisualStudio\9.0 VS2008 product dir: None -

[issue9042] Gettext cache and classes

2010-06-21 Thread v_peter
New submission from v_peter leanmeandonothingmach...@gmail.com: If you pass gettext.translation a class_ but the mo file you are trying to open already exists in the _translations cache the instance that is returned is an instance of whatever was in the cache and not the class that you

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2010-06-21 Thread Daniel Bengtsson
Changes by Daniel Bengtsson dan...@bengtssons.info: -- nosy: +zitrax ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6931 ___ ___ Python-bugs-list

[issue9005] Year range in timetuple

2010-06-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I raised this issue on python-dev and Guido said OK. See [Python-Dev] Year 0 and year 10,000 in timetuple, http://mail.python.org/pipermail/python-dev/2010-June/100682.html I am attaching a commit ready patch which

[issue9043] 2to3 doesn't handle byte comparison well

2010-06-21 Thread Virgil Dupras
New submission from Virgil Dupras hs...@hardcoded.net: If we run 2to3 on the following code: s = b' ' print s[0] == s we end up with this: s = b' ' print(s[0] == s) However, the first code, under python2 prints True while the converted code, under python3 prints False. Shouldn't 2to3

[issue9005] Year range in timetuple

2010-06-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Added file: http://bugs.python.org/file17729/issue9005b.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9005 ___

[issue9005] Year range in timetuple

2010-06-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in r82128. -- stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9005

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-21 Thread Javier Collado
Javier Collado javier.coll...@gmail.com added the comment: Finally I had to use an OrderedDict as suggested by R. David Murray because it wasn't safe to rely on _choices_actions in HelpFormatter class (i.e. previous patch wasn't valid): - _choices_actions attribute is only present in

[issue8854] msvc9compiler.py: find_vcvarsall() doesn't work with VS2008 on Windows x64

2010-06-21 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Applied patch in r82130. Thanks! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8854 ___

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-21 Thread Javier Collado
Changes by Javier Collado javier.coll...@gmail.com: Removed file: http://bugs.python.org/file17705/ordered_subcommands.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9026 ___

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-21 Thread Javier Collado
Javier Collado javier.coll...@gmail.com added the comment: Despite trunk.diff can be successfully applied to py3k branch, please find attached the patch generated from py3k branch. -- Added file: http://bugs.python.org/file17731/py3k.diff ___ Python

[issue9004] datetime.utctimetuple() should not set tm_isdst flag to 0

2010-06-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: With timezone.utc available in datetime module, users should be encouraged to use dt.astimezone(timezone.utc).timetuple() instead of dt.utctimetuple(). Note that the later will set tm_isdst to -1. This observation can

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-21 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Fixed in rev. 82127 (trunk) and rev 82138 (py3k). Added test for the issues reported here so that it doen't happen again. -- resolution: - fixed status: open - closed ___ Python tracker

[issue9044] [optparse] confusion over an option and its value without any space in between

2010-06-21 Thread Krzysztof Szawala
New submission from Krzysztof Szawala kszaw...@slb.com: Currently optparse library supports the following option definitions: -e value, -e=value, -e:value, -evalue. Having said that let's consider the following option definition: -e string_value. Based on the above syntax the following

[issue9042] Gettext cache and classes

2010-06-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for your report. Unfortunately, 2.6 and 3.1 are stable releases, they only get security and documentation fixes. 2.7 is nearly in the same state, since it’s at the release candidate stage. If your bug still applies to 3.2 (branch named

[issue3326] py3k shouldn't use -fno-strict-aliasing anymore

2010-06-21 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I think that this change could be backported to 3.1 branch. It doesn't cause any additional warnings, which are absent in py3k branch (see issue #8623). r79499 doesn't merge cleanly, so I'm attaching the patch for

[issue9043] 2to3 doesn't handle byte comparison well

2010-06-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9043 ___ ___

[issue8623] Aliasing warnings in socketmodule.c

2010-06-21 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/issue8623 ___

[issue8854] msvc9compiler.py: find_vcvarsall() doesn't work with VS2008 on Windows x64

2010-06-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Benjamin Peterson wrote: Benjamin Peterson benja...@python.org added the comment: Applied patch in r82130. Thanks! Thanks, Benjamin. -- ___ Python tracker rep...@bugs.python.org

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-21 Thread Javier Collado
Javier Collado javier.coll...@gmail.com added the comment: Just for the record, please find attached an uglier patch for python 2.7 that doesn't have the same problems as the first one I uploaded and passes all the test cases (tested with python 2.6). -- Added file:

[issue9041] raised exception is misleading

2010-06-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for your report. Unfortunately, 2.6 and 3.1 are stable releases, they only get security and documentation fixes. 2.7 is nearly in the same state, since it’s at the release candidate stage. Can you check if your bug still applies to 3.2

[issue9044] [optparse] confusion over an option and its value without any space in between

2010-06-21 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I wouldn't say that is confusing -- it is a common usage to have an option immediately followed by it's value (see gcc output after running make, -Wall, etc). -- nosy: +brian.curtin versions: +Python 3.2 -Python 2.6

[issue8636] enumerate() test cases do not cover optional start argument

2010-06-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8636 ___ ___

[issue3326] py3k shouldn't use -fno-strict-aliasing anymore

2010-06-21 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2010/6/21 Arfrever Frehtes Taifersar Arahesis rep...@bugs.python.org: Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I think that this change could be backported to 3.1 branch. It doesn't cause any

[issue9041] raised exception is misleading

2010-06-21 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: they only get security and documentation fixes 2.6 does receive bug fixes. 2.5 is the version in security fix only mode. -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org

[issue9041] raised exception is misleading

2010-06-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks Brian, I’ll note that somewhere and be exact in the future. *has to check the bugs he’s nosy on now to correct comments* -- ___ Python tracker rep...@bugs.python.org

[issue5468] urlencode does not handle bytes, and could easily handle alternate encodings

2010-06-21 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The question of whether % escape should be limited to utf-8 or not was discussed and decided in favor of 'not' in #3300, quote and unquote. Last December, a websig post (referenced yesterday on pydev) reported a 'problem' that would be solved

[issue9039] IDLE and module Doc

2010-06-21 Thread Yoda_Uchiha
Yoda_Uchiha mmpyr...@gmail.com added the comment: But I need those to make windows and screens. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9039 ___

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-21 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: It appears that we are building 64-bit mac installer starting 2.7. For http://python.org/ftp/python/2.7/python-2.7rc1-macosx10.5-2010-06-07.dmg $ file

[issue8340] bytearray undocumented on trunk

2010-06-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: 'bytes' is an alias for 'str' in 2.x, so it shouldn't be documented separately. As for bytearray, yes, it should be added if not present. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.3

2010-06-21 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg m...@egenix.com: The RC2 builds fine on Mac OS X 10.6 (Snow Leopard), but fails to build any of the required extension modules on 10.3: Python build finished, but the necessary bits to build these modules were not found: _bsddb gdbm

[issue9047] Python 2.7rc2 includes -isysroot twice on each gcc command line

2010-06-21 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg m...@egenix.com: A typical build line looks like this: gcc-4.0 -c -fno-strict-aliasing -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -isysroot

[issue9047] Python 2.7rc2 includes -isysroot twice on each gcc command line

2010-06-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Note that the duplicate insertion of -isysroot happens because CPPFLAGS was changed to include this extra option. Since PY_CFLAGS includes both CFLAGS and CPPFLAGS, you get the duplicate occurrence. In Python 2.6, the extra option did

[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.3

2010-06-21 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg m...@egenix.com: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9046 ___ ___

[issue9018] os.path.normcase(None) does not raise an error on linux and should

2010-06-21 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: On Sat, Jun 19, 2010 at 08:00:55PM +, Shashwat Anand wrote: Why on Mac OS X, it should return s.lower() ? That is is because some file systems on Mac OS X are case-sensitive. def normcase(s): Normalize case of pathname. Has no

[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.3

2010-06-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Some debugging shows that the ext.sources list in setup.py does not include the Modules/ prefix for the source files: *** moddirlist=['/usr/local/src/egenix-build-environment/Python-2.7rc2-ucs2/Modules',

[issue9021] no copy.copy problem description

2010-06-21 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The intro paragraph currently (3.2a) consists of This module provides generic (shallow and deep) copying operations. This could be expanded to ''' Assignment statements create bindings between a target and an object. They never duplicate or

[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.3

2010-06-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Turns out that find_file() always returns None for the shared mods: *** module _struct.c in ['/usr/local/src/egenix-build-environment/Python-2.7rc2-ucs2/Modules', '/usr/local/src/egenix-build-environment/Python-2.7rc2-ucs2/Mac/Modules']:

[issue9021] no copy.copy problem description

2010-06-21 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Shorter and better version. Assignment statements create bindings between a target and an object. They never duplicate or copy an existing object. For collections that are mutable or contain mutable items, a copy is sometimes needed so one

[issue9048] no OS X buildbots in the stable list

2010-06-21 Thread Bill Janssen
New submission from Bill Janssen bill.jans...@gmail.com: Considering the number of OS X machines running Python programs, it would be good idea to get this platform into the stable list of buildbots so that releases are checked against it. -- messages: 108302 nosy: janssen priority:

[issue9048] no OS X buildbots in the stable list

2010-06-21 Thread Bill Janssen
Changes by Bill Janssen bill.jans...@gmail.com: -- components: +None keywords: +buildbot versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9048 ___

[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.3

2010-06-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Instrumenting find_file() a bit: if sys.platform == 'darwin': # Honor the MacOSX SDK setting when one was specified. # An SDK is a directory with the same structure as a real # system, but with only header files

[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.3

2010-06-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Note that I've not checked whether an SDK build works on Mac OS X 10.6. The regular build does work. The problem appears to be related to SDK builds only, e.g. if you plan to build Universal binary on Mac OS X 10.3. --

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-21 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Thanks, Michael, for reporting this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8959 ___

[issue9049] UnboundLocalError in nested function

2010-06-21 Thread Andreas Hofmeister
New submission from Andreas Hofmeister andreas.hofmeis...@yahoo.de: Description: An unexpected UnboundLocalError is produced when assigning a value to a variable inside a nested function. The first assignment to the variable is in the enclosing function. Example: def x(): a = False

[issue9050] UnboundLocalError in nested function

2010-06-21 Thread Andreas Hofmeister
New submission from Andreas Hofmeister andreas.hofmeis...@yahoo.de: Description: An unexpected UnboundLocalError is produced when assigning a value to a variable inside a nested function. The first assignment to the variable is in the enclosing function. Example: def x(): a = False

[issue9050] UnboundLocalError in nested function

2010-06-21 Thread Andreas Hofmeister
Andreas Hofmeister andreas.hofmeis...@yahoo.de added the comment: Duplicate of 9049. Sorry for the inconvenience. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9050

[issue9050] UnboundLocalError in nested function

2010-06-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - duplicate stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9050 ___

[issue9049] UnboundLocalError in nested function

2010-06-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This isn't a bug; it's by design. Because there's an assignment to 'a' in the function 'y', 'a' is considered local to that function. (It doesn't matter where the assignment happens within the function; the presence of an assignment

[issue9049] UnboundLocalError in nested function

2010-06-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9049 ___ ___

[issue9025] Non-uniformity in randrange for large arguments.

2010-06-21 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 'Random', without qualification, is commonly taken to mean 'with uniform distribution'. Otherwise it has no specific meaning and could well be a synonym for 'arbitrary' or 'haphazard'. The behavior reported is buggy and in my opinion should

[issue8949] PyArg_Parse*(): z should not accept bytes

2010-06-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: @lemburg: So what is your opinion on this issue? You're probably right: it's too late to change s to accept buffer interface compatible objects as

[issue8990] array constructor and array.fromstring should accept bytearray.

2010-06-21 Thread Thomas Jollans
Thomas Jollans tho...@jollans.com added the comment: Thanks for the input. I'm going to re-work the patch a bit (releasing buffers and such) and add a test within the next few days. The question remains whether or not to accept other buffers with itemsize == 1. The way I understand it,

[issue9051] Cannot pickle timezone instances

2010-06-21 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: s = pickle.dumps(timezone.utc) pickle.loads(s) Traceback (most recent call last): .. TypeError: (Required argument 'offset' (pos 1) not found, class 'datetime.timezone', ()) -- assignee: belopolsky messages:

[issue9052] 2.7rc2 fails test_urllib_localnet tests on OS X

2010-06-21 Thread Bill Janssen
New submission from Bill Janssen bill.jans...@gmail.com: % ./python.exe -Wd -3 -E -tt ./Lib/test/regrtest.py -v test_urllib2_localnet == CPython 2.7rc2 (r27rc2:82137, Jun 21 2010, 12:50:22) [GCC 4.0.1 (Apple Inc. build 5493)] == Darwin-9.8.0-i386-32bit little-endian ==

[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.4

2010-06-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Sorry, my bad. The system in question is a 10.4 Tiger system. -- title: Python 2.7rc2 doesn't build on Mac OS X 10.3 - Python 2.7rc2 doesn't build on Mac OS X 10.4 ___ Python tracker

[issue9048] no OS X buildbots in the stable list

2010-06-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: stable is also meant to mean typically passes test suite without errors. I don't think OSX meets this criterion. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I believe the issue was that there was no supported 64-bit non-X Tk available for 10.5. Has that changed? Otherwise, the build process and Tkinter need to be modified to dynamically link with more than one version of Tk, something that has been

[issue9018] os.path.normcase(None) does not raise an error on linux and should

2010-06-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: ntpath and macpath raise an AttributeError, so we could: 1) change them all to accept only bytes/str and raise a TypeError for other wrong types (correct, consistent, non-backward-compatible); 2) change only posixpath to raise a TypeError

[issue9018] os.path.normcase(None) does not raise an error on linux and should

2010-06-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: ntpath and macpath raise an AttributeError, so we could: 1) change them all to accept only bytes/str and raise a TypeError for other wrong types (correct, consistent, non-backward-compatible); Sounds like the best thing to do. The option 2

[issue9053] distutils compiles extensions so that Python.h cannot be found

2010-06-21 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@twistedmatrix.com: With a checkout of the py3k branch, building an extension module using distutils fails: error: Python.h: No such file or directory This is clearly because the wrong -I option is being supplied: gcc -pthread -g -O2

[issue3439] create a numbits() method for int and long types

2010-06-21 Thread Zooko O'Whielacronx
Zooko O'Whielacronx zo...@zooko.com added the comment: There is a small mistake in the docs: def bit_length(x): 'Number of bits necessary to represent self in binary.' s = bin(x) # binary representation: bin(-37) -- '-0b100101' s = s.lstrip('-0b') # remove leading zeros

[issue9054] pyexpat configured with --with-system-expat is incompatible with expat 2.0.1

2010-06-21 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: pyexpat configured with --with-system-expat segfaults in one selftest when built against expat 2.0.1 SVN trunk: $ ./configure --with-system-expat (with expat-2.0.1) $ make $ ./python Lib/test/test_pyexpat.py [snip] test_parse_only_xml_data

[issue9054] pyexpat configured with --with-system-expat is incompatible with expat 2.0.1

2010-06-21 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: With the attached patch all of Lib/test/test_pyexpat.py passes. -- keywords: +patch Added file: http://bugs.python.org/file17734/fix-issue-9054.patch ___ Python tracker rep...@bugs.python.org

[issue9054] pyexpat configured with --with-system-expat is incompatible with expat 2.0.1

2010-06-21 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- stage: - patch review type: - crash versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9054 ___

[issue9054] pyexpat configured with --with-system-expat is incompatible with expat 2.0.1

2010-06-21 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: For reference, I'm tracking this downstream here: https://bugzilla.redhat.com/show_bug.cgi?id=583931 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9054

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-06-21 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Reopening since test failures are reported on python-dev: [...] test_uuid test test_uuid failed -- Traceback (most recent call last): File /private/tmp/Python-2.7rc2/Lib/test/test_uuid.py, line 472, in testIssue8621

[issue9052] 2.7rc2 fails test_urllib_localnet tests on OS X

2010-06-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Looks like a duplicate of issue 8455. Leaving open so that someone else could sort out the priority. -- nosy: +belopolsky superseder: - buildbot: test_urllib2_localnet failures (Connection refused) on Tiger

[issue9055] test_issue_8959_b fails when run from a service

2010-06-21 Thread Paul Moore
New submission from Paul Moore p.f.mo...@gmail.com: test_issue_8959_b fails when run from a service (in this case, from a buildslave running as a service). It appears to count the number of open windows, expecting a non-zero value. But when run as a service, it looks like the return count is

[issue9018] os.path.normcase(None) does not raise an error on linux and should

2010-06-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Here is the patch. -- assignee: - ezio.melotti components: +Library (Lib) keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file17735/issue9018-2.diff ___

[issue9042] Gettext cache and classes

2010-06-21 Thread v_peter
Changes by v_peter leanmeandonothingmach...@gmail.com: -- keywords: +patch versions: +Python 3.2 -Python 2.6 Added file: http://bugs.python.org/file17736/class_cache.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9042

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-06-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Apparently, the failure on OSX is due to the fact that urllib.proxy_bypass('localhost') returns True. This makes the opener to bypass the ProxyHandler that is explicitly set up to use the correct server port: def

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-06-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: In fact, urllib.proxy_bypass() returns True for any simple host name (i.e. any string without '.' in it): proxy_bypass('xyz') True proxy_bypass('') True proxy_bypass('whatever') True I think the fix I am proposing

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-06-21 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: This is on an Intel machine running OS X 10.5.8. I downloaded and built 2.7rc2 from source with ./configure ; make. I then ran the tests with make test. test_uuid fails with this output: test test_uuid failed -- Traceback (most recent

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-06-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8455 ___

[issue9052] 2.7rc2 fails test_urllib_localnet tests on OS X

2010-06-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9052 ___

[issue3439] create a numbits() method for int and long types

2010-06-21 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: There is a small mistake in the docs: Yes there was. Fixed in 82146. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3439

[issue9056] Adding additional level of bookmarks and section numbers in python pdf documents.

2010-06-21 Thread pengyu.ut
New submission from pengyu.ut pengyu...@gmail.com: Current pdf version of python documents don't have bookmarks for sussubsection. For example, there is no bookmark for the following section in python_2.6.5_reference.pdf. Also the bookmarks don't have section numbers in them. I suggest to

[issue9051] Cannot pickle timezone instances

2010-06-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- keywords: +easy, patch nosy: +mark.dickinson stage: unit test needed - patch review Added file: http://bugs.python.org/file17738/issue8455.diff ___ Python tracker

[issue9051] Cannot pickle timezone instances

2010-06-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file17738/issue8455.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9051 ___

[issue9051] Cannot pickle timezone instances

2010-06-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Added file: http://bugs.python.org/file17739/issue9051.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9051 ___

[issue9018] os.path.normcase(None) does not raise an error on linux and should

2010-06-21 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Nice patch. I like the use of new string formating. It can be applied. BTW, do you think that TODO of s.lower() for MAC OS X should be addressed along with this. It might require some research as how much of a desirable behavior it would

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-06-21 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Replacing 'http://localhost' with 'http://127.0.0.1' for this test is fine. But, urllib.proxy_bypass returning for True for any string, is not correct. In the code, I see that Proxy Settings from Mac OSX system configuration is obtained

  1   2   >