Hi everyone
we'll hold the next `pylint bugs day`_ on april 16th 2010 (friday). If some of
you want to come and work with us in our `Paris office`_, you'll be much
welcome.
Else you can still join us on jabber / irc:
* jabber: chat room pub...@jabber.logilab.org
* irc: #public on
En Mon, 22 Mar 2010 15:20:39 -0300, Pascal Chambon
chambon.pas...@wanadoo.fr escribió:
Allright, here is more concretely the problem :
ERROR:root:An error
Traceback (most recent call last):
File C:/Users/Pakal/Desktop/aaa.py, line 7, in c
return d()
File C:/Users/Pakal/Desktop/aaa.py,
On Mon, 22 Mar 2010 22:05:40 -0700, Paul Rubin wrote:
Antoine Pitrou solip...@pitrou.net writes:
Orders of magnitude worse, in any case, sounds very exaggerated.
The worst case can lose orders of magnitude if a lot of values hash to
the same bucket.
Well, perhaps one order of magnitude.
En Mon, 22 Mar 2010 18:19:49 -0300, Krister Svanlund
krister.svanl...@gmail.com escribió:
Hi, I've recently begun experimenting with embedding python and i got
a small problem.
The following line here is the ugly-hack I had to do to make it work,
nothing else I know of makes it possible to
En Mon, 22 Mar 2010 21:19:04 -0300, Vlastimil Brom
vlastimil.b...@gmail.com escribió:
I guess, I am stuck here, as I use the precompiled version supplied in
the windows installer and can't compile python from source to obtain
the needed unicodedata.pyd.
You can recompile Python from source,
On Mar 20, 8:36 am, Peter Otten __pete...@web.de wrote:
Jean-Michel Pichavant wrote:
You are still accessing the private attribute of the modulelogging.
Just reading it is a significantly more conservative approach than setting
it to an object with an unusual notion of equality ;)
My
My apologies; I left out the heading on the last of the four
structures in the benchmark results. Here are those results again with
the missing heading (Stringy) inserted:
Regards,
Zooko
- Hide quoted text -
On Sun, Mar 21, 2010 at 11:09 PM, Zooko O'Whielacronx zoo...@gmail.com wrote:
impl:
Steven D'Aprano ste...@remove.this.cybersource.com.au writes:
Well, perhaps one order of magnitude.
for i in xrange(100):
... n = 32*i+1
... assert hash(2**n) == hash(2)
Try with much more than 100 items (you might want to construct the
entries a little more intricately to avoid such
Steven D'Aprano wrote:
On Mon, 22 Mar 2010 22:05:40 -0700, Paul Rubin wrote:
Antoine Pitrou solip...@pitrou.net writes:
Orders of magnitude worse, in any case, sounds very exaggerated.
The worst case can lose orders of magnitude if a lot of values hash to
the same bucket.
Well,
John Posner a écrit :
On 3/22/2010 11:44 AM, Bruno Desthuilliers wrote:
snip
Another (better IMHO) solution is to use a plain property, and store the
computed value as an implementation attribute :
@property
def foo(self):
cached = self.__dict__.get('_foo_cache')
if cached is None:
On Tue, Mar 23, 2010 at 8:07 AM, Gabriel Genellina
gagsl-...@yahoo.com.ar wrote:
En Mon, 22 Mar 2010 18:19:49 -0300, Krister Svanlund
krister.svanl...@gmail.com escribió:
Hi, I've recently begun experimenting with embedding python and i got
a small problem.
The following line here is the
Paul Rubin, 23.03.2010 06:05:
Antoine Pitrou writes:
Orders of magnitude worse, in any case, sounds very exaggerated.
The worst case can lose orders of magnitude if a lot of values hash
to the same bucket.
While this is theoretically true, and it's good to be aware of this
possibility,
Stefan Behnel stefan...@behnel.de writes:
While this is theoretically true, and it's good to be aware of this
possibility, common string hash functions make it so rare in practice
that a hash table will almost always outperform a trie for exact
lookups. If it happens, it will either show up
I have a text and would like to split the text into smaller parts,
say into 100 characters each. But if the 100th character is not a
blank ( but word) this must be less than 100 character.That means the
word itself can not be split.
These smaller parts must contains only whole( not split) words.
On 23/03/2010 10:48, Johny wrote:
I have a text and would like to split the text into smaller parts,
say into 100 characters each. But if the 100th character is not a
blank ( but word) this must be less than 100 character.That means the
word itself can not be split.
These smaller parts must
This program simulates some colored balls moving around, changing color
according to certain rules. I think the most interesting is perhaps to not look
at this code but just try to run it and figure out the color changing rules from
observing the effect (extra mystery: why I wrote this). Sort
kj wrote:
Arguably, Knuth's premature optimization is the root of all evil
applies even to readability (e.g. what's the point of making code
optimally readable if one is going to change it completely next
day?)
The guy who will change it will have to read it. The only waste would be
if the
On Monday 22 March 2010 18:38:07 Alexandre Fayolle wrote:
.. _pylint bugs day: https://www.logilab.net/elo/blogentry/18781
Correct link is : http://www.logilab.org/blogentry/18781
Sorry for the inconvenience.
--
Alexandre Fayolle LOGILAB, Paris (France)
On 5 mar, 13:19, lbolla lbo...@gmail.com wrote:
On Mar 5, 10:01 am, BlueBird p...@freehackers.org wrote:
On 3 mar, 20:35, Stefan Behnel stefan...@behnel.de wrote:
BlueBird, 03.03.2010 17:32:
I am looking for aSOAP1.2 python client. To my surprise, it seems
that this does not
jobs in usa for foreigners jobs in usa hotels jobs in usa for uk
citizens usa jobs usa jobs in afghanistan usa jobs application
manager usa jobs for non us citizens on http://jobsinusa-net.blogspot.com/
jobs in usa for foreigners jobs in usa hotels jobs in usa for uk
citizens usa jobs usa jobs in
2010/3/23 Gabriel Genellina gagsl-...@yahoo.com.ar:
En Mon, 22 Mar 2010 21:19:04 -0300, Vlastimil Brom
vlastimil.b...@gmail.com escribió:
I guess, I am stuck here, as I use the precompiled version supplied in
the windows installer and can't compile python from source to obtain
the needed
Thank you everyone for all the work that went into this update, but there may be
a small problem with the Windows x86 installer.
I've built and used python 2.6.5 on linux without any apparent problems, but the
Windows x86 binary installer stops after compiling a few python source files.
I've
On Mar 23, 9:22 am, Tim Roberts t...@probo.com wrote:
Omer Ihsan omrih...@gmail.com wrote:
i have installed pyusb now and run the sample usbenum.pyi have 3
usb ports on my PC but the results show 6 outputs to
dev.filename..they are numbers like 001 or 005 etc and they
changed when i
I just downloaded the installer and tested it on my win xp machine. The
installer worked fine.
--
Allan Davis
Member of NetBeans Dream Team
http://wiki.netbeans.org/NetBeansDreamTeam
Lead Developer, nbPython
Le Tue, 23 Mar 2010 02:57:56 -0700, Paul Rubin a écrit :
It is unlikely to happen by accident. You might care that it can happen
on purpose. See: http://www.cs.rice.edu/~scrosby/hash/ that I cited in
another post. The article shows some sample attacks on Python cgi's.
Certainly
I have been learning Python, and it is amazing I am using the
tutorial that comes with the official distribution.
At the end my goal is to develop applied mathematic in engineering
applications to be published on the Web, specially on app. oriented to
simulations and control systems, I was
Hi all, but mainly Tim Golden:
Tim, I am using your wonderful message loop for keyboard input, the
one on your site that you pointed me to a few months ago. It has been
working perfectly as long as I had only one dictionary of keys mapping
to one dictionary of functions, but now I want two of
On 23/03/2010 16:55, Jose Manuel wrote:
I have been learning Python, and it is amazing I am using the
tutorial that comes with the official distribution.
At the end my goal is to develop applied mathematic in engineering
applications to be published on the Web, specially on app. oriented
On 23/03/2010 17:01, Alex Hall wrote:
Hi all, but mainly Tim Golden:
Tim, I am using your wonderful message loop for keyboard input, the
one on your site that you pointed me to a few months ago. It has been
working perfectly as long as I had only one dictionary of keys mapping
to one dictionary
On Mar 23, 6:12 am, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Mon, 22 Mar 2010 15:20:39 -0300, Pascal Chambon
chambon.pas...@wanadoo.fr escribi�:
Allright, here is more concretely the problem :
ERROR:root:An error
Traceback (most recent call last):
File
Sorry about that, it is fixed now.
On 3/23/10, Tim Golden m...@timgolden.me.uk wrote:
On 23/03/2010 17:01, Alex Hall wrote:
Hi all, but mainly Tim Golden:
Tim, I am using your wonderful message loop for keyboard input, the
one on your site that you pointed me to a few months ago. It has been
Johny wrote:
I have a text and would like to split the text into smaller parts,
say into 100 characters each. But if the 100th character is not a
blank ( but word) this must be less than 100 character.That means the
word itself can not be split.
These smaller parts must contains only whole(
I know that unicode is the way to go in Python 3.1, but it is getting
in my way right now in my Unix scripts. How do I write a chr(253) to a
file?
#nntst2.py
import sys,codecs
mychar=chr(253)
print(sys.stdout.encoding)
print(mychar)
./nntst2.py
ISO8859-1
ý
./nntst2.py nnout2
Traceback (most
Alex Hall wrote:
Hi all, but mainly Tim Golden:
Tim, I am using your wonderful message loop for keyboard input, the
one on your site that you pointed me to a few months ago. It has been
working perfectly as long as I had only one dictionary of keys mapping
to one dictionary of functions, but now
On Tuesday 23 March 2010 10:33:33 nn wrote:
I know that unicode is the way to go in Python 3.1, but it is getting
in my way right now in my Unix scripts. How do I write a chr(253) to a
file?
#nntst2.py
import sys,codecs
mychar=chr(253)
print(sys.stdout.encoding)
print(mychar)
The
On 3/23/10, MRAB pyt...@mrabarnett.plus.com wrote:
Alex Hall wrote:
Hi all, but mainly Tim Golden:
Tim, I am using your wonderful message loop for keyboard input, the
one on your site that you pointed me to a few months ago. It has been
working perfectly as long as I had only one dictionary
Rami Chowdhury wrote:
On Tuesday 23 March 2010 10:33:33 nn wrote:
I know that unicode is the way to go in Python 3.1, but it is getting
in my way right now in my Unix scripts. How do I write a chr(253) to a
file?
#nntst2.py
import sys,codecs
mychar=chr(253)
nn wrote:
I know that unicode is the way to go in Python 3.1, but it is getting
in my way right now in my Unix scripts. How do I write a chr(253) to a
file?
Python3 make a distinction between bytes and string(i.e., unicode)
types, and you are still thinking in the Python2 mode that does
Gary Herron wrote:
nn wrote:
I know that unicode is the way to go in Python 3.1, but it is getting
in my way right now in my Unix scripts. How do I write a chr(253) to a
file?
Python3 make a distinction between bytes and string(i.e., unicode)
types, and you are still thinking in the
DRUNK MOM AND BOY... HOT CLIP.
http://123sex4u.blogspot.com/
http://123sex4u.blogspot.com/
http://123sex4u.blogspot.com/
http://123sex4u.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
Alex Hall wrote:
On 3/23/10, MRAB pyt...@mrabarnett.plus.com wrote:
[snip]
Incidentally, you might want to change:
if(not action_to_take):
to:
if action_to_take is None:
in case any of the values happen to be 0 (if not now, then possibly at
some time in the future).
Sorry, could
Follow what god revealed to the Almighty
Peace be upon you
Those who wish to familiarized themselves after you click on the link
please wait a little until it opens the link
Miracles of the devil and beat of the revolution of religious reform
nn, 23.03.2010 19:46:
Actually what I want is to write a particular byte to standard output,
and I want this to work regardless of where that output gets sent to.
I am aware that I could do
open('nnout','w',encoding='latin1').write(mychar) but I am porting a
python2 program and don't want to
On Tue, Mar 23, 2010 at 1:07 PM, Tim Golden m...@timgolden.me.uk wrote:
On 23/03/2010 16:55, Jose Manuel wrote:
I have been learning Python, and it is amazing I am using the
tutorial that comes with the official distribution.
At the end my goal is to develop applied mathematic in
On 23/03/2010 20:04, geremy condra wrote:
On Tue, Mar 23, 2010 at 1:07 PM, Tim Goldenm...@timgolden.me.uk wrote:
On 23/03/2010 16:55, Jose Manuel wrote:
Would it be easy to integrate Python in Web pages with HTML? I have
read many info on Internet saying it is, and I hope so
You
Stefan Behnel wrote:
nn, 23.03.2010 19:46:
Actually what I want is to write a particular byte to standard output,
and I want this to work regardless of where that output gets sent to.
I am aware that I could do
open('nnout','w',encoding='latin1').write(mychar) but I am porting a
Jose Manuel wrote:
Would it be easy to integrate Python in Web pages with HTML? I have
read many info on Internet saying it is, and I hope so
Django is, among several other similar projects and frameworks, very
popular for generating web apps in Python. I have only used Django and
it
Gabriel Genellina a écrit :
En Mon, 22 Mar 2010 15:20:39 -0300, Pascal Chambon
chambon.pas...@wanadoo.fr escribió:
Allright, here is more concretely the problem :
ERROR:root:An error
Traceback (most recent call last):
File C:/Users/Pakal/Desktop/aaa.py, line 7, in c
return d()
File
On Mar 23, 3:12 pm, Tim Golden m...@timgolden.me.uk wrote:
I can't say I thought *very* hard before sending that but...
The OP asked for integrate Python in Web Pages with HTML
which I understood -- perhaps wrongly -- to mean: run Python
in the browser. The only two ways I'm aware of doing
There is a project PyWhip (renamed as PyKata) which aims for the same
purpose. Google AppEmgine + Django does the trick for that. May be you can
take an inspiration or two from there especially because all code is open
to/for you.
~l0nwlf
On Wed, Mar 24, 2010 at 2:54 AM, Patrick Maupin
I'm looking for a pythonic way to trim and keep leading
whitespace in a string.
Use case: I have a bunch of text strings with various amounts of
leading and trailing whitespace (spaces and tabs). I want to grab
the leading and trailing whitespace, save it, surround the
remaining text with html
On Tue, Mar 23, 2010 at 4:50 PM, Shashwat Anand
anand.shash...@gmail.com wrote:
There is a project PyWhip (renamed as PyKata) which aims for the same
purpose. Google AppEmgine + Django does the trick for that. May be you can
take an inspiration or two from there especially because all code is
I am trying to obtain data on a https site, but everytime I try to
access the data that is behind the logon screen, I get the logon page
instead. I was able to successfully do a test problem:
import sys, urllib2, urllib
zipcode = 48103
url =
On 3/23/2010 3:09 PM pyt...@bdurham.com said...
I'm looking for a pythonic way to trim and keep leading
whitespace in a string.
Use case: I have a bunch of text strings with various amounts of
leading and trailing whitespace (spaces and tabs). I want to grab
the leading and trailing whitespace,
As far as I know, I don't think there is anything that strips it and returns
the material that was stripped. Regex's would be your best bet.
Daniel
On Tue, Mar 23, 2010 at 6:09 PM, pyt...@bdurham.com wrote:
I'm looking for a pythonic way to trim and keep leading whitespace in a
string.
Use
nn wrote:
Stefan Behnel wrote:
nn, 23.03.2010 19:46:
Actually what I want is to write a particular byte to standard output,
and I want this to work regardless of where that output gets sent to.
I am aware that I could do
open('nnout','w',encoding='latin1').write(mychar) but I am porting a
On Mar 23, 8:49 pm, Pascal Chambon chambon.pas...@wanadoo.fr wrote:
Should I open an issue for this evolution of exceptiuon handling, or
should we content ourselves of this hacking of frame stck ?
Possibly worth raising an issue (not logging-related), but perhaps
it's worth seeing if this has
Emile,
target = 'spam and eggs '
stripped = target.strip()
replaced = target.replace(stripped,html%s/html % stripped)
Brilliant! That's just the type of clever solution I was looking for.
Thank you!
Malcolm
- Original message -
From: Emile van Sebille em...@fenx.com
To:
regex is not goto that you should always avoid using it. It have its own
use-case, here regex solution is intuitive although @emile have done this
for you via string manpulation.
On Wed, Mar 24, 2010 at 4:09 AM, Daniel Chiquito
daniel.chiqu...@gmail.comwrote:
As far as I know, I don't think
pyt...@bdurham.com wrote:
I'm looking for a pythonic way to trim and keep leading
whitespace in a string.
Use case: I have a bunch of text strings with various amounts of
leading and trailing whitespace (spaces and tabs). I want to grab
the leading and trailing whitespace, save it, surround the
On 03/23/10 23:38, Tim Chase wrote:
cut
Just in case you're okay with a regexp solution, you can use
s = \t\tabc def
import re
r = re.compile(r'^(\s*)(.*?)(\s*)$')
m = re.match(s)
m.groups()
('\t\t', 'abc def', ' ')
leading, text, trailing = m.groups()
cut
Ahhh regex, the hammer,
I have made a Python App(really script) that will check a stocks
current values from a website save that data to a SQLite 3 database.
I am looking for any suggestions criticisms on what I should do
better or anything at all but mainly in these areas:
[QUOTE]
- Correct Python Layout of code
-
On Tue, Mar 23, 2010 at 5:05 PM, Jimbo nill...@yahoo.com wrote:
I have made a Python App(really script) that will check a stocks
current values from a website save that data to a SQLite 3 database.
I am looking for any suggestions criticisms on what I should do
better or anything at all but
Jimbo wrote:
I have made a Python App(really script) that will check a stocks
current values from a website save that data to a SQLite 3 database.
I am looking for any suggestions criticisms on what I should do
better or anything at all but mainly in these areas:
[QUOTE]
- Correct Python
Hello,everybody,the good shoping place,the new year approaching, click
in. Let's facelift bar!
= HTTP://loveshopping.us
Air jordan(1-24)shoes $33
UGG BOOT $50
Nike shox(R4,NZ,OZ,TL1,TL2,TL3) $35
Handbags(Coach lv fendi dg) $35
Tshirts (Polo ,ed hardy,lacoste) $16
Jean(True
Antoine Pitrou solip...@pitrou.net writes:
See: http://www.cs.rice.edu/~scrosby/hash/ ...
Certainly interesting in a purely academic point of view, but in real
life if you want to cause a denial of service by overwhelming a server,
there are far more obvious options than trying to guess the
Hello All,
I was hoping I could get some help with this issue with getting Cython
to work. Earlier I had an issue that said unable to find
vcvarsall.bat and it turns out there is an active bug report that
covers that issue (I have a 64 bit windows system). I still hadn't
installed 3.1.2, so I did
On Tue, 23 Mar 2010 11:46:33 -0700, nn wrote:
Actually what I want is to write a particular byte to standard output,
and I want this to work regardless of where that output gets sent to.
What do you mean work?
Do you mean display a particular glyph or something else?
In bash:
$ echo -e
Gerhard Häring g...@ghaering.de added the comment:
I said qmark vs numeric. I. e. vs:
execute(UPDATE authors set name = :1, email = :2, comment = :3 WHERE id = :4,
(form.name, form.email, form.text, form.id))
The sqlite3 module will always support both paramstyles qmark and named, simply
Ned Deily n...@acm.org added the comment:
Also this failure on py3k:
==
ERROR: test_normalize (test.test_pep277.UnicodeFileTests)
--
Traceback (most recent
Nick nick_bo...@fastmail.fm added the comment:
Martin, the patch is for libffi included in ctypes 1.0.2. This is python 2.4
(required for plone/zope) so python 2.5/2.6 etc is not a possibility.
ctypes 1.0.2 compiles with this patch but then core dumps anyway during tests
so false hope.
It
Florent Xicluna florent.xicl...@gmail.com added the comment:
This patch should fix it...
HFS Plus uses a variant of Normal Form D in which U+2000 through U+2FFF,
U+F900 through U+FAFF, and U+2F800 through U+2FAFF are not decomposed.
rant
I believed there was only one Unicode...
But obviously
New submission from Senthil Kumaran orsent...@gmail.com:
I was looking for some option in optparse module which will allow me to add
custom help text after the generated help. Realized that OptionParser class has
a keyword argument 'epilog' for the same purpose.
But this is not been explained
Senthil Kumaran orsent...@gmail.com added the comment:
Fixed in revision 79329.
--
resolution: - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8209
___
Marc-Andre Lemburg m...@egenix.com added the comment:
Florent Xicluna wrote:
Florent Xicluna florent.xicl...@gmail.com added the comment:
This patch should fix it...
HFS Plus uses a variant of Normal Form D in which U+2000 through U+2FFF,
U+F900 through U+FAFF, and U+2F800 through
Ned Deily n...@acm.org added the comment:
Actually, the file system in question is what Apple calls a HFSX case-sensitive
(see http://developer.apple.com/mac/library/technotes/tn/tn1150.html#HFSX). On
a typical OS X system, you could encounter any combination of HFS+
case-insensitive, HFSX
Senthil Kumaran orsent...@gmail.com added the comment:
merged into release26-maint branch - 79331
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8209
___
Florent Xicluna florent.xicl...@gmail.com added the comment:
Could you provide a reference link for this quote ?
I put the link in the patch:
http://developer.apple.com/mac/library/qa/qa2001/qa1173.html
--
___
Python tracker rep...@bugs.python.org
Ned Deily n...@acm.org added the comment:
With the patch for trunk, the test no longer fails on the given file system.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8207
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Apparently this was never backported to 3.1.
done: r79335 (py3k).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6352
___
Florent Xicluna florent.xicl...@gmail.com added the comment:
Fixed with r79297
--
priority: - normal
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7880
___
___
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8133
___
___
Florent Xicluna florent.xicl...@gmail.com added the comment:
Fixed with r79310.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8205
R. David Murray rdmur...@bitdance.com added the comment:
Senthil documented epilog in issue 8209.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8158
___
R. David Murray rdmur...@bitdance.com added the comment:
See also issue 8158.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8209
___
New submission from Attila Nagy nagy.att...@yahoo.com:
The check-in http://svn.python.org/view?view=revrevision=78820 causes problems
on Solaris (SXCE 125, ksh, Studio 12).
configure output:
[...]
checking for --with-pydebug... no
./configure: test: unknown operator ==
test on Solaris does
New submission from STINNER Victor victor.stin...@haypocalc.com:
configure.in uses AC_PROG_CC, extract of the autoconf manual:
(http://www.delorie.com/gnu/docs/autoconf/autoconf_64.html)
If using the GNU C compiler, set shell variable GCC to `yes'. If output
variable CFLAGS was not already
Stefan Praszalowicz deubeul...@gmail.com added the comment:
I just got surprised by this, and I agree that updating the doc would be nice,
because as of now, it states quite explicitly that the Queue and JoinableQueue
types are multi-producer, multi-consumer FIFO queues.
--
nosy:
New submission from Kristján Valur Jónsson krist...@ccpgames.com:
The tp_dealloc of a type can chose to resurrect an object. the
subtype_dealloc() in typeobject.c does this when it calls the tp_del() member
and it has increased the refcount.
The problem is, that if you subclass a custom C
Changes by Brian Curtin cur...@acm.org:
--
nosy: +benjamin.peterson
priority: - normal
stage: - needs patch
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8210
___
Mark Dickinson dicki...@gmail.com added the comment:
Another update, partly to address comments raised by Guido on Rietveld. I'll
upload these changes to Rietveld later today.
- rename sys._hash_info to sys.hash_info and make it public rather than
private (it still needs docs somewhere)
-
Nick Coghlan ncogh...@gmail.com added the comment:
I realised today that this behaviour is actually the case for any execution of
a module inside a package with -m (i.e. any __init__ modules execute before
sys.argv and __main__ are fully configured).
As I recall, I used a bit of a hack to get
Mark Dickinson dicki...@gmail.com added the comment:
Re-opening to address a couple of points that came out of the python-dev
discussion:
(1) As Stefan pointed out on python-dev, equality and inequality comparisons
involving signaling nans should signal (order comparisons already do). IEEE
New submission from Noam Yorav-Raphael noamr...@gmail.com:
Hello,
Python 3.1 ignored the PYTHONUNBUFFERED environment variable and the '-u'
switch (which do the same thing): stdout remains buffered even when the flag is
raised.
To reproduce, run:
python3 -u -c 'import time, sys;
Antoine Pitrou pit...@free.fr added the comment:
Indeed. The io module has had to circumvent this and uses the following snippet
when resurrecting an instance of a subclass of one of its types (see
iobase_dealloc() in Modules/_io/iobase.c):
/* When called from a heap type's dealloc,
STINNER Victor victor.stin...@haypocalc.com added the comment:
-u is not ignored, but use line buffering: see issue #4705 and commit r68977.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8213
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8213
___
___
Antoine Pitrou pit...@free.fr added the comment:
In the current state of affaires this is more of a documentation issue.
Python 3 doesn't support totally unbuffered text I/O (and standard streams are
open in text mode). What `-u` and PYTHONUNBUFFERED do is that the binary layer
of standard
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - georg.brandl
components: +Documentation -IO
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8213
___
1 - 100 of 146 matches
Mail list logo