"Chris Angelico" wrote in message
news:CAPTjJmrB+55CVgN6zTUawRf=rzn9ltavi5tzhjsyvhhywk1...@mail.gmail.com...
> On Wed, Feb 18, 2015 at 5:19 PM, Frank Millman wrote:
>> However, the following does not return a date object -
>>
> cur.execute('SELECT CAST(? AS DATE)', ('2015-03-31',))
>>
I am away on a consulting gig, so I really only have my laptop to test on.
Python 2.7.8 (default, Nov 18 2014, 14:57:17)
debian version jessie/sid
SSL test, with OpenSSL version OpenSSL 1.0.1j 15 Oct 2014.
Connection to "verisign.com" failed: [SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify fa
On 18/02/2015 06:19, Frank Millman wrote:
Hi all
sqlite3 does not have a DATE type, but the python module does a pretty good
job of providing one -
import sqlite3
conn = sqlite3.connect(':memory:', detect_types=sqlite3.PARSE_DECLTYPES)
cur = conn.cursor()
cur.execute('CREATE TABLE test (dob DA
On Wed, Feb 18, 2015 at 5:19 PM, Frank Millman wrote:
> However, the following does not return a date object -
>
cur.execute('SELECT CAST(? AS DATE)', ('2015-03-31',))
>
cur.fetchone()
> (2015,)
>
> I don't know how easy this would be to implement, but it would be nice if it
> coul
Hi all
sqlite3 does not have a DATE type, but the python module does a pretty good
job of providing one -
>>> import sqlite3
>>> conn = sqlite3.connect(':memory:', detect_types=sqlite3.PARSE_DECLTYPES)
>>> cur = conn.cursor()
>>> cur.execute('CREATE TABLE test (dob DATE)')
>>> cur.execute('INSE
On Wed, Feb 18, 2015 at 3:35 PM, wrote:
>> > Given
>> >
>> > data =
>> > '{[][]}'
>> >
>> > How can I efficiently get dictionaries for each of the data blocks framed
>> > by <> ?
>> >
>> > Thanks for any help
>>
>> The question here is: What _can't_ happen? For instance, what happens
>> if Fred
> > Given
> >
> > data =
> > '{[][]}'
> >
> > How can I efficiently get dictionaries for each of the data blocks framed
> > by <> ?
> >
> > Thanks for any help
>
> The question here is: What _can't_ happen? For instance, what happens
> if Fred's name contains a greater-than symbol, or a caret?
On Wed, Feb 18, 2015 at 3:07 PM, wrote:
> Given
>
> data = '{[][]}'
>
> How can I efficiently get dictionaries for each of the data blocks framed by
> <> ?
>
> Thanks for any help
The question here is: What _can't_ happen? For instance, what happens
if Fred's name contains a greater-than symbol
Given
data = '{[][]}'
How can I efficiently get dictionaries for each of the data blocks framed by <>
?
Thanks for any help
KP
--
https://mail.python.org/mailman/listinfo/python-list
Le mercredi 18 février 2015 01:50:16 UTC+1, Chris Angelico a écrit :
>
> So, what's a container? It's a thing that you put other objects into.
I agree with this approach. The important point to consider here is the last
word in your definition : "into". There is the container and there is the
On 2015-02-18 01:41, Dennis Lee Bieber wrote:
On Mon, 16 Feb 2015 22:02:33 -0500, Dave Angel declaimed
the following:
It is a simple problem. All you have to do is send the correct bytes to
a file object that will transfer those bytes to the printer. It's been
a long time since I used Windo
On Monday, February 16, 2015 at 6:08:33 PM UTC-8, ken.h...@gmail.com wrote:
> Would seem to be a simple problem. I just want to print to my printer
> instead of the console using Python 2.7, Windows 7. Hours of looking through
> FAQ's and Google haven't yielded a solution. Any suggestions appr
On 2/17/2015 4:21 PM, candide wrote:
Official Python documentation very frequently invokes a mysterious *container*
data structure. The PLR manual explains :
I use 'collection' rather than 'container'.
--
Some objects contain references to other objects; these are cal
On Wed, Feb 18, 2015 at 11:30 AM, candide wrote:
> Python Language Referenceb (PLR) is expected to give formal and acurate
> definition, not "descriptive term to talk about things".
In a lot of ways, technically accurate definitions can be useless,
where sloppy but descriptive terms are useful.
On 2/17/2015 3:42 PM, Laura Creighton wrote:
> Possibly this bug?
> https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1014640
>
> Laura
Probably that bug in OpenSSL. Some versions of OpenSSL are
known to be broken for cases where there multiple valid certificate
trees.
Python ships wit
>
> Shrug. It is a useful descriptive term when you want to talk about things. You
Python Language Referenceb (PLR) is expected to give formal and acurate
definition, not "descriptive term to talk about things".
> might keep in mind that a "container"'s _primary_ purpose is usually its
> conta
Possibly this bug?
https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1014640
Laura
--
https://mail.python.org/mailman/listinfo/python-list
If I remove certs from my "cacert.pem" file passed to
create_default_context, the Python test program rejects domains
it will pass with the certs present. It's using that file.
So that's not it. It seems to be an OpenSSL or cert file
problem. I can reproduce the problem with the OpenSSL
On 17Feb2015 13:21, candide wrote:
Official Python documentation very frequently invokes a mysterious *container*
data structure. The PLR manual explains :
--
Some objects contain references to other objects; these are called containers.
--
And
Official Python documentation very frequently invokes a mysterious *container*
data structure. The PLR manual explains :
--
Some objects contain references to other objects; these are called containers.
--
So containers contain : what a great defin
On Mon, 16 Feb 2015 11:08:18 -0800, Travis VanDame wrote:
> On Monday, February 16, 2015 at 12:35:00 PM UTC-6, Travis VanDame wrote:
>> I'm new to python and peewee and was looking for an example on how to
>> query a mysql table with a datetime column only returning rows that are
>> 30 days old.
>
On Monday, February 16, 2015 at 10:08:33 PM UTC-4, ken.h...@gmail.com wrote:
> Would seem to be a simple problem. I just want to print to my printer
> instead of the console using Python 2.7, Windows 7. Hours of looking through
> FAQ's and Google haven't yielded a solution. Any suggestions app
I would want to know if it's possible to trace the url to the new location
If the webmaster did a proper thing you'll get server 3xx HTTP header
that will point you to new URL.
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection
If you're using a good library to do your
janhein.vanderb...@gmail.com writes:
> The next step is the development of the python code that minimizes
> processor requirements without compromising the algorithm.
This is a reasonable place to ask specific python questions. The
algorithm description itself is pretty confusing though, and it s
Hi i was wondering if it's possible to trace a website.
If im for example is interested of the content of www.example.com/cars/audi
and i have noticed that they are changing all URL's on the site so it dosent
change at all and that it always stays the same like for example
www.example.com and tha
On Wed, Feb 18, 2015 at 2:18 AM, Dave Angel wrote:
>> Sure. Not sure how you'd cope with an interior in the stream
>> without drastically losing efficiency, though.
>
>
> That's why it was base 65535, not 65536.
Doh. Yeah. I autocorrected in my head, but yes, base 65535 is safe.
ChrisA
--
On 02/17/2015 09:58 AM, Chris Angelico wrote:
On Wed, Feb 18, 2015 at 1:50 AM, Dave Angel wrote:
But the first thing I'd expect to see would be a target estimate of the
anticipated distribution of number values/magnitudes. For example, if a
typical integer is 1500 bits, plus/minus 200 bits, I'
On Wed, Feb 18, 2015 at 1:50 AM, Dave Angel wrote:
> But the first thing I'd expect to see would be a target estimate of the
> anticipated distribution of number values/magnitudes. For example, if a
> typical integer is 1500 bits, plus/minus 200 bits, I'd probably try encoding
> in base 65535, an
On 02/17/2015 09:34 AM, Chris Angelico wrote:
On Wed, Feb 18, 2015 at 1:12 AM, Dave Angel wrote:
They had a field type called a "compressed integer." It could vary between
one byte and I think about six. And the theory was that it took less space
than the equivalent format of fixed size integ
On Wed, Feb 18, 2015 at 1:12 AM, Dave Angel wrote:
> They had a field type called a "compressed integer." It could vary between
> one byte and I think about six. And the theory was that it took less space
> than the equivalent format of fixed size integers.
Oh, incidentally: If you want a decen
On 02/17/2015 06:22 AM, janhein.vanderb...@gmail.com wrote:
In http://optarbvalintenc.blogspot.nl/ I propose a new way to encode
arbitrarily valued integers and the python code that can be used as a reference
for practical implementations of codecs.
The encoding algorithm itself is optimized f
On Tue, Feb 17, 2015 at 10:22 PM, wrote:
> In http://optarbvalintenc.blogspot.nl/ I propose a new way to encode
> arbitrarily valued integers and the python code that can be used as a
> reference for practical implementations of codecs.
>
> The encoding algorithm itself is optimized for transmi
In http://optarbvalintenc.blogspot.nl/ I propose a new way to encode
arbitrarily valued integers and the python code that can be used as a reference
for practical implementations of codecs.
The encoding algorithm itself is optimized for transmission and storage
requirements without any processo
Am Freitag, 9. Januar 2004 00:31:27 UTC+1 schrieb Ray Chu:
> I'd like to get familiar with the Win32 phone interface by using Python.
> Googling has just yielded Linux
> apps. Would appreciate specific help or suggestions about where to look.
>
> - TIA
> Ray
I am also looking for answers, s
>It's also possible to do it the other around using shlex.split. I prefer that
>version because
>I can easily copy/paste the command from code to the shell, it's also more
>readable IMO:
> cmd = """python3 -O -c "import sys; print(sys.argv[1:])" foo bar "spam egg"
> """
> print(cmd)
> subproc
I've seen something like this:
The requests module http://docs.python-requests.org/en/latest/
ships with its own set of certificates "cacert.pem"
and ignores the system wide ones -- so, for instance, adding certificates
to /etc/ssl/certs on your debian or ubuntu system won't work. I edited
it by
36 matches
Mail list logo