[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-07-06 Thread Jarek
Jarek jarek@gmail.com added the comment: +1 for mercurial inoperability from behind proxy -- nosy: +jarek.jpa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1424152 ___

[issue6425] imaplib.IMAP4.fetch() is missing documentation for message_set parameter

2009-07-06 Thread Sjoerd
New submission from Sjoerd sjoerd-pyt...@linuxonly.nl: The message_set parameter imaplib.IMAP4.fetch(message_set, message_parts) is not a set or list, but a comma-separated string, it seems. This could use some documentation. -- assignee: georg.brandl components: Documentation messages:

[issue6426] imaplib.IMAP4 command illegal in this state is unhelpful error message

2009-07-06 Thread Sjoerd
New submission from Sjoerd sjoerd-pyt...@linuxonly.nl: If you do not IMAP4.select(), you get the following error: imaplib.error: command SEARCH illegal in state AUTH. This does not inform the user that he has to do IMAP4.select(). Better would be: imaplib.error: command SEARCH illegal in state

[issue6423] The cgi docs should advertize using in instead of has_key

2009-07-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Patch looks good and is ready to commit. Py3k seems to have been fixed already. -- assignee: georg.brandl - ezio.melotti nosy: +ezio.melotti resolution: - accepted ___ Python tracker

[issue3410] platform.version() don't work as expected in Vista in portuguese

2009-07-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: Here are the results. Windows Vista SP2 in English Python 3.0.1: platform.platform() 'Windows-Vista-6.0.6002-SP2' platform.version() '6.0.6002'

[issue6427] Rename float*.[ch] to double.[ch]

2009-07-06 Thread Jack Diederich
New submission from Jack Diederich jackd...@gmail.com: The core types use doubles, not floats. The file and function names should reflect that (the docs already do). -- components: None messages: 90169 nosy: jackdied severity: normal status: open title: Rename float*.[ch] to

[issue3410] platform.version() don't work as expected in Vista in portuguese

2009-07-06 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: On the Vista machine that returned ('', '6.0.6002', 'SP2', 'Multiprocessor Free') there is ActiveState's Python 2.5.2 that includes the pywin32 extension. I managed to run pdb on it and the result was http://dpaste.com/hold/63642/ Python

[issue3410] platform.version() don't work as expected in Vista in portuguese

2009-07-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: On the Vista machine that returned ('', '6.0.6002', 'SP2', 'Multiprocessor Free') there is ActiveState's Python 2.5.2 that includes the pywin32 extension. I

[issue3410] platform.version() don't work as expected in Vista in portuguese

2009-07-06 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Won't that fail with Windows versions in Japanese, Chinese, Arab and similar? If 'Version' is translated in all the languages as a single word and it's between whitespaces (or even between a [ and a space), \S+ should be safe enough,

[issue3410] platform.version() don't work as expected in Vista in portuguese

2009-07-06 Thread Felipe Portella
Felipe Portella fel...@portella.com.br added the comment: The same happens in Portuguese version ... the regex fails because ver returns Versão ... []'s On Mon, Jul 6, 2009 at 7:54 AM, Ezio Melotti rep...@bugs.python.org wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: Won't

[issue3410] platform.version() don't work as expected in Vista in portuguese

2009-07-06 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: According to Google Translate, in Vietnamese 'Version' is 'Phiên bản'. If this is true both \S+ and \w+ will fail. I also noticed a few more regex (namely _release_filename, _lsb_release_version and _release_version) which contain the words

[issue6427] Rename float*.[ch] to double.[ch]

2009-07-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: 'float' is how python names its floating point number type, and this won't change. Yes, it is based on the C double, but I think that the code is very careful to avoid the confusion. For example, in the C sources, the word 'float'

[issue6377] distutils compiler switch ignored

2009-07-06 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r73864, waiting for the buildbots to build trunk, then will be applied in 3.x -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6377

[issue6427] Rename float*.[ch] to double.[ch]

2009-07-06 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: -1 The time to change this was 3.0, if it was ever needed. It would break too much code now. We could develop some strategy using macros, but I just don't think it's worth it. And as Amaury points it, the type is known in python as float, so to

[issue824371] ntpath.expandvars doesn't expand Windows-style variables.

2009-07-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This is already part of 2.6: os.path.expandvars(%WIndir%/foo) 'C:\\WINNT/foo' os.path.expandvars(%invalid%) '%invalid%' -- nosy: +amaury.forgeotdarc resolution: - out of date status: open - closed

[issue6377] distutils compiler switch ignored

2009-07-06 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: merged in r73866 in py3k Thanks for the feedback -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6377 ___

[issue6395] Add Pickle Support to the codecs Module

2009-07-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: I don't understand the use case for this. If the StreamWriter/Reader cannot pickle the underlying stream (which is probably always the case), why should the object itself be pickleable ? What we could do is implement .__get/setstate__()

[issue6428] TypeError: __bool__ should return bool or int, returned int

2009-07-06 Thread SilentGhost
New submission from SilentGhost michael.mischurow+...@gmail.com: According to docs (http://docs.python.org/3.1/reference/datamodel.html#object.__bool__) __bool__ can return 1 or 0 instead of True or False. However, when I ran the following code: Python 3.1 (r31:73574, Jun 26 2009, 20:21:35)

[issue6382] test_socketserver fails on trunk in test_ForkingTCPServer

2009-07-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I now get a different error, followed by zsh detecting an alarm: rdmur...@partner:~/python/trunk./python -m test.regrtest -uall test_socketserver Could not find '/home/rdmurray/python/trunk/Lib/test' in sys.path to remove it

[issue6429] 2to3: fix_future conflicts with fix_print

2009-07-06 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti alexan...@peadrop.com: Running 2to3 with the default options on the following code: from __future__ import print_function x,y = 1,2 print(x, y) produces the following diff: --- future_print.py (original) +++ future_print.py (refactored) @@

[issue6314] logging.basicConfig(level='DEBUG', ... and setLevel(DEBUG) result in no logging

2009-07-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: There is still a problem here, though not something a typical user would run into: rdmur...@partner:~/python/trunk./python Python 2.7a0 (trunk:73845M, Jul 4 2009, 12:43:10) [GCC 4.1.2 (Gentoo 4.1.2)] on linux2 Type help, copyright,

[issue5683] Speed up cPickle's pickling generally

2009-07-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Any updates? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5683 ___ ___ Python-bugs-list

[issue6151] Make PyDescr_COMMON conform to standard C

2009-07-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm not sure what the new patch is since you haven't uploaded it, but the original patch looks ok. In any case, it shouldn't go into 3.1 since it breaks source-level compatibility. -- nosy: +pitrou versions: -Python 3.1

[issue6151] Make PyDescr_COMMON conform to standard C

2009-07-06 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: I'm not sure what the new patch is since you haven't uploaded it Oh silly me. Here's the new patch. -- Added file: http://bugs.python.org/file14459/strict-aliasing-pydescr-2.diff ___

[issue3250] datetime.time does not support arithmetic

2009-07-06 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: I think so. FWIW, I'd recommend looking at: http://pypi.python.org/pypi/python-dateutil ...for doing things that python's builtin datetime stuff doesn't cater for. -- resolution: - wont fix status: open - closed

[issue6428] TypeError: __bool__ should return bool or int, returned int

2009-07-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It's not only the docs, the error message is self-contradictory as well. -- assignee: georg.brandl - nosy: +pitrou priority: - normal stage: - needs patch versions: +Python 3.2 ___ Python tracker

[issue6430] array.array falsely advertises support for 'w' in documentation

2009-07-06 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti alexan...@peadrop.com: It looks like either array's 'w' support got lost in a merge, or the documentation is just wrong. import array array.array('w', hello) Traceback (most recent call last): File stdin, line 1, in module ValueError: bad typecode

[issue6427] Rename float*.[ch] to double.[ch]

2009-07-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: As Amaury explains, it's called float because it *is* a floating point type. It is not a double type, as it is not two types, but only a single one :-) In 2.x, the int type was also represented with a C long, yet the type called long was

[issue3250] datetime.time does not support arithmetic

2009-07-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Or use the original lib on which this is all based :-) http://www.egenix.com/products/python/mxBase/mxDateTime/ (and which, of course, does allow subtracting times) -- nosy: +lemburg ___ Python

[issue6410] Dictionaries should support __add__

2009-07-06 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: FWIW, I'm -1 on the proposal because it partially overlaps the existing capability of dict.update(). To the extent it doesn't overlap, it is use case challenged (typically, it doesn't make sense to build a brand-new

[issue6410] Dictionaries should support __add__

2009-07-06 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: FWIW, here are some use cases: http://twistedmatrix.com/trac/browser/tags/releases/twisted-8.2.0/twisted/python/context.py#L32 http://twistedmatrix.com/trac/browser/tags/releases/twisted-8.2.0/twisted/python/log.py#L270

[issue6428] TypeError: __bool__ should return bool or int, returned int

2009-07-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Probably a misguided merge. Here is a patch that updates the error message, and the documentation. -- keywords: +needs review, patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file14460/bool.patch

[issue6428] TypeError: __bool__ should return bool or int, returned int

2009-07-06 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6428 ___

[issue6420] Fix warning in nismodule.c on OpenBSD

2009-07-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Does someone know whether FreeBSD or NetBSD need the same treatment? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6420

[issue2389] Array pickling exposes internal memory representation of elements

2009-07-06 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: I know believe that arrays should be pickled as a list of values on Python 2.x. Doing otherwise makes it impossible to unpickle arrays coming from Python 2.x using Python 3.x, since pickle on Python 3 decodes all the strings from 2.x

[issue6382] test_socketserver fails on trunk in test_ForkingTCPServer

2009-07-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: How unfortunate. This means that we need to virtualize the shutdown. I'll submit a proposed patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6382

[issue6420] Fix warning in nismodule.c on OpenBSD

2009-07-06 Thread Henry Precheur
Henry Precheur he...@precheur.org added the comment: FreeBSD does. http://svn.freebsd.org/viewvc/base/stable/7/include/rpcsvc/ypclnt.h?revision=172506view=markup But NetBSD doesn't:

[issue6428] TypeError: __bool__ should return bool or int, returned int

2009-07-06 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: The patch looks good to me. In particular, removing the test for using_len looks correct. The assignment of result = -1 after PyErr_Format isn't needed, but doesn't hurt (and it was already there, anyway). -- keywords: -needs review

[issue5885] uuid.uuid1() is too slow

2009-07-06 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Can you provide a patch? -- nosy: +alexandre.vassalotti priority: - low stage: - needs patch versions: +Python 3.2 -Python 2.4, Python 2.5, Python 2.6, Python 3.0, Python 3.1 ___ Python

[issue6410] Dictionaries should support __add__

2009-07-06 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: ISTM these examples show how little value would come from fattening-up the dict API. The examples use the copy/update pattern which is clear, explicit, and extendable to n-ary cases without incurring O(n**2) behavior.

[issue6410] Dictionaries should support __add__

2009-07-06 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: Cool. I'm convinced. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6410 ___ ___

[issue6382] test_socketserver fails on trunk in test_ForkingTCPServer

2009-07-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I'm uploading a patched SocketServer.py. Could you please try it out on the gentoo box before I commit it? -- Added file: http://bugs.python.org/file14462/SocketServer.py ___ Python

[issue2919] Merge profile/cProfile in 3.0

2009-07-06 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Here's an updated version of my lsprof.py module. I fixed a few bugs, includes the awful reference leak that was present in the previous version (i.e., the profiler code was keeping a reference to every frame executed). I consider

[issue2919] Merge profile/cProfile in 3.0

2009-07-06 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti alexan...@peadrop.com: Removed file: http://bugs.python.org/file14376/lsprof.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2919 ___

[issue6428] TypeError: __bool__ should return bool or int, returned int

2009-07-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: fixed in r73868 (py3k) and r73869 (3.1) Thanks for the report! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6428

[issue6420] Fix warning in nismodule.c on OpenBSD

2009-07-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: What about this new patch? -- keywords: +patch Added file: http://bugs.python.org/file14464/nismodule.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6420

[issue6070] Python 2.6 makes .pyc/.pyo bytecode files executable

2009-07-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: #ifndef version of the patch applied to trunk in r73870, with tests. Leaving open until I merge it. -- assignee: - r.david.murray nosy: +brett.cannon resolution: - fixed stage: test needed - committed/rejected

[issue6382] test_socketserver fails on trunk in test_ForkingTCPServer

2009-07-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I had to fix one line, but after that it runs successfully. Updated patch attached. The change is to add the 'request' argument to the close_request call on line 549. -- keywords: +patch Added file:

[issue6420] Fix warning in nismodule.c on OpenBSD

2009-07-06 Thread Henry Precheur
Henry Precheur he...@precheur.org added the comment: It works on OpenBSD, but I don't have any FreeBSD to test. I should be safe to commit though, the patch is rather trivial. -- ___ Python tracker rep...@bugs.python.org

[issue6431] Fraction fails equality test with a user-defined type

2009-07-06 Thread Case Van Horsen
New submission from Case Van Horsen cas...@gmail.com: I've ported the GMPY module to Python 3 and found a problem comparing Fraction to gmpy.mpq. mpq is the rational type in gmpy and knows how to convert a Fraction into an mpq. All operations appear to work properly except Fraction == mpq. mpq