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
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)
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() ==
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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.
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
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
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
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
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
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?
--
https://mail.python.org/mailman/listinfo/python-list
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
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.
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
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
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
--
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
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
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
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
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
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
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +Remove unsupported code from ctypes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10803
___
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
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
___
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
___
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
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
___
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
Changes by Georg Brandl ge...@python.org:
--
nosy: -georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22162
___
___
Python-bugs-list
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
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
assignee: - berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22150
___
___
É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
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.
--
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
--
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,
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
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: -serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14534
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22163
___
___
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
___
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
É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
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
Changes by Remi Pointel pyt...@xiri.fr:
--
nosy: +rpointel
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19884
___
___
Python-bugs-list mailing
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
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
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
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/
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
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
___
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
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
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.
--
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
___
Zachary Ware added the comment:
Oops. Merged now.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22160
___
___
Python-bugs-list mailing list
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
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
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
Serhiy Storchaka added the comment:
Oops. Merged now.
Thank you.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22160
___
___
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
___
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
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
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
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
___
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
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
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
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
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
Changes by Demian Brecht demianbre...@gmail.com:
--
nosy: +demian.brecht
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22165
___
___
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
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
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
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
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
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
___
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
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
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
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
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
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15907
___
___
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,
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
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
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 - 100 of 109 matches
Mail list logo