On 2013-10-31 22:12, Göktuğ Kayaalp wrote:
> My usual practise is to have two entry points to the program as
> executable scripts.
When I create stand-alone command-line scripts that take arguments,
usually they're akin to version-control tools, so I have the form
scriptname.py [--global-opts]
7; also understands basic 'sudo' syntax and can be used
to access a server, 'sudo' a command, and then exit.
'tsshbatch' thus allows you to write complex, hands-off scripts that--
Tim Daneliuk
ther. It's just a choice that a language designer has to make.
I happen to like Python's choice. You'll get used to it.
--
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
x it came from. You have lost information.
--
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
On 2013-11-03 19:40, Mark Janssen wrote:
> But you cheated by using a piece of information from "outside the
> system": length. A generic compression algorithm doesn't have this
> information beforehand.
By cheating with outside information, you can perfectly compress any
one data-set down to 1 b
On 2013-11-05 17:39, Nick the Gr33k wrote:
> >>> data = infile.readlines
You're assigning it to the bound function rather than calling the
function. Use the "call" operator:
data = infile.readlines()
-tkc
--
https://mail.python.org/mailman/listinfo/python-list
On 2013-11-06 22:22, Grant Edwards wrote:
> Waving red flags at female bulls is rarely dangerous. ;)
though I still wouldn't recommend it if you're COWardly :-)
Well, maybe the issue is MOOt.
-tkc
--
https://mail.python.org/mailman/listinfo/python-list
On 2013-11-07 10:57, Chris Angelico wrote:
> Waving red flags at female bulls is rarely dangerous. ;)
> >>>
> >>> though I still wouldn't recommend it if you're COWardly :-)
> >>>
> >>> Well, maybe the issue is MOOt.
> >>
> >> Ugh, if only these puns were like CALF-way funny...
> >
> > I here
On 2013-11-06 17:31, John Nagle wrote:
> >> MetaBright makes skill assessments to measure how talented
> >> people are at different skills. And recruiters use MetaBright to
> >> find outrageously skilled job candidates.
>
> With tracking cookies blocked, you get 0 points.
And with JavaScript bl
If you
would like to describe your compression scheme, there really are people
here who would be interested in reading it (although that number gets less
and less as this thread goes on).
--
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
On 2013-11-06 23:06, Dennis Lee Bieber wrote:
> Waving red flags at female bulls is rarely dangerous. ;)
> >>>
> >>> though I still wouldn't recommend it if you're COWardly :-)
> >>>
> >>> Well, maybe the issue is MOOt.
> >>
> >> Ugh, if only these puns were like CALF-way funny...
> >
> >I he
On 2013-11-07 17:03, Sibylle Koczian wrote:
> > Nikos, you are an excellent member of the Greek society.
> > Listening to you makes it so much easier to understand the
> > problems that your country has.
>
> Is there any reason at all to insult all other Greek readers of
> this newsgroup?
Greec
>
>> I think the idea is that you could take any arbitrary input sequence,
>> view it as a large number, and then find what exponential equation can
>> produce that result. The equation becomes the "compression".
Interesting -- I hadn't noticed that. Of co
On 2013-11-07 11:02, [email protected] wrote:
> it's unlikely we'll ever be able to pull out javascript as it
> limits interactivity too much.
It was mostly in jest as it's one of the things I test when doing
web development. That said, the quizzes are mostly just HTML forms
where you pick the an
g is opening your customers
up to potentially disastrous situations and yourself to lawsuits. It's not
a question of *if*, but *when* one of your customers is compromised to the
extent that they decide to take it out of you.
Also, you're an embarrassment to our profession.
Tim Delaney
--
https://mail.python.org/mailman/listinfo/python-list
On 8 November 2013 09:45, Tim Delaney wrote:
> On 8 November 2013 09:18, Νίκος Αλεξόπουλος wrote:
>
>> I feel a bit proud because as it seems i have manages to secure it more
>> tight. All i need to do was to validate user input data, so the hacker
>> won't be able
On 2013-11-07 21:18, Roy Smith wrote:
> It's not a shifting goalpost. My original statement was that:
>
> def foo():
>raise Exception
>
> defines a function which 1) has no explicit return statement and 2)
> does not return None. I stand by that statement. There is no
> possible codepath,
On 08/11/2013 03:30, iMath wrote:
>
> When running the following code on WinXP , all is fine ,
> --
> from win32com.shell import shell
>
> def launch_file_explorer(path, files):
>
> folder_pidl = shell.SHILCreateFromPath(path,0)[0]
e stranger to be "exposing" that data?
Tim Delaney
--
https://mail.python.org/mailman/listinfo/python-list
On 2013-11-09 07:53, Chris Angelico wrote:
> On the flip side, Python gets really awesome at some other things.
> Your operating system probably takes an entire CD to distribute,
> maybe even a DVD, so that's either 700MB or 4.7GB, give or take.
> Look how efficiently Python can represent it:
>
>
On 2013-11-10 01:27, Chris Angelico wrote:
> > Is everyone happy with the way things are? Could anyone recommend
> > a good, high level language for CGI work? Not sure if I'm going
> > to be happy with Perl (ahhh, get him, he's mentioned Perl and is
> > a heretic!) or Python. I would very much valu
On 2013-11-09 21:01, Mark Lawrence wrote:
> no comma is needed but a comma will be accepted.
I find the optional trailing comma particularly useful (and painful in
languages that don't accept it) for doing inline lists to produce
cleaner version-control diffs. I write most of my code like this
On 11/11/2013 16:38, [email protected] wrote:
> I have installed Python 3.3, and i want to add a library with some
> basic functions like canvas and basic geomteric objects, fonts etc.
> Preferably something similar to the Javascript canvas.
>
> I've looked for graphic packages, and from w
On 11/11/2013 16:38, [email protected] wrote:
> === Traceback (most recent call last): File "D:\Python33\test2.py",
> line 16, in from Tkinter import Tk, Canvas, Frame, BOTH
> ImportError: No module named 'Tkinter' ===
In addition, I really don't recommend running your test scripts strai
On 2015-02-28 12:09, Steven D'Aprano wrote:
> > * Make your language have a lot of keywords. Enough to make
> > memorizing them ALL unlikely, requiring constant visits to your
> > documentation
>
> Is 33 a lot?
>
> py> import keyword
> py> keyword.kwlist
> ['False', 'None', 'True', 'and', 'a
On 2015-02-28 17:56, MRAB wrote:
> On 2015-02-28 16:03, Cousin Stanley wrote:
> >
> >> From : Tim Chase
> >>
> >> A quick google-and-tally for languages
> >> and their corresponding number of keywords:
> >>
> >
> >
On 2015-02-28 10:13, Ethan Furman wrote:
> On 02/28/2015 09:56 AM, MRAB wrote:
> > On 2015-02-28 16:03, Cousin Stanley wrote:
> >>
> >>> From : Tim Chase
> >>>
> >>> A quick google-and-tally for languages
> >>> and their c
On 02/03/2015 06:19, Sarvagya Pant wrote:
> Hello, I am amazed that the md5 of a file given by python in windows is
> different than that of linux. Consider the following code:
>
> import hashlib
> def md5_for_file(f, block_size=2**20):
> md5 = hashlib.md5()
> while True:
> data =
On 02/03/2015 14:44, Steven D'Aprano wrote:
> Mark Lawrence wrote:
>
>> Give me the Steven D'Aprano solution any day of
>> the week.
>
>
> Sounds ominous. Is that better or worse than the final solution?
>
>
>
Well if you can have it on any day of the week it can't be *that* final?
TJG
--
they're trying to
say, and no one will involved realise.
Tim Delaney
--
https://mail.python.org/mailman/listinfo/python-list
On 5 March 2015 at 09:39, Emile van Sebille wrote:
> On 3/4/2015 12:40 PM, Tim Delaney wrote:
>
>> A related thing is when you have multiple multi-lingual people talking
>> together where at least two of their languages match (or are close
>> enough for most uses e.g
On 07/03/2015 12:55, Daiyue Weng wrote:
[... snip pip-related problems with installing 2.7.9 on Windows ...]
The OP has raised this as issue23604. I've responded over there because
it's a duplicate of a known issue (issue22028).
http://bugs.python.org/issue23604#msg237628
TJG
--
https://mail.p
On 2015-03-09 11:37, Wolfgang Maier wrote:
> On 03/09/2015 11:23 AM, Antoon Pardon wrote:
>> Does anyone know what regular expression to use for a sequence of
>> letters? There is a class for alphanumerics but I can't find one
>> for just letters, which I find odd.
>
> how about [a-zA-Z] ?
That b
On 2015-03-09 13:26, Antoon Pardon wrote:
> Op 09-03-15 om 12:17 schreef Tim Chase:
>> (?:(?!_|\d)\w)
>
> So if I understand correctly the following should be a regular
> expression for a python3 identifier.
>
> (?:(?!_|\d)\w)\w+
If you don't have to treat it
On 09/03/2015 14:15, Dave Angel wrote:
> On 03/07/2015 02:15 PM, Markos wrote:
>> Hi,
>>
>> I'm beginning to study the numpy.
>>
>> When I open a terminal (Debian Squeeze) and run the python interpreter
>> the command "import numpy as np" run without errors.
>>
>> But when I run the same command on
On 2015-03-09 15:29, Antoon Pardon wrote:
> Op 09-03-15 om 13:50 schreef Tim Chase:
> >> (?:(?!_|\d)\w)\w+
> > If you don't have to treat it as an atom, you can simplify that to
> > just
> >
> > (?!_|\d)\w+
> >
> > which just means that th
On 12/03/2015 21:56, Ryan Gonzalez wrote:
I'm posting this here because I have no clue who the heck the mailing
list manager is.
If you look at the bottom of this page:
https://mail.python.org/mailman/listinfo/python-ideas
you can see the list maintainers which is also a mailto: link which wi
On 12/03/2015 22:03, Zachary Ware wrote:
> On Thu, Mar 12, 2015 at 4:56 PM, Ryan Gonzalez wrote:
>> I'm posting this here because I have no clue who the heck the mailing list
>> manager is.
>>
>> I got this message:
>>
>> Your membership in the mailing list Python-ideas has been disabled due
>> to
On 2015-03-13 12:05, Larry Martell wrote:
> I need to remove all trailing zeros to the right of the decimal
> point, but leave one zero if it's whole number.
>
> But I can't figure out how to get the 5. to be 5.0.
> I've been messing with the negative lookbehind, but I haven't fou
On 2015-03-18 10:46, Aditya Raj Bhatt wrote:
> a = 5 '''a comment'''
>
> results in a syntax error
That's to be expected, and happens with any string, not just
triple-quoted:
>>> a = 5 "hello"
> there are no 'true' multiline comments in python and that all those
> 'block' comments are actuall
On 2015-03-23 21:19, Chandra Prashad mishra wrote:
> I want to know hint about web development... can any one get me...
Use your text editor and deploy your project to a web server.
-tkc
(you'd need to provide a few more details about what you want to get
anything more detailed in response)
On 25/03/2015 14:29, Oscar Benjamin wrote:
> On 25 March 2015 at 14:20, Larry Martell wrote:
>> I have an app that works with 2.6, but in 2.7 it is failing. I traced
>> it down to an issue with decimal.Decimal being passed a value of 0.0.
>> It 2.6 this is fine, but in 2.7 it throws an exception:
On 2015-03-25 21:20, Dave Angel wrote:
>> pattern="DECRYPT_I"
>> regexp=re.compile(pattern)
>
> That could explain why it's so fast.
While I might have missed it in the thread, it also seems that
regexpen are overkill for this. Why not just test for
if pattern in name:
...
-tkc
--
http
On 2015-03-26 08:33, Tiglath Suriol wrote:
> > Mark Lawrence
>
> I don't remember addressing his guy, HE addressed me FIRST, as all
> of you did,
Hmmm...To what then has he been replying? *You* posted/broadcast the
FIRST message which addressed every member of the list. If you
don't want to
On 2015-03-27 10:15, Steven D'Aprano wrote:
> If that's all it is, why don't you just run the tokenizer over it
> and see what it says?
>
> py> from cStringIO import StringIO
> py> code = StringIO('spam = "abcd" "efgh"\n')
> py> import tokenize
> py> for item in tokenize.generate_tokens(code.readl
On 26/03/2015 23:52, T Younger wrote:
> I have 3.4.1 (8/14) and replaced it with 3.4.2 (12/14)
> Neither of these uninstalled or I do not believe even had the option.
>
> I now wanted to update to 3.4.3 and the uninstall fails, provided the
> message that the installer is missing a program then ba
is invalid. Neither one of those statement have any comments.
There is a CONVENTION to embed a literal string as the first line in a
function, to allow for automatic documentation. Whether the literal string
is single-quoted or triple-quoted is irrelevant. That is, these two things
are
On 07/04/2015 15:35, Khyati wrote:
> On Tuesday, April 7, 2015 at 10:31:47 AM UTC-4, Chris Angelico wrote:
>> On Wed, Apr 8, 2015 at 12:15 AM, Khyati wrote:
>>> Thanks for taking a look, Chris.
>>> The error trace:
>>> traceback (most recent call last):
>>> File "MonitorRegistry.py", line 18, in
On 07/04/2015 15:52, Tim Golden wrote:
> On 07/04/2015 15:35, Khyati wrote:
>> On Tuesday, April 7, 2015 at 10:31:47 AM UTC-4, Chris Angelico wrote:
>>> On Wed, Apr 8, 2015 at 12:15 AM, Khyati wrote:
>>>> Thanks for taking a look, Chris.
>>>> The error tr
On 2015-04-09 03:25, [email protected] wrote:
> You may kindly suggest how to convert from .doc
> to .docx/.html/.pdf/.rtf as from them I am being able to convert
> to .txt.
Use an external tool such as "wv", "antiword", or "catdoc" that has
already done the hard work for you.
-tkc
On 09/04/2015 11:25, [email protected] wrote:
> Dear Group,
>
> I was trying to convert .doc file to .txt file.
>
> I got of python-docx, zipfile but they do not seem to help me much.
>
> You may kindly suggest how to convert from .doc to
> .docx/.html/.pdf/.rtf as from them I am bein
On 15/04/2015 19:47, Gil Dawson wrote:
Hi--
I'm new here. How do you search the archives?
--Gil
There's nothing builtin to mailman (v 2.x which we're using). You've got
a few options:
* Use Google (or whatever engine) with site:, eg:
https://www.google.co.uk/search?q=site:mail.python.or
On 2015-04-15 15:21, Gary Herron wrote:
> On 04/15/2015 02:51 PM, Chris Withers wrote:
> > I'm pleased to announce the release of xlwt 1.0.0.
>
> What a curiously incomplete announcement. Could you tell us what
> xlwt is? I see no hint here.
Heh, this and its sibling package, xlrd, are Python p
On 2015-04-17 03:10, Steven D'Aprano wrote:
> And there there was the time I edited some code written by my boss.
> I intended to write a comment:
>
> # FIXME: this function is a little slow and should be optimized.
>
> but I hit the wrong key a couple of times and wrote:
>
> # This is a
On 18/04/2015 11:24, [email protected] wrote:
Many google groups support markdown or other markup.
I see no mention of markup here:
https://www.python.org/community/clpya-guidelines.txt/
Is there any way to format announcements? If so, how. If not, why not?
Because this is not, primarily,
On 2015-04-24 09:00, Ian Kelly wrote:
> It is not equivalent to:
>
> if ("AND" in str1) or ("OR" in str1) or ("NOT" in str1):
Which python allows you to write nicely as
if any(term in str1 for term in ["AND", "OR", "NOT"]):
The use of any()/all() has certainly improved the readability of
On 2015-04-29 14:22, Emile van Sebille wrote:
> On 4/29/2015 1:49 PM, Kashif Rana wrote:
> > pol_elements =
> > re.compile('id\s(?P.+?)(?:\sname\s(?P.+?))?\sfrom\s(?P.+?)\sto\s(?P.+?)\s{2}(?P[^\s]+?)\s(?P[^\s]+?)\s(?P[^\s]+?)(?:(?P\snat)\s(?P[^\s]+?)(?P\sdip-id\s[^\s]+?)?)?\s(?P[^\s]+?)(?:\sschedul
On 30/04/2015 12:48, Luca Menegotto wrote:
> Hello everybody.
Hi Luca,
>
> One of the common rules i like most is: when you enter in a community,
> introduce yourself!
In fact, many people don't on this list, so it's nice of you to offer us
this courtesy :)
>
> So here I am! Luca, old develop
On 2015-04-30 22:18, Cecil Westerhof wrote:
> Op Thursday 30 Apr 2015 20:59 CEST schreef Dave Angel:
>> ulimit is your friend if you've got a program that wants to gobble
>> up all of swap space.
>
> Yes, my system is openSUSE 64 bit. I really should look into ulimit.
> The default is:
[snip]
>
[dangit, had Control down when I hit and it sent prematurely]
On 2015-05-02 13:02, vasudevram wrote:
> http://jugad2.blogspot.in/2015/05/can-python-data-structure-reference.html
>
> https://docs.python.org/2/reference/datamodel.html
>
> and saw this excerpt:
>
> [ CPython implementation detail:
On 2015-05-02 13:02, vasudevram wrote:
> Hi group,
>
> Please refer to this blog post about code showing that a Python
> data structure can be self-referential:
>
> http://jugad2.blogspot.in/2015/05/can-python-data-structure-reference.html
>
> Gotten a couple of comments on it already, but inter
On 2015-05-02 23:06, Cecil Westerhof wrote:
> Op Saturday 2 May 2015 22:17 CEST schreef Tim Chase:
>> This creates a cycle, then makes it unreachable, but the list is
>> still referenced by itself, so the reference count never drops to
>> zero (where it would get GC'd),
On 2015-05-04 21:57, Andrew Cooper wrote:
> On 04/05/2015 18:43, Ian Kelly wrote:
> >
> > Some other gotchas that aren't necessarily related to C/Java but
> > can be surprising nonetheless:
> >
> > *() is a zero-element tuple, and (a, b) is a two-element
> > tuple, but (a) is not a one-elemen
On 2015-05-05 10:09, Kashif Rana wrote:
> When I am writing list of dictionaries to CSV file, the key
> 'schedule' has value 'Mar 2012' becomes Mar-12.
How are you making this determination? Are you looking at the raw
CSV output, or are you looking at the CSV file loaded into a
spreadsheet like
On 2015-05-06 19:08, MRAB wrote:
> You could tell it to quote any value that's not a number:
>
> w = csv.DictWriter(f, pol_keys,
> quoting=csv.QUOTE_NONNUMERIC)
>
> It looks like all of the values you have are strings, so they'll
> all be quoted.
>
> I would hope that Excel will then treat
On 2015-05-06 12:27, Ian Kelly wrote:
> On Wed, May 6, 2015 at 12:22 PM, Tim Chase
> wrote:
> > On 2015-05-06 19:08, MRAB wrote:
> >> You could tell it to quote any value that's not a number:
> >>
> >> w = csv.DictWriter(f, pol_keys,
> >
On 2015-05-06 23:31, Denis McMahon wrote:
> On Tue, 05 May 2015 22:32:28 -0700, Kashif Rana wrote:
> > thanks for the feedback. I think its problem with excel itself,
> > showing wrong value. Because when I opened the csv file in text
> > editor, I can see correct value but opening in excel showing
On 2015-05-06 20:22, Tim Chase wrote:
> As ChrisA posted earlier, you have to use Excel's Import
> functionality (there are several ways to get this wizard, but not
> all ways of opening a .csv trigger the wizard), then specify those
> particular columns as "Text" rathe
@ in the future, but please do not CC the list.
My spam filters have learned to filter out most job spam automatically by
now, but it doesn't filter out your reply.
Tim Delaney
--
https://mail.python.org/mailman/listinfo/python-list
On 12/05/2015 22:17, Mark Lawrence wrote:
On 12/05/2015 20:46, Grant Murphy wrote:
Hi,
When pulling in a dependency via pip it is currently difficult to
reason about
whether there are any vulnerabilities associated with the package
version you
are using. I think the Python package management
On 2015-05-13 06:07, Chris Angelico wrote:
> On Wed, May 13, 2015 at 5:54 AM, Ian Kelly
> wrote:
> > Also, I like to put command-line parsing inside the main function
> > and make that its *only* responsibility. The main function then
> > calls the real entry point of my script, which will be some
On 2015-05-14 09:57, 20/20 Lab wrote:
> On 05/13/2015 06:23 PM, Steven D'Aprano wrote:
>>> I have a LARGE csv file that I need to process. 110+ columns,
>>> 72k rows. I managed to write enough to reduce it to a few
>>> hundred rows, and the five columns I'm interested in.
> I actually stumbled ac
On 2015-05-16 12:20, C.D. Reimer wrote:
> Does python perform the dot operators from left to right or
> according to a rule of order (i.e., multiplication/division before
> add/subtract)?
Yes, Python evaluates dot-operators from left to right.
-tkc
--
https://mail.python.org/mailman/listinfo/p
On 2015-05-17 21:39, Johannes Bauer wrote:
> Hey there,
>
> so that textwrap.wrap() breks non-breaking spaces, is this a bug or
> intended behavior? For example:
>
> Python 3.4.0 (default, Apr 11 2014, 13:05:11)
> [GCC 4.8.2] on linux
>
> >>> import textwrap
> >>> for line in textwrap.wrap("foo
On 2015-05-19 06:42, [email protected] wrote:
> I succesfully wrote a regex in python in order to substitute all
> the occurences in the form $"somechars" with another string. Here
> it is:
>
> re.sub(ur"""(?u)(\$\"[^\"\\]*(?:\\.[^\"\\]*)*\")""", newstring,
> string)
The expression is a little mo
On 2015-05-20 22:58, Chris Angelico wrote:
> On Wed, May 20, 2015 at 9:44 PM, Parul Mogra
> wrote:
> > My objective is to create large amount of data files (say a
> > million *.json files), using a pre-existing template file
> > (*.json). Each file would have a unique name, possibly by
> > incorpo
On 2015-05-20 17:59, Peter Otten wrote:
> Tim Chase wrote:
> > wordlist[:] = [ # just lowercase all-alpha words
> > word
> > for word in wordlist
> > if word.isalpha() and word.islower()
> > ]
>
> Just a quick reminder: if the data is
On 21/05/2015 09:07, Steven D'Aprano wrote:
> On Thursday 21 May 2015 15:34, [email protected] wrote:
>
>> So I was trying to dir /s /b using python.
>> Now since the file's path name is computed using other part of the code, I
>> am feeding in a variable here and somehow it does not seem to w
On 21/05/2015 15:14, Grant Edwards wrote:
> On 2015-05-21, Steven D'Aprano wrote:
>
>> import glob
>> print(glob.glob("c:/abc/def/ghjmain/features/XYZ/*"))
>>
>> Don't use backslashes \ as they have special meaning to Python. Use forward
>> slashes and let Python convert them as needed.
>
> Int
On 22/05/2015 14:11, Cecil Westerhof wrote:
> Op Friday 22 May 2015 14:38 CEST schreef Dan Sommers:
>
>> On Fri, 22 May 2015 09:59:02 +0200, Cecil Westerhof wrote:
>>
>>> Would Camelot be a good tool to get me started, or can I better
>>> bite the bullet and just start with Tkinter and SQLAlchemy?
On 2015-05-22 23:34, Marko Rauhamaa wrote:
> >>> object().x = 3
> Traceback (most recent call last):
> File "", line 1, in
> AttributeError: 'object' object has no attribute 'x'
>
> Why are object instances immutable in Python?
I've wondered this on multiple occasions, as I've wanted to just mak
uite a few),
> or "bytes in whatever codepage your system was set to" (anything that
> hasn't cared)?
>
> ChrisA
>
Lo these many years ago, I argued that Python is a whole lot more than
a programming language:
https://www.tundraware.com/TechnicalNotes/Python-Is-Mid
ed a certain operating system, which shall remain
> nameless.
>
>
> /Grrr
>
CP/M ?
--
----
Tim Daneliuk [email protected]
PGP Key: http://www.tundraware.com/PGP/
--
https://mail.python.org/mailman/listinfo/python-list
On 05/22/2015 11:11 PM, amber wrote:
> «»
>
> On 22/05/2015 21:40, Tim Daneliuk wrote:
>>https://www.tundraware.com/TechnicalNotes/Python-Is-Middleware/
> Quoting that article
> «And no, you couldn't get a C based OS to do what TPF does even if you
> did have a c
On 05/22/2015 08:54 PM, Terry Reedy wrote:
> On 5/22/2015 5:40 PM, Tim Daneliuk wrote:
>
>> Lo these many years ago, I argued that Python is a whole lot more than
>> a programming language:
>>
>> https://www.tundraware.com/TechnicalNotes/Python-Is-Middlew
On 2015-05-23 11:10, Jon Ribbens wrote:
> On 2015-05-23, Michael Torrie wrote:
> > The same can be said of CA-signed certificates.
>
> I think you are falling into the trap of believing that all things
> are either perfect or they are worthless. CAs aren't perfect, but
> neither are they worthles
piece of metadata
is left around to misuse.
--
----
Tim Daneliuk [email protected]
PGP Key: http://www.tundraware.com/PGP/
--
https://mail.python.org/mailman/listinfo/python-list
CAs to make that
problem go away. See:
https://www.eff.org/deeplinks/2014/11/certificate-authority-encrypt-entire-web
--
Tim Daneliuk [email protected]
PGP Key: http://www.tundraware.com/PGP/
--
https://mail.python.org/mailman/listinfo/python-list
On 2015-05-22 15:03, Laura Creighton wrote:
> I don't know anything about Camelot.
Am I the only one who is disappointed that nobody has claimed
"Camelot...it's only a model"? :-)
-tkc
--
https://mail.python.org/mailman/listinfo/python-list
On 25/05/2015 16:19, garyr wrote:
I posted this on the Anaconda NG but haven't gotten an answer.
I recently installed Python 2.7 using Miniconda. I'm now trying to build a
Python extension module. My setup.py file is:
from distutils.core import setup, Extension
module1 = Extension('pyssoun
On 2015-05-26 21:45, Mark Lawrence wrote:
>> class MyClass(object):
>> def __init__(ስ):
>> ስ.dummy = None
>
> Apart from breaking all the tools that rely on "self" being spelt
> "self" this looks like an excellent idea.
Though to be fair, they *are* broken tools if they rely on "self"
On 2015-05-28 23:50, Skybuck Flying wrote:
> A = input
> B = input
> C = output
>
> A B C:
> ---
> F F T
> F T F
> T F T
> T T T
>
> Surpisingly enough I don't think there is a casual/common operator
> for this thruth table.
>
> AND does not apply.
> OR does not apply.
> XOR does not apply.
On 2015-05-29 13:48, Chris Angelico wrote:
> That said, though, using 0 for False and 1 for True is easily
> the most common convention in use today, and the next most likely
> case is that comparing booleans would give a simple and immediate
> error. So it's most likely to be safe to do.
There ar
On 30/05/2015 10:30, Justin Thyme wrote:
Is it possible to write a Python program that will start MS Excel,
create a spreadsheet and fill cells A1 to A10 (say) with the data in a
Python array? The answer is surely yes, but is there an outline of how
to do it somewhere?
This is still a good pl
On 2015-05-30 10:30, Justin Thyme wrote:
> Is it possible to write a Python program that will start MS Excel,
> create a spreadsheet and fill cells A1 to A10 (say) with the data
> in a Python array? The answer is surely yes, but is there an
> outline of how to do it somewhere?
it depends on how
print br
This will output the characters one per line (on Python 3.x), since that is
what the reversed() iterator will return. You will need to do something
else to get it back to a single string.
Have you read through the python tutorials?
https://docs.python.org/3/tutorial/
or for Python 2
On 1 June 2015 at 10:30, Mark Lawrence wrote:
> On 01/06/2015 00:23, Tim Delaney wrote:
>
>> The for statement must have a colon at the end of line e.g. a complete
>> for statement and block is:
>>
>> for br in b:
>> print br
>>
>> This will o
On 01/06/2015 09:30, Steven D'Aprano wrote:
> How do you run it in Windows 7? The hashbang line
>
> #!/usr/bin/python
>
> is for Linux and Unix, and won't work on Windows. So you must be doing
> something to execute the file. What is that?
Actually, it will for anywhere with a recent Python
Is Python supposed to support POSIX "equivalence classes"? I tried
the following in Py2 and Py3:
>>> re.sub('[[=a=]]', 'A', 'aáàãâä', re.U)
'aáàãâä'
which suggests that it doesn't (I would have expected "AA" as the
result).
Is there a way to get this behavior?
I found that perl knows a
On 2015-06-02 04:37, Mark Lawrence wrote:
> > I read the online help about string. It lists string constants,
> > string formatting, template strings and string functions. After
> > reading these, I am still puzzled about how to use the string
> > module.
>
> I suggest you don't bother, it's effec
2401 - 2500 of 7461 matches
Mail list logo