Hello everyone,
For those of you who didn't know, if you are interested in a Redis-backed
time and/or fifo-queue with priorities, retries, etc., to be used with
Python, one exists and is mature: it's called RPQueue, and it seeks to
simplify your life of task execution. The recent changelog
Op 20-09-13 05:56, Jake Angulo schreef:
Up Robert Kern's reply!
I was waiting for smtplib http://docs.python.org/2/library/smtplib to
be mentioned... finally! Instead people simply answer philosophically.
I dont want to judge whether OP is a troll or not - but i found a lot
of arrogant
Dear all,
I need to binary with distutils, and run it under android OS,
Do you have any experience?
yours,
Mohsen
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, September 20, 2013 11:09:03 AM UTC+12, Ian wrote:
On Thu, Sep 19, 2013 at 1:22 PM, William Bryant gogobe...@gmail.com wrote:
It was the other functions above it. Thanks. but I tried to do the while
loop - I don't think I did it right, I am novice in python and I am 13 years
Hello everyone,
For those of you who didn't know, if you are interested in a Redis-backed
time and/or fifo-queue with priorities, retries, etc., to be used with
Python, one exists and is mature: it's called RPQueue, and it seeks to
simplify your life of task execution. The recent changelog
On 2013-09-20 04:56, Jake Angulo wrote:
Up Robert Kern's reply!
I was waiting for smtplib http://docs.python.org/2/library/smtplib to be
mentioned... finally! Instead people simply answer philosophically. I dont
want to judge whether OP is a troll or not - but i found a lot of arrogant
On Fri, Sep 20, 2013 at 3:14 PM, Gene Heskett ghesk...@wdtv.com wrote:
Can someone take a look at
http://www.scorchworks.com/Fengrave/fengrave_setup.html#linux_fengrave
Then this is what I get:
gene@coyote:~/src/F-Engrave-1.22_src$ python py2exe_setup.py
Traceback (most recent call last):
I started Python 4 months ago. Largely self-study with use of Python
documentation, stackoverflow and google. I was thinking what is the minimum
that I must know before I can say that I know Python?
I come from a C background which is comparatively smaller. But as Python is
comparatively much
Hi Jake!
Am Freitag, 20. September 2013 05:56:57 UTC+2 schrieb Jake Angulo:
...
I was waiting for smtplib to be mentioned... finally! Instead people simply
answer philosophically. I dont want to judge whether OP is a troll or not -
As you do not seem to know the histrory of this topic I will
On Friday, September 20, 2013 3:28:00 PM UTC+5:30, Aseem Bansal wrote:
I started Python 4 months ago. Largely self-study with use of Python
documentation, stackoverflow and google. I was thinking what is the minimum
that I must know before I can say that I know Python?
I come from a C
On 2013-09-20 02:58, Aseem Bansal wrote:
I started Python 4 months ago. Largely self-study with use of
Python documentation, stackoverflow and google. I was thinking what
is the minimum that I must know before I can say that I know Python?
It's a fuzzy line. A good while back, there was a
Hello All!
I have a general question,
i was posting here earlier while trying to troubleshoot a few things while
developing an application, i was able to hit all of my goals, and make things
work! Thank you all who contributed to my research, and again, sorry for poor
formatting of the
def fun:
print entry
.
.
print exit
--
https://mail.python.org/mailman/listinfo/python-list
On Sep 20, 2013, at 3:01 AM, William Bryant gogobe...@gmail.com wrote:
[byte]
Thanks a lot! I have one more question, is there any way I can make my
program work on android tablets and ipads? Because I'd like to use it in
school because we are learning statistics and we are allowed our
On Friday 20 September 2013 08:48:44 Chris Angelico did opine:
On Fri, Sep 20, 2013 at 3:14 PM, Gene Heskett ghesk...@wdtv.com wrote:
Can someone take a look at
http://www.scorchworks.com/Fengrave/fengrave_setup.html#linux_fengrav
e
Then this is what I get:
bab mis wrote:
def fun:
print entry
.
.
print exit
def log(f):
... def g(*args, **kw):
... print enter, f.__name__
... try:
... return f(*args, **kw)
... finally:
... print exit, f.__name__
...
On 2013-09-20 12:43, rusi wrote:
On Friday, September 20, 2013 3:28:00 PM UTC+5:30, Aseem Bansal wrote:
I started Python 4 months ago. Largely self-study with use of Python
documentation, stackoverflow and google. I was thinking what is the minimum
that I must know before I can say that I
William Bryant gogobe...@gmail.com wrote:
Thanks a lot! I have one more question, is there any way I can make my
program work on android tablets and ipads? Because I'd like to use it
in school because we are learning statistics and we are allowed our
devices in school.
You can install
On Fri, Sep 20, 2013 at 7:58 PM, Aseem Bansal asmbans...@gmail.com wrote:
I started Python 4 months ago. Largely self-study with use of Python
documentation, stackoverflow and google. I was thinking what is the minimum
that I must know before I can say that I know Python?
I come from a C
I was playing around with lambda functions, but I cannot seem to fully grasp
them. I was running the script below in Python 2.7.5, and it doesn't do what
I want it to. Are lambda functions really supposed to work that way. How do
I make it work as I intend?
f = []
for n in range(5):
f.append(
Hello,
# I posted this on the tutor list, but my message wasn't displayed
I shared some assembly code (microcontrollers) and I had a comment wit
my e-mail address for contact purposes.
Supposing my name is John Doe and the e-mail is john@hotmail.com, my
e-mail was written like this:
2013/9/20 Jugurtha Hadjar jugurtha.had...@gmail.com:
Hello,
# I posted this on the tutor list, but my message wasn't displayed
I shared some assembly code (microcontrollers) and I had a comment wit my
e-mail address for contact purposes.
Supposing my name is John Doe and the e-mail is
On Sat, Sep 21, 2013 at 1:21 AM, Kasper Guldmann gm...@kalleguld.dk wrote:
f = []
for n in range(5):
f.append( lambda x: x*n )
You're leaving n as a free variable here. The lambda function will
happily look to an enclosing scope, so this doesn't work. But there is
a neat trick you can do:
On Sat, Sep 21, 2013 at 1:04 AM, Jugurtha Hadjar
jugurtha.had...@gmail.com wrote:
Supposing my name is John Doe and the e-mail is john@hotmail.com, my
e-mail was written like this:
removemejohn.dospames...@removemehotmail.com'
With a note saying to remove the capital letters.
Now, I
On Friday, September 20, 2013 7:09:13 PM UTC+5:30, Robert Kern wrote:
On 2013-09-20 12:43, rusi wrote:
Stroustrup says he is still learning C++ and I know kids who have no qualms
saying they know programming language L (for various values of L) after
hardly an hour or two of mostly
Hi ,
I have a function as below:
def func(**kwargs):
...
...
args=a='b',c='d'
i want to call func(args) so that my function call will take a var as an
parameter.
it fails with an error typeError: fun() takes exactly 0 arguments (1 given)
. Is there any other way to get the
On 20/09/2013 16:21, Kasper Guldmann wrote:
I was playing around with lambda functions, but I cannot seem to fully grasp
them. I was running the script below in Python 2.7.5, and it doesn't do what
I want it to. Are lambda functions really supposed to work that way. How do
I make it work as I
On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal asmbans...@gmail.com wrote:
I hope that cleared some confusion about what I wanted to ask. I wanted to
gauge myself to find if I am progressing or not.
Well, based on my definition, that's easy to answer. Have you solved
problems using Python? If
On Friday, September 20, 2013 8:51:20 PM UTC+5:30, Kasper Guldmann wrote:
I was playing around with lambda functions, but I cannot seem to fully grasp
them. I was running the script below in Python 2.7.5, and it doesn't do what
I want it to. Are lambda functions really supposed to work that
By C being smaller than Python I did not mean the scope of C is lesser than
Python. I simply meant that the standard libraries are less in number compared
to Python.
By knowing Python I didn't imply an expert-level understanding. Minimum that so
someone cannot say Hey, you said you knew Python
On Sat, Sep 21, 2013 at 2:23 AM, Jussi Piitulainen
jpiit...@ling.helsinki.fi wrote:
(Put .invalid at the end, maybe. But I wish spam was against the law,
effectively.)
Against what law, exactly? In what jurisdiction will you seek to
charge spammers? And who will track them down?
ChrisA
--
Kasper Guldmann writes:
I was playing around with lambda functions, but I cannot seem to
fully grasp them. I was running the script below in Python 2.7.5,
and it doesn't do what I want it to. Are lambda functions really
supposed to work that way. How do I make it work as I intend?
f = []
I started Python 4 months ago. Largely self-study with use of Python
documentation, stackoverflow and google. I was thinking what is the minimum
that I must know before I can say that I know Python?
Interesting. I would say that you must know the keywords, how to make
a Class, how to write
Jugurtha Hadjar writes:
Supposing my name is John Doe and the e-mail is john@hotmail.com,
my e-mail was written like this:
removemejohn.dospames...@removemehotmail.com'
With a note saying to remove the capital letters.
Now, I wrote this :
for character in my_string:
... if
On Friday, September 20, 2013 10:51:46 AM UTC-5, bab mis wrote:
Hi ,
I have a function as below:
def func(**kwargs):
...
...
args=a='b',c='d'
i want to call func(args) so that my function call will take a var as an
parameter.
it fails
Chris, Vlastimil, great insights gentlemen! Thanks
Chris Angelico wrote:
Instead of matching the ones that are the same as their uppercase
version, why not instead keep the ones that are the same as their
lowercase?
That's why I started off doing, and then lost track a bit. It didn't
cross
On 20/09/2013 16:51, bab mis wrote:
Hi ,
I have a function as below:
def func(**kwargs):
...
...
args=a='b',c='d'
i want to call func(args) so that my function call will take a var as an
parameter.
it fails with an error typeError: fun() takes exactly 0 arguments (1 given)
.
On Friday, September 20, 2013 7:56:16 AM UTC-5, stas poritskiy wrote:
Hello All!
I have a general question,
i was posting here earlier while trying to troubleshoot a few things while
developing an application, i was able to hit all of my goals, and make things
work! Thank you all
On Sat, Sep 21, 2013 at 2:23 AM, Jussi Piitulainen
jpiit...@ling.helsinki.fi wrote:
Something meaningful: make it john.doe...@hotmail.com with a note to
remove the female deer for john@hotmail.com, or remove the drop
of golden sun for john@hotmail.com.
This method can be quite
hi,
i'm using matplotlib to generate chart from audio wave file, and I had a
problem with it.
test code as:
from scipy.io import wavfile
import matplotlib.pyplot as plt
rate, x = wavfile.read('test2.wav')
plt.plot(x)
plt.savefig('test2.png')
the len of x= 19531840 (as len(x) )
matplotlib give
I think it is a philosophical question. It's like saying I know maths,
which is a ridiculous phrase I was surprised to hear, let alone
surprised to hear often.
Can someone know everything there is to know about something ? I doubt
it. The point, at least for me, isn't to know everything ..
Hi,
In our school I have an introductory Python course. I have collected a
large list of exercises for the students and I would like them to be
able to test their solutions with an online judge (
http://en.wikipedia.org/wiki/Online_judge ). At the moment I have a
very simple web application that
On Friday, September 20, 2013 10:04:32 PM UTC+5:30, Chris Angelico wrote:
On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal asmbans...@gmail.com wrote:
I hope that cleared some confusion about what I wanted to ask. I wanted to
gauge myself to find if I am progressing or not.
Well, based on my
I understand that being able to solve problems and knowing when to use
something is the final measure of knowing something properly.
But I wanted to find something quantitative that I can use to measure myself.
Like the interview questions that Tim Chase posted.
Measuring myself based on the
Hi folks,
I'm trying to run a program called Nicotine+ on my Mac which is running 10.8.5.
Nicotine+ requires GTK2, pyGTK2 and Python to run. I believe I have all of
these installed via Macports (please see here - http://pastebin.com/nwmrpp2Y )
When I try to run Nicotine+ I get this message:
On Wednesday, September 11, 2013 3:55:59 PM UTC-5, Eamonn Rea wrote:
There are a few known GUI toolkits out there, and the main ones from what I
can tell are:
Tkinter -- Simple to use, but limited
PyQT -- You have a GUI designer, so I'm not going to count that
PyGTK -- Gnome
However, it can only be used with programs that produce an output
Just interested, what else are you thinking of checking?
--
https://mail.python.org/mailman/listinfo/python-list
Let's take this simple exercise:
Write a function that receives a list and decides whether the list is
sorted or not.
Here the output of the function is either True or False, so I cannot
test it with my current method.
Laszlo
On Fri, Sep 20, 2013 at 7:57 PM, Aseem Bansal asmbans...@gmail.com
On Fri, Sep 20, 2013 at 12:45 PM, Jugurtha Hadjar jugurtha.had...@gmail.com
wrote:
Chris, Vlastimil, great insights gentlemen! Thanks
Chris Angelico wrote:
Instead of matching the ones that are the same as their uppercase
version, why not instead keep the ones that are the same as their
In mailman.196.1379702349.18130.python-l...@python.org Jabba Laci
jabba.l...@gmail.com writes:
Let's take this simple exercise:
Write a function that receives a list and decides whether the list is
sorted or not.
Here the output of the function is either True or False, so I cannot
test it
On 09/20/2013 12:34 PM, Metallicow wrote:
I prefer wx over qt for these reasons. Robin works for qt now. *Funny
isn't it...* Basically, To change qt(PySide) you need to pretty much
need to be employed by qt, not the case with wx(is not a *For
profit*, but you can donate.). In my opinion, in
Sorry about that, nokia is/was.
qt was developed(IIRC) for phones. Someone made money. And a lot of it.
wx is a more or less a free project.
I don't use a phone anymore. If I had a touch screen phone and was a developer,
I still wouldn't use one. I have my many reasons why...
--
That last seems to me to be the biggie. Several times in the past few
years, people in this mailing list have tried to build a safe sandbox.
And each one was a big failure, for a hacker of sufficient interest.
Some of them were spectacular failures.
If you have to be safe from your user,
In mailman.195.1379698177.18130.python-l...@python.org Jabba Laci
jabba.l...@gmail.com writes:
There are several questions:
* What is someone sends an infinite loop? There should be a time limit.
You could run the judge as a background process, and kill it after ten
seconds if it hasn't
I have a list of tuples where the number of rows in the list and the number
of columns in tuples of the list will not be constant. i.e.
list = [(a1,b1, …z1), (a2,b2, …, z2),…. ,(am,bm, … , zm )]. It can be
compared to the SQL results, as the number of columns change in the sql,
the number of
hi everybody i am just starting to learn python, i was writing a simple i/o
program but my print statement is acting weird. here is my code i want to know
why it prints this way. thank you
car=int(input(Lamborghini tune-up:))
rent=int(input('\nManhatan apartment: '))
On 21 September 2013 07:57, Sam anasdah...@gmail.com wrote:
hi everybody i am just starting to learn python, i was writing a simple
i/o program but my print statement is acting weird. here is my code i want
to know why it prints this way. thank you
print(\nThe total amount required is ,
Remove both brackets in last line, You are creating a tuple in last
statement not making a function call.
2013/9/20 Sam anasdah...@gmail.com
hi everybody i am just starting to learn python, i was writing a simple
i/o program but my print statement is acting weird. here is my code i want
to
In 05bbf1a3-6480-48ee-8984-2482b90c7...@googlegroups.com Sam
anasdah...@gmail.com writes:
print(\nThe total amount required is , total )
OUTPUT
('\nThe total amount required is ', 3534)
In older versions of python (like the one you are using), 'print' is a
statement instead of a function.
On 9/20/2013 5:58 AM, Aseem Bansal wrote:
I started Python 4 months ago. Largely self-study with use of Python
documentation, stackoverflow and google. I was thinking what is the
minimum that I must know before I can say that I know Python?
I come from a C background which is comparatively
On 9/20/2013 4:04 PM, Jabba Laci wrote:
That last seems to me to be the biggie. Several times in the past few
years, people in this mailing list have tried to build a safe sandbox.
And each one was a big failure, for a hacker of sufficient interest.
Some of them were spectacular failures.
If
I just found Docker ( http://docs.docker.io/en/latest/faq/ ). It seems
sandboxing could be done with this easily.
Laszlo
On Fri, Sep 20, 2013 at 10:08 PM, John Gordon gor...@panix.com wrote:
In mailman.195.1379698177.18130.python-l...@python.org Jabba Laci
jabba.l...@gmail.com writes:
There
On 9/20/13 6:26 PM, Jabba Laci wrote:
I just found Docker ( http://docs.docker.io/en/latest/faq/ ). It seems
sandboxing could be done with this easily.
At edX, I wrote CodeJail (https://github.com/edx/codejail) to use
AppArmor to run Python securely.
For grading Python programs, we use a
On 09/20/2013 01:58 PM, Metallicow wrote:
Sorry about that, nokia is/was. qt was developed(IIRC) for phones.
Someone made money. And a lot of it. wx is a more or less a free
project. I don't use a phone anymore. If I had a touch screen phone
and was a developer, I still wouldn't use one. I
2013/9/20 Shyam Parimal Katti spk...@nyu.edu:
I have a list of tuples where the number of rows in the list and the number
of columns in tuples of the list will not be constant. i.e.
... i.e.
list_value = [(‘name1’, 1234, ‘address1’ ), (‘name2’, 5678, ‘address2’),
(‘name3’, 1011,
On 20/9/2013 13:28, Jabba Laci wrote:
Hi,
In our school I have an introductory Python course. I have collected a
large list of exercises for the students and I would like them to be
able to test their solutions with an online judge (
http://en.wikipedia.org/wiki/Online_judge ). At the
On 2013-09-20 19:34, Metallicow wrote:
I prefer wx over qt for these reasons.
Robin works for qt now. *Funny isn't it...*
Lying about someone's employment is not very funny. Robin does not work for Qt
or even Digia, the nearest thing to a corporate owner of Qt these days.
On Thursday, March 21, 2002 2:03:23 PM UTC-7, Marc wrote:
I have classes defined in different files and would like to inherit
from a class in file A.py for a class in file B.py but am running into
problems. I'm using Python 1.5.2 on Windows NT
Here's a specific example:
On Sat, Sep 21, 2013 at 3:40 AM, Aseem Bansal asmbans...@gmail.com wrote:
On Friday, September 20, 2013 10:04:32 PM UTC+5:30, Chris Angelico wrote:
On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal asmbans...@gmail.com wrote:
I hope that cleared some confusion about what I wanted to ask. I wanted
In article mailman.192.1379694881.18130.python-l...@python.org,
Chris Angelico ros...@gmail.com wrote:
On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal asmbans...@gmail.com wrote:
I hope that cleared some confusion about what I wanted to ask. I wanted to
gauge myself to find if I am
On Sat, Sep 21, 2013 at 7:57 AM, Sam anasdah...@gmail.com wrote:
car=int(input(Lamborghini tune-up:))
print(\nThe total amount required is , total )
OUTPUT
('\nThe total amount required is ', 3534)
As others have said, this output indicates that you're running under a
Python 2.x interpreter.
On Sat, Sep 21, 2013 at 12:31 PM, Roy Smith r...@panix.com wrote:
In article mailman.192.1379694881.18130.python-l...@python.org,
Chris Angelico ros...@gmail.com wrote:
On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal asmbans...@gmail.com wrote:
I hope that cleared some confusion about what I
On Sat, Sep 21, 2013 at 10:17 AM, Peter Cacioppi
peter.cacio...@gmail.com wrote:
It's too bad, I really lean on reload(). It appears to be incompatible with
inheritance more than one level deep.
Python's really not designed for reload of this nature. You can easily
make a nasty mess of things.
On 09/20/2013 12:30 PM, bingefel...@gmail.com wrote:
Hi folks,
I'm trying to run a program called Nicotine+ on my Mac which is running
10.8.5. Nicotine+ requires GTK2, pyGTK2 and Python to run. I believe I have
all of these installed via Macports (please see here -
On 20/9/2013 17:57, Sam wrote:
print(\nThe total amount required is , total )
('\nThe total amount required is ', 3534)
=== the problem is obviously on the last print statement that is supposed to
print the outut
Others have pointed out the version discrepancy. But I'll also ask what
Martin v. Löwis added the comment:
Antoine: in (my experience of) memory analysis, the size of a single object is
mostly irrelevant. If you need to know how much memory something consumes, you
typically want to know the memory of a set of objects. So this is the case that
really must be
Nick Coghlan added the comment:
It's the docs for XMLPullParser.close that need to be updated.
On 20 September 2013 15:59, Stefan Behnel rep...@bugs.python.org wrote:
Stefan Behnel added the comment:
I'm not entirely happy about the docs anyway. Most people just want to loop
over
Stefan Behnel added the comment:
Ah, right - I forgot that it currently only implements a part of the parser API
in ElementTree. Adding Returns the toplevel document element. behind the
current sentence would do, I guess. That will need updating once the
XMLPullParser implements support for
Balazs added the comment:
Hi, this is the platform:
Linux cloudbackupbr 3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC
2013 x86_64 x86_64 x86_64 GNU/Linux
/bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically
linked (uses shared libs), for GNU/Linux 2.6.24,
Benoît D Vages added the comment:
An other exemple if necessary (python 2.6 / 2.7)
Got same behavior than mal using his script and my files.
Seems to occur when the chunk of lines between 2 differences is repeated many
times in the file
--
nosy: +folder4ben
Added file:
Serhiy Storchaka added the comment:
There are disadvantages in the changing int to Py_ssize_t. Converting
Py_ssize_t to/from Python int is a little harder than converting C int or
long. This change (as any other change) has a risk of introduce new bugs (as
you can see on example of your
New submission from Thierry Seunevel:
Executing a script from the command prompt works if Python.exe called
explicitly, doesn't work if script name only.
Example :
python.exe script.py is ok
script.py gives the following :
Traceback (most recent call last):
File D:\soft\python\lib\site.py,
Antoine Pitrou added the comment:
I suggest just add (yet one) explicit comment.
int index; /* 0 = index = LINKCELLS */
Ok, I think a comment is good enough here.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19049
Borut Podlipnik added the comment:
Using c compiler instead of c++ compiler, solved the problem:
setenv CC cc
setenv CXX cc
setenv LD_LIBRARY_PATH /opt/solarisstudio12.3/lib:/usr/lib
# ./configure --without-gcc --with-cxx-main=CC --prefix=/opt/python
# make
# make test
However, make test
mrDoctorWho0 . added the comment:
Trying to use POST-request to https://vk.com and sometimes library raise an
error.
File library/vkApi.py, line 31, in post
response = self.Opener.open(request)
File /usr/lib/python2.7/urllib2.py, line 404, in open
response = self._open(req, data)
mrDoctorWho0 . added the comment:
oops! wrong place!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11220
___
___
Python-bugs-list mailing list
Changes by mrDoctorWho0 . mrdoctor...@gmail.com:
Removed file: http://bugs.python.org/file31824/code.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11220
___
New submission from mrDoctorWho0 .:
Trying to use POST-request to https://vk.com and sometimes library raise an
error.
File library/vkApi.py, line 31, in post
response = self.Opener.open(request)
File /usr/lib/python2.7/urllib2.py, line 404, in open
response = self._open(req, data)
Changes by Christopher Benson chris.benson...@gmail.com:
--
nosy: +ChrisBenson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6792
___
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: -mrDoctorWho0..
title: Sometimes library raises URLError when trying POST with httpS - https
sslv3 error 14077417: illegal parameter
versions: +Python 2.6, Python 3.1 -Python 2.7
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
Removed message: http://bugs.python.org/msg198139
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11220
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
Removed message: http://bugs.python.org/msg198140
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11220
___
Serhiy Storchaka added the comment:
After adding read1() and peek() what stop us from inheriting HTTPResponse from
BufferedIOBase?
I suggest split _read1_or_peek_chunked() by two parts. First part calculates n
bounded by chunk_left (it can read the next chunk size and close a connection
if
Antoine Pitrou added the comment:
If you want this, I think it should be somehow folded into existing classes
(for example BufferedIOBase). Yet another implementation of readline() isn't
really a good idea.
--
___
Python tracker
Changes by Adam Bielański abg...@gmail.com:
--
nosy: +Adam.Bielański
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18756
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
See issue19051. Even preliminary Python implementation noticeable speed up the
reading of short lines.
$ ./python -m timeit -s import lzma, io f=lzma.LZMAFile('words.xz', 'r')
for line in f: pass
Unpatched: 1.44 sec per loop
Patched: 1.06 sec per loop
Eli Bendersky added the comment:
Hi Nick,
I disagree with this change. The way the APIs are currently defined, XMLParser
and XMLPullParser are different animals. XMLParser can be considered to only
have one front in the API - feed() and close(). You feed() until the document
is done and then
Antoine Pitrou added the comment:
With C implementation it should be as fast as with BufferedReader.
So why not simply use BufferedReader?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18003
R. David Murray added the comment:
I would guess that if you did a network trace you'd find out there really was a
packet that did not arrive (a timeout). Note that detecting this is
complicated by the fact that ssl is involved. (I don't know the details, but I
remember someone saying that
Kristján Valur Jónsson added the comment:
Ok, I have refactored this a bit.
A separate new function now takes care of the reading of chunk-header and tail.
This simplifies the other functions.
I'm not sure what you mean by inheriting from the buffered class. Do we gain
anything by doing
1 - 100 of 155 matches
Mail list logo