New submission from Petri Lehtinen :
The argument is essential to avoid slowdown with delayed ACKs and the Nagle
algorithm, so it should be documented. It was added when fixing issue 4336. I
believe that it's new in Python 2.7.
--
assignee: docs@python
components: Document
Petri Lehtinen added the comment:
The 2.7 documentation should mention the version in which the argument was
added. I believe it was 2.7.
--
resolution: fixed ->
status: closed -> open
___
Python tracker
<http://bugs.python.org/i
Petri Lehtinen added the comment:
This is slightly backwards incompatible, as some people may depend on the old
behavior. Otherwise sounds like a good idea to me.
--
nosy: +petri.lehtinen, rhettinger
stage: -> patch review
versions: +Python 3.3 -Python
Petri Lehtinen added the comment:
Should there be another issue opened to do something about the extra logging
levels?
--
___
Python tracker
<http://bugs.python.org/issue12
Petri Lehtinen added the comment:
Éric: It's been 3 months now. Have you already committed the big documentation
issues change?
--
___
Python tracker
<http://bugs.python.org/is
Petri Lehtinen added the comment:
Ping? I wonder whether closing an issue from 2004 would result in "Achievement
unlocked: archaeological issue management"
--
keywords: +patch
nosy: +petri.lehtinen
___
Python tracker
<http://bu
Petri Lehtinen added the comment:
Raymond: Would you also like to commit the patch? :)
--
keywords: -needs review
___
Python tracker
<http://bugs.python.org/issue12
Petri Lehtinen added the comment:
Attached a patch that fixes this. The test case is a bit ugly, as it only
checks that the traceback's depth is correct.
--
keywords: +patch
nosy: +ezio.melotti, petri.lehtinen
stage: -> patch review
Added file: http://bugs.python.org/f
Petri Lehtinen added the comment:
Attached an updated patch.
I incref'd the return value of PyErr_GetTraceback() because PyErr_Restore()
steals the reference. The documentation of PyErr_GetTraceback() doesn't tell
whether it returns a new or borrowed reference, but apparently a new
Petri Lehtinen added the comment:
Antoine Pitrou wrote:
> Actually, it is documented:
> “Return the traceback associated with the exception as a new reference (...)”
Ah, you're right. It just doesn't have the green "Return value: New
reference" no
Petri Lehtinen added the comment:
BTW, shouldn't this be applied to 2.7 too?
--
___
Python tracker
<http://bugs.python.org/issue13188>
___
___
Python-bugs-l
New submission from Petri Lehtinen :
The documentation of generator.throw() gives this signature:
generator.throw(type[, value[, traceback]])
Looking at the code, it accepts the following arguments:
g.throw(ExcType) --> raise ExcType()
g.throw(ExcType, None) --> raise E
Petri Lehtinen added the comment:
Thanks for the review, Antoine. Attached an updated the patch:
- The function definition now uses STRINGLIB(...) and the function is only
defined when !STRINGLIB_IS_UNICODE (so I took both approaches)
- Added a "versionadded:: 3.3" to the doc
Changes by Petri Lehtinen :
Removed file: http://bugs.python.org/file23464/issue12170_v2.patch
___
Python tracker
<http://bugs.python.org/issue12170>
___
___
Python-bug
Petri Lehtinen added the comment:
Fixed a minor inconsistency.
--
Added file: http://bugs.python.org/file23465/issue12170_v2.patch
___
Python tracker
<http://bugs.python.org/issue12
Changes by Petri Lehtinen :
--
nosy: -petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue12619>
___
___
Python-bugs-list mailing list
Unsubscribe:
Petri Lehtinen added the comment:
The patch looks good to me and fixes the problem. To reproduce, try this:
sudo python -m smtpd 127.0.0.1:25
It raises a "socket.error: [Errno 13] Permission denied" when trying to bind to
the privileged port.
Attached a refreshed the patch th
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
versions: +Python 3.3 -Python 3.2
___
Python tracker
<http://bugs.python.org/issue8503>
___
___
Python-bug
Petri Lehtinen added the comment:
AFAIK, the extra MAIL FROM and RCPT TO parameters are only valid for ESMTP.
smtpd doesn't currently handle ESMTP, so this should not be a problem.
--
nosy: +petri.lehtinen
versions: +Python 2.7, Python 3.2, Python 3.3 -Pytho
Petri Lehtinen added the comment:
This sounds like an important feature to me.
A few points:
- I'd rename the function name from accept_domain to e.g. validate_domain for
clarity
- There could also be a function to validate the loca part of each recipient
addresses. Or maybe the fun
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue12816>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13217>
___
___
Python-bugs-list mailing list
Unsubscribe:
Petri Lehtinen added the comment:
Fixing the documentation is better, as changing the argument order would break
existing code.
--
keywords: +easy
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13252>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
keywords: +needs review, patch
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13018>
___
___
Python-bug
Changes by Petri Lehtinen :
--
keywords: +after moratorium, needs review, patch
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13
Changes by Petri Lehtinen :
--
keywords: +needs review, patch
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13016>
___
___
Python-bug
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13254>
___
___
Python-bugs-list mailing list
Unsubscribe:
Petri Lehtinen added the comment:
Thanks for the patch, fixed.
--
keywords: -needs review
resolution: -> fixed
stage: patch review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13263>
___
___
Python-bugs-list mailing list
Unsubscribe:
Petri Lehtinen added the comment:
The patch is not correct: modelobj must not be decref'd, because it has been
inserted to the args tuple with the reference-stealing 'N' format. args is
later decref'd in function's cleanup code after "finally:".
Petri Lehtinen added the comment:
PySequence_Fast_GET_ITEM expects that the object is valid and the index is
within bounds, and never returns NULL. There's no need to decref and actually
there's even no need to check the return value of PySequence_Fast_GET_ITEM.
--
Petri Lehtinen added the comment:
The same issue exists on 2.7, working on a patch.
--
status: closed -> open
versions: +Python 2.7
___
Python tracker
<http://bugs.python.org/issu
Petri Lehtinen added the comment:
> It appears the Python 3.2 docs no longer include documentation for URLError
Both URLError and HTTPError are documented in 3.2 and 3.3:
http://docs.python.org/py3k/library/urllib.error.html#urllib.error.URLError
http://docs.python.org/dev/libr
New submission from Petri Lehtinen :
This has been discussed in python-ideas approx. two years ago:
http://mail.python.org/pipermail/python-ideas/2009-December/006635.html
It seems to me that having an opt-in command-line option, environment variable
and sys variable to disable loading
Changes by Petri Lehtinen :
--
components: +Interpreter Core
nosy: +petri.lehtinen
versions: -Python 2.6
___
Python tracker
<http://bugs.python.org/issue13
Petri Lehtinen added the comment:
It seems this cannot be achieved the same way in 2.7 as the traceback is not
directly associated with the exception. However, if we're currently in an
exception handler and sys.exc_info() corresponds to the exception passed to
generator.throw(), we coul
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13271>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13274>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13275>
___
___
Python-bugs-list mailing list
Unsubscribe:
Petri Lehtinen added the comment:
Ok, I think we have reached a consensus. Closing.
--
status: open -> closed
versions: -Python 2.7
___
Python tracker
<http://bugs.python.org/issu
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13277>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13278>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13279>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13280>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13281>
___
___
Python-bugs-list mailing list
Unsubscribe:
Petri Lehtinen added the comment:
Blank lines are allowed according to the specification at
http://www.robotstxt.org/norobots-rfc.txt, section 3.3 Formal Syntax.
The issue also seems to exist on 3.2 and 3.3.
--
components: +Library (Lib)
keywords: +needs review
stage: -> pa
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue6745>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue12567>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
stage: -> test needed
versions: +Python 3.2, Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/issu
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
stage: -> patch review
___
Python tracker
<http://bugs.python.org/issue13283>
___
___
Python-bugs-list mai
Petri Lehtinen added the comment:
> Because of the line break, clicking that link gives "Server error 404".
I don't see a line break, but the comma after the link seems to breaks it.
Sorry.
> The way I read the grammar, 'records' (which start with an agent
>
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue13284>
___
___
Python-bugs-list mai
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13285>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue10519>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
resolution: -> fixed
stage: patch review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue6650>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13298>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13301>
___
___
Python-bugs-list mailing list
Unsubscribe:
Petri Lehtinen added the comment:
You should change "issue #" with the real issue number now that there's an
issue for this :)
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.pyt
Petri Lehtinen added the comment:
More specifically, this happens if the Maildir instance is created two seconds
before items() is called:
>>> import time
>>> from mailbox import Maildir
>>> x = Maildir('test') # has messages
>>> time.sle
Petri Lehtinen added the comment:
Attached a patch. It makes _refresh() re-read the _toc uncoditionally when
called the first time.
--
keywords: +needs review, patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file23584/issue13254.pa
Petri Lehtinen added the comment:
The last patch looks good to me and is a clever approach indeed :)
--
___
Python tracker
<http://bugs.python.org/issue13
Petri Lehtinen added the comment:
Sounds like a but to me, too.
--
stage: -> test needed
versions: +Python 2.7, Python 3.2
___
Python tracker
<http://bugs.python.org/issu
Petri Lehtinen added the comment:
This is a request for new functionality, so marking as a feature request for
3.3. If implemented, the change should be applied to many other functions, in
the os module at least.
I'm not sure whether this is very useful, though. The fstat(f.fileno())
Changes by Petri Lehtinen :
--
keywords: +needs review
nosy: +petri.lehtinen
stage: -> patch review
___
Python tracker
<http://bugs.python.org/issu
Petri Lehtinen added the comment:
Sandro: The error_callback parameter is not available on 2.7. See #13147.
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue12
Petri Lehtinen added the comment:
> Could it return an opaque wrapper object, rather than just the raw address?
> Something like:
Are you suggesting that it would return either a Python function object or a
wrapper object?
--
___
Python t
Petri Lehtinen added the comment:
> My current suggested doc change is to replace the sentence quoted at the top
> with
Sounds good to me.
--
___
Python tracker
<http://bugs.python.org/i
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13322>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13323>
___
___
Python-bugs-list mailing list
Unsubscribe:
Petri Lehtinen added the comment:
I'm not a curses expert, but after digging a while, I believe that I now
understand what these functions are doing. tigetstr() returns a "format string"
(bytes) and tparm() does substitutions and returns a command string (bytes) for
the ter
Petri Lehtinen added the comment:
> Note that .join() has a slightly different behaviour:
>
> >>> b"".join([bytearray(), b""])
> b''
> >>> bytearray().join([bytearray(), b""])
> bytearray(b'')
> >>&g
Petri Lehtinen added the comment:
According to the man page, find -print0 and xargs -r are also GNU extensions.
Even though they work on OpenBSD (do they?), they could still break on some
platforms.
As find -exec cmd {} ';' is already used for everything but __pycache__, I'
Petri Lehtinen added the comment:
+1 on making the second arg optional.
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13327>
___
___
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13328>
___
___
Python-bugs-list mailing list
Unsubscribe:
Petri Lehtinen added the comment:
I mean that this should be enough to close this issue:
- -find $(srcdir) -name '__pycache__' -exec rmdir {} '+'
+ -find $(srcdir) -name '__pycache__' -exec rmdir {} ';'
That is, use ';' ins
Petri Lehtinen added the comment:
Whoops, posted the previous message to a totally wrong issue. Who was it thag
introduced tabbed browsing?
--
___
Python tracker
<http://bugs.python.org/issue13
Petri Lehtinen added the comment:
I mean that this should be enough to close this issue:
- -find $(srcdir) -name '__pycache__' -exec rmdir {} '+'
+ -find $(srcdir) -name '__pycache__' -exec rmdir {} ';'
That is, use ';' ins
Petri Lehtinen added the comment:
How are you running the CGI script? Are you sure that the PYTHONIOENCODING
environment variable isn't set by the HTTP server?
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/is
Petri Lehtinen added the comment:
Ah, I didn't think about that.
How about using the -depth option then? It's in POSIX but does OpenBSD have it?
The man page of GNU find says it has a -d option (that does the same as -depth)
for compatibilit
Changes by Petri Lehtinen :
--
components: +Library (Lib)
keywords: +needs review
stage: -> patch review
type: -> feature request
versions: +Python 3.3 -Python 3.4
___
Python tracker
<http://bugs.python.org/i
Petri Lehtinen added the comment:
> + -find $(srcdir) -name '__pycache__' -print0 | xargs -0r rm -rf
I'd still do it like this for portability's sake:
+ -find $(srcdir) -depth -name '__pycache__' -exec rm -rf {} ';'
--
___
Petri Lehtinen added the comment:
It seems that putp() should also accept only bytes, because it's used to output
terminal commands. It's currently expecting a str.
--
resolution: fixed ->
stage: patch review -> committed/rejected
status
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue3067>
___
___
Python-bugs-list mailing list
Unsubscribe:
Petri Lehtinen added the comment:
> Then you'd probably reintroduce issue8665.
No, the -depth argument avoids that.
--
___
Python tracker
<http://bugs.python.org
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue1>
___
___
Python-bugs-list mailing list
Unsubscribe:
Petri Lehtinen added the comment:
Sounds reasonable to me. Is it easy to generate unique identifier names in 2to3
fixers?
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13
Petri Lehtinen added the comment:
The issue exists only in 3.2 and 3.3, as 2.7 doesn't have __pycache__ (PEP
3147). In 3.2 and 3.3, all *.py[co] files are in __pycache__ directories, so
the pycremoval make target can only remove the __pycache__ directories, using
the -depth option of fi
Petri Lehtinen added the comment:
Terry: Do you still think there's need for a doc update?
--
resolution: -> fixed
status: open -> pending
___
Python tracker
<http://bugs.python
Changes by Petri Lehtinen :
--
resolution: -> wont fix
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Petri Lehtinen added the comment:
Closing as wontfix.
--
___
Python tracker
<http://bugs.python.org/issue13321>
___
___
Python-bugs-list mailing list
Unsubscribe:
Petri Lehtinen added the comment:
> If *locale* is specified, it may be a None, a string, or an iterable of two
> strings, language code and encoding. String pairs are converted to a single
> string using the locale aliasing engine.
What about the possible None value then? Do you t
Petri Lehtinen added the comment:
In the absence of any complaints, I went on and committed the fix. Thanks for
reporting the issue!
--
assignee: r.david.murray ->
___
Python tracker
<http://bugs.python.org/issu
Petri Lehtinen added the comment:
I decided to restructure the documentation of setlocale() a bit and I think
it's better now overall. It includes Terry's suggestions.
I think this issue can now be closed. Thanks for the report and patches!
--
status: open
Changes by Petri Lehtinen :
--
stage: -> needs patch
___
Python tracker
<http://bugs.python.org/issue13338>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Petri Lehtinen :
--
nosy: +petri.lehtinen
___
Python tracker
<http://bugs.python.org/issue13338>
___
___
Python-bugs-list mailing list
Unsubscribe:
Petri Lehtinen added the comment:
This already seems fixed on 2.7, 3.2 and 3.3:
>>> ''.find('', None)
0
--
nosy: +petri.lehtinen
resolution: -> out of date
status: open -> closed
versions: -Python 3.1
___
Pyth
Petri Lehtinen added the comment:
The same issue exists for tuples:
>>> (1, 2, 3).index(2, None)
Traceback (most recent call last):
File "", line 1, in
TypeError: slice indices must be integers or None or have an __index__ method
--
components: +In
New submission from Petri Lehtinen :
For example:
>>> (1, 2, 3).index(4)
Traceback (most recent call last):
File "", line 1, in
ValueError: tuple.index(x): x not in tuple
The "x not in tuple" error message should be replaced with "4 is not in tuple"
1 - 100 of 601 matches
Mail list logo