[issue11408] python locks: blocking acquire calls useless gettimeofday

2011-03-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Pushed in 6ba9ba58499e, thank you. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3 ___ Python tracker _

[issue11412] Section numbers in the Library Reference have a trailing period

2011-03-05 Thread Raymond Hettinger
New submission from Raymond Hettinger : The section headings all look like this: 4.11. Other Built-in Types 4.11.1. Modules ... http://docs.python.org/dev/library/stdtypes.html#classes-and-class-instances It looks like there is one dot to many -- assigne

[issue11411] Fix typo in Makefile

2011-03-05 Thread Thomas Wouters
New submission from Thomas Wouters : Fix a (double) typo in the Makefile, which prevents 'make DESTDIR=relative/path' from working correctly. -- files: destdir.diff keywords: easy, needs review, patch messages: 130146 nosy: twouters priority: normal severity: normal status: open title:

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-05 Thread Thomas Wouters
Thomas Wouters added the comment: Uploaded to Rietveld, too: http://codereview.appspot.com/4260052/ -- ___ Python tracker ___ ___ Pyt

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-05 Thread Thomas Wouters
Changes by Thomas Wouters : -- Removed message: http://bugs.python.org/msg130144 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-05 Thread Thomas Wouters
Thomas Wouters added the comment: This patch adds support for the GCC visibility attributes to the PyAPI_* macros (currently only used for Windows.) GCC's default visibility is 'public', but can be changed to 'hidden' with the '-fvisibility=hidden' argument; see http://gcc.gnu.org/wiki/Visibi

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-05 Thread Thomas Wouters
New submission from Thomas Wouters : This patch adds support for the GCC visibility attributes to the PyAPI_* macros (currently only used for Windows.) GCC's default visibility is 'public', but can be changed to 'hidden' with the '-fvisibility=hidden' argument; see http://gcc.gnu.org/wiki/Visi

[issue2771] test issue

2011-03-05 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant

2011-03-05 Thread yeswanth
yeswanth added the comment: is there any default version in pep 386? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue2771] test issue

2011-03-05 Thread Ned Deily
Changes by Ned Deily : -- nosy: -ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue2771] test issue

2011-03-05 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg130140 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue2771] test issue

2011-03-05 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg130139 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue2771] test issue

2011-03-05 Thread Ned Deily
Ned Deily added the comment: Testing legacy svn references here r88479 and new hg references here 284026e00342. -- ___ Python tracker ___ ___

[issue2771] test issue

2011-03-05 Thread Ned Deily
Ned Deily added the comment: Testing legacy svn references here (r88479) and new hg references here (67980) and here (284026e00342). -- nosy: +ned.deily -ezio.melotti ___ Python tracker ___

[issue1724822] provide a shlex.split alternative for Windows shell syntax

2011-03-05 Thread Philip Jenvey
Philip Jenvey added the comment: The code I linked to above implements those semantics in pure Python. It follows Microsoft's "Parsing C Command-Line Arguments" rules like CommandLineToArgvW does Here's updated links, the older links seemed to have broken: https://fisheye3.atlassian.com/brow

[issue11391] mmap write segfaults if PROT_WRITE bit is not set in prot

2011-03-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Merged in 92ab79ca4eeb, f9f9662dfb1f, 2e4468841c4c. Thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.1 ___ Python tracker

[issue11391] mmap write segfaults if PROT_WRITE bit is not set in prot

2011-03-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Buildbot failure should be fixed in e3eaf7dbb2b4. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue11395] print(s) fails on Windows with long strings

2011-03-05 Thread Santoso Wijaya
Santoso Wijaya added the comment: > Indeed, Python3.1 fails with the -u option. I'm also attaching another test to reproduce the crash with '-u' option. -- Added file: http://bugs.python.org/file21013/test_wconsole_binlarge.patch ___ Python tracker

[issue11391] mmap write segfaults if PROT_WRITE bit is not set in prot

2011-03-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Following error on the OpenIndiana buildbot: test test_mmap failed -- Traceback (most recent call last): File "/export/home/buildbot/32bits/3.1.cea-indiana-x86/build/Lib/test/test_mmap.py", line 242, in test_access_parameter m = mmap.mmap(f.fileno(), ma

[issue11395] print(s) fails on Windows with long strings

2011-03-05 Thread Santoso Wijaya
Santoso Wijaya added the comment: And a patch for the test + fix. -- Added file: http://bugs.python.org/file21012/wconsole_large.patch ___ Python tracker ___ ___

[issue11397] os.path.realpath() may produce incorrect results

2011-03-05 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11397] os.path.realpath() may produce incorrect results

2011-03-05 Thread Wojciech Muła
Wojciech Muła added the comment: Confirmed in python3.2. Lib/posixpath.py/_resolve_link: path returned by readlink is normalized by normpath. In this case readlink('zlink') returns 'xlink/../blink', then normpath is called, and returns 'blink'. This ends processing because 'blink' isn't a link.

[issue11409] pysetup --search should return non-zero when a dist is not installed and print a message stating the fact.

2011-03-05 Thread Kelsey
Kelsey added the comment: Updated patch based on the distutils2-new-cmdline repo https://bitbucket.org/khightower/distutils2-new-cmdline-mq/qseries?apply=t&qs_apply=pysetup-search-nonzero -- Added file: http://bugs.python.org/file21010/pysetup-search-new-cmds.patch ___

[issue11409] pysetup --search should return non-zero when a dist is not installed and print a message stating the fact.

2011-03-05 Thread Kelsey
Kelsey added the comment: I will take a look, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-05 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > Big dirs are really slow to read at once. If user wants to read items one by > one like here The problem is that readdir doesn't read a directory entry one at a time. When you call readdir on an open DIR * for the first time, the libc calls the get

[issue11409] pysetup --search should return non-zero when a dist is not installed and print a message stating the fact.

2011-03-05 Thread Tarek Ziadé
Tarek Ziadé added the comment: pysetup is currently under heavy refactoring -- see the https://bitbucket.org/tarek/distutils2-new-cmdline clone if you want to help on this. I am planning to merge it before the release, this week. -- ___ Python tr

[issue11397] os.path.realpath() may produce incorrect results

2011-03-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue11355] os.mkdir() and os.mkdirat() don't apply SUID/SGID permissions

2011-03-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue11409] pysetup --search should return non-zero when a dist is not installed and print a message stating the fact.

2011-03-05 Thread Kelsey
New submission from Kelsey : I would like to make pysetup easier to work with when called from shell scripts or similar tools that wish to take action based on the exit code of the pysetup --search command. In this case return 0 if a match is found and 1 otherwise. As an enhancement, print a m

[issue11340] test_distutils fails

2011-03-05 Thread Westley Martínez
Westley Martínez added the comment: Arch Linux kernel 2.6.37.2 glibc 2.13 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: A generator listdir() geared towards performance should probably be able to work in batches, e.g. read 100 entries at once and buffer them in some internal storage (that might mean use readdir_r()). Bonus points if it doesn't release the GIL around each indiv

[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant

2011-03-05 Thread yeswanth
yeswanth added the comment: I am trying for unit tests here , but would need some assistance. I included a file here , please review that. first of all i am not able to access self.data['version'](shows an exception , here). suggest me a solution here . -- Added file: http://bugs.pyth

[issue11398] http_proxy on windows won't function due to incorrect case handling

2011-03-05 Thread chris nojima
chris nojima added the comment: Sorry. You are correct, this must have been fixed in 3.1.2. The box I was on had 3.1.1 on it and some other configuration issues led me to believe this was happening in 3.2 as well. -- resolution: -> fixed status: open -> closed __

[issue11340] test_distutils fails

2011-03-05 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. What is your OS name and exact version? -- assignee: -> tarek components: +Distutils -Tests nosy: +eric.araujo, tarek ___ Python tracker

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-05 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11408] python locks: blocking acquire calls useless gettimeofday

2011-03-05 Thread Charles-Francois Natali
New submission from Charles-Francois Natali : While tracing a program using multiprocessing queues, I noticed that there were many calls to gettimeofday. It turns out that acquire_timed, used by lock_PyThread_acquire_lock and rlock_acquire, always call gettimeofday, even if no timeout argument

[issue11407] unittest.TestCase.run should return result

2011-03-05 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11407] unittest.TestCase.run should return result

2011-03-05 Thread Michael Foord
New submission from Michael Foord : If you call TestCase.run without an argument it will create a default TestResult and use it to execute the test. It should return the result so that you can introspect it. -- assignee: michael.foord messages: 130120 nosy: michael.foord priority: norm

[issue11344] Add height argument to os.path.dirname()

2011-03-05 Thread R. David Murray
R. David Murray added the comment: Ah, yes, splitpath is a function I've occasionally wanted. I also remember being surprised that os.path.split didn't return such a list. -- ___ Python tracker _

[issue11401] email.header error during .flatten()

2011-03-05 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue11401] email.header error during .flatten()

2011-03-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: > Changes by R. David Murray : > assignee: -> r.david.murray David, i'm sending you data to reproduce the error on your local machine! Please create a test directory and place the files therein (an output.mbox will be created). Just do mkdir -p

[issue5091] Segfault in PyObject_Malloc(), address out of bounds

2011-03-05 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > The code that is segfaulting is using pycrypto and sqlite3, so it may be that > a bug in one of these is trampling on something. No idea how to investigate > any further. You could try valgrind: $ valgrind --tool=memcheck -o /tmp/output.log argu

[issue5091] Segfault in PyObject_Malloc(), address out of bounds

2011-03-05 Thread Ryan Kelly
Ryan Kelly added the comment: attaching core dump from a freshly-compiled python 2.7.1 at with "-O0 -g" in CFLAGS. The code that is segfaulting is using pycrypto and sqlite3, so it may be that a bug in one of these is trampling on something. No idea how to investigate any further.

[issue5091] Segfault in PyObject_Malloc(), address out of bounds

2011-03-05 Thread Ryan Kelly
Ryan Kelly added the comment: Please remind me how to obtain an appropriate coredump (as I said, it's been a *long* time...) Doing "print bp" shows an out-of-bounds address as for the original submitter. -- ___ Python tracker

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-05 Thread Марк Коренберг
Марк Коренберг added the comment: also, forgot... memory usage on big directories using list is a pain. This is the same things as range() and xrange(). Why not to add os.xlistdir() ? P.S. Numerical answers will be available later. -- ___ Python tr

[issue5091] Segfault in PyObject_Malloc(), address out of bounds

2011-03-05 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Do you have a coredump ? It'd be curious to see this faulting address. I didn't notice the first time, but in the OP case the address is definitely wrong: 0xecc778b7 is above PAGE_OFFSET (0xc000 on x86), so unless he's using a kernel with a 4G/4G

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Big dirs are really slow to read at once. Do you a proof for that claim? How big, and how really slow? > for i in os.listdir() > use(i) Also, how long does use(i) take, and what reduction (in percent) can you gain from listdir iterating? In short, I'

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-05 Thread Марк Коренберг
New submission from Марк Коренберг : Big dirs are really slow to read at once. If user wants to read items one by one like here: -- for i in os.listdir() use(i) -- having generator will gain performance, as big directories often very fragmented on disk. Also, dir_cac

[issue5870] subprocess.DEVNULL

2011-03-05 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5870] subprocess.DEVNULL

2011-03-05 Thread Ned Deily
Changes by Ned Deily : -- nosy: +mmarkk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue11404] support /dev/null for subprocess.call() and friends

2011-03-05 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> subprocess.DEVNULL ___ Python tracker ___ ___

[issue5091] Segfault in PyObject_Malloc(), address out of bounds

2011-03-05 Thread Ryan Kelly
Ryan Kelly added the comment: Not sure if it's caused by the same thing, but I just got a segfault on the same line in my own program. Running python 2.7.1. I will try to dig out some more useful info but it's been a long time since I chased a segfault... -- nosy: +rfk status: pendi

[issue11404] support /dev/null for subprocess.call() and friends

2011-03-05 Thread Ross Lagerwall
Ross Lagerwall added the comment: I think this is a duplicate of issue5870. -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python

[issue11405] Wrong reference to string module in tutorial/inputoutput.rst

2011-03-05 Thread Ezio Melotti
Ezio Melotti added the comment: That sentence should be changed to mention the str method rather than the deprecated functions in the string module. (The methods' names after the example should also link to the right str.method -- assignee: docs@python -> ezio.melotti keywords: +easy n