to help you, ever!
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
legal action, I suggest
you run a comprehensive credit check on your target.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
line
solution. The mocking was because you were failing to recognise that if
it doesn't work, it's not a solution, no matter how nice it looks.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
, and then wrote the contents of that block
of memory to disc as a file.
(This explanation may contain some assumptions.)
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
?
You're making the sort of demand for an apology that's usually followed
by a comment such as or I will sue you for defamation.
Personally I think demanding an apology is a waste of time and ng
bandwidth, but *shrugs* whatever.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org
^ years
Finally multiply the compounded interest by the principal
Mathematically:
principal * ( ( 1 + ( period_interest_% / 100 ) ) ^ periods )
Again, this should be possible as a single line function. All you have to
do is turn the math into python code.
--
Denis McMahon, denismfmcma
-8, basic
internet security
And this is just based on the last 30 days of your posts!
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
patches given here being 100% incorrect?
I'm sending you the bill for hospital admission. I laughed so hard I fell
off of my chair and banged my head!
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
failed to be
assigned a value that we can use in order to decide to which variable we
will
Yes, set the default values first, and overwrite them with the successful
values when the values are successfully calculated.
This is a very common method used in many programming languages.
--
Denis McMahon
with people who are offering you
solutions to your problems solely based on the fact that you don't like
their coding styles.
You are the one who comes here asking for solutions. Either accept the
solutions you are offered, or stop asking for them.
--
Denis McMahon, denismfmcma...@gmail.com
it a lot easier to
maintain in future.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
seem to be better on the importing entropy from elsewhere
front these days.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
ранее предусматривалась смертная казнь.
-
This really doesn't look like a python issue (again).
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
such
long names. Surely c,h=0,0 is vastly superior?
Why not c=h=0
2 characters (28%) shorter!
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
,
and then print the variable? Or perhaps not, perhaps you were going to do
the output some other way?
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
...
Pierre Denis
--
https://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
( some_value )
if some_value:
host = some_function_of( some_value )
else:
host = some_value
or even:
try:
host = some_function_of( some_function_of( some_value ) or
some_function_of( some_value ) )
except some_error_type [ or some_error_type ]:
host = some_value
--
Denis McMahon
') is false
or Άγνωστη Προέλευση )[0]
The you try and get the host name from the ip address Άγνωστη
Προέλευση, but Άγνωστη Προέλευση is not an ip address, so you get an
error.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
to have.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
:
except socket.gaierror as e:
city = host = UnKnown Origin
To:
except socket.gaierror as e:
city = Unknown City
host = Unknown Host
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
protocols
issue that has nothing whatsoever to do with python.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
which takes the same params
as comp do:
def f( t1, u1, t2, u2 ):
if u1 == u2:
return t2
else:
return temp( t2, u2, u1 )
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
if they're in different units
(2 lines), and then do his comparison (5 lines).
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, 24 Sep 2013 14:51:31 +, Denis McMahon wrote:
Question, given the original temp function as previously described by
yourself, what does the following function f which takes the same
params as comp do:
def f( t1, u1, t2, u2 ):
if u1 == u2:
return t2
else
value is the input value.
Then to compare T1 in u1 and T2 in u2, convert them both to a common
scale (which might be u1 or u2 or some other scale) using your temp
function, and then compare the resulting values.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman
] The ip address that it is sending ack packets to as part of the smtp
session, so unless you're using a proxy somewhere, this will be your
system's ip address. Can't fake it. If the other system doesn't know your
ip address, it can't send acks, and the tcp session fails.
--
Denis McMahon
until you understand how tcp/ip networks
function. This NG is not a networking for dummies course.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
to prove communication works, he might be better off using
a message subject of test and a message body of this is a test
message.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
IN
comp.lang.python
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
to their spf score.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
/sudoers you must set the permissions back to 440
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
? Just:
wget -m url
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
New submission from Denis:
On 'connection refused' error urllib creates IOError with wrong arguents:
args ('socket error', error(os-dependent-number, 'Connection refused'))
It results to dirty hacks in Python code like
'if e.errno == socket error: ...'
instead of traditional
'id e.errno
that you're more interested in having arguments and
slinging insults than you are in discussing python. I'm here to discuss
python.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
of pythonic manner, rather
than actual python code - also because some newsreaders may break
indenting etc, I've used ; as line terminators and {} to group blocks)
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
that provides some function that you're trying to
use.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 01 Jul 2013 21:18:26 +0200, Antoon Pardon wrote:
I am not baiting Nikos.
Your opinion, mine differs.
all I have done in the last two weeks that involves Nikos as a
subject is the Don't feed the troll thread
Calling him a troll is baiting. Please stop.
--
Denis McMahon
On Mon, 01 Jul 2013 20:42:48 +0200, Antoon Pardon wrote:
How about the following comprimise.
Let me know what you think about this.
How about you just ignore him.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 19 Jun 2013 13:18:49 -0700, jacksonkemp1234 wrote:
windowSurface.blit(playerImage, player)
for bear in bears:
windowSurface.blit(bearImage, bear)
Try changing this to draw the bears first, then the player.
--
Denis McMahon, denismfmcma...@gmail.com
On Wed, 19 Jun 2013 13:18:49 -0700, jacksonkemp1234 wrote:
if moveDown and player.right WINDOW_WIDTH:
player.right += MOVE_SPEED
Should this be moveRight instead of moveDown?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python
location, then makes a point to the same memory
location as b points to.
b is a pointer to a memory location containing the value 6
a is a pointer to the same memory location
Do you understand the difference?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo
- you could put both code (just append .txt to
the filename) and screenshots from your browser there with no difficulty
at all and just include links.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 16 Jun 2013 11:35:12 +0300, Nick the Gr33k wrote:
TB behaves for me the same way. Any line 80 chars gets a newline. Why
this is happening? Why not post up to 256 chars in a single line?
Because this is usenet. Read the RFCs if you must know!
--
Denis McMahon, denismfmcma
On Sun, 16 Jun 2013 11:07:12 +0300, Nick the Gr33k wrote:
On 16/6/2013 9:32 πμ, Denis McMahon wrote:
On Sat, 15 Jun 2013 19:18:53 +0300, Nick the Gr33k wrote:
In both situations we still have 2 memory units holding values, so
hows that different?
Consider that each named variable
On Sun, 16 Jun 2013 12:59:00 +0300, Nick the Gr33k wrote:
Whats the difference of interpreting to compiling ?
OK, I give up!
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
what is a byte value
Seriously? You don't understand the term byte? And you're the support
desk for a webhosting company?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 14 Jun 2013 12:32:56 +0300, Nick the Gr33k wrote:
I'mm not trolling man, i just have hard time understanding why numbers
acts as strings.
It depends on the context.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
that it works in another fashon(only if the
counter-arguments are strong).
Then you need to stop trying to write python code, because you refuse to
accept how python works, and python is not going to change for you!
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman
misinterpretation of his
terminology.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
, -1)]
middle = sentence.split()[1:-2]
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 15 Jun 2013 13:41:21 +, Denis McMahon wrote:
first_and_last = [sentence.split()[i] for i in (0, -1)] middle =
sentence.split()[1:-2]
Bugger! That last is actually:
sentence.split()[1:-1]
It just looks like a two.
--
Denis McMahon, denismfmcma...@gmail.com
--
http
for such things in
ms office?
A quick google finds me vb code to download a url into a string -
presumably once you've done that you can find the value you want to
scrape into your spreadsheet.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
on your own,
perhaps the really important question you need to be asking yourself
right now is should I even be trying to code this in python when my
basic knowledge of python coding is so poor?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
, =)
test(=, x, x)
test(x, =, =)
test(x, =, x)
test(x, x, =)
test(x, x, x)
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
back at the host server, or some script on your server that can obtain
and serve the appropriate resources.
Alternatively, how about displaying the third party website in an iframe
within your own document? Although that's not really pythonic, just
htmlic.
--
Denis McMahon, denismfmcma
() ):
print thing
Prints 1, 2, 3
for thing in sorted( things.keys() ):
print thing
Prints a, b, c
Now although things[b] is a valid reference because b is a key in a
key - value pair, things[3] is not a valid reference, because 3 is not a
key in a key - value pair.
--
Denis McMahon
On Tue, 04 Jun 2013 07:52:17 +0800, usman mjoda wrote:
Good day everyone, I need assistance for python codes of aes 128 bits
key that can be run on SAGE Application. Thanks
google pycrypto
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
need root access.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
(untested) with the relevant imports etc:
nfn=data0.0.+str(max([int(f[8:])for f in os.listdir(p)if re.match
('^data0.0.[0-9]+$',f)])+1)
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 26 May 2013 21:32:40 -0700, Avnesh Shakya wrote:
how to compare two json file line by line using python? Actually I am
doing it in this way..
Oh what a lot of homework you have today.
Did you ever stop to think what the easiest way to compare two json
datasets is?
--
Denis
line?
Your code at (1) creates a single list of all the json objects
The code you replied to loaded each object, assumed you did something
with it, and then over-wrote it with the next one.
As for (2) - either inspection, or errors from the json parser.
--
Denis McMahon, denismfmcma
named Foo? The same way. How do you
represent an empty dict/mapping named Foo? Lemme look up my
documentation... ah, the same way. Does this seem right to
you?/JubalEarly
Foo type=list /
Foo type=mapping /
Foo type=string /
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org
On Thu, 23 May 2013 07:17:58 -0700, Keira Wilson wrote:
Dear all who involved with responding to my question - Thank you so much
for your nice code which really helped me.
Hold on a sec? Someone posted code that gave the correct answer to a
homework question?
--
Denis McMahon, denismfmcma
scripts.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
)
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 22 May 2013 01:15:27 +, i...@databaseprograms.biz wrote:
If you would like this in text format instead, please let me know.
What if we don't want it at all?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
as if bWater is an integer value and doesn't have
a .clicked attribute.
Where is bWater assigned, and what is it assigned to?
If you have a clickable water widget of some sort in your gui, what is
the click handler for that widget defined as?
--
Denis McMahon, denismfmcma...@gmail.com
--
http
to change
the spelling of the class name to make it plural.
I wouldn't use an apostrophe for pluralisation.
The Normal pluralisation of FooEntry would be FooEntries. Who are you
expecting to read the docstring? English majors, grammar nazis, wikipedia
editors, programmers, or all 4?
--
Denis
it is probably your homework task, so
I really shouldn't tell you any more than that.
Also, I might not be right about where you need to make the change, but
hey, this is the internet, it must be right, yeah?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo
) ) and isinstance( thing[1], ( int, long) ):
if thing in bits:
bits[thing] += 1
else:
bits[thing] = 1
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
] + arr1[2:4] + arr1[5:]
print arr2
# output is: ['a', 1, 3]
print arr3
# output is: ['a', 'c', 1, 3]
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
Changes by Denis Bilenko denis.bile...@gmail.com:
--
nosy: +Denis.Bilenko
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15896
___
___
Python-bugs
Get it from PyPI: http://pypi.python.org/pypi/gevent
Cheers,
Denis.
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
Denis Barmenkov denis.barmen...@gmail.com added the comment:
I saw similar error on Python 2.6 installed on freeBSD.
I had test SVN server and wrote pre-commit hook using python. When remote
developer commited his changes to repository, hook called os.path.expanduser
and exception was raised
:
http://www.gevent.org/changelog.html
Get it from PyPI: http://pypi.python.org/pypi/gevent
Thanks to Tommie Gannert, Örjan Persson, Alexey Borzenkov. Ralf
Schmitt, Nicholas Piël, Elizabeth Jennifer Myers, Ned Rockson, Jon
Aslund.
Cheers,
Denis.
--
http://mail.python.org/mailman/listinfo/python
Denis S. Otkidach denis.otkid...@gmail.com added the comment:
Phillip, your argument about interfacing with code written in C doesn't work
for built-in immutable types like str. Any subclass of str must call
str.__new__ thus keeping proper internal state
Denis S. Otkidach denis.otkid...@gmail.com added the comment:
Current behavior is unpythonic: documentation explicitly mentions isinstance as
preferred way to check type (see http://docs.python.org/library/types.html ).
Also 2.7 is the last minor version with str as main string type. So I
/changelog.html
Get it from PyPI: http://pypi.python.org/pypi/gevent
Cheers,
Denis.
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
. So my advice is to try all three and see which one you
like the best and go from there.
Denis
On Mon, Sep 6, 2010 at 6:15 AM, wissem belguidoum wbelguid...@gmail.comwrote:
On 6 sep, 09:54, Niklasro nikla...@gmail.com wrote:
Hello
Making a GUI, could you recommend tkinter or any other
of
memory for effeciency purposes. Any help is appreciated. Thanks in advance.
Denis
--
http://mail.python.org/mailman/listinfo/python-list
I am
missing something?
http://www.mcobject.com/in_memory_database
Denis
http://www.mcobject.com/in_memory_database
On Mon, Aug 30, 2010 at 3:00 PM, Benjamin Peterson benja...@python.orgwrote:
Denis Gomes denisg640 at gmail.com writes:
Eventually my goal is to dynamically load and unload
Yep, I see what you are saying. I am going to do a bit more research to see
how sqlite3 works internally, ie. cache size, page size, etc, and then
decide if I will need to mess with in-memory databases.
Thanks for your insight, appreciate it.
Denis
On Mon, Aug 30, 2010 at 3:51 PM, Benjamin
.
Denis
On Mon, Aug 23, 2010 at 2:24 AM, John Nagle na...@animats.com wrote:
On 8/22/2010 9:16 PM, James Mills wrote:
On Mon, Aug 23, 2010 at 1:53 PM, Paulo da Silva
psdasilva.nos...@netcabonospam.pt wrote:
I did it before posting ...
The explanation is not very clear. It is more like how
Denis Dmitriev dmitr...@deshaw.com added the comment:
Is there a reason to keep inplen and max_length ints instead of making them
Py_ssize_t too? I'm a little worried that keeping them ints will cause a
similar problem further down the line
New submission from Denis Dmitriev dmitr...@deshaw.com:
There's a bug in python's zlibmodule.c that makes it raise SystemError whenever
it tries to decompress a chunk larger than 1GB is size. Here's an example of
this in action:
dmitr...@...:~/moo/zlib_bug cat zlib_bug.py
import zlib
def
Denis Dmitriev dmitr...@deshaw.com added the comment:
Alright, I think this is caused by the following:
static PyObject *
PyZlib_objdecompress(compobject *self, PyObject *args)
{
int err, inplen, old_length, length = DEFAULTALLOC;
int max_length = 0;
The problem is that inplen, length
http://stackoverflow.com/questions/2117255/python-deep-getsizeof-list-with-contents
cheers
-- denis
--
http://mail.python.org/mailman/listinfo/python-list
Hi;
I'm checking the best way to validate attributes inside a class. Of
course I can use property to check it, but I really want to do it
inside the __init__:
class A:
def __init__(self, foo, bar):
self.foo = foo #check if foo is correct
self.bar = bar
All examples that I
Denis pyt...@sokolov.cc added the comment:
The CDATA sections are part of XML specification.
http://www.w3.org/TR/REC-xml/#sec-cdata-sect
HTML is not XML, so HTMLParser does the right thing here.
--
nosy: +Denis
___
Python tracker rep
,
but visibility is orthogonal to structure
(you can have visible democracy, blind hierarchy, in real life too.)
Visibility has to be built in from the beginning --
wrap all connect() s in a visconnect() that can trace.
Dietmar's shell sounds Right; anyone know of such in PyQt ?
cheers
-- denis
Denis S. Otkidach denis.otkid...@gmail.com added the comment:
Here is a regexp I use to clean up text (note, that I don't touch
compatibility characters that are also not recommended in XML; some
other developers remove them too):
# http://www.w3.org/TR/REC-xml/#NT-Char
# Char ::= #x9 | #xA
gevent is a coroutine-based Python networking library that uses
greenlet to provide
a high-level synchronous API on top of libevent event loop.
Features include:
* convenient API around greenlets
* familiar synchronization primitives (gevent.event, gevent.queue)
* socket module that
For detailed questions, try
http://stackoverflow.com/questions/tagged/pyqt or pyqt4
(the or may have to be escaped as %20or%20 in some browsers.)
--
http://mail.python.org/mailman/listinfo/python-list
/rolling-median-algorithm-in-c
cheers
-- denis
--
http://mail.python.org/mailman/listinfo/python-list
tried --
http://www.intel.com/technology/computing/opencv
http://code.google.com/p/ctypes-opencv
http://code.google.com/p/opencv-cython
cheers
-- denis
--
http://mail.python.org/mailman/listinfo/python-list
http://infolab.stanford.edu/~manku/papers.html
nice tree pictures
they optimize mem (NH * Nbuf) not runtime, and don't window
Suri +, Quantiles on Streams, 2006, 5p,
http://www.cs.ucsb.edu/~suri/psdir/ency.pdf
~ 20 refs zzz
cheers
-- denis
--
http://mail.python.org/mailman/listinfo
registered in PyPI using the PyPM
client, some packages may not yet be available in the ActiveState
repository
Does that mean that PyPM installs ONLY from the activestate repository
and not from url or .tar.gz or dir/ ?
cheers
-- denis
--
http://mail.python.org/mailman/listinfo/python-list
New submission from Denis Martinez deuns.marti...@gmail.com:
I have written a server backup script (file attached) which archives a
list of directories with tarfile and uploads the file to FTP. Today, the
script hanged, with an exception:
Exception in thread Thread-1:
Traceback (most recent
On Sep 23, 10:58 pm, Brian Hammond
or.else.it.gets.the.h...@gmail.com wrote:
On Aug 25, 12:51 am, Denis denis.bile...@gmail.com wrote:
You can also atgevent
http://pypi.python.org/pypi/gevent
Please, please document this! There are a lot of people who would
love to use this but give up
501 - 600 of 677 matches
Mail list logo