I don't want to be bit
again;-)
Thus, whenever I need to pass information to a function, I use default
arguments now. Is there any reason not to do this other than the fact
that it is a bit more typing?
Michael
--
http://mail.python.org/mailman/listinfo/python-list
ay too long.
I know. I am trying to flesh out a modular optimization proposal for
SciPy. Using C++ would defeat the purpose of making it easy to extend
the optimizers. I just want to make things as clean and efficient as
possible when I stumbled on this python copy problem.
Michael.
--
http://mail.python.org/mailman/listinfo/python-list
On May 4, 4:13 am, Dustan <[EMAIL PROTECTED]> wrote:
> On May 4, 1:36 am, Michael <[EMAIL PROTECTED]> wrote:
> > ... def g(x=x):
> > ... x = x + 1
> > ... return x
> > ... return g
> > >>> g = f(3)
> > >>>
On May 4, 7:54 pm, [EMAIL PROTECTED] (Alex Martelli) wrote:
> Michael <[EMAIL PROTECTED]> wrote:
> > Thus, whenever I need to pass information to a function, I use default
> > arguments now. Is there any reason not to do this other than the fact
> > that it is a bit mor
e moment.
Detail:
http://kamaelia.sourceforge.net/Cookbook
http://kamaelia.sourceforge.net/Components
Michael.
--
http://mail.python.org/mailman/listinfo/python-list
To be honest, you're best looking at the Linux Virtual Server project. It's
really cool technology and scales extremely well. You can do things at a
higher level, but LVS does work and scale extremely well. VS-TUN is
particularly useful if you have an unusual network topology.
http://www.lin
/
Please feel free to forward this to any students or student groups you would
find this interesting ! :-)
Regards,
Michael.
--
Michael Sparks, Senior Research Engineer, BBC Research, Technology Group
[EMAIL PROTECTED], Kamaelia Project Lead, http://kamaelia.sf.net/
--
http://mail.python.org/mailman/listinfo/python-list
m
> (unfortunately, they are written in dissembler).
+1 QOTW
For some reason I think that's great :)
Michael
--
http://mail.python.org/mailman/listinfo/python-list
Markov chains maybe? You could probably create a pretty fast db of sorts for
checking on word to page relationships and word to word relationships. Or
else a normal db could probably do it pretty fast. Break the page into words
and remove common words (*prepositions, etc)* and keep a database of
wo
I'd guess that by 2013 we'll be using a slightly more graceful, but still
horribly wrong (and unsupported by IE 7.666), redo of HTML, CSS, Javascript,
Flash, and Java with a poorly conceived back-end marriage of PHP + MySQL or
some horrible Microsoft technology for most apps. I'll also venture that
You can do do some kinds of image filtering to get a good idea but it's a
lot of work and not a simple script you can throw together. I've tagged and
processed millions of photos through my system to train it and I'm still
constantly finding ways to improve it.
> hii my friends
> > ı want to a fil
mpile down to an exeis it a valid
alternative? Should my CPython utility be compatible with ipy? I only
use the random,time,sys, and serial modules. I really know very little
about ipy.
--Michael
--
http://mail.python.org/mailman/listinfo/python-list
Björn, what library files end up being in your dist directory for that
project? Would you mind posting a copy of the output of dir?
I'm curious to see if there is a discrepancy.
--Michael
On Oct 31, 9:22 am, Bjoern Schliessmann wrote:
> Michael wrote:
>
> [py2exe o
uture__ you have to ensure that that directive comes first.
It looks like any other module on the surface, but it's a little special.
(This also means that if you intend to use any modules that use these
features you need to import it in your top level code as well)
Michael.
--
http://m
n the same post I can think
of at least two definitions of "type" that are relevant, and not sure how
you'd view either as self-generating :-)
Curiously,
Michael.
--
http://mail.python.org/mailman/listinfo/python-list
and games player:
#!/usr/bin/python
print "GAME OVER!"
It's relatively gentle, but builds up towards writing simple games in
pygame.
Michael.
--
http://mail.python.org/mailman/listinfo/python-list
gt; http://www.amazon.com/Game-Programming-Python-Development/dp/1584502584
It's a nice book, but totally inappropriate in my opinion for someone who
says they have no programming experience.
Michael.
--
http://mail.python.org/mailman/listinfo/python-list
n it.
>
> Huh? Care to explain this?
I'd appreciate that being explained as well (also preferably backed up as
well, but I'd be happy with explained :), since I've not actually seen this
problem myself ever, though I've heard about it occasionally, but never
seen it. W
Mark Dufour wrote:
> This
> latest release adds basic support for iterators and generators
Oooh, I may try our miniaxon tutorial against shed skin in that case.
(ie http://kamaelia.sourceforge.net/MiniAxon/)
Great to see you're plowing through this BTW !
Michael.
--
Kamaelia P
ne of the best intros I've read. (I'm
not saying that lightly either - I rank it as good/language relevant an
introduction as Learning Perl used to be, and the K&R book can be for many
C developers).
In many respects it'll also show you some of the similarities between python
and
relatively substantial
system that *does* compile. (It also shows me that Kamaelia's approach is
implementable in C++ beyond a naive approach, which is a nice bonus :)
Shedskin home:
http://mark.dufour.googlepages.com
Many congrats to Mark on this :-)
Michael.
--
Kamaelia Project L
really targetted at people who are interested in
doing something FUN and useful for summer of code :-) (apologies to those
who might view it as spam...)
Have fun!
Michael
--
Michael Sparks, Senior Research Engineer, BBC Research, Technology Group
[EMAIL PROTECTED], Kamaelia Project Le
l
http://kamaelia.sf.net/Cookbook.html
Basic approach we're taking is a riff on the idea of Unix Philosophy:
Write components that do one thing and do it well.
Write components to work together.
Write components to handle object streams, because that is a universal
interface.
... with apologies to Doug McIlroy.
:-)
Michael.
--
http://mail.python.org/mailman/listinfo/python-list
Tried using the precache daemon to see if it gives any boost?
--
http://mail.python.org/mailman/listinfo/python-list
Word.Application")
myWord.Visible = 1 # or, True
opens a word document but
myExcel = Dispatch("Excel.Application")
myExcel.Visible = 1# or, True
causes (as Rebecca notes above):
AttributeError: Property 'Excel.Application.Visible' can
not be set.
Thanks,
Michael
--
http://mail.python.org/mailman/listinfo/python-list
__')
106
>>> a + 2
6
>>>
Why doesn't "a + 2" look up the __add__ attribute and use my lambda?
If I manually define __add__(self, other) then "a + 2" will of course
use that method.
Michael
--
http://mail.python.org/mailman/listinfo/python-list
Hmm... I meant to create a new thread, as does GMail when you edit the
subject. Pardon my Google-Groups newbieness. - Michael
--
http://mail.python.org/mailman/listinfo/python-list
ouse with only a screwdriver.
--
Michael McGlothlin, tech monkey
Tub Monkey
http://www.tubmonkey.com/
--
http://mail.python.org/mailman/listinfo/python-list
The new website is to blah. It's so light colored across the whole thing
that it kind of just melts away in my mind. Maybe giving a little color
in the menu bar on the right would help. My experience is that white is
a bad background color when over used.
--
Michael McGlothlin, tech m
x27;s not bad looking though so I don't think it needs a huge remake.
Just a little more color. With HTML designed for CSS you can do a lot
with some tweaks to the stylesheets too. I don't have time to spend a
lot of effort on redesigning other peoples websites though.
--
Michael McGlothlin, tech monkey
Tub Monkey
http://www.tubmonkey.com/
--
http://mail.python.org/mailman/listinfo/python-list
or x in range(len(y)-1) ]
FWIW, "-" does not work across lists. You could use map if you wanted, but
personally I prefer the explicit loop which you wanted to not use:
> yz=[]
> for i in range(len(ys)-1):
> yz.append(ys[i+1]-ys[i])
Since personally I find that a lot cl
> Will XSTL be useful? Is my problem somewho related with XML-SIG?
> Looking forward to your precious suggestion.
>
XSLT is powerful but a royal pain in the arse. Just writing some Python
to generate your HTML would probably be a lot easier for you.
--
Michael McGlothlin, tech m
our HTML clean and
lets you apply code in almost identical way to CSS.
I know of a UI tool (for Java on mobile devices) that lets you style the
UI of normal apps with CSS. That'd rock if it was available for Python
programs.
--
Michael McGlothlin, tech monkey
Tub Monkey
http://www.tubmonkey.co
e (but I haven't looked in
> well over a year).
>
Might look at these:
http://directory.fsf.org/claraocr.html
http://directory.fsf.org/ocrad.html
--
Michael McGlothlin, tech monkey
Tub Monkey
http://www.tubmonkey.com/
--
http://mail.python.org/mailman/listinfo/python-list
cheese shop both sound like so-so
names to me. Neither sounds to be especially easy for people to remember
and find when searching using generic half remembered terms. Not really
important though so long as they are easy to find from the Python website.
--
Michael McGlothlin, tech monke
I want to improve my knowledge of Python (note: I'm still on 2.5 or
2.6) by studying good existing code, especially GUI programs. Any
suggestions? I'm looking at the eric source code now, for starters.
Thanks,
Mike
--
http://mail.python.org/mailman/listinfo/python-list
I want to improve my knowledge of Python (note: I'm still on 2.5 or
2.6) by studying good existing code, especially GUI programs. Any
suggestions? I'm looking at the eric source code now, for starters.
Thanks,
Mike
--
http://mail.python.org/mailman/listinfo/python-list
>From the docs about the built-in function super:
super( type[, object-or-type])
Return the superclass of type. If the second argument is omitted the
super object returned is unbound. If the second argument is an object,
isinstance(obj, type) must be true. If the seco
On Dec 5, 11:50 pm, zeph wrote:
> I highly recommend reading the Cocoa documentation, which has volumes
> on all sorts of things like this. Here's a link that talks about
> views in that context, and should give you more ideas about well-
> designed GUI layouts:http://bit.ly/6b8PYh
Cool link. Th
On Oct 28, 11:09 pm, Chris Colbert wrote:
> This is a threading issue that is very common when using gui toolkits
> with the interactive interpreter.
>
> You're better off just using ipython, which already has builtin
> support for matplotlib when you start it via "ipython -pylab"
>
> On Wed, Oct
On Aug 27, 8:56 am, ryles wrote:
> On Aug 26, 4:56 am, Michael Riedel
> wrote:
>
>
>
> > Sorry for being not more specific but I'm not absolutely certain whether
> > I encountered a bug or did anything wrong:
>
> > The (stupid) code below resu
realpython.com - just launched
On Sun, May 5, 2013 at 9:08 AM, leonardo selmi wrote:
> hi guys
>
> i need to find a good book to learn python with exercises and solutions, any
> suggestions?
>
> thanks!
>
> best regards
>
> leonardo
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-
By his reasoning it simply shouldn't exist. Instead you would access the
information only like this:
with open("myfile.dat") as f:
data = f.read()
Which is my preferred way to work with resources requiring cleanup in
python anyways, as it ensures I have the least chance of messing things up,
an
On 05/18/2013 08:30 PM, 8 Dihedral wrote:
> I am too lazy to write a factorial computations with primes
> here.
Ahh, that's better.
--
http://mail.python.org/mailman/listinfo/python-list
On 05/24/2013 02:18 AM, Peter Brooks wrote:
> I'm designing a system that should allow different views to different
> audiences. I understand that I can use application logic to control
> the access security, but it seems to me that it'd make more sense to
> have this documented in the data-stream
python-books
-
> --
> http://mail.python.org/mailman/listinfo/python-list
--
Michael Poeltl
Computational Materials Physics at University
Wien, Sensengasse 8/12, A-1090 Wien, AUSTRIA
http://cmp.univie.ac.at/
http://homepage.univie.ac.at/michael.poeltl/
using elinks-0.12, m
ttp://tools.ietf.org/html/rfc2849
To me everything looks right:
Python 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 'ZGV0XDMzMTB3YmJccGc='.decode(
r things. So contributors are
welcome. But they should be willing to do some serious work giving continous
support - not only a half-baken patch.
Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/python-list
On 05/26/2013 11:43 AM, Wolfgang Keller wrote:
> And just like HTML never was a valid GUI framework and never will be
> one, HTTP will never be a suitable transport layer for a RPC protocol.
On good thing web development has brought us is the knowledge that
modularization and layers are a brillian
; By looking at the value from above, 'det\3310wbb\pg', I gather the entry dict
> was parsed
> into byte strings. I should have decoded this, where as some of the data is
> Unicode and
> as such I should have encoded it?
I wonder what the string really is. At least the base64-en
On 05/26/2013 01:45 PM, Roy Smith wrote:
> In article ,
> Michael Torrie wrote:
>
>> On good thing web development has brought us is the knowledge that
>> modularization and layers are a brilliant idea.
>
> Modularization and layers were a brilliant idea long be
use in a modlist to later
> write and Sub
> classing LDIFWriter and overriding _unparseAttrTypeandValue to do the
> encoding has
> eliminated all the errors.
Don't muck with overriding _unparseAttrTypeandValue(). Simply pass the
properly encoded data into ldif module.
Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/python-list
On 05/26/2013 11:06 PM, Νίκος Γκρ33κ wrote:
> But iu have it set up for 'utf-8' as seen in this statement.
>
> con = pymysql.connect( db = 'metrites', host = 'localhost', user =
> 'me', passwd = 'somepass', charset='utf-8', init_command='SET NAMES UTF8' )
That might not help... see below.
>
>
On 05/27/2013 09:31 AM, Wolfgang Keller wrote:
>> HTTP handles that just fine, with your choice of XML,
>
> And XML is definitely not suitable as a marshalling format for a RPC
> protocol.
>
> XML-over-HTTP is a true cerebral flatulance of some hopelessly clueless
> moron.
Hmm. Well I think th
On 05/27/2013 09:22 AM, Wolfgang Keller wrote:
>> suppose I now want the app natively on my phone (because that's all
>> the rage). It's an iPhone. Oh. Apple doesn't support Python.
>> Okay, rewrite the works, including business logic, in Objective C.
>> Now I want it on my android phone.
>
>
he most basic test would be
something like this:
[..]
def handle(self,dn,entry):
print '***dn',repr(dn)
pprint.pprint(entry)
And then carefully look at the output.
Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/python-list
On 05/27/2013 02:17 PM, Νίκος Γκρ33κ wrote:
> I have checked the database through phpMyAdmin and it is indeed UTF-8.
>
> I have no idea why python 3.3.1 chooses to work with latin-iso only
It's not python that is doing this here...
If you look at the source code to pymysql, I'm sure you will
On 05/28/2013 09:32 AM, JackM wrote:
> Having a problem getting a py script to execute. Got this error:
>
> File "/scripts/blockIPv4.py", line 19
> ip = line.split(';')[0]
> ^
> IndentationError: expected an indented block
> I'm perplexed because the code that the error refers to *is* i
On 05/28/2013 10:00 AM, Νίκος Γκρ33κ wrote:
> I do not know here to find connections.py Michael.
It's part of the pymysql package that you installed. Look in there (the
traceback even shows you where the file is). But you actually don't
even need to look at it on your server. Yo
On 05/28/2013 10:45 AM, Νίκος Γκρ33κ wrote:
> con = pymysql.connect( db = 'pelatologio', host = 'localhost', user =
> 'blabla', passwd = 'blabla', init_command='SET NAMES UTF8', charset = 'utf-8'
> )
>
> produces this "God knows what" error traceback
Hey at least your database code is now w
stuff (e.g. processing LDIF, LDAP URLs and LDAPv3 schema).
Project's web site:
http://www.python-ldap.org/
Ciao, Michael.
Released 2.4.11 2013-05-27
Changes since 2.4.10:
Lib/
* ldap.controls.DecodeControlTuples() now s
On 05/28/2013 11:26 AM, Wolfgang Keller wrote:
>> Please give me an example of a "suitable transport layer for a RPC
>> protocol".
>
> I won't give you an example, but just some very basic criteria:
>
> - It must be very efficient for very small "datagrams"
I
On 05/28/2013 12:08 PM, nagia.rets...@gmail.com wrote:
> Τη Τρίτη, 28 Μαΐου 2013 8:17:05 μ.μ. UTC+3, ο χρήστης Michael Torrie
> έγραψε:
>
>> Basically you want pelatologio.py to run and then you process the
>> output through a template, correct?
>
> That is correct.
I have a great video on how to setup Easy_Install via setuptools as
well as pip - http://www.youtube.com/watch?v=MIHYflJwyLk
On Mon, May 27, 2013 at 6:32 PM, ray wrote:
>
> I would like to use easy_install, but can't figure out how to install it.
>
> I have 64-bit Python 2.7.5 on Windows 7.
>
> F
On 05/29/2013 04:30 AM, nagia.rets...@gmail.com wrote:
> What makes us o sure it is a pymysql issue and not python's encoding
> issue?
The original traceback, which showed that the encoding error was
happening in
"/opt/python3/lib/python3.3/site-packages/pymysql/cursors.py", line 108.
As was said
On 05/30/2013 05:47 AM, Νίκος Γκρ33κ wrote:
> The moen i switched "charset = 'utf-8'" => "charset = 'utf8'" all
> started to work properly!
Glad you have it working.
Perhaps this should be a lesson to you, Nick. Chris was able to spot
your problem by READING THE DOCUMENTATION, which he probably
On 05/30/2013 08:40 AM, Chris Angelico wrote:
> but if he's actively using the module, he probably knows where to
> find its docs.
One would hope, but alas one probably hopes in vain. I'm not sure he
wants to spend the time to read the code he's using and understand.
He's in too much of a hurry t
On 05/30/2013 12:18 AM, Steven D'Aprano wrote:
> In some ways, Python is a more pure OOP language than Java: everything in
> Python is an object, including classes themselves.
>
> In other ways, Python is a less pure and more practical language. You
> don't have to wrap every piece of functional
On 05/30/2013 07:10 PM, Nobody wrote:
> This is why technical drawings which include regularly-spaced features
> will normally specify the positions of features relative to their
> neighbours instead of (or as well as) relative to some origin.
If I am planting trees, putting in fence posts, or dri
On 05/31/2013 09:20 AM, Νικόλαος Κούρας wrote:
> Why so many pythons in my system. Now in the case of my Python3
> installation, it looks like i have two parallel installations of
> Python3, but i don't. One is almost certainly a symlink to the other
> and not an actual installation.
Well is it a
On 05/31/2013 12:02 PM, Νικόλαος Κούρας wrote:
> please tell me how to unistall python 2.6 and just keep 2.7
> and install 3.3.2 please uisng yum.
Python 2.6 is required for CentOS to function. You simply cannot remove
it. You can't replace it with 2.7 either. You can install 2.7
alongside it i
On 06/02/2013 11:12 AM, Νικόλαος Κούρας wrote:
> Τη Κυριακή, 2 Ιουνίου 2013 8:05:32 μ.μ. UTC+3, ο χρήστης Chris Angelico
> έγραψε:
>
>> A programmer chooses his own clients, and you are the Atherton Wing to
>> my Inara Serra.
>
> You might want to explain this mystique call-name you inprovised
On 06/01/2013 01:51 AM, Νικόλαος Κούρας wrote:
> Τη Σάββατο, 1 Ιουνίου 2013 9:18:26 π.μ. UTC+3, ο χρήστης Chris
> Angelico έγραψε:
>
>> That would require that the repo have a 3.3.2 build in it. I don't
>> know the Red Hat / CentOS policies there, but I know Debian stable
>> wouldn't have anythi
On 06/02/2013 12:34 PM, Νικόλαος Κούρας wrote:
> The whole subprocess fails when it has to deal with a greek lettered
> filename.
No it doesn't. subprocess is working correctly. It's the program
subprocess is running that is erring out. subprocess is merely
reporting to you that it erred out, j
On 06/02/2013 11:22 PM, Νικόλαος Κούρας wrote:
> Ok, this email is something of a recital of how I approached this.
Excellent. You're making progress. Keep doing research, and learn how
to debug your python programs.
One thing I've done as a last resort when I just can't get good error
reportin
On 06/02/2013 12:18 PM, Rick Johnson wrote:
> On Sunday, June 2, 2013 12:49:02 PM UTC-5, Dan Sommers wrote:
>> On Mon, 03 Jun 2013 03:20:52 +1000, Chris Angelico wrote:
>>> On Mon, Jun 3, 2013 at 3:04 AM, Rick Johnson
>> [...] Or use the logging module. It's easy to get going quickly
>> (just cal
On 06/03/2013 09:01 AM, nagia.rets...@gmail.com wrote:
> Maybe you should tell us how you find out yours.
Chris and others have told you how they go about solving their problems.
Quite a few times. In fact repeating themselves even. I think we've
run out of different ways to saying it now.
It'
On 06/03/2013 04:13 PM, Carlos Nepomuceno wrote:
> '/var/log/httpd' is the default place for the Red Hat and CentOS installation
> of httpd.
>
> '/usr/local/apache/logs' is the default directory of the Apache httpd
> installation.
>
> httpd has probably been upgraded by 'make install'.
Oh wow.
On 06/03/2013 05:33 PM, Carlos Nepomuceno wrote:
> I did a httpd 'make install' on CentOS 6 and it worked fine. Needed a
> few tweaks that I don't remember though.
>
> If you don't have any previous experience with Apache httpd settings
> I wouldn't try that on a production server.
Precisely. Gi
On 06/04/2013 01:39 AM, Νικόλαος Κούρας wrote:
> Well, since you dough me here it is:
Did you even bother to google it? If you did, you'd find that
python-pip is available in a semi-official repository called EPEL. Just
about every RHEL and CentOS install should have EPEL installed. Now
it's pi
On 06/04/2013 08:18 AM, Νικόλαος Κούρας wrote:
> No, brackets are all there. Just tried:
>
> # Compute a set of current fullpaths
> fullpaths = set()
> path = "/home/nikos/www/data/apps/"
>
> for root, dirs, files in os.walk(path):
> for fullpath in files:
> fullpaths.add( os.
On 06/04/2013 05:21 PM, Rick Johnson wrote:
> If you still feel that this idea is garbage, then, keep on writing
> your sloppy code. My proposal is the best method to handle the
> problems that arise with duck typed languages in a manner that is not
> restrictive or laborious -- it's actually quite
On 06/04/2013 10:15 PM, Νικόλαος Κούρας wrote:
> One of my Greek filenames is "Ευχή του Ιησού.mp3". Just a Greek
> filename with spaces. Is there a problem when a filename contain both
> english and greek letters? Isn't it still a unicode string?
>
> All i did in my CentOS was 'mv "Euxi tou Ihsou.
On 06/05/2013 12:11 AM, Russ P. wrote:
> But then, what would you expect of a language that allows you to
> write
>
> x = 1
> x = "Hello"
>
> It's all loosey goosey -- which is fine for many applications but
> certainly not for critical ones.
This comment shows me that you don't understand the
On 06/05/2013 05:52 PM, Russ P. wrote:
> My comment shows you nothing about what I understand about names,
> objects, and variables.
Yes that probably is true.
> You have chosen to question my understanding apparently because my
> point bothered you but you don't have a good reply. Then you link
On Jun 7, 2013, at 8:32, Νικόλαος Κούρας wrote:
> Τη Παρασκευή, 7 Ιουνίου 2013 10:09:29 π.μ. UTC+3, ο χρήστης Lele Gaifax
> έγραψε:
>
>> As already explained, often a SyntaxError is introduced by *preceeding*
>> "text", so you must look at your code with a "wider eye".
>
> That what i ahte a
On 06/08/2013 10:56 AM, Νικόλαος Κούρας wrote:
> its very tedious to always triming everything for me and i know it is
> for you to ead it assuc. Damn google groups, why is it behaving as
> such? Dont the programmers know about it?
Most of us on the list don't use google groups. A number of us use
On 06/09/2013 11:18 AM, Mark Janssen wrote:
>> I understand that I have to pick a license for my package.
>
> You actually do not. Attaching a legal document is purely a secondary
> protection from those who would take away right already granted by US
> copyright.
You are correct, except that th
On 06/09/2013 02:32 PM, Mark Janssen wrote:
> PyPi. But if you are *publishing*, there's no court which can
> protect your IP afterwards from redistribution, unless you
> explicitly *restrict* it.
I am not a lawyer, and I haven't read the copyright act in its entirety,
nor have I studied all the
On 06/09/2013 08:30 PM, Mark Janssen wrote:
>> Can you provide any citations for your interpretation? Besides "that's
>> what the law should be", I mean.
>
> I don't think I even have to: the legal code you're citing above is
> not very clear, consistent, or well-defined at all. As such, it show
On 06/11/2013 02:20 PM, Νικόλαος Κούρας wrote:
> [code]
> if not re.search( '=', name ) and not re.search( '=', month )
> and not re.search( '=', year ):
What do each of these functions return? When you print out
re.search('=', name) what happens?
When you're debugging you should
On 06/11/2013 10:49 PM, Michael Torrie wrote:
> --- my_cgi_script.py ---
> import do_something
>
> # handle cgi stuff
> # get name, month year
> dosomething.dosomething(name, month, year)
Make that do_something.do_something
--
http://mail.python.or
an.org for help.
Best,
Michael
On Thu, Jun 13, 2013 at 12:28 PM, wrote:
>
> Hi, I'm new to Python. Would someone be able to write me and/or to show me
> how to write a simple program that:
>
> 1-follows a hyperlink from MS Excel to the internet (one of many links
> like
On 06/14/2013 03:50 AM, Nick the Gr33k wrote:
> >>> print(name or month or year)
> abcd
> >>> print(name and month and year)
> ijkl
Interesting. I'd have thought a boolean expression would return True or
False, not a string. Learn something new every day.
--
http://mail.python.org/mailman/
On 06/14/2013 10:49 AM, Steven D'Aprano wrote:
> Correct. In Python, all boolean expressions are duck-typed: they aren't
> restricted to True and False, but to any "true-ish" and "false-ish"
> value, or as the Javascript people call them, truthy and falsey values.
>
> There are a couple of anoma
On 06/15/2013 07:07 AM, Nick the Gr33k wrote:
> result = mylist (since its a no-emoty list)
>
> result.append('bar')
> result is mylist
>> True
>
> Never seen the last statement before. What does that mean?
> result is mylist
Yes. Surprisingling good question.
http://docs.python.o
On 06/15/2013 10:18 AM, Nick the Gr33k wrote:
> a and b you say are names, which still are memory chunks
Yes no matter how you look at it, a dictionary of names and objects is
memory and "variables" in that sense. But at a higher level, we can
consider the differences with how a language like C d
On 06/15/2013 11:30 AM, Nick the Gr33k wrote:
> You are spamming my thread.
No he's not. The subject is changed on this branch of the thread, so
it's easy to see in any good e-mail reader that this sub-thread or
branch is diverting. This is proper list etiquette.
--
http://mail.python.org/mai
On Jun 17, 2013, at 6:17, Νίκος wrote:
> On 16/6/2013 9:53 μμ, R. Michael Weylandt wrote:
>> On Sun, Jun 16, 2013 at 2:47 PM, Ferrous Cranus wrote:
>>> On 16/6/2013 2:13 μμ, Jussi Piitulainen wrote:
>>>>
>>>> If, instead of the above, you h
On 06/17/2013 05:34 AM, Simpleton wrote:
> So is it safe to say that in Python a == &a ? (& stands for memory address)
>
> is the above correct?
It might be partially equivalent inside the interpreter, but it's not
something you should concern yourself with. And in general, no it's not
safe to s
101 - 200 of 4856 matches
Mail list logo