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

2011-03-05 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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 -

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

2011-03-05 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: I think this is a duplicate of issue5870. -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11404 ___

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

2011-03-05 Thread Ryan Kelly
Ryan Kelly r...@rfk.id.au 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:

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

2011-03-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - subprocess.DEVNULL ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11404

[issue5870] subprocess.DEVNULL

2011-03-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +mmarkk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5870 ___ ___ Python-bugs-list mailing list

[issue5870] subprocess.DEVNULL

2011-03-05 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5870 ___ ___ Python-bugs-list

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

2011-03-05 Thread Марк Коренберг
New submission from Марк Коренберг socketp...@gmail.com: 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

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

2011-03-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

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

2011-03-05 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr 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

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

2011-03-05 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com 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. --

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

2011-03-05 Thread Ryan Kelly
Ryan Kelly r...@rfk.id.au 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

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

2011-03-05 Thread Ryan Kelly
Ryan Kelly r...@rfk.id.au 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

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

2011-03-05 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr 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

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

2011-03-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Changes by R. David Murray rdmur...@bitdance.com: 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

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

2011-03-05 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11401 ___ ___

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

2011-03-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org

[issue11407] unittest.TestCase.run should return result

2011-03-05 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: 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:

[issue11407] unittest.TestCase.run should return result

2011-03-05 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11407 ___ ___

[issue11408] python locks: blocking acquire calls useless gettimeofday

2011-03-05 Thread Charles-Francois Natali
New submission from Charles-Francois Natali neolo...@free.fr: 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

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

2011-03-05 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11406 ___ ___

[issue11340] test_distutils fails

2011-03-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

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

2011-03-05 Thread chris nojima
chris nojima chrisnoj...@gmail.com 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

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

2011-03-05 Thread yeswanth
yeswanth swamiyeswa...@yahoo.com 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 . --

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

2011-03-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue11340] test_distutils fails

2011-03-05 Thread Westley Martínez
Westley Martínez aniko...@gmail.com added the comment: Arch Linux kernel 2.6.37.2 glibc 2.13 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11340 ___

[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 kelsey.highto...@gmail.com: 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.

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

2011-03-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11406 ___ ___

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

2011-03-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11397 ___ ___

[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é ziade.ta...@gmail.com 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. --

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

2011-03-05 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr 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

[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 kelsey.highto...@gmail.com added the comment: I will take a look, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11409 ___ ___

[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 kelsey.highto...@gmail.com added the comment: Updated patch based on the distutils2-new-cmdline repo https://bitbucket.org/khightower/distutils2-new-cmdline-mq/qseries?apply=tqs_apply=pysetup-search-nonzero -- Added file:

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

2011-03-05 Thread Wojciech Muła
Wojciech Muła wojciech_m...@poczta.onet.pl 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

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

2011-03-05 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11397 ___ ___

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

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

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

2011-03-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 =

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

2011-03-05 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com 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

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

2011-03-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Buildbot failure should be fixed in e3eaf7dbb2b4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11391 ___

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

2011-03-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2011-03-05 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org 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:

[issue2771] test issue

2011-03-05 Thread Ned Deily
Ned Deily n...@acm.org 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 rep...@bugs.python.org

[issue2771] test issue

2011-03-05 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Testing legacy svn references here r88479 and new hg references here 284026e00342. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___

[issue2771] test issue

2011-03-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- Removed message: http://bugs.python.org/msg130139 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___

[issue2771] test issue

2011-03-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- Removed message: http://bugs.python.org/msg130140 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___

[issue2771] test issue

2011-03-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: -ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list

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

2011-03-05 Thread yeswanth
yeswanth swamiyeswa...@yahoo.com added the comment: is there any default version in pep 386? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11060 ___

[issue2771] test issue

2011-03-05 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-05 Thread Thomas Wouters
New submission from Thomas Wouters tho...@python.org: 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

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-05 Thread Thomas Wouters
Thomas Wouters tho...@python.org 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

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-05 Thread Thomas Wouters
Changes by Thomas Wouters tho...@python.org: -- Removed message: http://bugs.python.org/msg130144 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11410 ___

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-05 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: Uploaded to Rietveld, too: http://codereview.appspot.com/4260052/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11410 ___

[issue11411] Fix typo in Makefile

2011-03-05 Thread Thomas Wouters
New submission from Thomas Wouters tho...@python.org: 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

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

2011-03-05 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: 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

[issue11408] python locks: blocking acquire calls useless gettimeofday

2011-03-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Pushed in 6ba9ba58499e, thank you. -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org