[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2012-02-12 Thread Mike Perry
Mike Perry added the comment: Figured I should capture the exception. See below. 3.2.2+ (default, Jan 8 2012, 07:22:26) [GCC 4.6.2] Traceback (most recent call last): File "/usr/bin/idle3", line 5, in main() File "/usr/lib/python3.2/idlelib/PyShell.py", line 1429, in main root.m

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2012-02-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: Stephen - urlencode is responsible for producing the application/x-www-form-urlencoded format, usually used in the FORMs in the web. As per the spec, the Space characters are replaced by `+'. - http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1 Wha

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2012-02-12 Thread Mike Perry
Mike Perry added the comment: Hello, I am still able to reproduce this issue with Python 3.2.2. It seems as if this bug was closed with a the note: r70039 3.1 forward ported > 3.2 > default. Will be in 3.2.1. This leads me to believe that either 3.2.2 has a regression or the patch never ma

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-12 Thread Eli Bendersky
Eli Bendersky added the comment: Alright, it's not really important at this point and can be cleaned up later. > > I will probably commit code and documentation at once. It makes things > easier regarding traceability. > Sounds good -- ___ Python t

[issue13992] Segfault in PyTrash_destroy_chain

2012-02-12 Thread Aaron Staley
Aaron Staley added the comment: Also, the only particular things by code does is have a lot of threads (100+), holds open many ssh connections (with paramiko) and I do occasionally use PyThreadState_SetAsyncExc to asynchronously terminate threads. -- _

[issue13992] Segfault in PyTrash_destroy_chain

2012-02-12 Thread Aaron Staley
Aaron Staley added the comment: Used latest mercurial 2.7 branch and segfault still occurs. -- ___ Python tracker ___ ___ Python-bugs

[issue12297] Clarifications to atexit.register and unregister doc

2012-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: + This function returns *func* which makes it possible add , after 'func'. +This obviously only works with functions that ... I think I would like this better without 'obviously' (which you inherited). Otherwise, seems good to go to me. -- __

[issue13979] Automatic *libc.so loading behaviour

2012-02-12 Thread Meador Inge
Meador Inge added the comment: 'find_library' itself actually loads no libraries. I suspect what happened was that the following code in the 'uuid' module coupled with the 'find_library' bug caused 'liblttng-ust-libc.so' to be loaded: for libname in ['uuid', 'c']: try:

[issue8739] Update to smtpd.py to RFC 5321

2012-02-12 Thread R. David Murray
R. David Murray added the comment: Alberto, might you still interested in working on this? I thought I'd do a quick update to current trunk and check it in, but in the process of doing that I found some issues. I suspect it has been frustrating for you that nothing happened with this for 3.

[issue13992] Segfault in PyTrash_destroy_chain

2012-02-12 Thread Aaron Staley
Aaron Staley added the comment: I should note that my program is also affected by this bug: http://bugs.python.org/issue13817 (couldn't isolate it until I used the pydebug configure info). -- ___ Python tracker __

[issue13955] email: RFC 2822 has been obsoleted by RFC 5322

2012-02-12 Thread R. David Murray
R. David Murray added the comment: Hmm. I misread this. You are, in fact correct, but I don't think there is anything comprehensive to do here. As I make changes and have actually checked then against RFC 5322, I'm either changing or adding that RFC number to the comments and docs. --

[issue13992] Segfault in PyTrash_destroy_chain

2012-02-12 Thread Aaron Staley
Aaron Staley added the comment: As far as I can tell, no other thread is active. Their backtraces are all either: #0 0x7f283dedd300 in sem_wait () from /lib/x86_64-linux-gnu/libpthread.so.0 #1 0x00519295 in PyThread_acquire_lock (lock=0xe7dd50, waitflag=1) at Python/thread_pth

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-12 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24497/time_decimal-16.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-12 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24473/time_decimal-14.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-12 Thread STINNER Victor
STINNER Victor added the comment: Here is the version 17 of my patch. This version is mostly complete and so can be reviewed. Summary of the patch: - Add a _PyTime_t structure to store any timestamp in any resolution, universal structure used by all functions manipulating timestamps instead

[issue13930] lib2to3 ability to output files into a different directory and alter their names

2012-02-12 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13930] lib2to3 ability to output files into a different directory and alter their names

2012-02-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset ceea9ebfe003 by Gregory P. Smith in branch '3.2': Issue #13930: Adds ability for 2to3 to write its output to a different http://hg.python.org/cpython/rev/ceea9ebfe003 New changeset 9f583700d27f by Gregory P. Smith in branch '2.7': Issue #13930: Add

[issue13930] lib2to3 ability to output files into a different directory and alter their names

2012-02-12 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- hgrepos: -111 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue13609] Add "os.get_terminal_size()" function

2012-02-12 Thread STINNER Victor
STINNER Victor added the comment: > E.g. almost all programs disable color when piped explicitly through less. Using my patch, you can use os.get_terminal_size(sys.stdout.fileno()) if you like to get an error if sys.stdout is a pipe. My patch only changes the behaviour if no argument is speci

[issue13609] Add "os.get_terminal_size()" function

2012-02-12 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The purpose of os.get_terminal_size() is the same as `stty size`, so `stty size` could be a model for behavior of os.get_terminal_size(). -- ___ Python tracker

[issue13609] Add "os.get_terminal_size()" function

2012-02-12 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: > Using strace, I see that stty calls ioctl(TIOCGWINSZ) on stdin (fd=0) > if it failed on stdout (fd=1), whereas Python only tries stdout. It was done this way by design. Maybe checking stdin can be also useful, but it is a rather big change in semantics. I think

[issue13609] Add "os.get_terminal_size()" function

2012-02-12 Thread STINNER Victor
STINNER Victor added the comment: New try (I fixed my email address and the patch). -- Added file: http://bugs.python.org/file24504/get_terminal_size_pipe-2.patch ___ Python tracker ___

[issue3905] subprocess failing in GUI applications on Windows

2012-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.2.2, starting IDLE from a Command Prompt, I get the same error as Denver. Starting IDLE 'normally', from the icon, there is no error. So even though Command Prompt detaches pythonw in some way and gives me a new prompt to do something else, there is some

[issue13609] Add "os.get_terminal_size()" function

2012-02-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your patch is wrong. It always discards ioctl(stdout), even if it was successful. -- ___ Python tracker ___ __

[issue13609] Add "os.get_terminal_size()" function

2012-02-12 Thread STINNER Victor
STINNER Victor added the comment: Using strace, I see that stty calls ioctl(TIOCGWINSZ) on stdin (fd=0) if it failed on stdout (fd=1), whereas Python only tries stdout. Attached patch implements a similar idea. -- Added file: http://bugs.python.org/file24503/get_terminal_size_pipe.patc

[issue13609] Add "os.get_terminal_size()" function

2012-02-12 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Actually this test fails due to another reason. I'm still investigating it. In the meantime, a different bug was found: # stty size | cat 46 157 # python3.3 -c 'import os; print(os.get_terminal_size())' | cat Traceback (most recent call la

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-12 Thread Florent Xicluna
Florent Xicluna added the comment: > from xml.etree.ElementTree import _namespace_map > > And the import in cElementTree won't be necessary. > After all, _namespace_map is definitely not a public API! Because of the interaction of the support.import_fresh_module with the CleanContext context m

[issue10287] NNTP authentication should check capabilities

2012-02-12 Thread Hynek Schlawack
Hynek Schlawack added the comment: So my take on the whole issue and Antoine "tends to agree". ;) 1. If the user tells us (s)he _wants_ us to authenticate or send MODE READER, we do it even if capabilities don't advertise it. There's a lot of rfc-non-conformant servers out there. Permanent er

[issue10287] NNTP authentication should check capabilities

2012-02-12 Thread Hynek Schlawack
Changes by Hynek Schlawack : Added file: http://bugs.python.org/file24502/b33bcf179df4.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue13193] packaging.tests.test_manifest and distutils.tests.test_filelist failures

2012-02-12 Thread Nadeem Vawda
Nadeem Vawda added the comment: It appears that while test_process_template() uses "/"-delimited paths consistently across all OSes, 2.7 also has a test_process_template_line() that uses os.path.join() to construct its paths. Changing this test to use hardcoded "/"-delimited paths fixes the fail

[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2012-02-12 Thread Sandro Tosi
Sandro Tosi added the comment: >> OK, so if I got it correctly, I should document >> multiprocessing.queue.SimpleQueue in 2.7 and 3.1 [...] > > s/3.1/3.2/ yeah, just a typo :) -- ___ Python tracker _

[issue13491] Fixes for sqlite3 doc

2012-02-12 Thread Petri Lehtinen
Petri Lehtinen added the comment: > > In the Doc/includes/sqlite3 directory there are still some scripts that > > require the > > createdb.py, so I didn't nuke the file. > > Do these scripts (or a README file) explain about createdb.py? No. There's no mention of createdb.py anywhere. > > I al

[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2012-02-12 Thread Eli Bendersky
Eli Bendersky added the comment: > OK, so if I got it correctly, I should document > multiprocessing.queue.SimpleQueue in 2.7 and 3.1 [...] s/3.1/3.2/ -- ___ Python tracker _

[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2012-02-12 Thread Eli Bendersky
Changes by Eli Bendersky : -- Removed message: http://bugs.python.org/msg153224 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2012-02-12 Thread Eli Bendersky
Eli Bendersky added the comment: >> OK, so if I got it correctly, I should document >> multiprocessing.queue.SimpleQueue in 2.7 and 3.1 [...] and 3.2, we're no longer updating 3.1 with such changes -- ___ Python tracker

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-12 Thread Eli Bendersky
Eli Bendersky added the comment: By the way, I see that if the explicit import of _namespace_map is commented out, the test_xml_etree_c test fails because it's not in the __all__ list. So the test can just import it directly with: from xml.etree.ElementTree import _namespace_map And the impo

[issue9750] sqlite3 iterdump fails on column with reserved name

2012-02-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 60aa7dacb605 by Petri Lehtinen in branch '2.7': Fix sqlite3.Connection.iterdump on tables/fields with reserved names or quotes http://hg.python.org/cpython/rev/60aa7dacb605 New changeset 4b105d328fe7 by Petri Lehtinen in branch '3.2': Fix sqlite3.C

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-12 Thread Eli Bendersky
Eli Bendersky added the comment: Florent, Your updated patch looks good. I think that the explicit import of _namespace_map into cElementTree is just to satisfy some weird magic in the tests and can probably be removed as well (along with the weird magic :-), but that's not really important

[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2012-02-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It's the way all the subclasses are imported into the main module that > got me in fault, I think. OK, so if I got it correctly, I should > document multiprocessing.queue.SimpleQueue in 2.7 and 3.1 and > multiprocessing.SimpleQueue in 3.3 also adding the hunk

[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2012-02-12 Thread Sandro Tosi
Sandro Tosi added the comment: It's the way all the subclasses are imported into the main module that got me in fault, I think. OK, so if I got it correctly, I should document multiprocessing.queue.SimpleQueue in 2.7 and 3.1 and multiprocessing.SimpleQueue in 3.3 also adding the hunk to __ini

[issue13999] Queue references in multiprocessing doc points to Queue module and not to self

2012-02-12 Thread Sandro Tosi
New submission from Sandro Tosi : At the subject says, several references to Queue are linking to Queue module and not to multiprocessing. -- assignee: docs@python components: Documentation messages: 153218 nosy: docs@python, sandro.tosi priority: normal severity: normal stage: needs pa

[issue10287] NNTP authentication should check capabilities

2012-02-12 Thread Hynek Schlawack
Hynek Schlawack added the comment: There's one more issue Julien has raised: nntplib attempts to authenticate when "AUTHINFO" is sent w/o USER. (haven't tested it but I presume it's still valid) It's trivial to catch that but I'd say that it's fine to let the server handle it if the user has

[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2012-02-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine, I'm probably missing something, but SimpleQueue is present in > 2.7 and 3.2 too, so why not mention it in the doc for those versions too? What I mean is that "multiprocessing.SimpleQueue" is a new API, so should be 3.3-only (while "multiprocessing.

[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2012-02-12 Thread Sandro Tosi
Sandro Tosi added the comment: Thanks Eli for the heads-up, I had missed Antoine's comment! Antoine, I'm probably missing something, but SimpleQueue is present in 2.7 and 3.2 too, so why not mention it in the doc for those versions too? -- ___ Pyth

[issue13198] Remove duplicate definition of write_record_file

2012-02-12 Thread Paul Moore
Paul Moore added the comment: Produces RECORD files with CR-CR-LF line endings (see issue13175). This breaks pysetup remove. I can't tell if this patch is good otherwise - it's certainly no worse than the behaviour of the unpatched version, but that's not saying much :-) --

[issue10287] NNTP authentication should check capabilities

2012-02-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Perhaps I closed too quickly... Julien's original message had two other requests: “If "READER" is advertised, no need to send a "MODE READER" command at all... If "MODE-READER" is advertised, then "MODE READER" (if wanted) can be sent. Then, self.capabilities

[issue10287] NNTP authentication should check capabilities

2012-02-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you :) Committed now. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue10287] NNTP authentication should check capabilities

2012-02-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset d789f453387d by Antoine Pitrou in branch '3.2': Issue #10287: nntplib now queries the server's CAPABILITIES again after authenticating (since the result may change, according to RFC 4643). http://hg.python.org/cpython/rev/d789f453387d New changese

[issue10287] NNTP authentication should check capabilities

2012-02-12 Thread Hynek Schlawack
Hynek Schlawack added the comment: Thanks! I think I've addressed everything in the latest patch. -- ___ Python tracker ___ ___ Pytho

[issue10287] NNTP authentication should check capabilities

2012-02-12 Thread Hynek Schlawack
Changes by Hynek Schlawack : Added file: http://bugs.python.org/file24500/e986dd8bb47d.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10287] NNTP authentication should check capabilities

2012-02-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've made a couple of small comments (see "review" link next to the patch). -- ___ Python tracker ___ _

[issue13968] Support recursive globs

2012-02-12 Thread R. David Murray
R. David Murray added the comment: The last forumulation of what rglob does "apply the glob to the current directory and all subdirectories recursively, returning the joined list with filenames anchored in the current directory" is simple and intuitive enough for me. (I'm not sure it can be

[issue13992] Segfault in PyTrash_destroy_chain

2012-02-12 Thread Charles-François Natali
Charles-François Natali added the comment: > Possibly a double free? > (gdb) p *op > $5 = {_ob_next = 0x0, _ob_prev = 0x0, ob_refcnt = 0, ob_type = 0x3c6d9f0} > It indeed looks like a double free (see the previous and next pointers have already been set to NULL). Could you check if there's no

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-02-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > My mental model here is text editors, which let you open any file, do > their best to display as much as they can and allow you to manipulate > it without damaging the bits you don't change. I don't see any reason > why people shouldn't be able to write Python

[issue10287] NNTP authentication should check capabilities

2012-02-12 Thread Hynek Schlawack
Changes by Hynek Schlawack : Added file: http://bugs.python.org/file24499/0cf0b06e1d31.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10287] NNTP authentication should check capabilities

2012-02-12 Thread Hynek Schlawack
Hynek Schlawack added the comment: I've added general tests of AUTH USER/PASS as there weren't any present yet. As I haven't alas heard back from Easynews, I can only presume they allow CAPABILITIES after a login – I've added a test case that models this behavior. Otherwise I did as it was as

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-02-12 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-12 Thread Florent Xicluna
Florent Xicluna added the comment: Updated patch: - add 'XMLID' and 'register_namespace' to the ElementTree.__all__ - the comment says explicitly that cElementTree is deprecated - exercise the deprecated module with the tests -- Added file: http://bugs.python.org/file24498/issue1398

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-12 Thread Florent Xicluna
Florent Xicluna added the comment: There was a discussion in December which ruled out some CPython too specific implementation details from the documentation. http://mail.python.org/pipermail/python-dev/2011-December/115063.html Maybe it's better to remove these 2 lines about the "transparent

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-02-12 Thread Paul Moore
Paul Moore added the comment: A better example in terms of "intended to be text" might be ChangeLog files. These are clearly text files, but of sufficiently standard format that they can be manipulated programmatically. Consider a program to get a list of all authors who changed a particular

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-12 Thread STINNER Victor
STINNER Victor added the comment: New try, set the version to 16 to avoid the confusion. test_time is failing on Windows. -- Added file: http://bugs.python.org/file24497/time_decimal-16.patch ___ Python tracker _

[issue13991] namespace packages depending on order

2012-02-12 Thread andrea crotti
andrea crotti added the comment: About the binary file, in theory I agree with you, but that archive contains 5 or 6 subdirectories with a few almost empty files. Of course I can write a script that recreates that situation, but does it make sense when I can just tar and untar it? And what sh

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-12 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24496/time_decimal-15.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-12 Thread STINNER Victor
STINNER Victor added the comment: (Oops, I attached the wrong patch.) -- Added file: http://bugs.python.org/file24496/time_decimal-15.patch ___ Python tracker ___ __

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-12 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24495/time_decimal-15.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: If such use cases are indeed better handled as bytes, then that's what should be documented. However, there are some text processing assumptions that no longer hold when using bytes instead of strings (such as "x[0:1] == x[0]"). You also can't safely pass such

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-12 Thread STINNER Victor
STINNER Victor added the comment: Patch version 15: - round "correctly" - datetime.date.fromtimestamp() and datetime.datetime.fromtimestamp() reuses _PyTime_t API to support decimal.Decimal without loss of precision - add more tests -- Added file: http://bugs.python.org/file24495/ti

[issue13992] Segfault in PyTrash_destroy_chain

2012-02-12 Thread Aaron Staley
Aaron Staley added the comment: Active extension modules are MySQL-python, numpy, and crypto. Here is the output from the non-optimized debug build. Slightly different trace, but still some sort of deallocator crashing AFAIK: #0 0x0046247c in _Py_ForgetReference (op= , _pipe=Non

[issue10287] NNTP authentication should check capabilities

2012-02-12 Thread Hynek Schlawack
Hynek Schlawack added the comment: Sure, I wanted to add tests as soon as I know that the flow is correct (which it isn't :)). So essentially we want always CAPABILITIES LOGIN CAPABILITIES ? That's rather simple to achieve. The tests are going to be the harder part. ;) Re the patch: I trie

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-02-12 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13963] dev guide has no mention of mechanics of patch review

2012-02-12 Thread Nadeem Vawda
Nadeem Vawda added the comment: AFAIK, all interested parties are supposed to automatically be sent email notifications whenever anyone posts an update on the review. However, I've run into a bug that seems to be preventing this from workin

[issue13953] Get rid of doctests in packaging.tests.test_version

2012-02-12 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Does a "doc test" test the output literally? (I've just always used unittest) Ok, thanks -- ___ Python tracker ___ _

[issue13968] Support recursive globs

2012-02-12 Thread Yuval Greenfield
Yuval Greenfield added the comment: Raymond Hettinger, by simple do you mean a single argument rglob function? Or do you mean you prefer glob doesn't get a new function? -- ___ Python tracker

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-02-12 Thread STINNER Victor
STINNER Victor added the comment: Why do you use Unicode with the ugly surrogateescape error handler in this case? Bytes are just fine for such usecase. The surrogateescape error handler produces unusual characters in range U+DC80-U+DCFF which cannot be printed to a console because sys.stdout u

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: Usually because the file may contain certain ASCII markers (or you're inserting such markers), but beyond that, you only care that it's in a consistent ASCII compatible encoding. Parsing log files from sources that aren't set up correctly often falls into this

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-02-12 Thread STINNER Victor
STINNER Victor added the comment: > A common programming task is "I want to process this text file, > I know it's in an ASCII compatible encoding, I don't know which > one specifically, but I'm only manipulating the ASCII parts > so it doesn't matter". Can you give more detail about this use ca

[issue13998] Lookbehind assertions go behind the start position for the match

2012-02-12 Thread Devin Jeanpierre
New submission from Devin Jeanpierre : compiled regex objects' match method offers an optional "pos" parameter described to be roughly equivalent to slicing except for how it treats the "^" operation. See http://docs.python.org/library/re.html#re.RegexObject.search However, the behavior of loo

[issue12627] Implement PEP 394: The "python" Command on Unix-Like Systems

2012-02-12 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue4966] Improving Lib Doc Sequence Types Section

2012-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: Just noting that this has slipped a bit down my Python to-do list (there are other things I want to focus on before the first 3.3 alpha). I'll get back to it at some point, but if someone want to take my branch and run with it in the meantime, please feel free.

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-02-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Unicode nosy: +ezio.melotti stage: -> needs patch type: -> enhancement ___ Python tracker ___