[issue7285] multiprocessing module, example code error

2010-10-10 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in r85347 and r85348. -- nosy: +orsenthil resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10008] Two links point to same place

2010-10-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Yes, but http://docs.python.org/genindex-Z.html ZipFile (class in zipfile), [1] still has same issue, no? [1] (and [2], [3], if exist) should suggest alternatives, but it doesn't now. I'll attach the patch to detect this kind

[issue10029] Equivalent to code for zip is wrong in Python 3

2010-10-10 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Daniel, we need to sync-up on the meaning of marking a report as accepted. Traditionally it denotes an approved patch, not a agreement that the bug is valid. Woops! Thanks for the correction. For what it's worth, a

[issue10052] Python/dtoa.c:158: #error Failed to find an exact-width 32-bit integer type (FreeBSD 4.11 + gcc 2.95.4)

2010-10-10 Thread Akira Kitada
Akira Kitada akit...@gmail.com added the comment: Forgot to mention that there's no _MAX macro for exact-width integer types. $ egrep -r 'INT[0-9].*_MAX' /usr/include/ | wc -l 0 How about adding those macros when the system does not provide them? --

[issue10061] ** operator yielding wrong result for negative numbers

2010-10-10 Thread eswar s
New submission from eswar s eswar...@yahoo.com: -5 ** 4 results as -625. It should be 625 -- components: None messages: 118311 nosy: eswar.s priority: normal severity: normal status: open title: ** operator yielding wrong result for negative numbers type: compile error versions: Python

[issue10008] Two links point to same place

2010-10-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Umm, I tried, but I couldn't post new issue with error. I believe Sphinx guys also look at this tracker. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10008

[issue10061] ** operator yielding wrong result for negative numbers

2010-10-10 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: It's to do with operator precedence. ** takes higher precedence than negative. http://docs.python.org/reference/expressions.html#Summary (-5) ** 4 will give what you are looking for. -- nosy: +orsenthil resolution: - invalid

[issue10054] select extension does not build on platforms where uintptr_t is provided in inttypes.h

2010-10-10 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10054 ___ ___ Python-bugs-list mailing list

[issue10029] Equivalent to code for zip is wrong in Python 3

2010-10-10 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Please pass the word along if you get a chance :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10029 ___

[issue10062] Python 3.2 does not build on systems which do not have sem_timedwait

2010-10-10 Thread Akira Kitada
New submission from Akira Kitada akit...@gmail.com: Build fails on FreeBSD 4 due to the lack of sem_timedwait. gcc -pthread -Wl,--export-dynamic -o python Modules/python.o libpython3.2.a -lutil -lm libpython3.2.a(thread.o): In function `PyThread_acquire_lock_timed':

[issue10062] Python 3.2 does not build on systems which do not have sem_timedwait

2010-10-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What happens if you comment out # define USE_SEMAPHORES in Python/thread_pthread.h? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10062

[issue10062] Python 3.2 does not build on systems which do not have sem_timedwait

2010-10-10 Thread Akira Kitada
Akira Kitada akit...@gmail.com added the comment: It works fine with USE_SEMAPHORES commented out. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10062 ___

[issue10062] Python 3.2 does not build on systems which do not have sem_timedwait

2010-10-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What about this patch? Index: Python/thread_pthread.h === --- Python/thread_pthread.h (révision 85348) +++ Python/thread_pthread.h (copie de travail) @@ -64,7 +64,8 @@ /*

[issue10054] select extension does not build on platforms where uintptr_t is provided in inttypes.h

2010-10-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: 3.1 branch does not have this problem because that patch was not applied to release31-maint. Is this intentional? I don't remember, I suppose it feared it could be an incompatible change or perhaps cause build problems. Anyway, I committed

[issue10062] Python 3.2 does not build on systems which do not have sem_timedwait

2010-10-10 Thread Akira Kitada
Akira Kitada akit...@gmail.com added the comment: The patch does fix the build error. Thank you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10062 ___

[issue10062] Python 3.2 does not build on systems which do not have sem_timedwait

2010-10-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch committed in r85352, thanks. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10062

[issue9921] os.path.join('x','') behavior

2010-10-10 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: That doesn't cover the os.path.join('', 'x') case, and I'm not sure it makes os.path.join('x//', 'y') clear - though that doesn't matter as much. How about making (2) the result is simply path2 when path1 is empty or path2 is an absolute

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2010-10-10 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This can be solved after 3.2a3. -- assignee: - ronaldoussoren nosy: +georg.brandl, ronaldoussoren priority: release blocker - deferred blocker ___ Python tracker rep...@bugs.python.org

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-10-10 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Deferring once again. -- priority: release blocker - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8611 ___

[issue10052] Python/dtoa.c:158: #error Failed to find an exact-width 32-bit integer type (FreeBSD 4.11 + gcc 2.95.4)

2010-10-10 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: FreeBSD 5.0 has stdint.h, which includes machine/_stdint.h. In the latter file the *_MAX constants are defined. It looks like FreeBSD has had the correct setup for more than 7 years:

[issue9437] can't build extensions with non-default ldflags (e.g. -m32)

2010-10-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed to 3.x in r85353. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9437 ___ ___

[issue10063] file:// scheme will stop accessing via ftp protocol

2010-10-10 Thread Senthil Kumaran
New submission from Senthil Kumaran orsent...@gmail.com: file:// scheme should not be allowed to access a file on remote machines. RFC 1738, says that host, if present should be the FQDN of the machine, but relaxing on that I thinking that localhost and its variants should okay as long as it

[issue1777412] Python's strftime dislikes years before 1900

2010-10-10 Thread kiorky
kiorky kio...@cryptelium.net added the comment: We must not have the same point of view about new features and bugfixes... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1777412 ___

[issue9437] can't build extensions with non-default ldflags (e.g. -m32)

2010-10-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Backported to 2.7 in r85358. -- resolution: - fixed stage: needs patch - committed/rejected status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9437

[issue10052] Python/dtoa.c:158: #error Failed to find an exact-width 32-bit integer type (FreeBSD 4.11 + gcc 2.95.4)

2010-10-10 Thread Akira Kitada
Akira Kitada akit...@gmail.com added the comment: I understand FreeBSD 4.x is old platform (4.11, the last 4.x series, is released 5 years ago) but, in my opinion, as long as it does not make Python code cluttered, supporting old platforms is not that bad idea. Anyway, I would like to leave

[issue1777412] Python's strftime dislikes years before 1900

2010-10-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: kiorky: see my msg55157. Python behaves correctly as it stands - raising the exception is fully intentional. It's not a bug that it gets raised; dates before 1900 are just not supported. Adding support for them is a new feature. --

[issue9189] Improve CFLAGS handling

2010-10-10 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: r85358 fixes the failures in test_sysconfig. The duplicate LDFLAGS are still present, but if it is generally accepted that make-LDFLAGS should be appended to configure-LDFLAGS, then I don't see any way around that. As for me, this could

[issue10059] add the method `index` to collections.deque

2010-10-10 Thread Simon Liedtke
Simon Liedtke liedtke.si...@googlemail.com added the comment: I see that adding this method to a deque is useless. A list is better for this kind of operation. I just wrote it for fun and realized that it was implemented rather slow. -- resolution: - rejected status: open - closed

[issue10064] link to page with documentation bugs

2010-10-10 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: Link to bugtracker on http://docs.python.org/dev/bugs.html leads to main roundup page. It make more sense to redirect to a page that lists only documentation bugs. Extra points: - sort the landing page that Easy, then issues with

[issue10063] file:// scheme will stop accessing via ftp protocol

2010-10-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Does it also need a deprecation cycle? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10063 ___

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-10 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: We run into problems because we have two inconsistent encodings, ... What? No. We have problems because we don't use the same encoding to decode and to encode the same data type. It's not a problem to use a different encoding

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Am 10.10.2010 17:51, schrieb STINNER Victor: STINNER Victor victor.stin...@haypocalc.com added the comment: We run into problems because we have two inconsistent encodings, ... What? No. We have problems because we don't use the

[issue7980] time.strptime not thread safe

2010-10-10 Thread MunSic JEONG
MunSic JEONG rus...@gmail.com added the comment: Do you have a patch to fix the issue? no, I don't. I just wanted to move stage from unittest needed to needs patch :) After reading issue8098, now I realized that this is broad issue as belopolsky said in msg110095. For new reader of this

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-10 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: What? No. We have problems because we don't use the same encoding to decode and to encode the same data type. It's not a problem to use a different encoding for each data type (stdout, filenames, environment variables, ...).

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: For the command line arguments and environment variables, we don't have a lot of choices: locale or filesystem encodings. So Antoine and Martin: which encoding do you prefer? I still propose to drop the fsname encoding. Then this

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le dimanche 10 octobre 2010 à 18:23 +, Martin v. Löwis a écrit : Martin v. Löwis mar...@v.loewis.de added the comment: For the command line arguments and environment variables, we don't have a lot of choices: locale or filesystem

[issue10061] ** operator yielding wrong result for negative numbers

2010-10-10 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Python's order of operations runs the exponentation before the unary minus. This convention makes the unary minus behave more like the subtraction operator so that: -x**n == 0 - x**n. This convention is somewhat common

[issue10065] future_builtins' docstring lacks some functions

2010-10-10 Thread Andreas Stührk
New submission from Andreas Stührk andy-pyt...@hammerhartes.de: Title says all, attached is a patch against release27-maint that adds them. -- assignee: d...@python components: Documentation files: future_builtins_docstring.patch keywords: patch messages: 118343 nosy: Trundle,

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I don't know what you mean by dropping, since OS X by construction needs a filesystem encoding (utf-8) different from the locale encoding; See above. I propose to stop using the locale encoding for command line arguments and environment

[issue10008] Two links point to same place

2010-10-10 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: When I initially wrote I have no idea what ', [1]' is supposed to mean. , you should have believed that and explained ;-). I now understand that most index entries have one link, which we might call the [0] link. When the entry should have

[issue9948] findCaller is slow and loses case information on Windows

2010-10-10 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Partial fix checked into py3k and release27-maint branches (for losing filename case information) - r85361. Regarding performance changes - awaiting feedback from Armin re. my performance measurements showing only marginal differences.

[issue4106] multiprocessing occasionally spits out exception during shutdown

2010-10-10 Thread Matthew Woodcraft
Changes by Matthew Woodcraft matt...@woodcraft.me.uk: -- nosy: +mattheww ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4106 ___ ___