| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
M EditorWindow.py
M NEWS.txt
M config-keys.def
M configHandler.py
|
|
|
|
| |
Closes bug #1110998. Thanks Matthew Bogosian.
|
|
|
|
| |
Saves space in the presence of code like: (None,)*10000
|
|
|
|
|
| |
copying files inside the directory, as that loop changes the atime and
mtime.
|
| |
|
| |
|
|
|
|
| |
Will backport myself.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2. Restore use of set_indentation_params(), was dead code since
Autoindent.py was merged into EditorWindow.py.
3. Make usetabs, indentwidth, tabwidth, context_use_ps1 instance vars
and set in EditorWindow.__init__()
4. In PyShell.__init__() set usetabs, indentwidth and context_use_ps1
explicitly (config() is eliminated).
5. Add Tabnanny check when Module is Run/F5, not just when Checked.
6. Discourage using an indent width other than 8 when using tabs to
indent Python code.
M EditorWindow.py
M NEWS.txt
M PyShell.py
M ScriptBinding.py
|
|
|
|
| |
erroring out.
|
| |
|
|
|
|
|
| |
Don't print the same (host, port) tuple thrice when debugging, but first print
(host, port), then (ip, port) and then the error message.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
the changes.
|
|
|
|
|
| |
user error messages (otherwise difficult to do without instrumenting
the source).
|
|
|
|
| |
to floats.
|
| |
|
|
|
|
|
|
|
|
| |
PyNumber_Check, rather than trying to convert to a float. Reimplemented
writer - now raises exceptions when it sees a quotechar but neither
doublequote or escapechar are set. Doublequote results are now more
consistent (eg, single quote should generate """", rather than "",
which is ambiguous).
|
|
|
|
| |
gets).
|
| |
|
| |
|
|
|
|
| |
Clarified that the returned object is file-like rather than an actual file.
|
|
|
|
|
|
|
| |
when this limit is reached. Limit defaults to 128k, and is changed
by module set_field_limit() method. Previously, an unmatched quote
character could result in the entire file being read into the field
buffer, potentially exhausting virtual memory.
|
| |
|
|
|
|
| |
dialect type (which has a better idea of what is and isn't valid).
|
|
|
|
|
|
| |
was done because we were previously performing validation of the dialect
from python, but this is now down within the C module. Also, the method
we were using to detect classes did not work with new-style classes.
|
|
|
|
|
| |
record objects of internal dialect type, rather than instances of
python objects.
|
| |
|
| |
|
|
|
|
| |
profile.help() point at the library reference instead of profile.doc.
|
|
|
|
| |
left in stream).
|
|
|
|
|
|
| |
a delimiter. Previously, the 'network location' (<authority> in RFC 2396) would
become 'www.example.com?query=spam', while RFC 2396 does not allow a '?' in
<authority>. See bug #548176 for further discussion.
|
|
|
|
| |
removing some duplication and gaining some flexibility in the process.
|
|
|
|
| |
there's no need to subclass OptionParser.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
properties, and custom descriptors.
* removed special handling of properties
* added special handling of data descriptors - All data descriptors are grouped
together in a section. For each item, the attribute name and doc string, if
present, is displayed.
* disabled display of __slots__ attribute - since slots are descriptors, they
are listed in the section described above
Thanks to John Belmonte for the patch!
|
|
|
|
| |
still the same, so there should be no backwards-compatibility problems.
|
|
|
|
| |
modules, replacing with email. Thanks to Josh Hoyt for the patch!
|
|
|
|
|
|
| |
* replace deltree with shutil.rmtree()
* replace mkdirs with os.makedirs()
* fold touchfile into GlobTests.mktemp()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`glob.glob()` currently calls itself recursively to build a list of matches of
the dirname part of the pattern and then filters by the basename part. This is
effectively BFS. ``glob.glob('*/*/*/*/*/foo')`` will build a huge list of all
directories 5 levels deep even if only a handful of them contain a ``foo``
entry. A generator-based recusion would never have to store these list at once
by implementing DFS. This patch converts the `glob` function to an `iglob`
recursive generator . `glob()` now just returns ``list(iglob(pattern))``.
I also cleaned up the code a bit (reduced duplicate `has_magic()` checks and
created a second `glob0` helper func so that the main loop need not be
duplicated).
Thanks to Cherniavsky Beni for the patch!
|
|
|
|
|
| |
* Use os.makedirs() instead os.mkdir(). (bug #975763)
* Use copystat() to copy directory bits (bug #1048878)
|
|
|
|
|
|
|
|
| |
test_threading.test_foreign_thread(): new test does a basic check that
"foreign" threads can using the threading module, and that they create
a _DummyThread instance in at least one use case. This isn't a very
good test, since a thread created by thread.start_new_thread() isn't
particularly "foreign".
|
|
|
|
| |
does what it's supposed to do.
|
|
|
|
|
|
|
|
| |
_Thread.__init__) was never used. This is a waste since locks use OS
primitives that are in limited supply. So the lock is deleted in
_DummyThread.__init__ .
Closes bug #1089632.
|
| |
|
| |
|
| |
|