Re: Select fails when cookie tried to get a numeric value

2013-10-05 Thread Denis McMahon
to help you, ever! -- Denis McMahon, denismfmcma...@gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: I haev fixed it

2013-10-02 Thread Denis McMahon
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

Re: JUST GOT HACKED

2013-10-02 Thread Denis McMahon
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

Re: Can arbitrary code run in a server if someone's know just the MySQL password?

2013-10-02 Thread Denis McMahon
, 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

Re: I haev fixed it

2013-10-02 Thread Denis McMahon
? 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

Re: Help with python functions?

2013-10-01 Thread Denis McMahon
^ 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

Re: JUST GOT HACKED

2013-10-01 Thread Denis McMahon
-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

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Denis McMahon
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

Re: Handling 3 operands in an expression without raising an exception

2013-09-29 Thread Denis McMahon
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

Re: Handling 3 operands in an expression without raising an exception

2013-09-29 Thread 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

Re: Handling 3 operands in an expression without raising an exception

2013-09-27 Thread Denis McMahon
it a lot easier to maintain in future. -- Denis McMahon, denismfmcma...@gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: card dealer

2013-09-27 Thread Denis McMahon
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

Re: what is wrong in my code?? (python 3.3)

2013-09-27 Thread Denis McMahon
ранее предусматривалась смертная казнь. - This really doesn't look like a python issue (again). -- Denis McMahon, denismfmcma...@gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Handling 3 operands in an expression without raising an exception

2013-09-27 Thread Denis McMahon
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

Re: Help me with Python please (picture)

2013-09-27 Thread Denis McMahon
, 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

ANN: Lea 1.1 (discrete probability distributions)

2013-09-26 Thread Pierre Denis
... Pierre Denis -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

Re: Handling 3 operands in an expression without raising an exception

2013-09-26 Thread Denis McMahon
( 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

Re: Handling 3 operands in an expression without raising an exception

2013-09-26 Thread 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

Re: Handling 3 operands in an expression without raising an exception

2013-09-26 Thread Denis McMahon
to have. -- Denis McMahon, denismfmcma...@gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Handling 3 operands in an expression without raising an exception

2013-09-26 Thread Denis McMahon
: 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

Re: Referrer key missing form os.environ dictionary?

2013-09-25 Thread Denis McMahon
protocols issue that has nothing whatsoever to do with python. -- Denis McMahon, denismfmcma...@gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Help with python functions?

2013-09-24 Thread Denis McMahon
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

Re: Help with python functions?

2013-09-24 Thread Denis McMahon
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

Re: Help with python functions?

2013-09-24 Thread Denis McMahon
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

Re: Help with python functions?

2013-09-23 Thread Denis McMahon
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

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Denis McMahon
] 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

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread 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

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Denis McMahon
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

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Denis McMahon
IN comp.lang.python -- Denis McMahon, denismfmcma...@gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Denis McMahon
to their spf score. -- Denis McMahon, denismfmcma...@gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Am I not seeing the Error?

2013-08-13 Thread Denis McMahon
. -- Denis McMahon, denismfmcma...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Using sudo to write to a file as root from a script

2013-08-08 Thread Denis McMahon
/sudoers you must set the permissions back to 440 -- Denis McMahon, denismfmcma...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python script help

2013-07-30 Thread Denis McMahon
? Just: wget -m url -- Denis McMahon, denismfmcma...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list

[issue18587] urllib raises exception with string in 'errno' attribute

2013-07-29 Thread Denis
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

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Denis McMahon
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

Re: Parsing Text file

2013-07-02 Thread Denis McMahon
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

Re: Need explanation of this error

2013-07-01 Thread Denis McMahon
that provides some function that you're trying to use. -- Denis McMahon, denismfmcma...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: python adds an extra half space when reading from a string or list

2013-07-01 Thread Denis McMahon
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

Re: python adds an extra half space when reading from a string or list

2013-07-01 Thread 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

Re: python game

2013-06-19 Thread Denis McMahon
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

Re: python game

2013-06-19 Thread Denis McMahon
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

Re: A certainl part of an if() structure never gets executed.

2013-06-16 Thread Denis McMahon
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

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-16 Thread Denis McMahon
- 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

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-16 Thread Denis McMahon
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

Re: A certainl part of an if() structure never gets executed.

2013-06-16 Thread Denis McMahon
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

Re: A certainl part of an if() structure never gets executed.

2013-06-16 Thread Denis McMahon
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

Re: A few questiosn about encoding

2013-06-15 Thread Denis McMahon
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

Re: Don't feed the troll...

2013-06-15 Thread Denis McMahon
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

Re: Eval of expr with 'or' and 'and' within

2013-06-15 Thread Denis McMahon
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

Re: Pattern Search Regular Expression

2013-06-15 Thread Denis McMahon
misinterpretation of his terminology. -- Denis McMahon, denismfmcma...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Pattern Search Regular Expression

2013-06-15 Thread Denis McMahon
, -1)] middle = sentence.split()[1:-2] -- Denis McMahon, denismfmcma...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Pattern Search Regular Expression

2013-06-15 Thread Denis McMahon
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

Re: Creating a Super Simple WWW Link, Copy, Paste into Spreadsheet Program

2013-06-14 Thread Denis McMahon
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

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Denis McMahon
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

Re: A certainl part of an if() structure never gets executed.

2013-06-12 Thread Denis McMahon
, =) 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

Re: Redirecting to a third party site with injected HTML

2013-06-10 Thread Denis McMahon
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

Re: Sorting a set works, sorting a dictionary fails ?

2013-06-10 Thread Denis McMahon
() ): 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

Re: AES 128 bits

2013-06-03 Thread 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

Re: Create a file in /etc/ as a non-root user

2013-06-01 Thread Denis McMahon
need root access. -- Denis McMahon, denismfmcma...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create new python file with increament number, if doesn't exist?

2013-05-27 Thread Denis McMahon
(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

Re: how to compare two json file line by line using python?

2013-05-27 Thread Denis McMahon
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

Re: Reading *.json from URL - json.loads() versus urllib.urlopen.readlines()

2013-05-27 Thread Denis McMahon
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

Re: Future standard GUI library

2013-05-27 Thread Denis McMahon
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

Re: file I/O and arithmetic calculation

2013-05-23 Thread Denis McMahon
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

Re: Myth Busters: % this old style of formatting will eventually be removed from the language

2013-05-22 Thread Denis McMahon
scripts. -- Denis McMahon, denismfmcma...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: file I/O and arithmetic calculation

2013-05-22 Thread Denis McMahon
) -- Denis McMahon, denismfmcma...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: A computer programmer, web developer and network admin resume

2013-05-21 Thread Denis McMahon
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

Re: in need of some help regarding my rock paper scissors game

2013-05-13 Thread Denis McMahon
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

Re: Style question -- plural of class name?

2013-05-08 Thread Denis McMahon
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

Re: repeat program

2013-04-29 Thread Denis McMahon
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

Re: Pythonic way to count sequences

2013-04-25 Thread Denis McMahon
) ) 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

Re: Lists and arrays

2013-04-23 Thread Denis McMahon
] + 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

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-10 Thread Denis Bilenko
Changes by Denis Bilenko denis.bile...@gmail.com: -- nosy: +Denis.Bilenko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15896 ___ ___ Python-bugs

gevent 0.13.4 released

2011-04-11 Thread Denis Bilenko
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/

[issue10496] import site failed when Python can't find home directory

2011-04-01 Thread Denis Barmenkov
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

gevent 0.13.2 released

2011-01-28 Thread Denis Bilenko
: 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

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-20 Thread Denis S. Otkidach
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

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-19 Thread Denis S. Otkidach
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

gevent 0.13.1 released

2010-09-23 Thread Denis Bilenko
/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/

Re: GUibuilder evaluation

2010-09-06 Thread Denis Gomes
. 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

python+sqlite3 in memory database

2010-08-30 Thread Denis Gomes
of memory for effeciency purposes. Any help is appreciated. Thanks in advance. Denis -- http://mail.python.org/mailman/listinfo/python-list

Re: python+sqlite3 in memory database

2010-08-30 Thread Denis Gomes
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

Re: python+sqlite3 in memory database

2010-08-30 Thread Denis Gomes
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

Re: What is a class method?

2010-08-23 Thread Denis Gomes
. 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

[issue8571] zlib causes a SystemError when decompressing a chunk 1GB

2010-05-07 Thread Denis Dmitriev
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

[issue8571] zlib causes a SystemError when decompressing a chunk 1GB

2010-04-29 Thread Denis Dmitriev
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

[issue8571] zlib causes a SystemError when decompressing a chunk 1GB

2010-04-29 Thread Denis Dmitriev
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

Re: Total maximal size of data

2010-01-28 Thread denis
http://stackoverflow.com/questions/2117255/python-deep-getsizeof-list-with-contents cheers -- denis -- http://mail.python.org/mailman/listinfo/python-list

How to validate the __init__ parameters

2009-12-21 Thread Denis Doria
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

[issue7114] HTMLParser doesn't handle ![CDATA[ ... ]]

2009-12-08 Thread Denis
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

Re: Organization of GUIs

2009-12-04 Thread denis
, 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

[issue5166] ElementTree and minidom don't prevent creation of not well-formed XML

2009-11-24 Thread Denis S. Otkidach
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 0.11.1 released

2009-11-15 Thread Denis Bilenko
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

Re: PyQT4 user group

2009-10-29 Thread denis
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

Re: efficient running median

2009-10-26 Thread denis
/rolling-median-algorithm-in-c cheers -- denis -- http://mail.python.org/mailman/listinfo/python-list

Re: efficient running median

2009-10-20 Thread denis
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

Re: efficient running median

2009-10-19 Thread denis
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

Re: ANN: ActivePython 2.6.3.7 (and PyPM) is now available

2009-10-16 Thread denis
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

[issue7101] tarfile: OSError with TarFile.add(..., recursive=True) about non-existing file

2009-10-10 Thread Denis Martinez
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

Re: Most active coroutine library project?

2009-10-09 Thread Denis
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

<    1   2   3   4   5   6   7   >