On Sat, 03 Nov 2012 22:19:19 -0700, Aahz wrote:
> In article <509441cb$0$29967$c3e8da3$54964...@news.astraweb.com>, Steven
> D'Aprano wrote:
>>On Fri, 02 Nov 2012 04:20:20 -0700, Jason Benjamin wrote:
>>>
>>> Anybody know of the appropriate place to troll and flame about various
>>> Python relat
On Wednesday, September 5, 2012 10:41:19 PM UTC+8, Steven D'Aprano wrote:
> On Wed, 05 Sep 2012 10:00:09 -0400, Dave Angel wrote:
>
>
>
> > On 09/05/2012 09:19 AM, Franck Ditter wrote:
>
> >> Thanks to all, but :
>
> >> - I should have said that I work with Python 3. Does that matter ? -
>
>
On 4/11/12 06:09:24, Aahz wrote:
> In article ,
> Chris Angelico wrote:
>> On Sun, Nov 4, 2012 at 2:10 PM, Steven D'Aprano
>> wrote:
>>>
>>> /* Shortcut for empty or interned objects */
>>> if (v == u) {
>>> Py_DECREF(u);
>>> Py_DECREF(v);
>>> return 0;
>>> }
>>> result = unicode_com
/ ru...@yahoo.com wrote on Fri 2.Nov'12 at 11:39:10 -0700 /
> (I also hope I haven't just been suckered by a troll
> attempt, windows/unix is better then unix/windows being
> an age-old means of trolling.)
No, i'm not a "troll". I was just adding my opinion to the thread, I assumed
that was al
In article <5096202c$0$29967$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> On Sat, 03 Nov 2012 22:19:19 -0700, Aahz wrote:
>
> > In article <509441cb$0$29967$c3e8da3$54964...@news.astraweb.com>, Steven
> > D'Aprano wrote:
> >>On Fri, 02 Nov 2012 04:20:20 -0700, Jason Benjamin
Hi everybody!
I was just smacked by some very surprising Python 2.7 behaviour. I was
assembling some 2D points into a list:
points = []
points += (3, 5)
points += (4, 6)
What I would have expected is to have [(3, 5), (4, 6)], instead I got [3,
5, 4, 6]. My interpretations thereof is that th
Quick aside, you can insert tuples without much effort: `points += ((3,5),)`
And also that I can't do the reverse, i.e.:
>>> foo = tuple()
>>> foo += [5,6]
Traceback (most recent call last):
File "", line 1, in
TypeError: can only concatenate tuple (not "list") to tuple
On Sun, Nov 4, 2012 at
On Sun, 2012-11-04 at 13:29 +0800, Levi Nie wrote:
> Who can give me some practical tutorials on django 1.4 or 1.5?
> Thank you.
Is the official[1] tutorial not practical enough?
[1] https://docs.djangoproject.com/en/1.4/intro/tutorial01/
--
http://mail.python.org/mailman/listinfo/python-list
On 11/04/2012 06:57 AM, Ulrich Eckhardt wrote:
> Hi everybody!
>
> I was just smacked by some very surprising Python 2.7 behaviour. I was
> assembling some 2D points into a list:
>
> points = []
> points += (3, 5)
> points += (4, 6)
>
> What I would have expected is to have [(3, 5), (4, 6)], in
Environment:
Python-2.7.3
Ubuntu Precise
mongoengine 0.6.20
I have a class which includes a __unicode__() method:
class User(mongoengine.Document):
def __unicode__(self):
return self.username
If I create an instance of this class by calling the constructor
directly, self.usern
In article ,
Roy Smith wrote:
> >>> print u.__unicode__()
> None
>
> >>> print unicode(u)
> Traceback (most recent call last):
> File "", line 1, in
> TypeError: coercing to Unicode: need string or buffer, NoneType found
>
> What's going on here? I thought
> (http://docs.python.org/2/libr
I'm trying to compile python3.3 on my (K)ubuntu 12.04, but some modules are
missing.
In particular when doing make test I get:
Python build finished, but the necessary bits to build these modules were not
found:
_bz2 _curses_curses_panel
_dbm _gdbm
Am 04.11.2012 15:42, schrieb Giacomo Alzetta:
> I'm trying to compile python3.3 on my (K)ubuntu 12.04, but some modules are
> missing.
>
> In particular when doing make test I get:
>
> Python build finished, but the necessary bits to build these modules were not
> found:
> _bz2 _c
Giacomo Alzetta wrote:
I'm trying to compile python3.3 on my (K)ubuntu 12.04, but some modules are
missing.
In particular when doing make test I get:
Python build finished, but the necessary bits to build these modules were not
found:
_bz2 _curses_curses_panel
Y
On 4 November 2012 13:32, Roy Smith wrote:
> Environment:
> Python-2.7.3
> Ubuntu Precise
> mongoengine 0.6.20
>
> I have a class which includes a __unicode__() method:
>
> class User(mongoengine.Document):
> def __unicode__(self):
> return self.username
>
> If I create an insta
In article ,
Roy Smith wrote:
>In article ,
> Roy Smith wrote:
>>
>> >>> print u.__unicode__()
>> None
>>
>> >>> print unicode(u)
>> Traceback (most recent call last):
>> File "", line 1, in
>> TypeError: coercing to Unicode: need string or buffer, NoneType found
>>
>> What's going on here?
On 04-Nov-2012 12:13, Jamie Paul Griffin wrote:
/ ru...@yahoo.com wrote on Fri 2.Nov'12 at 11:39:10 -0700 /
(I also hope I haven't just been suckered by a troll
attempt, windows/unix is better then unix/windows being
an age-old means of trolling.)
No, i'm not a "troll". I was just adding my o
On 11/4/2012 7:45 AM, Dave Angel wrote:
What I wonder about is why list's __add__ is so fussy.
Guido's reason is that it is not clear what the types of [1,2] + (3,4),
(1,2) + [3,4], [] + range(4), range(2) + [3,4], etcetera should be. Such
mixtures may be bugs. Seq.__add__ exists to impleme
On 11/4/2012 8:41 AM, Roy Smith wrote:
In article ,
Roy Smith wrote:
print u.__unicode__()
None
print unicode(u)
Traceback (most recent call last):
File "", line 1, in
TypeError: coercing to Unicode: need string or buffer, NoneType found
What's going on here? I thought
(http://docs
On 11/4/2012 7:35 AM, Albert Hopkins wrote:
On Sun, 2012-11-04 at 13:29 +0800, Levi Nie wrote:
Who can give me some practical tutorials on django 1.4 or 1.5?
Thank you.
Is the official[1] tutorial not practical enough?
[1] https://docs.djangoproject.com/en/1.4/intro/tutorial01/
There is als
everyone on this list is troll
On Sun, Nov 4, 2012 at 6:17 AM, Roy Smith wrote:
> In article <5096202c$0$29967$c3e8da3$54964...@news.astraweb.com>,
> Steven D'Aprano wrote:
>
> > On Sat, 03 Nov 2012 22:19:19 -0700, Aahz wrote:
> >
> > > In article <509441cb$0$29967$c3e8da3$54964...@news.astraw
On 01/11/2012 09:55, Jamie Paul Griffin wrote:
/ Robert Miles wrote on Wed 31.Oct'12 at 0:39:02 -0500 /
For those of you running Linux: You may want to look into whether
NoCeM is compatible with your newsreader and your version of Linux.
It checks newsgroups news.lists.filters and alt.nocem.m
On Sun, Nov 4, 2012 at 11:39 AM, Mark Lawrence wrote:
> Anybody serious about programming should know that an OS is a combination
> of the hardware and software. Can the *Nix variants now do proper
> clustering or are they still decades behind VMS? Never used the other
> main/mini frame systems
On 2012-11-03, at 2:58 AM, 水静流深 wrote:
i have install pyOpenSSL-0.11 in python2.7 this way:
download pyOpenSSL-0.11.tar.gz
#tar -zvxf pyOpenSSL-0.11.tar.gz
#cd pyOpenSSL-0.11
#python setup.py install
>>> import OpenSSL
Traceback (most recent call last):
File "", line 1, in
File "/
Il giorno domenica 4 novembre 2012 15:56:03 UTC+1, mm0fmf ha scritto:
> Giacomo Alzetta wrote:
>
> > I'm trying to compile python3.3 on my (K)ubuntu 12.04, but some modules are
> > missing.
>
> >
>
> > In particular when doing make test I get:
>
> >
>
> > Python build finished, but the nece
Here is the blog post about it:
http://jugad2.blogspot.in/2012/11/pdfbuilder-can-now-take-multiple-input.html
In short: removed the temporary hard-coding, refactored the code some.
PDFBuilder can now use multiple input files (of type .csv / .tdv), specified on
the command-line, to create a com
On Thursday, March 24, 2011 10:32:44 AM UTC-4, Kees Bakker wrote:
> Hi,
>
> Sad news (for me, at least), in the upcoming version 7.0 of NetBeans
> there will be no Python plugin anymore.
>
> I have been using NetBeans for Python development for a while now
> and I was very happy with it.
>
> See
I recently built startgraphi.com. It's a web application that draws directed
graphs of running times and function calls from the output of Python's
cProfile. It also creates a sortable table of running times and function calls.
I hope someone finds it useful.
--
http://mail.python.org/mailman/
On Nov 4, 4:14 pm, Jamie Paul Griffin wrote:
> / ru...@yahoo.com wrote on Fri 2.Nov'12 at 11:39:10 -0700 /
>
> > (I also hope I haven't just been suckered by a troll
> > attempt, windows/unix is better then unix/windows being
> > an age-old means of trolling.)
>
> No, i'm not a "troll". I was jus
So, here I was thinking "oh, this is a nice, easy way to initialize a 4D
matrix" (running 2.7.3, non-core libs not allowed):
m = [[None] * 4] * 4
The way to get what I was after was:
m = [[None] * 4, [None] * 4, [None] * 4, [None * 4]]
(Obviously, I could have just hardcoded the initializatio
On 2012-11-04, at 4:45 PM, bkube...@gmail.com wrote:
> However I am not happy about having to use different IDEs as I find myself
> coding in both python and php from project to project.
One of the many reasons Vim is my editor of choice.
Demian Brecht
@demianbrecht
http://demianbrecht.github.c
On Mon, Nov 5, 2012 at 5:10 PM, rusi wrote:
> Among people who know me, I am a linux nerd: My sister scolded me
> yesterday because I put files on her computer without spaces:
> DoesAnyoneWriteLikeThis?!?!
My filenames seldom have spaces in them, but that has nothing to do
with how I write Englis
On 11/04/2012 10:27 PM, Demian Brecht wrote:
So, here I was thinking "oh, this is a nice, easy way to initialize a 4D
matrix" (running 2.7.3, non-core libs not allowed):
m = [[None] * 4] * 4
The way to get what I was after was:
m = [[None] * 4, [None] * 4, [None] * 4, [None * 4]]
FYI: The b
Hello there folks,
I have a bit of a special issue.
I'll start by disclosing myself for what i am doing. I am a postgraduate
student and I really have good reasons to do what I am doing. At least i think
so.
And not the issue.
I am building a python web service. This web service has some generi
On Sun, Nov 4, 2012 at 10:27 PM, Demian Brecht wrote:
> So, here I was thinking "oh, this is a nice, easy way to initialize a 4D
> matrix" (running 2.7.3, non-core libs not allowed):
>
> m = [[None] * 4] * 4
>
> The way to get what I was after was:
>
> m = [[None] * 4, [None] * 4, [None] * 4, [No
On Mon, Nov 5, 2012 at 6:07 PM, Chris Rebert wrote:
x = None
x.a = 42
> Traceback (most recent call last):
> File "", line 1, in
> AttributeError: 'NoneType' object has no attribute 'a'
Python needs a YouGottaBeKiddingMeError for times when you do
something utterly insane like this.
On Mon, Nov 5, 2012 at 9:33 AM, Steven D'Aprano wrote:
> On 05/11/12 08:49, anatoly techtonik wrote:
>>
>> if sys.py3k:
>># some py2k specific code
>>pass
>
> # Bring back reload in Python 3.
> try:
> reload
> except NameError:
> from imp import reload
>
> try:
> any
> except N
On Mon, Nov 5, 2012 at 5:29 PM, Demian Brecht wrote:
>
> On 2012-11-04, at 4:45 PM, bkube...@gmail.com wrote:
>> However I am not happy about having to use different IDEs as I find myself
>> coding in both python and php from project to project.
>
> One of the many reasons Vim is my editor of cho
On Nov 5, 11:40 am, Chris Angelico wrote:
> On Mon, Nov 5, 2012 at 5:10 PM, rusi wrote:
> > Among people who know me, I am a linux nerd: My sister scolded me
> > yesterday because I put files on her computer without spaces:
> > DoesAnyoneWriteLikeThis?!?!
>
> My filenames seldom have spaces in th
ehsmenggro...@gmail.com writes:
> I haven't quite figured out how to apply a paid ssl cert, say RapidSSL free
> SSL test from Python's recent sponsor sslmatrix.com and what to do with that
> to make Python happy.
>
> This good fellow suggests using the PEM format. I tried and failed.
> http://www
On 11/04/2012 11:27 PM, Chris Angelico wrote:
On Mon, Nov 5, 2012 at 6:07 PM, Chris Rebert wrote:
x = None
x.a = 42
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'NoneType' object has no attribute 'a'
Python needs a YouGottaBeKiddingMeError for times when you do
so
41 matches
Mail list logo