Snipped aplenty.
On Wed, Jun 10, 2015 at 8:21 PM, Steven D'Aprano wrote:
> On Thu, 11 Jun 2015 08:10 am, Devin Jeanpierre wrote:
> [...]
>> I could spend a bunch of time writing yet another config file format,
>> or I could use text format protocol buffers, YAML, or TOML and call it
>> a day.
>
>
I installed 2.7.9 on a Win8.1 machine. The Coursera instructor did a simple
install then executed Python from a file in which he'd put a simple hello world
script. My similar documents folder cannot see the python executable. How do
I make this work?
--
https://mail.python.org/mailman/listinf
Devin Jeanpierre :
> For example, one can also imagine testing that a serialized structure
> is identical across version changes, so that it's guaranteed to be
> forwards/backwards compatible. It is not enough to test that the
> deserialized form is, because it might differ substantially, as long
On Wed, Jun 10, 2015 at 9:19 PM, Michael Torrie wrote:
> On 06/10/2015 02:11 PM, Sebastian M Cheung via Python-list wrote:
>> On Wednesday, June 10, 2015 at 6:06:09 PM UTC+1, Sebastian M Cheung wrote:
>>> Say in 2014 April to May whole weeks would be 7th, 14th 28th April and May
>>> would be 5th
On Thu, Jun 11, 2015 at 1:27 PM, Steven D'Aprano wrote:
> On Thu, 11 Jun 2015 01:05 pm, Chris Angelico wrote:
> [...]
>>> Why do the subtitles contain ZWNBSP in the first place? Surely they're
>>> not English subtitles?
>>
>> No, they're not :) The character comes up in the Cantonese and
>> Japane
On Wed, Jun 10, 2015 at 8:01 PM, Sebastian M Cheung via Python-list
wrote:
> yes just whole weeks given any two months, I did looked into calendar module
> but couldn't find specifically what i need.
>>> cal.monthdays2calendar(2014, 4) + cal.monthdays2calendar(2014, 5)
[[(0, 0), (1, 1), (2, 2),
On Thu, Jun 11, 2015 at 1:19 PM, Michael Torrie wrote:
> I think Joel had the right idea. First calculate the rough number of
> weeks by taking the number of days between the date and divide by seven.
> Then check to see what the start date's day of week is, and adjust the
> rough week count down
On Thu, 11 Jun 2015 01:05 pm, Chris Angelico wrote:
[...]
>> Why do the subtitles contain ZWNBSP in the first place? Surely they're
>> not English subtitles?
>
> No, they're not :) The character comes up in the Cantonese and
> Japanese subs for Once Upon A December.
>
> http://youtu.be/CEpcUeWP0b
On Thu, Jun 11, 2015 at 1:18 PM, wrote:
> On Wed, Jun 10, 2015, at 23:05, Chris Angelico wrote:
>> http://youtu.be/CEpcUeWP0bg
>> http://youtu.be/WFZAaHrHens
>
> An example of the actual subtitle text would be more useful than a
> youtube link to the video, since we're unlikely to be able to see
On Thu, 11 Jun 2015 08:10 am, Devin Jeanpierre wrote:
[...]
>> For literals, the canonical form is that understood by Python. I'm pretty
>> sure that these have been stable since the days of Python 1.0, and will
>> remain so pretty much forever:
>
> The problem is that there are two different way
On 06/10/2015 02:11 PM, Sebastian M Cheung via Python-list wrote:
> On Wednesday, June 10, 2015 at 6:06:09 PM UTC+1, Sebastian M Cheung wrote:
>> Say in 2014 April to May whole weeks would be 7th, 14th 28th April and May
>> would be 5th, 12th and 19th. So expecting 7 whole weeks in total
>
> Wha
On Wed, Jun 10, 2015, at 23:05, Chris Angelico wrote:
> http://youtu.be/CEpcUeWP0bg
> http://youtu.be/WFZAaHrHens
An example of the actual subtitle text would be more useful than a
youtube link to the video, since we're unlikely to be able to see what
context the character appears in if our client
On Thu, Jun 11, 2015 at 12:26 PM, Steven D'Aprano wrote:
> No, despite the name, that is not a space character, it is a formatting
> character. Due to Unicode's stability policy, the name is stuck forever,
> but it should not be treated as a space character:
>
> py> unicodedata.category(' ')
> 'Zs
On Thu, 11 Jun 2015 10:09 am, Chris Angelico wrote:
> On Thu, Jun 11, 2015 at 3:11 AM, Steven D'Aprano
> wrote:
>> (Oh, and for the record, there are at least two non-breaking spaces in
>> Unicode, U+00A0 "NO-BREAK SPACE" and U+202F "NARROW NO-BREAK SPACE".)
>>
>> http://www.unicode.org/charts/PD
yes just whole weeks given any two months, I did looked into calendar module
but couldn't find specifically what i need.
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Jun 11, 2015 at 11:02 AM, wrote:
>
> On Wed, Jun 10, 2015, at 20:09, Chris Angelico wrote:
> > And U+FEFF "ZERO WIDTH NO-BREAK SPACE", notable because it's also used as
> > the byte-order mark (as its counterpart, U+FFFE, is unallocated). I've
> > been
> > fighting with VLC Media Player ov
On Wed, Jun 10, 2015, at 20:09, Chris Angelico wrote:
> And U+FEFF "ZERO WIDTH NO-BREAK SPACE", notable because it's also used as
> the byte-order mark (as its counterpart, U+FFFE, is unallocated). I've
> been
> fighting with VLC Media Player over the font it uses for subtitles; for
> some bizarre
On Wed, Jun 10, 2015, at 19:30, Gregory Ewing wrote:
> If whitelisting a type is the *only* thing you need to
> do to make it serialisable, I think that comes close
> enough to the stated goal of being able to "serialise
> all [potentially serialisable] language objects".
IMO the serialization fra
On Thu, Jun 11, 2015 at 3:11 AM, Steven D'Aprano
wrote:
> (Oh, and for the record, there are at least two non-breaking spaces in
> Unicode, U+00A0 "NO-BREAK SPACE" and U+202F "NARROW NO-BREAK SPACE".)
>
> http://www.unicode.org/charts/PDF/U0080.pdf
> http://www.unicode.org/charts/PDF/U2000.pdf
An
On Wed, Jun 10, 2015 at 4:46 PM, Terry Reedy wrote:
> On 6/10/2015 7:39 PM, Devin Jeanpierre wrote:
>>
>> On Wed, Jun 10, 2015 at 4:25 PM, Terry Reedy wrote:
>>>
>>> On 6/10/2015 6:10 PM, Devin Jeanpierre wrote:
>>>
The problem is that there are two different ways repr might write out
a
On Thu, Jun 11, 2015 at 8:10 AM, Devin Jeanpierre
wrote:
> The problem is that there are two different ways repr might write out
> a dict equal to {'a': 1, 'b': 2}. This can make tests brittle -- e.g.
> it's why doctest fails badly at examples involving dictionaries. Text
> format protocol buffers
On 6/10/2015 7:39 PM, Devin Jeanpierre wrote:
On Wed, Jun 10, 2015 at 4:25 PM, Terry Reedy wrote:
On 6/10/2015 6:10 PM, Devin Jeanpierre wrote:
The problem is that there are two different ways repr might write out
a dict equal to {'a': 1, 'b': 2}. This can make tests brittle
You commented a
On Wed, Jun 10, 2015 at 4:39 PM, Devin Jeanpierre
wrote:
> On Wed, Jun 10, 2015 at 4:25 PM, Terry Reedy wrote:
>> On 6/10/2015 6:10 PM, Devin Jeanpierre wrote:
>>
>>> The problem is that there are two different ways repr might write out
>>> a dict equal to {'a': 1, 'b': 2}. This can make tests br
On Wed, Jun 10, 2015 at 4:25 PM, Terry Reedy wrote:
> On 6/10/2015 6:10 PM, Devin Jeanpierre wrote:
>
>> The problem is that there are two different ways repr might write out
>> a dict equal to {'a': 1, 'b': 2}. This can make tests brittle
>
>
> Not if one compares objects rather than string repre
Robert Kern wrote:
To allow people to write their own types that can be serialized,
you have to let them specify arbitrary callables that will do the
reconstruction. If you whitelist the possible reconstruction callables,
you have greatly restricted the types that can participate in the
serial
On 6/10/2015 6:10 PM, Devin Jeanpierre wrote:
The problem is that there are two different ways repr might write out
a dict equal to {'a': 1, 'b': 2}. This can make tests brittle
Not if one compares objects rather than string representations of
objects. I am strongly of the view that code and
On 6/10/2015 10:11 AM, Nicholas Chammas wrote:
For example, here is a "New in version 3.4.4" method:
https://docs.python.org/3/library/asyncio-task.html#asyncio.ensure_future
However, the latest release appears to be 3.4.3:
https://www.python.org/downloads/
Is this normal, or did the 3.4.4 do
On 6/9/2015 10:19 AM, Leslie Bush wrote:
I’m having trouble reaching an actual human at your organization
> as my emails get bounced back.
If you sent email to
p...@python.org
it should not have bounced, as according to
https://mail.python.org/mailman/listinfo/python-legal-sig
that is the 'leg
FWIW most of the objections below also apply to JSON, so this doesn't
just have to be about repr/literal_eval. I'm definitely a huge
proponent of widespread use of something like protocol buffers, both
for production code and personal hacky projects.
On Wed, Jun 10, 2015 at 2:36 AM, Steven D'Apran
On Wed, Jun 10, 2015 at 2:11 PM, Sebastian M Cheung via Python-list
wrote:
> On Wednesday, June 10, 2015 at 6:06:09 PM UTC+1, Sebastian M Cheung wrote:
>> Say in 2014 April to May whole weeks would be 7th, 14th 28th April and May
>> would be 5th, 12th and 19th. So expecting 7 whole weeks in tota
On 10/06/2015 21:11, Sebastian M Cheung via Python-list wrote:
On Wednesday, June 10, 2015 at 6:06:09 PM UTC+1, Sebastian M Cheung wrote:
Say in 2014 April to May whole weeks would be 7th, 14th 28th April and May
would be 5th, 12th and 19th. So expecting 7 whole weeks in total
What I mean is
On Wednesday, June 10, 2015 at 6:06:09 PM UTC+1, Sebastian M Cheung wrote:
> Say in 2014 April to May whole weeks would be 7th, 14th 28th April and May
> would be 5th, 12th and 19th. So expecting 7 whole weeks in total
What I mean is given two dates I want to find WHOLE weeks, so if given the 20
sohcahto...@gmail.com writes:
[...]
> Here's where I think you two are having such a huge disagreement.
> Does order matter? It depends what you're pulling random numbers out
> for.
>
> The odds of seeing 2 1 are also only 1/36. But if order doesn't
> matter in your application, then 1 2 is equ
On 10/06/2015 18:50, Laura Creighton wrote:
In a message of Wed, 10 Jun 2015 20:38:59 +0300, Marko Rauhamaa writes:
Divide the number by 7 and you have your answer.
I am not sure that is what he wants -- If he gives us a start of Tuesday the
9th of June 2015 (yesterday) and an end of Thursday
Also, just replacing the version number in the URL works for the python 3
series (use 3.X even for python 3.0), even farther back than the drop down
menu allows.
This does not help in this case:
https://docs.python.org/3.4/library/asyncio-task.html#asyncio.ensure_future
Also, you cannot select t
On Wed, Jun 10, 2015, at 13:03, Thomas 'PointedEars' Lahn wrote:
> This is _not_ a lottery box; you put the ball with the number on it *back
> into the box* after you have drawn it and before you draw a new one.
Yes, but getting a 2, putting it back, and getting a 1 is just as good
as getting a 1
On Wed, Jun 10, 2015 at 1:50 PM, Laura Creighton wrote:
> In a message of Wed, 10 Jun 2015 20:38:59 +0300, Marko Rauhamaa writes:
>>Divide the number by 7 and you have your answer.
>>
>
> I am not sure that is what he wants -- If he gives us a start of Tuesday the
> 9th of June 2015 (yesterday) an
On Wed, Jun 10, 2015 at 11:03 AM, Thomas 'PointedEars' Lahn
wrote:
> Jussi Piitulainen wrote:
>
>> Thomas 'PointedEars' Lahn writes:
>>> Jussi Piitulainen wrote:
Thomas 'PointedEars' Lahn writes:
> 8 3 6 3 1 2 6 8 2 1 6.
There are more than four hundred thousand ways to get th
On Wednesday, June 10, 2015 at 10:06:49 AM UTC-7, Thomas 'PointedEars' Lahn
wrote:
> Jussi Piitulainen wrote:
>
> > Thomas 'PointedEars' Lahn writes:
> >> Jussi Piitulainen wrote:
> >>> Thomas 'PointedEars' Lahn writes:
> 8 3 6 3 1 2 6 8 2 1 6.
> >>>
> >>> There are more than four hundred
In a message of Wed, 10 Jun 2015 20:38:59 +0300, Marko Rauhamaa writes:
>Divide the number by 7 and you have your answer.
>
I am not sure that is what he wants -- If he gives us a start of Tuesday the
9th of June 2015 (yesterday) and an end of Thursday the 25th of June, that's
16 days. But there
On Wed, Jun 10, 2015 at 11:05 AM, Sebastian M Cheung via Python-list
wrote:
> Say in 2014 April to May whole weeks would be 7th, 14th 28th April and May
> would be 5th, 12th and 19th. So expecting 7 whole weeks in total
>>> from datetime import date
>>> d1 = date(2014, 4, 7)
>>> d2 = date(2014,
Marko Rauhamaa :
> This program gives you the number of days between two dates given in the
> -MM-DD format:
Sorry, couldn't resist.
It still does work, though.
Marko
--
https://mail.python.org/mailman/listinfo/python-list
Sebastian M Cheung :
> Say in 2014 April to May whole weeks would be 7th, 14th 28th April and
> May would be 5th, 12th and 19th. So expecting 7 whole weeks in total
This program gives you the number of days between two dates given in the
-MM-DD format:
===
On 10-6-2015 11:36, Steven D'Aprano wrote:
>> For most apps, the alternatives are better. Irmen's serpent library is
>> strictly better on every front, for example. (Except potentially
>> security, who knows.)
>
> Beyond simple needs, like rc files, literal_eval is not sufficient. You
> can't use
On Thu, 11 Jun 2015 12:28 am, Skip Montanaro wrote:
> On Wed, Jun 10, 2015 at 8:28 AM, Tim Chase
> wrote:
>> Is this a bug?
>
> Looks like it's been reported a few times with slightly different context:
>
> https://bugs.python.org/issue6537
> https://bugs.python.org/issue16623
> https://bugs.py
Jussi Piitulainen wrote:
> Thomas 'PointedEars' Lahn writes:
>> Jussi Piitulainen wrote:
>>> Thomas 'PointedEars' Lahn writes:
8 3 6 3 1 2 6 8 2 1 6.
>>>
>>> There are more than four hundred thousand ways to get those numbers
>>> in some order.
>>>
>>> (11! / 2! / 2! / 2! / 3! / 2! = 4158
Say in 2014 April to May whole weeks would be 7th, 14th 28th April and May
would be 5th, 12th and 19th. So expecting 7 whole weeks in total
--
https://mail.python.org/mailman/listinfo/python-list
On 10.06.2015 17:05, Zachary Ware wrote:
> On Jun 10, 2015 9:41 AM, "Mark Lawrence" wrote:
>>
>> On 10/06/2015 15:11, Nicholas Chammas wrote:
>>>
>>> For example, here is a "New in version 3.4.4" method:
>>>
>>> https://docs.python.org/3/library/asyncio-task.html#asyncio.ensure_future
>>>
>>> Howe
On Mon, Jun 8, 2015 at 3:32 AM, naren wrote:
> Memory Error while working with pandas dataframe.
>
> Description of Environment Windows 7 python 3.4.2 32-bit version pandas
> 0.16.0
>
> We are running into the error described below. Any help provided will be
> sincerely appreciated.
>
> We are ab
On Wed, Jun 10, 2015, at 11:03, Laura Creighton wrote:
> In these unicode days, this thinking may need to be revisited. There
> are many languages where whitespace does not separate words -- either
> words aren't separated, or in Vietnamese, spaces separate syllables,
> so entire words have spaces
On Jun 10, 2015 9:41 AM, "Mark Lawrence" wrote:
>
> On 10/06/2015 15:11, Nicholas Chammas wrote:
>>
>> For example, here is a "New in version 3.4.4" method:
>>
>> https://docs.python.org/3/library/asyncio-task.html#asyncio.ensure_future
>>
>> However, the latest release appears to be 3.4.3:
>>
>>
In a message of Wed, 10 Jun 2015 09:28:24 -0500, Skip Montanaro writes:
>On Wed, Jun 10, 2015 at 8:28 AM, Tim Chase
> wrote:
>> Is this a bug?
>
>Looks like it's been reported a few times with slightly different context:
>
>https://bugs.python.org/issue6537
>https://bugs.python.org/issue16623
>http
On 10/06/2015 15:11, Nicholas Chammas wrote:
For example, here is a "New in version 3.4.4" method:
https://docs.python.org/3/library/asyncio-task.html#asyncio.ensure_future
However, the latest release appears to be 3.4.3:
https://www.python.org/downloads/
Is this normal, or did the 3.4.4 docs
On Wed, Jun 10, 2015 at 8:28 AM, Tim Chase
wrote:
> Is this a bug?
Looks like it's been reported a few times with slightly different context:
https://bugs.python.org/issue6537
https://bugs.python.org/issue16623
https://bugs.python.org/issue20491
https://bugs.python.org/issue1390608
The couple t
For example, here is a "New in version 3.4.4" method:
https://docs.python.org/3/library/asyncio-task.html#asyncio.ensure_future
However, the latest release appears to be 3.4.3:
https://www.python.org/downloads/
Is this normal, or did the 3.4.4 docs somehow get published early by
mistake?
Nick
On 10/06/2015 14:28, Tim Chase wrote:
str.split() doesn't seem to respect non-breaking space:
Python 3.4.2 (default, Oct 8 2014, 10:45:20)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print(repr("hello\N{NO-BREAK SPACE}world".split(
On 2015-06-10 13:08, Marko Rauhamaa wrote:
Robert Kern :
By the very nature of the stated problem: serializing all language
objects. Being able to construct any object, including instances of
arbitrary classes, means that arbitrary code can be executed. All I
have to do is make a pickle file fo
On Wed, Jun 10, 2015, at 08:08, Marko Rauhamaa wrote:
> You can't serialize/migrate arbitrary objects. Consider open TCP
> connections, open files and other objects that extend outside the Python
> VM. Also objects hold references to each other, leading to a huge
> reference mesh.
>
> For example:
str.split() doesn't seem to respect non-breaking space:
Python 3.4.2 (default, Oct 8 2014, 10:45:20)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print(repr("hello\N{NO-BREAK SPACE}world".split()))
['hello', 'world']
What's the purpos
Robert Kern :
> By the very nature of the stated problem: serializing all language
> objects. Being able to construct any object, including instances of
> arbitrary classes, means that arbitrary code can be executed. All I
> have to do is make a pickle file for an object that claims that its
> con
On Wed, Jun 10, 2015 at 9:04 PM, Neal Becker wrote:
> I believe a good native serialization system is essential for any modern
> programming language. If pickle isn't it, we need something else that can
> serialize all language objects. Or, are you saying, it's impossible to do
> this safely?
I
On 2015-06-10 12:04, Neal Becker wrote:
Chris Warrick wrote:
On Tue, Jun 9, 2015 at 8:08 PM, Neal Becker wrote:
One of the most annoying problems with py2/3 interoperability is that the
pickle formats are not compatible. There must be many who, like myself,
often use pickle format for data s
Chris Warrick wrote:
> On Tue, Jun 9, 2015 at 8:08 PM, Neal Becker wrote:
>> One of the most annoying problems with py2/3 interoperability is that the
>> pickle formats are not compatible. There must be many who, like myself,
>> often use pickle format for data storage.
>>
>> It certainly would
On Wednesday 10 June 2015 14:48, Devin Jeanpierre wrote:
[...]
> and literal_eval is not a great idea.
>
> * the common serializer (repr) does not output a canonical form, and
> can serialize things in a way that they can't be deserialized
For literals, the canonical form is that understood by
ANNOUNCING
mxODBC Plone/Zope Database Adapter
Version 2.2.2
for the Plone CMS and Zope server platform
Available for Plone 4.0-4.3 and Plone 5.0,
I’m having trouble reaching an actual human at your organization as my emails
get bounced back.
If someone could please see my email below and respond with an answer as soon
as possible, I’d appreciate it.
--
66 matches
Mail list logo