Re: Test for an empty directory that could be very large if it is not empty?

2014-08-07 Thread Gregory Ewing
Virgil Stokes wrote: How can I determine if the directory is empty WITHOUT the generation of a list of the file names Which platform? On Windows, I have no idea. On Unix you can't really do this properly without access to opendir() and readdir(), which Python doesn't currently wrap. Will

AttributeError: 'module' object has no attribute 'fork'

2014-08-07 Thread Satish ML
Hi, Code: import os, time def child(pipeout): zzz = 0 while True: time.sleep(zzz) msg = ('Spam %03d' % zzz).encode() os.write(pipeout, msg) zzz = (zzz+1) % 5 def parent(): pipein, pipeout = os.pipe() if os.fork() == 0: child(pipeout)

Re: AttributeError: 'module' object has no attribute 'fork'

2014-08-07 Thread Peter Otten
Satish ML wrote: Hi, Code: import os, time def child(pipeout): zzz = 0 while True: time.sleep(zzz) msg = ('Spam %03d' % zzz).encode() os.write(pipeout, msg) zzz = (zzz+1) % 5 def parent(): pipein, pipeout = os.pipe() if os.fork() ==

Re: Test for an empty directory that could be very large if it is not empty?

2014-08-07 Thread Cameron Simpson
On 07Aug2014 18:14, Greg Ewing greg.ew...@canterbury.ac.nz wrote: Virgil Stokes wrote: How can I determine if the directory is empty WITHOUT the generation of a list of the file names Which platform? On Windows, I have no idea. On Unix you can't really do this properly without access to

Re: Test for an empty directory that could be very large if it is not empty?

2014-08-07 Thread Ethan Furman
On 08/06/2014 03:26 PM, Ben Finney wrote: Virgil Stokes v...@it.uu.se writes: Suppose I have a directory C:/Test that is either empty or contains more than 200 files, all with the same extension (e.g. *.txt). How can I determine if the directory is empty WITHOUT the generation of a list of

Re: Test for an empty directory that could be very large if it is not empty?

2014-08-07 Thread Tim Chase
On 2014-08-07 11:27, Ben Finney wrote: The difference in timings when serving a web-request are noticeable (in my use-case, I had to change my algorithm and storage structure to simplify/avoid heavily-populated directories) So, if the requirement is “test whether the directory is

Keep one GUI always on TOP while python code is running

2014-08-07 Thread Jaydeep Patil
Hi all, I have one query. I have did some programming which copies and paste data using system clipboard. I need to keep one GUI always on top till my python code is running. Can we do like this? Regards Jaydeep -- https://mail.python.org/mailman/listinfo/python-list

Re: AttributeError: 'module' object has no attribute 'fork'

2014-08-07 Thread Roy Smith
In article mailman.12720.1407394838.18130.python-l...@python.org, Peter Otten __pete...@web.de wrote: os.fork() Fork a child process. ... Availability: Unix. You are using the wrong operating system ;) To be honest, this could be considered a buglet in the os module. It really should

Re: Test for an empty directory that could be very large if it is not empty?

2014-08-07 Thread Roy Smith
In article c4gjqvf8cm...@mid.individual.net, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Virgil Stokes wrote: How can I determine if the directory is empty WITHOUT the generation of a list of the file names Which platform? On Windows, I have no idea. On Unix you can't

Re: Test for an empty directory that could be very large if it is not empty?

2014-08-07 Thread Peter Otten
Roy Smith wrote: In article c4gjqvf8cm...@mid.individual.net, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Virgil Stokes wrote: How can I determine if the directory is empty WITHOUT the generation of a list of the file names Which platform? On Windows, I have no idea. On

Re: Test for an empty directory that could be very large if it is not empty?

2014-08-07 Thread Tim Chase
On 2014-08-07 07:54, Roy Smith wrote: I wonder if glob.iglob('*') might help here? My glob.iglob() uses os.listdir() behind the scenes (see glob1() in glob.py) -tkc -- https://mail.python.org/mailman/listinfo/python-list

Re: Test for an empty directory that could be very large if it is not empty?

2014-08-07 Thread Akira Li
Virgil Stokes v...@it.uu.se writes: Suppose I have a directory C:/Test that is either empty or contains more than 200 files, all with the same extension (e.g. *.txt). How can I determine if the directory is empty WITHOUT the generation of a list of the file names in it (e.g. using

Re: Test for an empty directory that could be very large if it is not empty?

2014-08-07 Thread Roy Smith
In article mailman.12725.1407413212.18130.python-l...@python.org, Tim Chase python.l...@tim.thechases.com wrote: On 2014-08-07 07:54, Roy Smith wrote: I wonder if glob.iglob('*') might help here? My glob.iglob() uses os.listdir() behind the scenes (see glob1() in glob.py) -tkc In

Re: Keep one GUI always on TOP while python code is running

2014-08-07 Thread Chris Angelico
On Thu, Aug 7, 2014 at 9:24 PM, Jaydeep Patil patil.jay2...@gmail.com wrote: I have one query. I have did some programming which copies and paste data using system clipboard. I need to keep one GUI always on top till my python code is running. till or while? If you mean while, then yes.

33 Video free Course - Python

2014-08-07 Thread Everything You Need To Know
We have put together a neat playlist to learn python, with some really neat tricks and exercises. Playlist Link : https://www.youtube.com/channel/UCad91ea17ynqc0cTokBG3bg/playlists exercises include : Graphics Calculator with check for zeros Zoom Function for Graphics Window Mandelbrot set Game

Infinite Mandelbrot Set Tutorial - Video

2014-08-07 Thread EYN2K
Created a cool Infinite (16 trillion zoom) Mandelbrot set in Python. Only two for loops, one while loop and one if-elif-else for control flow. I hope you enjoy Free video link : https://www.youtube.com/watch?v=WqfbDAzA1Sw Thank you -- https://mail.python.org/mailman/listinfo/python-list

Re: Wikibooks example doesn't work

2014-08-07 Thread Seymore4Head
On Wed, 06 Aug 2014 21:59:12 -0700, Larry Hudson org...@yahoo.com wrote: On 08/06/2014 08:48 PM, Seymore4Head wrote: On Thu, 07 Aug 2014 13:43:40 +1000, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Seymore4Head wrote: On Wed, 06 Aug 2014 22:58:51 -0400, Seymore4Head

cinspect

2014-08-07 Thread Mark Lawrence
I'd never heard of this. I thought it might be of interest to those of you who like to know what goes on under the bonnet in cPython. Find it here https://github.com/punchagan/cinspect -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Re: AttributeError: 'module' object has no attribute 'fork'

2014-08-07 Thread Steven D'Aprano
Roy Smith wrote: In article mailman.12720.1407394838.18130.python-l...@python.org, Peter Otten __pete...@web.de wrote: os.fork() Fork a child process. ... Availability: Unix. You are using the wrong operating system ;) To be honest, this could be considered a buglet in the os

Re: Test for an empty directory that could be very large if it is not empty?

2014-08-07 Thread Tim Chase
On 2014-08-07 08:19, Roy Smith wrote: My glob.iglob() uses os.listdir() behind the scenes (see glob1() in glob.py) -tkc In which case, the documentation for iglob() is broken. It says: Return an iterator which yields the same values as glob() without actually storing them all

Re: Test for an empty directory that could be very large if it is not empty?

2014-08-07 Thread John Gordon
In mailman.12711.1407363468.18130.python-l...@python.org Virgil Stokes v...@it.uu.se writes: Suppose I have a directory C:/Test that is either empty or contains more than 200 files, all with the same extension (e.g. *.txt). How can I determine if the directory is empty WITHOUT the

more simple to split the string?

2014-08-07 Thread elearn
str='(\\HasNoChildren \\Junk) / [Gmail]/V4NXPpCuTvY-' x=str.split(' ') [i.replace('','') for i in x] ['(\\HasNoChildren \\Junk)', '/', '[Gmail]/V4NXPpCuTvY-'] x.strip( ) will create four parts. is there more simple to do that ? -- https://mail.python.org/mailman/listinfo/python-list

Re: Test for an empty directory that could be very large if it is not empty?

2014-08-07 Thread Roy Smith
In article mailman.12729.1407433146.18130.python-l...@python.org, Tim Chase python.l...@tim.thechases.com wrote: On 2014-08-07 08:19, Roy Smith wrote: My glob.iglob() uses os.listdir() behind the scenes (see glob1() in glob.py) -tkc In which case, the documentation for

Re: more simple to split the string?

2014-08-07 Thread Christopher Welborn
On 08/07/2014 07:23 PM, elearn wrote: str='(\\HasNoChildren \\Junk) / [Gmail]/V4NXPpCuTvY-' x=str.split(' ') [i.replace('','') for i in x] ['(\\HasNoChildren \\Junk)', '/', '[Gmail]/V4NXPpCuTvY-'] x.strip( ) will create four parts. is there more simple to do that ? There are many different

How to get mac address of bluetooth with python in win7?

2014-08-07 Thread elearn
How to get mac address of bluetooth with python in win7? -- https://mail.python.org/mailman/listinfo/python-list

Re: How to get mac address of bluetooth with python in win7?

2014-08-07 Thread Ben Finney
elearn elearn2...@gmail.com writes: How to get mac address of bluetooth with python in win7? This may not be a Python-specific question. How would you get the MAC adress of a Bluetooth device in Windows, in any programming language? My advice is for you to do a web search

Re: AttributeError: 'module' object has no attribute 'fork'

2014-08-07 Thread Rustom Mody
On Thursday, August 7, 2014 10:26:56 PM UTC+5:30, Steven D'Aprano wrote: Roy Smith wrote: Peter Otten wrote: os.fork() Fork a child process. ... Availability: Unix. You are using the wrong operating system ;) To be honest, this could be considered a buglet in the os module.

Re: AttributeError: 'module' object has no attribute 'fork'

2014-08-07 Thread Rustom Mody
On Friday, August 8, 2014 10:49:27 AM UTC+5:30, Rustom Mody wrote: On Thursday, August 7, 2014 10:26:56 PM UTC+5:30, Steven D'Aprano wrote: Roy Smith wrote: Peter Otten wrote: os.fork() Fork a child process. ... Availability: Unix. You are using the wrong operating

Re: AttributeError: 'module' object has no attribute 'fork'

2014-08-07 Thread Steven D'Aprano
Rustom Mody wrote: On Thursday, August 7, 2014 10:26:56 PM UTC+5:30, Steven D'Aprano wrote: Roy Smith wrote: Peter Otten wrote: os.fork() Fork a child process. ... Availability: Unix. You are using the wrong operating system ;) To be honest, this could be considered a

[issue22157] FAIL: test_with_pip (test.test_venv.EnsurePipTest)

2014-08-07 Thread snehal
snehal added the comment: When I gave following command, I see no error root@beta1:/home/ubuntu/python/Python-3.4.1# python3.4 -c 'import ctypes' root@beta1:/home/ubuntu/python/Python-3.4.1# I do see ctypes in root@beta1:/home/ubuntu/python/Python-3.4.1/Lib# folder --

[issue22157] FAIL: test_with_pip (test.test_venv.EnsurePipTest)

2014-08-07 Thread snehal
snehal added the comment: Also ctypes contains following root@beta1:/home/ubuntu/python/Python-3.4.1/Lib/ctypes# ls _endian.py __init__.py macholib __pycache__ test util.py wintypes.py -- ___ Python tracker rep...@bugs.python.org

[issue22132] Cannot copy the same directory structure to the same destination more than once

2014-08-07 Thread Csaba Makara
Csaba Makara added the comment: Sorry for the late answer. It was a direct usage of the dir_utils.copy_tree. I absolutely understand you don't want to touch it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22132

[issue22157] FAIL: test_with_pip (test.test_venv.EnsurePipTest)

2014-08-07 Thread Ned Deily
Ned Deily added the comment: OK. Does test_ctypes run successfully? cd /home/ubuntu/python/Python-3.4.1 ./python -E -S -m test -v test_ctypes and then does test_venv run successfully in isolation? cd /home/ubuntu/python/Python-3.4.1 ./python -E -S -m test -v test_venv Also, what

[issue10803] ctypes: better support of bytearray objects

2014-08-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are things which support bytes instances only: 1. Constructor and setter of the value attribute of NUL terminated char buffer. p = create_string_buffer(bHello) p.value b'Hello' p.raw b'Hello\x00' p.value = b'Bye' p.value b'Bye' p.raw

[issue21308] PEP 466: backport ssl changes

2014-08-07 Thread Nick Coghlan
Nick Coghlan added the comment: The problem is that the Rietveld integration isn't able to figure out the base revision, so it isn't generating the review automatically. Times like this it would be nice to be able to specify a base branch explicitly... In other news... the outcome of the

[issue22161] Remove unsupported code from ctypes

2014-08-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Some ctypes functions by mistake accept wrong types which then rejected by internal functions. This is mainly remnants of 2.x where both str and unicode was accepted and then automatically converted to right type. -- assignee: serhiy.storchaka

[issue10803] ctypes: better support of bytearray objects

2014-08-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Remove unsupported code from ctypes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10803 ___

[issue14534] Add method to mark unittest.TestCases as do not run.

2014-08-07 Thread Michael Foord
Michael Foord added the comment: testBaseClass, abstractTestClass and abstractBaseClass are all fine with me. I wouldn't waste too much time bike-shedding it. If we need a decision let's go with abstractTestClass. -- ___ Python tracker

[issue22161] Remove unsupported code from ctypes

2014-08-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file36297/ctype_bytes_checks-3.4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22161 ___

[issue22161] Remove unsupported code from ctypes

2014-08-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file36298/ctype_bytes_checks-3.4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22161 ___

[issue22162] Actiavting a venv - Dash doesn't understand source

2014-08-07 Thread Daniel Lintott
New submission from Daniel Lintott: In the documentation for venv (https://docs.python.org/3.5/library/venv.html) it gives examples for activating the venv under bash/zsh. For a long time under both Debian and Ubuntu the default shell has been Dash (https://wiki.ubuntu.com/DashAsBinSh) Dash

[issue22162] Actiavting a venv - Dash doesn't understand source

2014-08-07 Thread Daniel Lintott
Changes by Daniel Lintott dan...@serverb.co.uk: -- nosy: +eric.araujo, ezio.melotti, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22162 ___

[issue22162] Activating a venv - Dash doesn't understand source

2014-08-07 Thread Daniel Lintott
Changes by Daniel Lintott dan...@serverb.co.uk: -- title: Actiavting a venv - Dash doesn't understand source - Activating a venv - Dash doesn't understand source ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22162

[issue22162] Activating a venv - Dash doesn't understand source

2014-08-07 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: -georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22162 ___ ___ Python-bugs-list

[issue22123] Provide a direct function for types.SimpleNamespace()

2014-08-07 Thread Mark Summerfield
Mark Summerfield added the comment: I'd be happy to draft a PEP if it is needed, if no one else has the time/inclination. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22123 ___

[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2

2014-08-07 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- assignee: - berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22150 ___ ___

[issue22162] Activating a venv - Dash doesn't understand source

2014-08-07 Thread Éric Araujo
Éric Araujo added the comment: dash is the default system shell used to execute scripts (i.e. /bin/sh), not the default shell used for users login shell and terminal emulators. The venv/scripts/poxis/activate file seems to require bash anyway: running checkbashisms on it warns about “hash

[issue14534] Add method to mark unittest.TestCases as do not run.

2014-08-07 Thread Ezio Melotti
Ezio Melotti added the comment: SGTM. The patch still needs docs and there are some comments on rietveld. The name of the decorator should be updated too, and possibly __unittest_base_class__ should be renamed to __unittest_abstract_class__ to match the name of the decorator. --

[issue22162] Activating a venv - Dash doesn't understand source

2014-08-07 Thread Daniel Lintott
Daniel Lintott added the comment: Hmm... just double checked this and this time has worked with the source command (previously was telling me it couldn't be found). Have double checked and indeed the default login shell is bash So feel free to close this issue --

[issue22163] max_wbits set incorrectly to -zlib.MAX_WBITS in tarfile, shouldn't be negative

2014-08-07 Thread Eduardo Robles Elvira
New submission from Eduardo Robles Elvira: I think I have found a small typo-bug in tarfile.py, that seems to be present in cpython upstream, which makes tarfile compression slower. The issue can be seen here, in line 415 [1] of tarfile.py: self.cmp = self.zlib.compressobj(9,

[issue22162] Activating a venv - Dash doesn't understand source

2014-08-07 Thread Vinay Sajip
Vinay Sajip added the comment: Was there a reason you couldn't close it yourself? -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22162 ___

[issue14534] Add method to mark unittest.TestCases as do not run.

2014-08-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: -serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14534 ___ ___

[issue22163] max_wbits set incorrectly to -zlib.MAX_WBITS in tarfile, shouldn't be negative

2014-08-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22163 ___ ___

[issue19884] Importing readline produces erroneous output

2014-08-07 Thread Edd Barrett
Edd Barrett added the comment: This problem shows up on OpenBSD too. It breaks 'hg view' also. -- nosy: +Edd.Barrett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19884 ___

[issue14910] argparse: disable abbreviation

2014-08-07 Thread Eli Bendersky
Eli Bendersky added the comment: Ezio, could you see if your comments were addressed? Steven, do you want to take another look, or is this OK to commit? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14910

[issue22132] Cannot copy the same directory structure to the same destination more than once

2014-08-07 Thread Éric Araujo
Éric Araujo added the comment: Thanks. There is a function intended for general use: shutil.copytree; it may have the same behavior (not a bug if it's documented). -- resolution: - wont fix stage: - resolved status: open - closed ___ Python

[issue21308] PEP 466: backport ssl changes

2014-08-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 07/08/2014 04:34, Nick Coghlan a écrit : In other news... the outcome of the Fedora thread is that Slavek is just going to go ahead and apply the patch to Python 2.7 RPMs in Fedora Rawhide next week. That will hopefully be entirely uneventful, but if it

[issue19884] Importing readline produces erroneous output

2014-08-07 Thread Remi Pointel
Changes by Remi Pointel pyt...@xiri.fr: -- nosy: +rpointel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19884 ___ ___ Python-bugs-list mailing

[issue22164] cell object cleared too early?

2014-08-07 Thread Antoine Pitrou
New submission from Antoine Pitrou: This is a tricky issue I'm sometimes seeing when running Numba's test suite, and I can't seem to write a reproducer. Somtimes I'm seeing the following messages: Exception ignored in: function _OverloadedBase._make_finalizer.locals.finalizer at

[issue22156] Fix compiler warnings

2014-08-07 Thread Vajrasky Kok
Vajrasky Kok added the comment: Victor, your patch fixes most of the pesky warnings. However you left one warning left (at least in Mac OS X 10.9.4). Objects/unicodeobject.c:4831:43: warning: comparison of integers of different signs: 'unsigned long' and 'long' [-Wsign-compare] if

[issue20056] Got deprecation warning when running test_shutil.py on Windows NT 6

2014-08-07 Thread Vajrasky Kok
Vajrasky Kok added the comment: In test_shutil.py, yes, this is the only place. But in other tests, we got different type of warnings, such as: test_mailbox.py:46: RuntimeWarning: tests may fail, delete still pending for @test_4456_tmp test_decimal:5608: UserWarning: C tests skipped: no

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2014-08-07 Thread venza
venza added the comment: This is the exception that comes out after running the py -m ensurepip manually: C:\Python34\lib\ensurepip\__main__.py run on 08/07/14 15:44:36 Ignoring indexes: https://pypi.python.org/simple/

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-07 Thread Josh Lee
New submission from Josh Lee: While SimpleHTTPServer from Python2 would happily spit out whatever bytes were in the directory listing, Python3's http.server logs an error and closes the connection without responding to the HTTP request. $ mkdir $'\xff' $ ls \377/ $ python3 -m http.server

[issue22160] Windows installers need to be updated following OpenSSL security release

2014-08-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You left 3.4 branch unmerged into default branch. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22160 ___

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2014-08-07 Thread Steve Dower
Steve Dower added the comment: Presumably the value for subkeyname being passed to OpenKey contains an embedded null, which I believe is legal for the registry in general, but doesn't make much sense in this context and is quite possibly a corruption issue on your machine. We can certainly

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2014-08-07 Thread Steve Dower
Steve Dower added the comment: FWIW, on my machine I don't have embedded nulls in any of the values that enum_keys is looking for: import winreg hkcr=winreg.OpenKey(winreg.HKEY_CLASSES_ROOT, '') n = [] i = 0 while True: ... try: ... n.append(winreg.EnumKey(hkcr, i)) ... except

[issue22156] Fix compiler warnings

2014-08-07 Thread STINNER Victor
STINNER Victor added the comment: Victor, your patch fixes most of the pesky warnings. However you left one warning ... Yes, my patch is uncomplete. Don't hesitate to post a new patch or complete mine. I'm in holliday, I'm not going to update it before a few weeks. --

[issue22160] Windows installers need to be updated following OpenSSL security release

2014-08-07 Thread Steve Dower
Steve Dower added the comment: The 2.7 installer will be fine whenever the release manager asks for it -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22160 ___

[issue22160] Windows installers need to be updated following OpenSSL security release

2014-08-07 Thread Zachary Ware
Zachary Ware added the comment: Oops. Merged now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22160 ___ ___ Python-bugs-list mailing list

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2014-08-07 Thread venza
venza added the comment: Ok, I had three such keys. I run RegDelNull.exe and managed to remove two of them. The third one is still there. I'm reasonably sure that this machine is clean, anyway: 1. the Python installer should not fail silently when an exception is thrown during pip

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2014-08-07 Thread Steve Dower
Steve Dower added the comment: Agreed on both points, but we need to find someone willing to fix the 3.4 installer (I'm completely focused on the 3.5 installer, which won't suffer from the first point). There's a separate issue tracker for pip which would be the place to get their developers

[issue20056] Got deprecation warning when running test_shutil.py on Windows NT 6

2014-08-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset e306cf07046a by Serhiy Storchaka in branch '3.4': Issue #20056: Fixed deprecation warning about bytes path in test_shutil on http://hg.python.org/cpython/rev/e306cf07046a New changeset 8480179d2a7f by Serhiy Storchaka in branch 'default': Issue

[issue22160] Windows installers need to be updated following OpenSSL security release

2014-08-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oops. Merged now. Thank you. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22160 ___ ___

[issue20056] Got deprecation warning when running test_shutil.py on Windows NT 6

2014-08-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Vajrasky. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20056 ___

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2014-08-07 Thread Mark Lawrence
Mark Lawrence added the comment: Nobody is listed as a maintainer for mimetypes here https://docs.python.org/devguide/experts.html but I've seen Tim has done some work on it so adding him to nosy list. -- nosy: +BreamoreBoy, tim.golden ___ Python

[issue21308] PEP 466: backport ssl changes

2014-08-07 Thread Alex Gaynor
Alex Gaynor added the comment: New patch should be in the mercurial diff format. -- Added file: http://bugs.python.org/file36301/ssl-backport.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21308

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-07 Thread R. David Murray
R. David Murray added the comment: It should return a server error, I think. -- nosy: +r.david.murray stage: - needs patch type: - behavior versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22165

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-07 Thread Augie Fackler
Augie Fackler added the comment: Why not treat the filename as opaque bytes, and let the client fetch it anyway? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22165 ___

[issue15907] move doctest test-data files into a subdirectory of Lib/test

2014-08-07 Thread Jason Robinson
Jason Robinson added the comment: Ezio, here are new versions of the patch. This time I used `hg mv` command to move the files to the new location and then copied over the correct versions. It does look though to me that there is no difference except timestamps. I will upload also a --git

[issue15907] move doctest test-data files into a subdirectory of Lib/test

2014-08-07 Thread Jason Robinson
Jason Robinson added the comment: Here is the `hg diff --git` patch. Hope this one applies :) -- Added file: http://bugs.python.org/file36303/issue15907_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15907

[issue21308] PEP 466: backport ssl changes

2014-08-07 Thread Nick Coghlan
Nick Coghlan added the comment: On 7 Aug 2014 23:11, Antoine Pitrou rep...@bugs.python.org wrote: I doubt adding a ton of new APIs and code can be uneventful, but good luck :) They don't call it Rawhide for nothing! :) -- ___ Python tracker

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-07 Thread R. David Murray
R. David Murray added the comment: Because http traffic is supposed to be either latin-1 or whatever charset is specified (at least, to my understanding that is the case), so sending incorrectly encoded data seems wrong. On the other hand, we support unix files systems not having well defined

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which fixes handling of undecodable paths in SimpleHTTPRequestHandler. -- keywords: +patch nosy: +serhiy.storchaka stage: needs patch - patch review Added file: http://bugs.python.org/file36304/issue22165.patch

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-07 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: +demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22165 ___ ___

[issue18620] multiprocessing page leaves out important part of Pool example

2014-08-07 Thread Mark Lawrence
Mark Lawrence added the comment: Looks as if the v2 and v3 docs need changing. -- nosy: +BreamoreBoy type: enhancement - behavior versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue18976] distutils/command/build_ext passes wrong linker flags

2014-08-07 Thread Mark Lawrence
Mark Lawrence added the comment: @Eric what do you make of the attached patch? -- nosy: +BreamoreBoy versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18976

[issue18977] The -t option has no effect in for uu command-line

2014-08-07 Thread Mark Lawrence
Mark Lawrence added the comment: Could it be argued that this is a regression so the type should be behavior and not enhancement? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18977

[issue22166] test_codecs leaking references

2014-08-07 Thread Zachary Ware
New submission from Zachary Ware: After 9bca86812857 (#22104), test_codecs now reports leaked references from ExceptionChainingTest. Previously the tests were only ever loaded one time, so each run of the tests was actually using the same set of TestCase instances; now the tests are freshly

[issue22060] Clean up ctypes.test, use unittest test discovery

2014-08-07 Thread Zachary Ware
Zachary Ware added the comment: Here's a new patch; have I missed anything else that ought to be in setUpModule? -- Added file: http://bugs.python.org/file36305/issue22060.diff ___ Python tracker rep...@bugs.python.org

[issue18976] distutils/command/build_ext passes wrong linker flags

2014-08-07 Thread Roumen Petrov
Roumen Petrov added the comment: more simple correction is attached to issue17219 -- nosy: +rpetrov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18976 ___

[issue20598] argparse docs: '7'.split() is confusing magic

2014-08-07 Thread paul j3
paul j3 added the comment: For documentation, ['this','is','a','test'] might be a bit clearer than 'this is a test'.split(). But generating a list of strings by split is, I think, a pretty basic idiom. But for testing purposes the split() version is a bit more robust because it is closer to

[issue14365] argparse: subparsers, argument abbreviations and ambiguous option

2014-08-07 Thread paul j3
paul j3 added the comment: Another issue dealing with abbreviations is close to being committed. http://bugs.python.org/issue14910 argparse: disable abbreviation -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14365

[issue11271] concurrent.futures.ProcessPoolExecutor.map() doesn't batch function arguments by chunks

2014-08-07 Thread Dan O'Reilly
Dan O'Reilly added the comment: Here's an updated patch that adds documentation and Antoine's requested code changes. -- Added file: http://bugs.python.org/file36306/map_chunksize_with_docs.patch ___ Python tracker rep...@bugs.python.org

[issue15428] add Name Collision section to argparse docs

2014-08-07 Thread paul j3
paul j3 added the comment: On Stackoverflow a couple of posters have asked about nesting namespaces as a way of separating the parser and subparser arguments. http://stackoverflow.com/questions/15782948 http://stackoverflow.com/questions/18668227 One solution that I rather like

[issue18979] Use argparse in the uu module

2014-08-07 Thread Mark Lawrence
Mark Lawrence added the comment: @Paul what is your opinion of this patch? -- nosy: +BreamoreBoy, paul.j3 versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18979

[issue15907] move doctest test-data files into a subdirectory of Lib/test

2014-08-07 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15907 ___ ___

[issue22167] iglob() has misleading documentation (does indeed store names internally)

2014-08-07 Thread Roy Smith
New submission from Roy Smith: For background, see: https://mail.python.org/pipermail/python-list/2014-August/676291.html In a nutshell, the iglob() docs say, Return an iterator which yields the same values as glob() without actually storing them all simultaneously. The problem is,

[issue22167] iglob() has misleading documentation (does indeed store names internally)

2014-08-07 Thread Tim Chase
Changes by Tim Chase python.b...@tim.thechases.com: -- nosy: +Gumnos ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22167 ___ ___ Python-bugs-list

[issue22168] Turtle Graphics RawTurtle problem

2014-08-07 Thread Kent D. Lee
New submission from Kent D. Lee: This is either a turtle graphics or tkinter problem. In Python 3.4 it appears that something in Turtle Graphics broke or at least changed. I get the following error when trying to run a program that works in Python 3.1 and 3.2. Kent's Mac python3.4 c4.py

[issue22167] iglob() has misleading documentation (does indeed store names internally)

2014-08-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: I agree that the documentation could be improved, but it's not really *wrong*. Consider a glob like spam/[abc]/*.txt. What iglob does is conceptually closer to: (1) generate the list of files matching spam/a/*.txt and yield them; (2) generate the list of

  1   2   >