John Nagle wrote:
>On 3/30/2012 2:32 PM, Irmen de Jong wrote:
>> Try Oursql instead http://packages.python.org/oursql/
>> "oursql is a new set of MySQL bindings for python 2.4+, including python 3.x"
>
>Not even close to being compatible with existing code. Every SQL
>statement has to be r
On 3/31/2012 9:26 PM, Owen Jacobson wrote:
On 2012-03-31 22:58:45 +, John Nagle said:
Some versions of CentOS 6 seem to have a potential
getaddrinfo exploit. See
To test, try this from a command line:
ping example
If it fails, good. If it returns pings from "example.com", bad.
The getadd
On 2012-03-31 22:58:45 +, John Nagle said:
Some versions of CentOS 6 seem to have a potential
getaddrinfo exploit. See
To test, try this from a command line:
ping example
If it fails, good. If it returns pings from "example.com", bad.
The getaddrinfo code is adding ".com" to
On Sat, 2012-03-31 at 18:55 -0400, David Robinow wrote:
> On Sat, Mar 31, 2012 at 4:13 PM, Tim Rowe wrote:
>
> > I know 10 languages. But I'm not telling you what base that number is :)
> The fact that you know there are bases other than 10 puts you in the
> top half of the candidates already!
Some versions of CentOS 6 seem to have a potential
getaddrinfo exploit. See
To test, try this from a command line:
ping example
If it fails, good. If it returns pings from "example.com", bad.
The getaddrinfo code is adding ".com" to the domain.
If that returns pings, please try
On Sat, Mar 31, 2012 at 4:13 PM, Tim Rowe wrote:
> I know 10 languages. But I'm not telling you what base that number is :)
The fact that you know there are bases other than 10 puts you in the
top half of the candidates already!
--
http://mail.python.org/mailman/listinfo/python-list
On 22 March 2012 19:14, Chris Angelico wrote:
> In any case, though, I agree that there's a lot of people
> professionally writing code who would know about the 3-4 that you say.
> I'm just not sure that they're any good at coding, even in those few
> languages. All the best people I've ever know
On 31/03/2012 06:56, Lie Ryan wrote:
On 03/18/2012 12:36 PM, Steven D'Aprano wrote:
On Sat, 17 Mar 2012 20:59:34 +0100, Kiuhnm wrote:
In the second example, most English speakers would intuit that "print(i)"
prints i, whatever i is.
There are two points where the code may be misunderstood,
On Sat, Mar 31, 2012 at 2:15 AM, Lie Ryan wrote:
> On 03/21/2012 03:55 AM, Nathan Rice wrote:
>>
>>
>
> I think you've just described that greedy algorithm can't always find the
> globally optimal solution.
Right. Using gradient descent on an algebraic surface is probably the
most natural examp
Hi,
I want to use ctypes to use some functions from postgreSQL server which
embeds python interpreter as language pl/python.
That is I want to use ctypes to call _back_ to some internal functions
in the server
What I tried is the following:
hannu=# create or replace function send_raw_notice(r
Ramit,
This seems to be more logic now "I hope" :)
#
import ast
fname = 0
lname = 1
country = 2
city = 3
tel = 4
notes = 5
## Read data from file
def load_book():
load_book = open('c:/Python27/Toli/myfile.txt', 'r')
load_book = ast.literal_eval(loa
On 3/31/2012 3:42 AM, Frederic Rentsch wrote:
Hi all,
Is is a bad idea to develop Tkinter applications in IDLE? I understand
that IDLE is itself a Tkinter application, supposedly in a mainloop and
mainloops apparently don't nest.
In standard configuration, one process runs IDLE, another runs u
On 3/31/2012 2:22 AM, Yingjie Lan wrote:
Hi all,
I'd really like to share this idea of string interpolation for formatting.
Let's start with some code:
>>> name = "Shrek"
>>> print( "Hi, $name$!")
Hi, Shrek!
>>> balls = 30
>>> print( "We have $balls$ balls.")
We have 30 balls
You can alre
Hi Yingjie,
Consider this snippet of "safe" code:
| enc = bobsencryption.Encoder('Some secret key')
|
| username = raw_input('Enter your username:')
| password = raw_input('Enter your password:')
|
| print
| print username + ', please wait while we dial-up and log you in...'
|
| connection = ser
On Sat, Mar 31, 2012 at 10:01 AM, Nathan Rice
wrote:
> It seems to me that Indented blocks of text are used pretty frequently
> to denote definition bodies, section subordinate paragraphs and
> asides. The use of the colon seems pretty natural too. Parentheses
> are fairly natural for small asid
On Sat, Mar 31, 2012 at 12:42 AM, Frederic Rentsch
wrote:
> If I run from a terminal things seem to work out. Is it standard
> development practice to run code from a terminals ($ python program.py)?
> What's the 'program.pyc' for if the source is compiled every time?
The entire point of .pyc
On Fri, Mar 30, 2012 at 11:22 PM, Yingjie Lan wrote:
> Hi all,
>
> I'd really like to share this idea of string interpolation for formatting.
> Let's start with some code:
>
name = "Shrek"
print( "Hi, $name$!")
> Hi, Shrek!
Python already has *3* different built-in string
formatting/int
Hi all,
Is is a bad idea to develop Tkinter applications in IDLE? I understand
that IDLE is itself a Tkinter application, supposedly in a mainloop and
mainloops apparently don't nest.
I tried to install a root-destroy-protocol:
def destroy_root ():
print 'Destroying root'
root.de
18 matches
Mail list logo