Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
5dbda75a
Kaydet (Commit)
5dbda75a
authored
Tem 17, 2005
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
- Bug #1015140: disambiguated the term "article id" in nntplib docs and
docstrings to either "article number" or "message id".
üst
0e032723
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
libnntplib.tex
Doc/lib/libnntplib.tex
+6
-4
nntplib.py
Lib/nntplib.py
+2
-2
NEWS
Misc/NEWS
+3
-0
No files found.
Doc/lib/libnntplib.tex
Dosyayı görüntüle @
5dbda75a
...
...
@@ -156,7 +156,7 @@ If \var{file} is supplied, then the returned \var{list} is an empty list.
Send a
\samp
{
NEWNEWS
}
command. Here,
\var
{
group
}
is a group name or
\code
{
'*'
}
, and
\var
{
date
}
and
\var
{
time
}
have the same meaning as for
\method
{
newgroups()
}
. Return a pair
\code
{
(
\var
{
response
}
,
\var
{
articles
}
)
}
where
\var
{
articles
}
is a list of
articl
e ids.
\var
{
articles
}
)
}
where
\var
{
articles
}
is a list of
messag
e ids.
If the
\var
{
file
}
parameter is supplied, then the output of the
\samp
{
NEWNEWS
}
command is stored in a file. If
\var
{
file
}
is a string,
then the method will open a file object with that name, write to it
...
...
@@ -228,7 +228,7 @@ Send a \samp{STAT} command, where \var{id} is the message id (enclosed
in
\character
{
<
}
and
\character
{
>
}
) or an article number (as a string).
Return a triple
\code
{
(
\var
{
response
}
,
\var
{
number
}
,
\var
{
id
}
)
}
where
\var
{
number
}
is the article number (as a string) and
\var
{
id
}
is the
articl
e id (enclosed in
\character
{
<
}
and
\character
{
>
}
).
messag
e id (enclosed in
\character
{
<
}
and
\character
{
>
}
).
\end{methoddesc}
\begin{methoddesc}
{
next
}{}
...
...
@@ -275,7 +275,7 @@ keyword, e.g. \code{'subject'}. The \var{string} argument should have
the form
\code
{
'
\var
{
first
}
-
\var
{
last
}
'
}
where
\var
{
first
}
and
\var
{
last
}
are the first and last article numbers to search. Return a
pair
\code
{
(
\var
{
response
}
,
\var
{
list
}
)
}
, where
\var
{
list
}
is a list of
pairs
\code
{
(
\var
{
id
}
,
\var
{
text
}
)
}
, where
\var
{
id
}
is an article
id
pairs
\code
{
(
\var
{
id
}
,
\var
{
text
}
)
}
, where
\var
{
id
}
is an article
number
(as a string) and
\var
{
text
}
is the text of the requested header for
that article.
If the
\var
{
file
}
parameter is supplied, then the output of the
...
...
@@ -295,7 +295,9 @@ automatically escapes lines beginning with \samp{.}.
\end{methoddesc}
\begin{methoddesc}
{
ihave
}{
id, file
}
Send an
\samp
{
IHAVE
}
command. If the response is not an error, treat
Send an
\samp
{
IHAVE
}
command.
\var
{
id
}
is a message id (enclosed in
\character
{
<
}
and
\character
{
>
}
).
If the response is not an error, treat
\var
{
file
}
exactly as for the
\method
{
post()
}
method.
\end{methoddesc}
...
...
Lib/nntplib.py
Dosyayı görüntüle @
5dbda75a
...
...
@@ -281,7 +281,7 @@ class NNTP:
- time: string 'hhmmss' indicating the time
Return:
- resp: server response if successful
- list: list of
articl
e ids"""
- list: list of
messag
e ids"""
cmd
=
'NEWNEWS '
+
group
+
' '
+
date
+
' '
+
time
return
self
.
longcmd
(
cmd
,
file
)
...
...
@@ -391,7 +391,7 @@ class NNTP:
Returns:
- resp: server response if successful
- nr: the article number
- id: the
articl
e id"""
- id: the
messag
e id"""
return
self
.
statcmd
(
'STAT '
+
id
)
...
...
Misc/NEWS
Dosyayı görüntüle @
5dbda75a
...
...
@@ -168,6 +168,9 @@ Extension Modules
Library
-------
-
Bug
#
1015140
:
disambiguated
the
term
"article id"
in
nntplib
docs
and
docstrings
to
either
"article number"
or
"message id"
.
-
Bug
#
1238170
:
threading
.
Thread
.
__init__
no
longer
has
"kwargs={}"
as
a
parameter
,
but
uses
the
usual
"kwargs=None"
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment