Chris Angelico wrote:
> And I've seen a number of proposals to build Python with its
> keywords localized.
ChinesePython:
http://www.chinesepython.org/english/english.html
Teuton:
http://www.fiber-space.de/EasyExtend/doc/teuton/teuton.htm
--
Steve
--
https://mail.python.org/mailman/listin
On 03/03/2015 02:29, Terry Reedy wrote:
On 3/2/2015 8:12 PM, Ben Finney wrote:
Seth P writes:
Is there a reason tarfile and zipfile don't use the same method/member
names, where it makes sense?
The situation is known to some core developers, but is hard to change now.
One likely explanati
On 03/03/2015 04:04, Dennis Lee Bieber wrote:
On Mon, 2 Mar 2015 17:12:24 + (UTC), Jon Ribbens
declaimed the following:
On 2015-03-02, Dennis Lee Bieber wrote:
A pub's a bar; a bar's a gate; a gate's a street
If each of those is supposed to be English first and then the America
On 03/03/2015 05:55, Mario Figueiredo wrote:
Anyone else having problems installing Sphinx as of late? It installed
perfectly fine for me under windows just a few weeks ago. But
currently I get an error when trying to install it:
I'm including the full error output.
$ pip install -U sphinx --no
On Tue, Mar 3, 2015 at 6:05 PM, Marko Rauhamaa wrote:
> Chris Angelico :
>
>> Aye, but that's only an issue if you use more than one. You're most
>> welcome to use "colour" in a project, just be consistent.
>
> Or "Farbe" or "couleur" or "väri" or...
>
> I *have* seen code like that.
And I've see
Chris Angelico :
> Aye, but that's only an issue if you use more than one. You're most
> welcome to use "colour" in a project, just be consistent.
Or "Farbe" or "couleur" or "väri" or...
I *have* seen code like that.
Marko
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Mar 3, 2015 at 4:33 PM, Jason Friedman wrote:
>>> This is what I was trying but LooseVersion() was not sorting version
>>> numbers like I thought it would. You will notice that Chrome version
>>> "40.0.2214.111" is higher than "40.0.2214.91" but in the end result it's
>>> not sorting it
On Tue, Mar 3, 2015 at 4:40 PM, Gregory Ewing
wrote:
> Chris Angelico wrote:
>>
>> You want to
>> use "colour" instead of "color"? Also not a problem, and should be
>> easy enough for someone to understand who normally spells it the other
>> way.
>
>
> It's not a matter of failing to understand, i
Seth P wrote:
Is there a reason tarfile and zipfile don't use the same method/member names,
where it makes sense?
There was talk in the python-dev mailing list recently
about creating a unified interface to the various
archiving modules. You might like to keep an eye on
what's happening there.
alb wrote:
The result I aim to would be:
In [BINGO]: print pypandoc.convert(inp, 'latex', format='rst')
\ref{fig:abc}
From a cursory reading of the pypandoc docs, it looks
like enabling the raw_tex extension in pypandoc will
give you what you want.
Search for raw_tex on this page:
http://joh
Sturla Molden wrote:
I can assure you that in a veterinary sence, Yersey cows will produce a
milk with higher fat content.
There, "a milk" is really an abbreviation for "a type of milk".
But people who talk about "a code" don't mean "a type of code",
they're using it the way we would say "a pr
Steven D'Aprano wrote:
"please hand all monies to the bursar",
I think that's another case of an implied unit, the unit
in this case being the money involved in one transaction.
but it would be weird to say "please hand five monies to the
bursar".
It would, but I'm not sure I could explain
Anyone else having problems installing Sphinx as of late? It installed
perfectly fine for me under windows just a few weeks ago. But
currently I get an error when trying to install it:
I'm including the full error output.
$ pip install -U sphinx --no-cache-dir
Collecting sphinx
Downloading Sph
Chris Angelico wrote:
You want to
use "colour" instead of "color"? Also not a problem, and should be
easy enough for someone to understand who normally spells it the other
way.
It's not a matter of failing to understand, it's about
having more than one spelling of an identifier around
imposing
>> This is what I was trying but LooseVersion() was not sorting version numbers
>> like I thought it would. You will notice that Chrome version "40.0.2214.111"
>> is higher than "40.0.2214.91" but in the end result it's not sorting it that
>> way.
>
> Because it's a string they're sorted lexicog
MRAB wrote:
> There might be a difference, like that between "this program contains a
> bug" and "this program contains one bug".
Those two sentences mean exactly the same thing in standard American,
British and Australian English. Pedants can argue whether "one bug" means
*exactly* one bug, n
Jon Ribbens wrote:
> On 2015-03-02, Dennis Lee Bieber wrote:
>> A pub's a bar; a bar's a gate; a gate's a street
>
> If each of those is supposed to be English first and then the American
> equivalent second, then I'm afraid the first one is misleading and the
> other two are just nonsense.
Unf
Dennis Lee Bieber :
>>On 2015-03-02, Dennis Lee Bieber wrote:
>>> A pub's a bar; a bar's a gate; a gate's a street
>
> Not based on some of what I found in York while on TDY... Where the
> entries to the old town -- what an American might call a gate -- were all
> named bar, and the str
On Mon, 2 Mar 2015 19:51:31 -0800 (PST), Rustom Mody
wrote:
>
>I dont know what you are saying Mario or even whom you are addressing
I was replying directly to Marko. I don't think it is possible to
establish a standard dialect for variable names in English or any
other language. It doesn't even
Rustom Mody writes:
> And among these people, if they are faithful to their own calling, to
> their own vocation, and to their own message from God, communication
> on the deepest level is possible. And the deepest level of
> communication is not communication, but communion. It is wordless. It
>
On Tuesday, March 3, 2015 at 8:21:53 AM UTC+5:30, Mario Figueiredo wrote:
> On Mon, 02 Mar 2015 17:30:42 +0200, Marko Rauhamaa wrote:
>
> >Steven D'Aprano:
> >
> >> But for Britons to use American English is, in a way, to cease to be
> >> Britons at all.
> >
> >Did Hugh Laurie have to turn in his
On Mon, 02 Mar 2015 17:30:42 +0200, Marko Rauhamaa
wrote:
>Steven D'Aprano :
>
>> But for Britons to use American English is, in a way, to cease to be
>> Britons at all.
>
>Did Hugh Laurie have to turn in his British passport?
The concepts behind an actor performing and a programmer programming
On Monday, March 2, 2015 at 4:25:04 PM UTC+5:30, Jonas Wielicki wrote:
> I wonder whether this discussion has anything to do with the Uncanny
> Valley [1].
>[1]: https://en.wikipedia.org/wiki/Uncanny_valley
That's right.
And thanks for the reference.
Had seen that some time but forgot the n
On 3/2/2015 8:12 PM, Ben Finney wrote:
Seth P writes:
Is there a reason tarfile and zipfile don't use the same method/member
names, where it makes sense?
The situation is known to some core developers, but is hard to change now.
One likely explanation is that the modules's APIs were design
On 2015-03-03 01:44, Mark Lawrence wrote:
On 03/03/2015 00:23, Sturla Molden wrote:
Steven D'Aprano wrote:
Variations in idiom and spelling are a good thing. They open our minds to
new possibilities, remind us that we aren't all the same, and keep life
fresh. I remember the first time I reali
On 03/03/2015 00:23, Sturla Molden wrote:
Steven D'Aprano wrote:
Variations in idiom and spelling are a good thing. They open our minds to
new possibilities, remind us that we aren't all the same, and keep life
fresh. I remember the first time I realised that when Indians talk about "a
code" t
Seth P writes:
> Is there a reason tarfile and zipfile don't use the same method/member
> names, where it makes sense?
One likely explanation is that the modules's APIs were designed by
different people unaware of the work of the other.
--
\“We have to go forth and crush every world v
Is there a reason tarfile and zipfile don't use the same method/member names,
where it makes sense? Consider the following six methods/members, which I
would expect to be the same (with the possible exception of mtime vs date_time,
which are of different types). It almost seems like someone we
Sturla Molden wrote:
> Steven D'Aprano wrote:
>
>> Variations in idiom and spelling are a good thing. They open our minds to
>> new possibilities, remind us that we aren't all the same, and keep life
>> fresh. I remember the first time I realised that when Indians talk about
>> "a code" they are
Steven D'Aprano wrote:
> Variations in idiom and spelling are a good thing. They open our minds to
> new possibilities, remind us that we aren't all the same, and keep life
> fresh. I remember the first time I realised that when Indians talk about "a
> code" they aren't using "wrong English", the
Am 02.03.2015 20:14 schrieb sohcahto...@gmail.com:
On Monday, March 2, 2015 at 12:43:59 AM UTC-8, Sarvagya Pant wrote:
f = open("somefile.txt")
This one is the problem. Under Windows, you have to open the file in
binary to avoid that something "bad" happens with it.
So just do
f = open("
alb wrote:
> In [39]: print pypandoc.convert(s, 'latex', format='rst')
> this is some restructured text.
>
> what happened to my backslash???
You'll need to read your pypandoc documentation to see what it says about
backslashes.
> If I try to escape my backslash I get something worse:
>
> In
On 03/02/2015 05:40 PM, alb wrote:
Hi Dave,
Dave Angel wrote:
[]
or use a raw string:
i = r'\\ref{fig:abc}'
Actually that'd be:
i = r'\ref{fig:abc}'
Could you explain why I then see the following difference:
In [56]: inp = r'\\ref{fig:abc}'
print inp
and you should get
\\re
alb wrote:
> Could you explain why I then see the following difference:
>
> In [56]: inp = r'\\ref{fig:abc}'
>
> In [57]: print pypandoc.convert(inp, 'latex', format='rst')
> \textbackslash{}ref\{fig:abc\}
>
>
> In [58]: inp = r'\ref{fig:abc}'
>
> In [59]: print pypandoc.convert(inp, 'latex',
Chris Angelico writes:
> And of course, that means you have to escape the backslash if you want
> to have one in the text. But all of this is just for putting *string
> literals* into your source code. If it's not Python source code, these
> rules don't apply. You can read a line of text from the
On 02/03/2015 22:40, alb wrote:
Hi Dave,
Dave Angel wrote:
[]
or use a raw string:
i = r'\\ref{fig:abc}'
Actually that'd be:
i = r'\ref{fig:abc}'
Could you explain why I then see the following difference:
In [56]: inp = r'\\ref{fig:abc}'
In [57]: print pypandoc.convert(inp, 'latex',
On Tue, Mar 3, 2015 at 9:30 AM, alb wrote:
> Hi Dave,
>
> Dave Angel wrote:
> []
>>> Rst escapes with "\", but unfortunately python also uses "\" for escaping!
>>
>> Only when the string is in a literal. If you've read it from a file, or
>> built it by combining other strings, or... then the ba
Steven D'Aprano wrote:
I remember the first time I realised that when Indians talk about "a
code" they aren't using "wrong English", they are using a regional
variation.
I don't think this is confined to Indians. I've noticed
that people from a Fortran scientific-computing background
tend to us
Hi Dave,
Dave Angel wrote:
[]
>>> or use a raw string:
>>>
>>> i = r'\\ref{fig:abc}'
>
> Actually that'd be:
>i = r'\ref{fig:abc}'
Could you explain why I then see the following difference:
In [56]: inp = r'\\ref{fig:abc}'
In [57]: print pypandoc.convert(inp, 'latex', format='rst')
\textb
Hi MRAB,
MRAB wrote:
[]
> Have you tried escaping the escape character by doubling the backslash?
>
> inp = 'ref{fig:abc}'
In [54]: inp = 'ref{fig:abc}'
In [55]: print pypandoc.convert(inp, 'latex', format='rst')
\textbackslash{}ref\{fig:abc\}
the backslash is considered as literal te
Hi Dave,
Dave Angel wrote:
[]
>> Rst escapes with "\", but unfortunately python also uses "\" for escaping!
>
> Only when the string is in a literal. If you've read it from a file, or
> built it by combining other strings, or... then the backslash is just
> another character to Python.
Holy
On 2015-03-02, sohcahto...@gmail.com wrote:
> On Monday, March 2, 2015 at 9:13:21 AM UTC-8, Jon Ribbens wrote:
>> On 2015-03-02, Dennis Lee Bieber wrote:
>> >A pub's a bar; a bar's a gate; a gate's a street
>>
>> If each of those is supposed to be English first and then the American
>> equiv
On 2/26/15 7:53 PM, memilanuk wrote:
So... okay. I've got a bunch of PDFs of tournament reports that I want
to sift thru for information. Ended up using 'pdftotext -layout
file.pdf file.txt' to extract the text from the PDF. Still have a few
little glitches to iron out there, but I'm getting d
On 01/03/2015 17:52, Marko Rauhamaa wrote:
Mark Lawrence :
On 01/03/2015 17:01, Marko Rauhamaa wrote:
What you (or I) speak in our native surroundings is up to you (and
me).
However, when I exhange software engineering ideas with you, I wish
both of us could stick to American English.
Well
On 03/02/2015 02:22 PM, Gisle Vanem wrote:
Dave Angel wrote:
When I ran Windows, I had written a simple utility that searched the
PATH for a specified file.
I called it which.bat to match the Linux equivalent.
I've written a similar tool; envtool --path --python python27.dll
Matches in %PATH
I INTENDED to send it to the list, but made the same mistake myself.
Forwarded Message
Subject: Re: Python27.dll could not be found
Date: Mon, 02 Mar 2015 08:51:07 -0500
From: Dave Angel
To: Sarvagya Pant
Sarvaqya accidentally sent me private email, so I'm forwarding with
co
Dave Angel wrote:
When I ran Windows, I had written a simple utility that searched the PATH for a
specified file.
I called it which.bat to match the Linux equivalent.
I've written a similar tool; envtool --path --python python27.dll
Matches in %PATH:
15 May 2013 - 21:43:38: f:\ProgramF
Charles Heizer wrote:
> Never mind, the light bulb finally went off. :-\
>
> sortedlist = sorted(mylist , key=lambda elem: "%s %s" % ( elem['name'],
> (".".join([i.zfill(5) for i in elem['version'].split(".")])) ),
> reverse=True)
This lightbulb will break with version numbers > 9 ;)
Here a
On Monday, March 2, 2015 at 12:43:59 AM UTC-8, 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()
> w
Hi
Please let me know if you have anyone suitable for the below position
Job title: Software Engineer in Quality
Location: Sunnyvale, CA
Interview Process: Onsite
Duration: 6 months + contract
Responsibilities:
Work on an existing application in the Marketing Science team focused on
maintain
On Monday, March 2, 2015 at 9:13:21 AM UTC-8, Jon Ribbens wrote:
> On 2015-03-02, Dennis Lee Bieber wrote:
> > A pub's a bar; a bar's a gate; a gate's a street
>
> If each of those is supposed to be English first and then the American
> equivalent second, then I'm afraid the first one is misl
Dave Angel writes:
> And D'oh right back at ya. Ironic isn't it that I make a second
> mistake in the same message I correct yours?
https://en.wikipedia.org/wiki/Muphry%27s_law>
--
\ “Truth would quickly cease to become stranger than fiction, |
`\ once we got as
Never mind, the light bulb finally went off. :-\
sortedlist = sorted(mylist , key=lambda elem: "%s %s" % ( elem['name'],
(".".join([i.zfill(5) for i in elem['version'].split(".")])) ), reverse=True)
On Monday, March 2, 2015 at 10:40:30 AM UTC-8, Charles Heizer wrote:
> Sorry,
>
> sortedlist = s
On 03/02/2015 01:38 PM, Charles Heizer wrote:
Sorry,
sortedlist = sorted(mylist , key=lambda elem: "%s %s" % (elem['name'],
LooseVersion(elem['version'])), reverse=True)
This is what I was trying but LooseVersion() was not sorting version numbers like I thought it
would. You will notice that
On 03/02/2015 09:43 AM, Steven D'Aprano wrote:
Dave Angel wrote:
On 03/02/2015 08:51 AM, alb wrote:
Hi Steven,
Steven D'Aprano wrote:
or use a raw string:
i = r'\\ref{fig:abc}'
Actually that'd be:
i = r'\ref{fig:abc}'
D'oh!
I mean, you spotted my deliberate mistake to check i
On Mon, Mar 2, 2015 at 11:38 AM, Charles Heizer wrote:
> Sorry,
>
> sortedlist = sorted(mylist , key=lambda elem: "%s %s" % (elem['name'],
> LooseVersion(elem['version'])), reverse=True)
>
> This is what I was trying but LooseVersion() was not sorting version numbers
> like I thought it would. Y
Hi
Please let me know if you have anyone available for below position
Position - Data Application Engineer
Location: Sunnyvale, CA (local candidates ONLY)
Interview Process - Onsite
Duration - 6 months + contract
The Marketing Science team is looking for a Software Data Application Developer
Sorry,
sortedlist = sorted(mylist , key=lambda elem: "%s %s" % (elem['name'],
LooseVersion(elem['version'])), reverse=True)
This is what I was trying but LooseVersion() was not sorting version numbers
like I thought it would. You will notice that Chrome version "40.0.2214.111" is
higher than "
On 3/2/2015 10:17 AM, Charles Heizer wrote:
Hello,
I'm new to python and I'm trying to find the right way to solve this issue I
have.
I'm trying to sort this list by name and then by version numbers. The problem
I'm having is that I can not get the version numbers sorted with the highest at
t
Hello,
I'm new to python and I'm trying to find the right way to solve this issue I
have.
I'm trying to sort this list by name and then by version numbers. The problem
I'm having is that I can not get the version numbers sorted with the highest at
the top or sorted properly.
mylist = [{'name'
On 2015-03-02, greymausg wrote:
> On 2015-03-02, Steven D'Aprano wrote:
>> greymausg wrote:
>>
>>> I have a csv file, the first item on a line is the date in the format
>>> 2015-03-02 I try to get that as a date by date(row[0]), but it barfs,
>>> replying "Expecting an integer". (I am really tryi
On 2015-03-02, Dennis Lee Bieber wrote:
> A pub's a bar; a bar's a gate; a gate's a street
If each of those is supposed to be English first and then the American
equivalent second, then I'm afraid the first one is misleading and the
other two are just nonsense.
--
https://mail.python.org/m
On Mon, 02 Mar 2015 08:25:40 -0800, Travis Griggs wrote:
> seems like the very smallest of our worries.
"There is no egg in eggplant"
What the blood heck is eggplant?
oh wait you mean aubergine
this page is clearly about American English.
We are even more obtuse, it stops Johnnie Foreigner kn
On Mon, Mar 2, 2015 at 8:59 AM, Michael Torrie wrote:
> Now I don't know of any way of implementing class-style properties on a
> module as you can do in a class, but if that were needed you would write
> a standard class and instantiate a singleton inside the module itself
> perhaps.
This works,
On 02/03/2015 15:42, Fabien wrote:
On 02.03.2015 15:26, Mark Lawrence wrote:
Have you tried Pandas? http://pandas.pydata.org/
If your csv file has no other problems, the following should do the
trick:
import pandas as pd
df = pd.read_csv('file.csv', index_col=0, parse_dates= {"time" : [0]})
On 02/03/2015 15:51, Chris Angelico wrote:
On Tue, Mar 3, 2015 at 2:24 AM, Mark Lawrence wrote:
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?
On Tue, Mar 3, 2015 at 3:09 AM, alister
wrote:
Sounds ominous. Is that better or worse than the final solution?
>>> As in "this program will inadvertantly self distruct in five seconds"?
>>
>> It's usually implied as being externally enforced, so I'd say it's more
>> akin to my solu
> On Mar 1, 2015, at 5:53 PM, Dennis Lee Bieber wrote:
>
> On Sun, 1 Mar 2015 20:16:26 + (UTC), alister
> declaimed the following:
>
>>
>> The language is called English, the clue is in the name. interestingly
>> most 'Brits' can switch between American English & English without too
>>
On 03/02/2015 03:19 AM, Fabien wrote:
> On 01.03.2015 06:05, Michael Torrie wrote:
>> A module*is* a singleton pattern, particularly one
>> that maintains state. I use sometimes use this feature for sharing
>> config and other data between other modules (global state when it's
>> required).
>
On Tue, 03 Mar 2015 02:51:28 +1100, Chris Angelico wrote:
> On Tue, Mar 3, 2015 at 2:24 AM, Mark Lawrence
> wrote:
>> 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
I like "Old Tricks". I learn lots of British english idioms. I'm from NYC
On Mon, Mar 2, 2015 at 10:45 AM, Chris Angelico wrote:
> On Tue, Mar 3, 2015 at 1:39 AM, Steven D'Aprano
> wrote:
>> Whereas the comparatively small differences between British and American
>> English are all the more imp
On Tue, Mar 3, 2015 at 2:24 AM, Mark Lawrence wrote:
> 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?
>>
>
> As in "this program
On Tue, Mar 3, 2015 at 1:39 AM, Steven D'Aprano
wrote:
> Whereas the comparatively small differences between British and American
> English are all the more important because they distinguish the two. Nobody
> is ever going to mistake Finland and the Finish people for Americans, even
> if you lear
On 02.03.2015 15:26, Mark Lawrence wrote:
Have you tried Pandas? http://pandas.pydata.org/
If your csv file has no other problems, the following should do the
trick:
import pandas as pd
df = pd.read_csv('file.csv', index_col=0, parse_dates= {"time" : [0]})
Cheers,
Fabien
IMHO complete ove
On 02/03/2015 15:32, alister wrote:
On Mon, 02 Mar 2015 14:19:45 +0200, Marko Rauhamaa wrote:
alister :
or as another analogy why don't you (Marco) try telling a Barber in
Seville that he should be speaking Latin Spanish not that strange
variation he uses?
If the barber conference language
On Mon, 02 Mar 2015 14:19:45 +0200, Marko Rauhamaa wrote:
> alister :
>
>> or as another analogy why don't you (Marco) try telling a Barber in
>> Seville that he should be speaking Latin Spanish not that strange
>> variation he uses?
>
> If the barber conference language were Latin, and some Spa
On Mon, Mar 2, 2015 at 4:04 AM, Cem Karan wrote:
> On Feb 26, 2015, at 2:54 PM, Ian Kelly wrote:
>> On Feb 26, 2015 4:00 AM, "Cem Karan" wrote:
>> >
>> >
>> > On Feb 26, 2015, at 12:36 AM, Gregory Ewing
>> > wrote:
>> >
>> > > Cem Karan wrote:
>> > >> I think I see what you're talking about no
Steven D'Aprano :
> Marko Rauhamaa wrote:
>> Similarly, I've heard some Finnish representatives in the Nordic
>> Council complain how the Danish insist on speaking Danish. The
>> official language there is Swedish.
>
> I'm reminded of the British Prime Minister David Lloyd George, who
> apparently
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?
As in "this program will inadvertantly self distruct in five seconds"?
--
My fellow Pythonistas, ask
alb wrote:
> Hi Steven,
>
> Steven D'Aprano wrote:
> []
>> Since \r is an escape character, that will give you carriage return
>> followed by "ef{fig:abc".
>>
>> The solution to that is to either escape the backslash:
>>
>> i = '\\ref{fig:abc}'
>>
>>
>> or use a raw string:
>>
>> i = r'\\re
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
--
On 2015-03-02, Steven D'Aprano wrote:
> greymausg wrote:
>
>> I have a csv file, the first item on a line is the date in the format
>> 2015-03-02 I try to get that as a date by date(row[0]), but it barfs,
>> replying "Expecting an integer". (I am really trying to get the offset
>> in weeks from th
On 2015-03-02, Fabien wrote:
> On 02.03.2015 12:55, greymausg wrote:
>> I have a csv file, the first item on a line is the date in the format
>> 2015-03-02 I try to get that as a date by date(row[0]), but it barfs,
>> replying "Expecting an integer". (I am really trying to get the offset
>> in wee
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?
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
Dave Angel wrote:
> On 03/02/2015 08:51 AM, alb wrote:
>> Hi Steven,
>>
>> Steven D'Aprano wrote:
>> []
>>> Since \r is an escape character, that will give you carriage return
>>> followed by "ef{fig:abc".
>>>
>>> The solution to that is to either escape the backslash:
>>>
>>> i = '\\ref{fig:abc}
Marko Rauhamaa wrote:
> alister :
>
>> or as another analogy why don't you (Marco) try telling a Barber in
>> Seville that he should be speaking Latin Spanish not that strange
>> variation he uses?
>
> If the barber conference language were Latin, and some Spaniard insisted
> on speaking Western
On 2015-03-02 14:08, Dave Angel wrote:
On 03/02/2015 08:51 AM, alb wrote:
Hi Steven,
Steven D'Aprano wrote:
[snip]
Oh, by the way, "i" is normally a terrible variable name for a string. Not
only doesn't it explain what the variable is for, but there is a very
strong convention in programm
On 02/03/2015 12:25, Fabien wrote:
On 02.03.2015 12:55, greymausg wrote:
I have a csv file, the first item on a line is the date in the format
2015-03-02 I try to get that as a date by date(row[0]), but it barfs,
replying "Expecting an integer". (I am really trying to get the offset
in weeks fro
On 2015-03-02 13:51, alb wrote:
Hi Steven,
Steven D'Aprano wrote:
[]
Since \r is an escape character, that will give you carriage return followed
by "ef{fig:abc".
The solution to that is to either escape the backslash:
i = '\\ref{fig:abc}'
or use a raw string:
i = r'\\ref{fig:abc}'
ok,
On 03/02/2015 08:51 AM, alb wrote:
Hi Steven,
Steven D'Aprano wrote:
[]
Since \r is an escape character, that will give you carriage return followed
by "ef{fig:abc".
The solution to that is to either escape the backslash:
i = '\\ref{fig:abc}'
or use a raw string:
i = r'\\ref{fig:abc}'
A
Hi Steven,
Steven D'Aprano wrote:
[]
> Since \r is an escape character, that will give you carriage return followed
> by "ef{fig:abc".
>
> The solution to that is to either escape the backslash:
>
> i = '\\ref{fig:abc}'
>
>
> or use a raw string:
>
> i = r'\\ref{fig:abc}'
ok, maybe I wasn't
On Monday 02 March 2015 01:19:46 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:
>
On 03/02/2015 07:38 AM, MRAB wrote:
On 2015-03-02 04:49, Dave Angel wrote:
On 03/01/2015 08:59 PM, MRAB wrote:
On 2015-03-02 01:37, Dennis Lee Bieber wrote
The 16 bit address bus permitted addressing of 64k words. On most
processors, that was 64k bytes, though I know one Harris had no by
greymausg wrote:
> I have a csv file, the first item on a line is the date in the format
> 2015-03-02 I try to get that as a date by date(row[0]), but it barfs,
> replying "Expecting an integer". (I am really trying to get the offset
> in weeks from that date to today())
What is "date"? Where doe
Hi Dave,
Dave Angel wrote:
[]
> You should be a lot more explicit with all three parts of that
> statement. Try:
>
>
> I'm trying to get a string of
\ref{fig:A.B}
but unfortunately I need to go through a conversion between rst and
latex. This is because a simple text like this:
this is a
On 03/02/15 at 08:59am, alister wrote:
> or as another analogy why don't you (Marco) try telling a Barber in
> Seville that he should be speaking Latin Spanish not that strange
> variation he uses?
>
> I suspect the reaction you get will be far more severe than the one you
> are getting from
On 2015-03-02 04:49, Dave Angel wrote:
On 03/01/2015 08:59 PM, MRAB wrote:
On 2015-03-02 01:37, Dennis Lee Bieber wrote
You'd be able to run it on a TI99/4 (in which the BASIC interpreter,
itself, was run on an interpreter... nothing like taking the first
"16-bit"
home computer and shackli
alb wrote:
[...]
> For all the above reasons I'm writing snippets of pure latex in my rst
> doc, but I'm having issues with the escape characters:
>
> i = '\ref{fig:abc}'
Since \r is an escape character, that will give you carriage return followed
by "ef{fig:abc".
The solution to that is to eit
On 02.03.2015 12:55, greymausg wrote:
I have a csv file, the first item on a line is the date in the format
2015-03-02 I try to get that as a date by date(row[0]), but it barfs,
replying "Expecting an integer". (I am really trying to get the offset
in weeks from that date to today())
Have you t
On 03/02/2015 01:00 AM, Sarvagya Pant wrote:
I have been writing a c++ program that is supposed to call the python
function. The code is a snippet from python.org itself.
#include
#include
#include
int main()
{
Py_SetProgramName("Learning");
Py_Initialize();
PyRun_SimpleString(
1 - 100 of 126 matches
Mail list logo