2013/4/8 Stephen Hansen me+pyt...@ixokai.io:
On Sun, Apr 7, 2013 at 6:53 AM, Christian Tismer tis...@stackless.com
wrote:
On 07.04.13 14:10, Skip Montanaro wrote:
Where I work (a trading firm that uses Python as just one of many
different pieces of technology, not a company where Python is
with open('test-xxx', 'w') as f:
f.write('aaa\nbbb\nccc')
with open('test-xxx', 'r') as f:
print(f.readlines(1))
On Python 3.3 I get:
['aaa\n']
...while on Python 2.7:
['aaa\n', 'bbb\n', 'ccc']
Is this a bug or I'm missing something?
--- Giampaolo
2013/4/5 INADA Naoki songofaca...@gmail.com:
The builtin open() was replaced with io.open().
It's difference between file.readlines() and io.IOBase.readlines().
Should that justify this difference in behavior?
Apparently on 2.X sizehint does not have any effect as far as I can see.
---
2013/4/5 R. David Murray rdmur...@bitdance.com:
On Fri, 05 Apr 2013 20:24:43 +0200, =?ISO-8859-1?Q?Giampaolo_Rodol=E0?=
g.rod...@gmail.com wrote:
2013/4/5 INADA Naoki songofaca...@gmail.com:
The builtin open() was replaced with io.open().
It's difference between file.readlines() and
2012/10/3 Larry Hastings la...@hastings.org:
Other proposed large-scale changes:
[...]
* A standard event-loop interface (PEP by Jim Fulton pending)
Really? Was this discussed somewhere? I'd like to know more about it.
--- Giampaolo
http://code.google.com/p/pyftpdlib/
For committers on other Python projects like Buildbot, Django and
Twisted that may be reading this -- yes, the plan is to give you
guys Snakebite access/slaves down the track too. I'll start looking
into that after I've finished setting up the remaining slaves for
Python.
2012/6/27 Nick Coghlan ncogh...@gmail.com:
If someone wants to see the error details, they should use os.stat directly
rather than an existence check.
This is now tracked at http://bugs.python.org/issue15221
Regards,
--- Giampaolo
http://code.google.com/p/pyftpdlib/
I've just noticed a strange behavior when dealing with gvfs filesystems:
giampaolo@ubuntu:~$ python -c import os;
print(os.path.exists('/home/giampaolo/.gvfs'))
True
giampaolo@ubuntu:~$ sudo su
root@ubuntu:~# python -c import os;
print(os.path.exists('/home/giampaolo/.gvfs'))
False
This is due
2012/6/27 Cameron Simpson c...@zip.com.au:
On 27Jun2012 01:49, Giampaolo Rodolà g.rod...@gmail.com wrote:
| I've just noticed a strange behavior when dealing with gvfs filesystems:
|
| giampaolo@ubuntu:~$ python -c import os;
| print(os.path.exists('/home/giampaolo/.gvfs'))
| True
Il 06 marzo 2012 20:43, Jim J. Jewett jimjjew...@gmail.com ha scritto:
In http://mail.python.org/pipermail/python-dev/2012-March/117348.html
Georg Brandl ge...@python.org posted:
Python 3.3 includes a range of improvements of the 3.x series, as well as
easier
porting between 2.x and 3.x.
Il 01 marzo 2012 02:45, Raymond Hettinger
raymond.hettin...@gmail.com ha scritto:
On Feb 29, 2012, at 4:23 PM, Victor Stinner wrote:
One of my colleagues implemented recently its own frozendict class
(which the frozendict name ;-)
I write new collection classes all the time.
That doesn't
Il 28 febbraio 2012 13:19, Antoine Pitrou solip...@pitrou.net ha scritto:
Le mardi 28 février 2012 à 22:14 +1000, Nick Coghlan a écrit :
If you're using separate branches, then your Python 2 code isn't being
made forward compatible with Python 3. Yes, it avoids making your
Python 2 code
Il 28 febbraio 2012 15:20, Ezio Melotti ezio.melo...@gmail.com ha scritto:
On 28/02/2012 14.19, Antoine Pitrou wrote:
Le mardi 28 février 2012 à 22:14 +1000, Nick Coghlan a écrit :
If you're using separate branches, then your Python 2 code isn't being
made forward compatible with Python 3.
Il 25 febbraio 2012 21:23, Armin Ronacher
armin.ronac...@active-4.com ha scritto:
Hi,
I just uploaded PEP 414 which proposes am optional 'u' prefix for string
literals for Python 3.
You can read the PEP online: http://www.python.org/dev/peps/pep-0414/
This is a followup to the discussion
Il 15 dicembre 2011 09:58, anatoly techtonik techto...@gmail.com ha scritto:
1. It is not a proposal, but a defect (well, you may argue, but please,
don't)
You can't copy/paste multiline scripts into system shell either,
unless you append \.
It's likely that similar problems exists in a lot of
2011/11/21 Terry Reedy tjre...@udel.edu:
I strongly recommend that where it makes a difference, the pypy python3
project target 3.3. In particular, don't reproduce the buggy narrow-build
behavior of 3.2 and before (perhaps pypy avoids this already). Do include
the new unicode capi in cpyext. I
Sorry, thanks (fixed).
--- Giampaolo
http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/
2011/11/22 Antoine Pitrou solip...@pitrou.net:
On Tue, 22 Nov 2011 13:38:03 +0100
giampaolo.rodola python-check...@python.org wrote:
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
Nope, the commit involving sched was the previous one.
This one was just an unrelated fix.
--- Giampaolo
http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/
2011/11/22 Nadeem Vawda nadeem.va...@gmail.com:
Did you mean to also modify sched.py in this changeset?
You're right. I committed sched.py by accident.
I'm going to revert it.
--- Giampaolo
http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/
2011/11/22 Giampaolo Rodolà g.rod...@gmail.com:
Nope, the commit involving sched was the previous one.
This one was just an unrelated fix
2011/11/22 Amaury Forgeot d'Arc amaur...@gmail.com:
Hi,
2011/11/22 Giampaolo Rodolà g.rod...@gmail.com
Sorry, thanks (fixed).
You also modified Lib/sched.py in the same commit.
Was it intended? If not, please revert it.
--
Amaury Forgeot d'Arc
You're right. I committed sched.py
2011/10/12 Antoine Pitrou solip...@pitrou.net:
On Tue, 11 Oct 2011 18:22:43 -0400
Barry Warsaw ba...@python.org wrote:
As the BDFOP for PEP 3151, I hereby accept it for inclusion into Python 3.3.
Congratulations to Antoine for producing a great PEP that has broad
acceptance
in the Python
Thanks everybody for your feedback.
I created a gcode project here:
http://code.google.com/p/pycompat/
2011/10/8 Antoine Pitrou solip...@pitrou.net:
There's also some stuff there that is coded in C, or that will rely on
some functionality of the core interpreter that is not easily
emulated on
Hello everybody,
at work we're using different versions of python, from 2.4 to 2.7.
Because of the differences between the various versions in terms of
features we have a util.pycompat module which basically is a copy
paste of different features which were added to stdlib in every new
major
2011/4/30 anatoly techtonik techto...@gmail.com:
On Tue, Mar 29, 2011 at 4:37 AM, R. David Murray rdmur...@bitdance.com
wrote:
The hardest part is debugging the TAL when you make a mistake, but
even that isn't a whole lot worse than any other templating language.
How much in % is it worse
2011/4/27 Vinay Sajip vinay_sa...@yahoo.co.uk:
I've been recently trying to improve the test coverage for the logging
package,
and have got to a not unreasonable point:
logging/__init__.py 99% (96%)
logging/config.py 89% (85%)
logging/handlers.py 60% (54%)
where the figures in
No we haven't.
I plan to make a unique commit for offset=None on Linux and a serie of
other tests I have implemented for py-sendfile module [1].
In details test for small file, empty file and (most important) large file:
:-)
2011/4/14 Antoine Pitrou solip...@pitrou.net
On Thu, 14 Apr 2011 08:15:10 -0500
Benjamin Peterson benja...@python.org wrote:
2011/4/14 Ricardo Kirkner ricardokirk...@gmail.com:
Hi all,
I recently stumbled upon an issue with a class in the mro chain not
calling super,
Actually, why not put up a web page of upcoming changes somewhere, that
lists major decisions with user impact that were taken on python-dev?
I think what's new serves this purpose properly.
Usually, every time I commit a new feature, I update the what's new
file as well.
In fact we already
Thanks.
I'll try to remember ACKS and NEWS in the future. =)
Fixed in r88744 and r88745.
--- Giampaolo
http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/
2011/3/4 Nick Coghlan ncogh...@gmail.com:
On Fri, Mar 4, 2011 at 10:33 PM, Nick Coghlan ncogh...@gmail.com wrote:
On Fri,
Mmmm probably. smtplib patches aren't too big/many though.
Should I revert the change?
2011/2/23 Georg Brandl g.bra...@gmx.net:
You're sure this will not cause tedious conflicts with backports?
Georg
On 22.02.2011 16:56, giampaolo.rodola wrote:
Author: giampaolo.rodola
Date: Tue Feb 22
Done for Python 3.1 and 2.7.
2011/2/24 Georg Brandl g.bra...@gmx.net:
On 24.02.2011 20:51, Giampaolo Rodolà wrote:
Mmmm probably. smtplib patches aren't too big/many though.
Should I revert the change?
It's probably fine if you do the same change to the maintenance
branches as well.
Georg
+1, I often use that link as well.
2011/2/23 Antoine Pitrou solip...@pitrou.net:
Hello,
I think it was a slight mistake to remove the link to the issue tracker
from the sidebar in the core development section. Dave Beazley just
complained about it
I'll do.
2011/2/23 Victor Stinner victor.stin...@haypocalc.com:
You should maybe backport this fix to Python 3.2.
Le mardi 22 février 2011 à 20:24 +0100, giampaolo.rodola a écrit :
Author: giampaolo.rodola
Date: Tue Feb 22 20:24:33 2011
New Revision: 88505
Log:
In FTP.close() method,
2011/2/13 Antoine Pitrou solip...@pitrou.net:
It would then be subject to python-dev development policy rather than
twisted dev policy (which is even stricter!). Would the twisted devs
*really* want that? We could use the same processes we have for
externally maintained libraries, but they
I'm sorry, I'm going to revert those checkins.
They are very minor changes which I'm sure don't break anything, but I
understand your complain.
--- Giampaolo
http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/
2011/2/11 Nick Coghlan ncogh...@gmail.com:
On Fri, Feb 11, 2011 at
Yeah, the original API design (which is very inflexible) and the lack
of maintenance for many years is at the base of asyncore problems.
I still think it worths some love as a stdlib module, though.
For 3.3 I have in mind to revamp asyncore/asynchat a bit by
introducing SSL support and finally add
I've recently implemented this functionality in psutil:
http://code.google.com/p/psutil/issues/detail?id=147
If desired, I can contribute a patch for the os module, altough being
such functions Linux-only, I'm not sure os module is the right place
for them to land.
Also, I've been thinking about
A strong +1.
Projects such as Twisted would certainly benefit from such an addiction.
I'm not sure the os module is the right place for sendfile() to land though.
Implementation between different platforms tends to vary quite a bit.
A good resource is the samba source code which contains an
Module split:
try to get all issues for 'os' module
try to subscribe to all commits for 'CGIHTTPServer'
+1
I've been thinking about such a thing as well and I think it would be useful.
Every now and then I go to the bug tracker to see whether the modules
I usually maintain (mainly ftplib,
+1 on everything.
2010/11/11 Alexander Belopolsky alexander.belopol...@gmail.com:
2010/11/11 Michael Foord fuzzy...@voidspace.org.uk:
..
You mean runtime automation, e.g. creating __all__ on the fly omitting
underscored names?
Writing code to generate a __all__ that duplicates the default
Hi,
sorry in advance if this sounds a little indiscreet, but I think it
would be great if we'd have SSH access against some of the computers
used to host buildbots.
Personally, I would find this particularly useful for OSX since it's
one of the few OSes I can't manage to virtualize and which often
2010/10/29 Barry Warsaw ba...@python.org:
I had a brief conversation with Michael Foord yesterday and he's writing code
that works in 2.4 through 3.2, so for *some* code bases, it's tricky and ugly,
but possible.
If the application does not involve a lot of I/O, 2.4 - 3.2 support
by using a
You should file a new issue on the bug tracker but unless you have a
patch to propose it's unlikely that someone else is gonna implement
it.
Regards
--- Giampaolo
http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/
2010/10/19 Jesus Cea j...@jcea.es:
-BEGIN PGP SIGNED
2010/10/8 Eric Smith e...@trueblade.com:
On 10/8/10 10:26 AM, Barry Warsaw wrote:
In any case, these could be a simple shell script wrapping 'python -m
setup'.
It could even take a --use-python-version option to select the pythonX.Y
it
used, without having to encode the Python version number
/psutil/
2010/10/12 Eric Smith e...@trueblade.com:
On 10/11/2010 5:17 PM, Giampaolo Rodolà wrote:
2010/10/8 Eric Smithe...@trueblade.com:
On 10/8/10 10:26 AM, Barry Warsaw wrote:
In any case, these could be a simple shell script wrapping 'python -m
setup'.
It could even take a --use-python
2010/10/12 Antoine Pitrou solip...@pitrou.net:
On Tue, 12 Oct 2010 01:11:24 +0200
Giampaolo Rodolà g.rod...@gmail.com wrote:
Wouldn't be kinda weird that one can open the command prompt and run
pysetup but not python on Windows?
If you add C:\PythonXY to your path, you can run python.
I
Thanks for this. It looks very nice.
2010/10/2 Martin v. Löwis mar...@v.loewis.de:
Following up to the recent thread, I have now integrated Rietveld
into Roundup. This is a rough draft still, and highly experimental.
Please try it out, but expect that it may be necessary to discard
all data
Of course it would be nice to get access to FD stack so that a
full filename can also be retrieved in this case.
On Linux, this can be easily achieved by using /proc.
You can take a look at how this is done in the current development
version of psutil:
://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/
2010/9/3 Terry Reedy tjre...@udel.edu:
On 9/3/2010 6:09 AM, Giampaolo Rodolà wrote:
Of course it would be nice to get access to FD stack so that a
full filename can also be retrieved in this case.
On Linux, this can be easily achieved
Sorry, I didn't get how the context-manager actually worked.
Fixed in r84356.
2010/8/29 Michael Foord fuzzy...@voidspace.org.uk:
On 30/08/2010 00:23, Antoine Pitrou wrote:
On Sun, 29 Aug 2010 22:56:56 +0200 (CEST)
giampaolo.rodolapython-check...@python.org wrote:
+ with
Provided a patch on the tracker:
http://bugs.python.org/issue9285
Further comments can be submitted there, if any.
--- Giampaolo
http://code.google.com/p/pyftpdlib
http://code.google.com/p/psutil
2010/7/15 Giampaolo Rodolà g.rod...@gmail.com:
2010/7/15 Brian Curtin brian.cur...@gmail.com
Today I was looking for a quick and dirty way to profile a method of a class.
I was thinking that cProfile module had a decorator for this but I was
wrong so I decided to write one based on hotshot.
Would it be worth for inclusion?
#!/usr/bin/env python
import hotshot
import hotshot.stats
2010/7/15 Brian Curtin brian.cur...@gmail.com:
On Thu, Jul 15, 2010 at 13:45, Giampaolo Rodolà g.rod...@gmail.com wrote:
Today I was looking for a quick and dirty way to profile a method of a
class.
I was thinking that cProfile module had a decorator for this but I was
wrong so I decided
One of the main problems with IDLE is the lack of tabs for editing
multiple files within the same window.
Having that alone would be a great improvement.
--- Giampaolo
http://code.google.com/p/pyftpdlib
http://code.google.com/p/psutil
___
Python-Dev
2010/7/14 Guilherme Polo ggp...@gmail.com:
2010/7/14 Terry Reedy tjre...@udel.edu:
On 7/14/2010 2:35 AM, Giampaolo Rodolà wrote:
One of the main problems with IDLE is the lack of tabs for editing
multiple files within the same window.
Having that alone would be a great improvement.
Yes
http://docs.python.org/dev/whatsnew/2.7.html#ttk-themed-widgets-for-tk
Sorry, I realized just now that ttk is already included in Python 2.7 and 3.2.
2010/7/14 Giampaolo Rodolà g.rod...@gmail.com:
2010/7/14 Guilherme Polo ggp...@gmail.com:
2010/7/14 Terry Reedy tjre...@udel.edu:
On 7/14/2010 2
2010/6/20 Steven D'Aprano st...@pearwood.info:
Python 2.x introduced Unicode strings. Python 3.x merely makes them the
default.
Merely? To me this looks as the main reason why a lot of projects
haven't been ported to Python 3 yet.
I attempted to port pyftpdlib to python 3 several times and the
2010/6/18 Bill Janssen jans...@parc.com:
Giampaolo Rodolà g.rod...@gmail.com wrote:
2010/6/17 Bill Janssen jans...@parc.com:
There's a related meta-issue having to do with antique protocols.
Can I know what meta-issue are you talking about exactly?
Giampaolo, I believe that you and I
2010/6/17 Bill Janssen jans...@parc.com:
There's a related meta-issue having to do with antique protocols.
Can I know what meta-issue are you talking about exactly?
FTP, for instance, was designed when the Internet had only 19 nodes connected
together with custom-built refrigerator-sized
2010/5/20 John Arbash Meinel john.arbash.mei...@gmail.com:
Giampaolo Rodolà wrote:
class A:
... def echo(self, x):
... return x
...
a = A()
a.echo()
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: echo() takes exactly 2 arguments (1 given
2010/5/20 Yaniv Aknin ya...@aknin.name:
Hi,
I wanted to let python-dev know about a series of articles about CPython's
internals I'm publishing under the collective title Guido's Python*
(http://tech.blog.aknin.name/tag/guidos-python/). Three articles already
were published already, more are
class A:
... def echo(self, x):
... return x
...
a = A()
a.echo()
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: echo() takes exactly 2 arguments (1 given)
I bet my last 2 cents this has already been raised in past but I want
to give it a try and
I'm already subscribed as g.rod...@gmail.com and I'm able to receive
messages from the list.
2010/4/20 Brett Cannon br...@python.org:
If you are a committer and are NOT subscribed to the python-committers
mailing list (I believe this at least includes Giampaolo, JP, and Brian),
then please
63 matches
Mail list logo