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
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
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
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.
>
>
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. You can see the so
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
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.
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 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
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 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
On 06/18/2013 03:51 AM, Νίκος wrote:
> Στις 18/6/2013 12:05 μμ, ο/η Steven D'Aprano έγραψε:
>> Names are *always* linked to objects, not to other names.
>>
>> a = []
>> b = a # Now a and b refer to the same list
>> a = {} # Now a refers to a dict, and b refers to the same list as before
>
> I see
On 06/19/2013 11:16 PM, Michael Torrie wrote:
> It turns out that lists, hashes (dicts), and classes can pretty much
> do anything with having to much about with C-style pointers and
> such.
Oh wow. Parse error. should read, "pretty much do anything without
having to muck abou
On 06/19/2013 11:48 PM, Steven D'Aprano wrote:
> On Wed, 19 Jun 2013 23:16:51 -0600, Michael Torrie wrote:
>
>> The real power and expressivity of Python comes from embracing the
>> abstractions that Python provides to your advantage. There's a certain
>> elegan
On 06/21/2013 07:41 PM, Chris Angelico wrote:
>> While we're at it, I would like to petition for a function
>> terminates(f, args) that I can use to determine whether a function
>> will terminate before I actually call it.
>
> Nice idea from a theoretical point of view, but practicality beats
> pu
On 06/23/2013 02:40 PM, cutems93 wrote:
> What else do I need? Also, which software is used in daily base? I
> know version control software and bug tracking software are used
> almost everyday by developers. Which software is used less often?
Phew that's quite a list you have there. Are you comi
On 06/23/2013 07:44 PM, Νίκος wrote:
> Why use mako's approach which requires 2 files(an html template and the
> actual python script rendering the data) when i can have simple print
> statements inside 1 files(my files.py script) ?
> After all its only one html table i wish to display.
Sooner o
On 06/29/2013 05:44 AM, cts.private.ya...@gmail.com wrote:
> Alas, one reason it's a weak workaround is that it doesn't work - at least,
> not how I wish it would:
>
>
> $ cat ptrs
>
> x = 34
>
> def p1 (a1):
>
> a1[0] += 12
>
> p1 ([x])
>
> print (x)
>
> $ python ptrs
> 34
you'll
On 06/29/2013 05:21 AM, cts.private.ya...@gmail.com wrote:
> Thank you. You reminded me of the (weak) workaround of using arrays
> and confirmed my suspicion that I although I can read the variable, I
> won't be able to write to it. I still don't understand why not,
> though...
The real problem
On 06/29/2013 11:02 AM, Antoon Pardon wrote:
> Op 29-06-13 16:02, Michael Torrie schreef:
>>
>> The real problem here is that you don't understand how python variables
>> work. And in fact, python does not have variables. It has names that
>> bind to objects.
>
On 06/29/2013 07:56 AM, Michael Torrie wrote:
> x = [ 34, ]
>
> def test_func( out ):
> out[0] += 12
>
> test_func(x)
>
> print (x)
Well, actually
print (x[0])
--
http://mail.python.org/mailman/listinfo/python-list
On 06/29/2013 12:37 PM, cts.private.ya...@gmail.com wrote:
> :) Thank you guys for saying what I was biting my tongue about
> (thanks everybody for the help, BTW!).
Sometimes it's best to state the actual problem you're trying to solve
and see if there's a pythonic solution that fits it rather th
On 06/29/2013 12:51 PM, Steven D'Aprano wrote:
> You are absolutely correct in principle. But in practice, there are ten
> bazillion C, Pascal, COBOL, and BASIC programmers who understand the word
> "variable" to mean a named memory location, for every Smalltalk or Lisp
> programmer who understa
On 06/29/2013 01:19 PM, Steven D'Aprano wrote:
> Python's basic data types are not necessarily immutable. Lists and dicts
> are not immutable. Being a high-level language, the idea of "primitives"
> like int, double, float, etc from C doesn't really apply. A Python dict
> is not made up from Pyt
On 06/29/2013 01:20 PM, cts.private.ya...@gmail.com wrote:
> exactly that. Without wanting to analyze it in too much depth now, I
> would want a local keyword to allow me to know I was protecting my
> variables, and a way to specify other scopes, without so much implied
> scoping in non-intuitive
On 07/04/2013 02:25 PM, Ferrous Cranus wrote:
> try:
> host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0]
> except:
> host = "Reverse DNS Failed"
>
> Is there a way to write the above so i cna print the error return when
> it fails?
>
Do you know what IP address causes the
On 07/10/2013 06:22 AM, Mats Peterson wrote:
> You're showing by these examples what regular expressions mean to you.
Chris is showing no such thing. And you are simply trolling. What do
you want us to do, fall down and worship you and admit that Python is a
horrible language and we should all u
On 07/10/2013 06:06 AM, Mats Peterson wrote:
> I haven't provided a "real-world" example, since I expect you Python
> Einsteins to be able do an A/B test between Python and Perl yourselves
> (provided you know Perl, of course, which I'm afraid is not always the
> case). And why would I use any "cu
On 07/10/2013 02:43 AM, Mats Peterson wrote:
> I fear you don’t even know what a regular expression is. Then this will
> of course not affect you.
Hmm, and your stack exchange posts had a similar tone, hmm?
I for one have never ready any of your posts on this forum before, so it
looks like you've
On 07/12/2013 09:59 AM, Joshua Landau wrote:
> If you're interested, the basic of it is that strings now use a
> variable number of bytes to encode their values depending on whether
> values outside of the ASCII range and some other range are used, as an
> optimisation.
Variable number of bytes is
On 07/13/2013 12:23 PM, Νικόλας wrote:
> Do you know a way of implementing anyone of these methods to a script?
Yes. Modern browsers all support a location API in the browser for
javascript. See this:
http://diveintohtml5.info/geolocation.html
--
http://mail.python.org/mailman/listinfo/python
On 07/12/2013 10:32 AM, Νικόλας wrote:
> So, my question now is, if there is some way we can get an accurate Geo
> City database.
As has been said pretty much by every other poster, there is no way to
do get an accurate location database. Period.
The databases that do exist were built by hand,
On 07/15/2013 06:34 PM, Dennis Lee Bieber wrote:
>> I have no idea how to implement the solution you proposed.
>> These are nice ideas we need to have a way of implement them within a
>> script.
>>
>> I have no way of grasping a map of cell towers of a map of wi-fi hotspots.
>>
> You don't.
On 07/17/2013 05:08 AM, fronag...@gmail.com wrote:
> Ok. Well, what I'm currently doing, based on advice from this thread,
> is to create a new thread that handles the downloading, as well as
> updating a variable for text display on the GUI, and in the main
> thread, just after the thread is creat
On 07/18/2013 03:13 AM, William Bai wrote:
> I found that it was caused by not by python but by
> /usr/lib/locale/locale-archive, the same problem as that described
> in http://illiterat.livejournal.com/4615.html.
Too funny. So in other words there isn't a problem at all. What you
thought was RA
On 07/17/2013 11:39 PM, Eric S. Johansson wrote:
> Not discourage you but this is a "been there, done that" kind of project.
> You could learn more from reading somebody else is code. What hasn't been
> done, and this would be very cool, is a chat program that works
> peer-to-peer with no cen
On 07/18/2013 12:19 PM, Owen Marshall wrote:
> Huh - I (foolishly) didn't realize gmane actually had NNTP, I've always
> used it to search mailing lists. If the list dumped to usenet (much like
> c.l.python) I'd post through sunsite.dk, which is a very nice usenet
> provider. But that still meant s
On 07/21/2013 04:19 AM, pablobarhamal...@gmail.com wrote:
> Thank's for all the replies! I've tried some of the imporovements you
> suggested (using math.exp() and sum() or math.fsum()).
> None of that made the code faster, because they are functions you are calling
> lots of times, and function
On 07/21/2013 10:19 AM, Gilles wrote:
> So, does someone know of a good, SMTP server just to send e-mails?
What you're looking for is not an SMTP server but a Mail Transfer Agent,
called an MTA.
Pretty much all distros ship with an MTA by default, even if the SMTP
server part of it isn't installe
On 07/21/2013 02:34 PM, Gilles wrote:
> Thanks for the infos. Ideally, I was looking for a simple Windows app
> as MTA, but a Python script is OK.
The Sendmail MTA has been ported to many platforms including windows.
But...
> I'm not sure my ISP blocks outbound port 25 connections. I'll
> experim
On 07/21/2013 05:20 AM, Chris “Kwpolska” Warrick wrote:
> On Sun, Jul 21, 2013 at 1:14 PM, Dave Cook wrote:
>> On 2013-07-20, Aseem Bansal wrote:
>>
>>> Do I need to use QtCreator with PySide if I want drag-and-drop
>>> feature for GUI development?
>>
>> No, you just need the layout part of QtCre
On 07/22/2013 06:51 AM, Chris Angelico wrote:
>> Thanks for the tip. I didn't know about SPF
>> http://en.wikipedia.org/wiki/Sender_Policy_Framework
>
> It's a great way of detecting legit vs forged mail. If anyone tries to
> send mail purporting to be from anyth...@kepl.com.au and the receiving
>
On 07/22/2013 06:19 AM, Gilles wrote:
> On Sun, 21 Jul 2013 21:01:09 + (UTC), Grant Edwards
> wrote:
>> Unless you've got a static IP address, a domain name, and a valid MX
>> record that will match up when they do a reverse DNS lookup, it's
>> pretty unlikely that you're going to have much lu
On 07/22/2013 06:11 AM, Gilles wrote:
> On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie
> wrote:
>> The Sendmail MTA has been ported to many platforms including windows.
>> But...
>
> Thanks for the tip. Since I couldn't find a good, basic, native
> Windows ap
On 07/22/2013 08:15 AM, Chris Angelico wrote:
> If legit mail is rejected for failing an SPF check, it's the sending
> admin's problem, not yours. You should never have problems with it if
> it's set up correctly. And since rejected mail gets reported to the
> transmitting MTA, you don't need to dr
On 07/23/2013 03:30 AM, Chris Angelico wrote:
> On Tue, Jul 23, 2013 at 7:19 PM, Chris Angelico wrote:
>> Ah, there's a solution to this one. You simply use your own
>> envelope-from address; SPF shouldn't be being checked for the From:
>> header.
>
> There's an example, by the way, of this exact
On 07/24/2013 07:40 AM, wxjmfa...@gmail.com wrote:
> Sorry, you are not understanding Unicode. What is a Unicode
> Transformation Format (UTF), what is the goal of a UTF and
> why it is important for an implementation to work with a UTF.
Really? Enlighten me.
Personally, I would never use UTF as
On 07/24/2013 08:34 AM, Chris Angelico wrote:
> Frankly, Python's strings are a *terrible* internal representation
> for an editor widget - not because of PEP 393, but simply because
> they are immutable, and every keypress would result in a rebuilding
> of the string. On the flip side, I could qui
On 07/24/2013 04:19 PM, Chris Angelico wrote:
> I'm referring here to objections like jmf's, and also to threads like this:
>
> http://mozilla.6506.n7.nabble.com/Flexible-String-Representation-full-Unicode-for-ES6-td267585.html
>
> According to the ECMAScript people, UTF-16 and exposing surrogate
On 07/25/2013 01:07 PM, wxjmfa...@gmail.com wrote:
> Let start with a simple string \textemdash or \texttendash
>
sys.getsizeof('–')
> 40
sys.getsizeof('a')
> 26
That's meaningless. You're comparing the overhead of a string object
itself (a one-time cost anyway), not the overhead of st
On 07/25/2013 11:18 AM, Steven D'Aprano wrote:
> JMF has explained that it is impossible, impossible I say!, to write an
> editor using a flexible string representation. Since Emacs uses such a
> flexible string representation, Emacs is impossible, and therefore Emacs
> doesn't exist.
Now I'm e
On 07/26/2013 07:21 AM, wxjmfa...@gmail.com wrote:
sys.getsizeof('––') - sys.getsizeof('–')
>
> I have already explained / commented this.
Maybe it got lost in translation, but I don't understand your point with
that.
> Hint: To understand Unicode (and every coding scheme), you should
> und
On 07/27/2013 12:21 PM, wxjmfa...@gmail.com wrote:
> Good point. FSR, nice tool for those who wish to teach
> Unicode. It is not every day, one has such an opportunity.
I had a long e-mail composed, but decided to chop it down, but still too
long. so I ditched a lot of the context, which jmf also
On 07/30/2013 12:19 PM, Antoon Pardon wrote:
> So? Why are you making this a point of discussion? I was not aware that
> the pro and cons of various editor buffer implemantations was relevant
> to the point I was trying to make.
I for one found it very interesting. In fact this thread caused me t
On 07/30/2013 01:09 PM, wxjmfa...@gmail.com wrote:
> Matable, immutable, copyint + xxx, bufferint, O(n)
> Yes, but conceptualy the reencoding happen sometime, somewhere.
> The internal "ucs-2" will never automagically be transformed
> into "ucs-4" (eg).
So what major python project are you wo
On 07/31/2013 01:23 AM, Antoon Pardon wrote:
> Op 31-07-13 05:30, Michael Torrie schreef:
>> On 07/30/2013 12:19 PM, Antoon Pardon wrote:
>>> So? Why are you making this a point of discussion? I was not aware that
>>> the pro and cons of various editor buffer impleman
On 07/31/2013 02:32 AM, wxjmfa...@gmail.com wrote:
> Unicode/utf*
Why do you keep using the terms "utf" and "Unicode" interchangeably?
--
http://mail.python.org/mailman/listinfo/python-list
On 06/19/2012 12:28 AM, nikunj.badja...@emc.com wrote:
> Howdy All,
>
> I am trying to use paramiko to automate logging in to remote unix machines
> and executing some commands there.
> When I normally do ssh from my linux machine (with Python 2.6) to this
> machine a different '>' prompt comes.
On 07/13/2012 03:12 PM, Jean Dubois wrote:
> Thanks for the extra docu references
In this day and age, I think compiling ui files to code is probably on
the way out. Instead you should consider using the ui files directly in
your code. This has the advantage of letting you change the gui
somewha
On 07/14/2012 11:13 AM, rusi wrote:
> I looked at the second link and find code like this:
>
> app = None if ( not app ): app = QtGui.QApplication([])
>
> Maybe I'm dense but whats that if doing there?
>
> Frankly I seem to be a bit jinxed with gui stuff. A few days ago
> someone was singing t
On 07/15/2012 01:58 AM, Vincent Vande Vyvre wrote:
> Rusi is not the op, and his question is about these lines
>
> app = None
> if ( not app ):
Yeah that's a no-op. The original author of that code is clearly
confused there.
>
> not this one
>
> app = QtGui.QApplication([])
>
On 08/19/2012 11:51 AM, wxjmfa...@gmail.com wrote:
> Five minutes after a closed my interactive interpreters windows,
> the day I tested this stuff. I though:
> "Too bad I did not noted the extremely bad cases I found, I'm pretty
> sure, this problem will arrive on the table".
Reading through this
On 08/20/2012 07:17 AM, Roy Smith wrote:
> In article ,
> Michael Torrie wrote:
>
>> Python generally tries to follow unicode
>> encoding rules to the letter. Thus if a piece of text cannot be
>> represented in the character set of the terminal, then Python will
On 09/01/2012 09:15 PM, Ramchandra Apte wrote:
> It converts to *pure* C/C++ *without* using Python or its API so that it can
> be the same speed as C/C++
Sounds like a fun project for you. I hope you learn a lot doing it.
That's reason enough for it. Do you plan to port all the standard
python
On 09/02/2012 12:58 PM, wxjmfa...@gmail.com wrote:
> My rationale: very simple.
>
> 1) I never heard about something better than sticking with one
> of the Unicode coding scheme. (genreral theory)
> 2) I am not at all convinced by the "new" Py 3.3 algorithm. I'm not the
> only one guy, who noticed
1 - 100 of 1810 matches
Mail list logo