On Wednesday, November 7, 2012 5:52:36 PM UTC+1, Martha Morrigan wrote:
Hi guys,
Using python, wxpython and sqlite in a windows system, Im trying to
print some certificates/diplomas/cards with a image at background with
the name of person/text over it.
I know the basic steps
- Original Message -
Hi,
I have a question about Django. I easy_installed Django1.4 and
psycopg2, and python manage.py syncdb. And gave me a error; No
module named psycopg2.extensions. posgre9.1 is installed.
It works fine on my MAC but not my Windows. Does anyone know about
this
Am 17.09.2012 04:28 schrieb Jadhav, Alok:
Thanks Dave for clean explanation. I clearly understand what is going on
now. I still need some suggestions from you on this.
There are 2 reasons why I was using self.rawfile.read().split('|\n')
instead of self.rawfile.readlines()
- As you have seen,
Hi all!
I have a stupid problem, for which I cannot find a solution...
I have a python module, lets call it debugTest.py.
and it contains:
def test():
a=1
b=2
c=a+b
c
so as simple as possible.
Now I would like to debug it in eclipse.. (I have pydev and all)
so the question is
In article b45840eb-f429-4287-905a-76d752d4f...@googlegroups.com,
chip9m...@gmail.com wrote:
Now I would like to debug it in eclipse..
Heh. It took me a while to realize that the subject line was not
referring to
http://en.wikipedia.org/wiki/Solar_eclipse_of_November_13,_2012
--
On 11/15/2012 07:29 AM, chip9m...@gmail.com wrote:
Hi all!
I have a stupid problem, for which I cannot find a solution...
I have a python module, lets call it debugTest.py.
and it contains:
def test():
a=1
b=2
c=a+b
c
so as simple as possible.
Now I would like to
On Thursday, 15 November 2012 12:29:04 UTC, chip...@gmail.com wrote:
Hi all!
I have a stupid problem, for which I cannot find a solution...
I have a python module, lets call it debugTest.py.
and it contains:
def test():
a=1
b=2
c=a+b
c
On Thursday, November 15, 2012 1:49:22 PM UTC+1, Roy Smith wrote:
Heh. It took me a while to realize that the subject line was not
referring to
http://en.wikipedia.org/wiki/Solar_eclipse_of_November_13,_2012
:))
--
http://mail.python.org/mailman/listinfo/python-list
On Thursday, November 15, 2012 2:42:09 PM UTC+1, Dave Angel wrote:
Add a call to test() to the end of the file, and it might do better.
I'd also add a print statement, just to assure yourself that it's running.
thanks, that is it, (stupid me) now if I have many functions in the model I
On Thursday, November 15, 2012 2:44:22 PM UTC+1, Martin P. Hellwig wrote:
I assume you have at the end of the debugTest.py file something like this:
if __name__ == '__main__':
test()
no i did not have it...
is main really necessary?
--
http://mail.python.org/mailman/listinfo/python-list
In article mailman.3714.1352986928.27098.python-l...@python.org,
Dave Angel d...@davea.name wrote:
I'd also add a print statement, just to assure yourself that it's running.
My trick to make sure something is running is to add assert 0.
To be fair, I usually start by adding a print statement,
Am 15.11.2012 13:29, schrieb chip9m...@gmail.com:
I have a python module, lets call it debugTest.py.
and it contains:
def test():
a=1
b=2
c=a+b
c
so as simple as possible.
Should that be return c instead of c on a line?
Now I would like to debug it in eclipse.. (I have
On Thu, 15 Nov 2012 05:46:49 -0800, chip9munk wrote:
On Thursday, November 15, 2012 2:44:22 PM UTC+1, Martin P. Hellwig
wrote:
I assume you have at the end of the debugTest.py file something like
this:
if __name__ == '__main__':
test()
no i did not have it...
is main really
On Thursday, November 15, 2012 2:43:26 PM UTC+1, Ulrich Eckhardt wrote:
Should that be return c instead of c on a line?
oh it is just a silly example function, the functionality is not important. It
does not have to return anything...
For a start, I would try to actually call the function.
On Thursday, November 15, 2012 3:21:52 PM UTC+1, Alister wrote:
doing it that way means that it will only call test when executed
directly not when imported as a module
I see, thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I created some bindings to a 3rd party library.
I have found that when I run Python and import smtplib it works fine.
If I first log into the 3rd party application using my bindings however I
get a bunch of errors.
What do you think this 3rd party login could be doing that would affect
In article roy-f45720.08540815112...@news.panix.com,
Roy Smith r...@panix.com wrote:
In article mailman.3714.1352986928.27098.python-l...@python.org,
Dave Angel d...@davea.name wrote:
I'd also add a print statement, just to assure yourself that it's running.
My trick to make sure something is
In article mailman.3676.1352887368.27098.python-l...@python.org,
Tim Golden m...@timgolden.me.uk wrote:
On 14/11/2012 00:33, Ali Akhavan wrote:
I am trying to open a file in 'w' mode open('file', 'wb'). open()
will throw with IOError with errno 13 if the file is locked by
another application
On 2012-11-15 16:04, Kevin Gullikson wrote:
Hi all,
I am trying to make a dictionary of functions, where each entry in the
dictionary is the same function with a few of the parameters set to
specific parameters. My actual use is pretty complicated, but I managed
to boil down the issue I am
On 11/15/2012 9:38 AM, Eric Frederich wrote:
Hello,
I created some bindings to a 3rd party library.
I have found that when I run Python and import smtplib it works fine.
If I first log into the 3rd party application using my bindings however
I get a bunch of errors.
What do you think this 3rd
On Thu, 15 Nov 2012 07:56:17 -0800, Aahz wrote:
In article roy-f45720.08540815112...@news.panix.com, Roy Smith
r...@panix.com wrote:
In article mailman.3714.1352986928.27098.python-l...@python.org,
Dave Angel d...@davea.name wrote:
I'd also add a print statement, just to assure yourself
On Thu, Nov 15, 2012 at 8:04 AM, Kevin Gullikson
kevin.gullik...@gmail.com wrote:
Hi all,
I am trying to make a dictionary of functions, where each entry in the
dictionary is the same function with a few of the parameters set to specific
parameters. My actual use is pretty complicated, but I
I can already say that smtplib is not to blame. It is (mostly) unconcerned
with the internal structure of the message -- and by itself
will not empty attachments.
On the advice of a co-worker, I tried using web2py's gluon.tools.Mail. It
was easier to accomplish the attachment, and Thunderbird
Thanks for the idea.
sys.path was the same before and after the login
What else should I be checking?
On Thu, Nov 15, 2012 at 11:57 AM, Terry Reedy tjre...@udel.edu wrote:
On 11/15/2012 9:38 AM, Eric Frederich wrote:
Hello,
I created some bindings to a 3rd party library.
I have found that
Sorry, only saw your first response, didn't see the others.
I compiled Python 2.7.2 myself with --enable-shared
To create standalone applications that interact with this 3rd party program
your main C file instead of having a main function has a FOO_user_main
function.
When you link your program
A lazy attribute is an attribute that is calculated on demand and only once.
The post below shows how you can use lazy attribute in your Python class:
http://mindref.blogspot.com/2012/11/python-lazy-attribute.html
Comments or suggestions are welcome.
Thanks.
Andriy Kornatskyy
On 15 November 2012 17:13, Chris Kaynor ckay...@zindagigames.com wrote:
On Thu, Nov 15, 2012 at 8:04 AM, Kevin Gullikson
kevin.gullik...@gmail.com wrote:
Hi all,
I am trying to make a dictionary of functions, where each entry in the
dictionary is the same function with a few of the
On 15 November 2012 01:47, su29090 129k...@gmail.com wrote:
I brought a python book and i'm a beginner and I read and tried to do the
questions and I still get it wrong.
How to create a program that reads an uspecified number of integers, that
determines how many positive and negative values
On 11/14/2012 04:07 PM, Steven D'Aprano wrote:
On Wed, 14 Nov 2012 10:20:13 -0800, rurpy wrote:
I'll skip the issues already addressed by Joshua Landau.
[...]
I don't understand why you suggest counting setup time for the
alternatives to Google Groups, but *don't* consider setup time for
On 11/15/2012 1:48 PM, Eric Frederich wrote:
Thanks for the idea.
sys.path was the same before and after the login
Too bad. That seems to be a typical cause of import failure.
What else should I be checking?
No idea. You are working beyond my knowledge. But I might either look at
the
On 15/11/2012 21:29, ru...@yahoo.com wrote:
All I'll say is that when I read something on gmane via Thunderbird on
Windows Vista on any of the 25 Python mailing lists that I subscribe to,
I don't want to read the double spaced crap that comes from G$.
I hence perceive a problem.
1) G$ are
On Thu, Nov 15, 2012 at 12:33 PM, Andriy Kornatskyy
andriy.kornats...@live.com wrote:
A lazy attribute is an attribute that is calculated on demand and only once.
The post below shows how you can use lazy attribute in your Python class:
On Thu, Nov 15, 2012 at 12:33 PM, Andriy Kornatskyy
andriy.kornats...@live.com wrote:
A lazy attribute is an attribute that is calculated on demand and only once.
The post below shows how you can use lazy attribute in your Python class:
On Wed, 14 Nov 2012 20:49:19 -0500, Roy Smith wrote:
I'm slightly surprised that there's no way with the Python stdlib to
point a DNS query at a specific server
Me too, including the only slightly part. The normal high-level C
resolver routines (getaddrinfo/getnameinfo, or even the old
On Saturday, November 10, 2012 10:35:12 AM UTC-5, Aahz wrote:
In article mailman.3530.1352538537.27098.python-l...@python.org,
Peter Otten __pete...@web.de wrote:
Miki Tebeka wrote:
Is there a simpler way to modify all arguments in a function before using
the arguments?
brucegoodst...@gmail.com wrote:
Using a decorator works when named arguments are not used. When named arguments
are used, unexpected keyword error is reported. Is there a simple fix?
Extend def wrapper(*args) to handle *kwargs as well
Emile
Code:
-
from functools import wraps
def
In article pan.2012.11.15.22.54.09.449...@nowhere.com,
Nobody nob...@nowhere.com wrote:
That's because the high-level routines aren't tied to DNS.
This is true.
gethostbyname() and getaddrinfo() use the NSS (name-service switch)
mechanism, which is configured via /etc/nsswitch.conf.
On Nov 16, 3:05 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
``1/0`` is shorter. ;-)
It is also guaranteed to run, unlike assert.
Only if they actively pass the command line switch to turn it off,
which I'd assume someone intentionally using an assertion wouldn't do.
--
On 2012-11-15, Mark Lawrence breamore...@yahoo.co.uk wrote:
On 15/11/2012 21:29, ru...@yahoo.com wrote:
All I'll say is that when I read something on gmane via Thunderbird on
Windows Vista on any of the 25 Python mailing lists that I subscribe to,
I don't want to read the double spaced crap
On Nov 16, 2:29 am, ru...@yahoo.com wrote:
But of course, our genius doesn't keep any records
and the cases where he is wrong don't make as much
impression on his memory. Further, he doesn't bother
to check the headers on the non-crap posts. Even a
junior-high science student could see the
Emile van Sebille wrote:
brucegoodst...@gmail.com wrote:
Using a decorator works when named arguments are not used. When named
arguments are used, unexpected keyword error is reported. Is there a
simple fix?
Extend def wrapper(*args) to handle *kwargs as well
Emile
Code:
-
from
On Fri, Nov 16, 2012 at 3:10 PM, rusi rustompm...@gmail.com wrote:
One small addition: GG allows spam posts to be marked as spam.
This feature costs a few seconds and can help everyone (if a few more
GG users would use it)
And Gmail lets you do the exact same thing, but I almost never need to
On Fri, Nov 16, 2012 at 5:37 PM, Chris Angelico ros...@gmail.com wrote:
Spam filtering is nothing unique.
(Don't get me wrong though, that doesn't stop it from being a good
thing. It's just not a reason to use GG above all else.)
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
Can someone explain the below behavior please?
re1 = re.compile(r'(?:((?:1000|1010|1020))[ ]*?[\,]?[ ]*?){1,3}')
re.findall(re_obj,'1000,1020,1000')
['1000']
re.findall(re_obj,'1000,1020, 1000')
['1020', '1000']
However when I use [\,]?? instead of [\,]? as below, I see a different
result
Ian,
Thank you for the comments.
The name attribute is not very descriptive. Why not lazy_attribute
instead?
It just shorter and still descriptive.
If accessing the descriptor on the class object has no special
meaning, then the custom is to return the descriptor object itself, as
Ian,
Thank you for mentioning about this research, really appreciate that.
Thanks.
Andriy Kornatskyy
From: ian.g.ke...@gmail.com
Date: Thu, 15 Nov 2012 15:46:19 -0700
Subject: Re: Lazy Attribute
To: python-list@python.org
On Thu, Nov 15, 2012 at
Ezio Melotti added the comment:
testing the new version of irker
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2771
___
___
Python-bugs-list
Ezio Melotti added the comment:
another test
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2771
___
___
Python-bugs-list mailing list
New submission from Kristján Valur Jónsson:
The format used by the marshal module does not support instancing. This
precludes certain data optimizations, such as sharing string constants, common
tuples, even common code objects. Since the marshal format is used to write
compiled code, this
Ezio Melotti added the comment:
test
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2771
___
___
Python-bugs-list mailing list
Unsubscribe:
Mark Dickinson added the comment:
I think consistent behavior between int() and Fraction() is valuable.
Agreed. If no-one objects I'll fix the Decimal - Fraction and float -
Fraction conversions to match what Decimal - int and float - int currently do
(ValueError and OverflowError).
Then
Kristján Valur Jónsson added the comment:
Second patch which adds the missing internment support for strings, including
unittests.
--
Added file: http://bugs.python.org/file27988/marshalinstance.patch
___
Python tracker rep...@bugs.python.org
New submission from Leo Liu:
python -mjson.tool some_file.json x.json
x.json will have trailing white spaces.
Also reported here: http://thread.gmane.org/gmane.comp.python.devel/135311
--
messages: 175607
nosy: leoliu
priority: normal
severity: normal
status: open
title: Trailing
Ezio Melotti added the comment:
This is a duplicate of #16333.
--
nosy: +ezio.melotti
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - Trailing whitespace in json dump when using indent
___
Python tracker
Ezio Melotti added the comment:
test
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2771
___
___
Python-bugs-list mailing list
Unsubscribe:
Ezio Melotti added the comment:
another test
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2771
___
___
Python-bugs-list mailing list
Ezio Melotti added the comment:
another test
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2771
___
___
Python-bugs-list mailing list
Ezio Melotti added the comment:
test
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2771
___
___
Python-bugs-list mailing list
Unsubscribe:
Ezio Melotti added the comment:
another test
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2771
___
___
Python-bugs-list mailing list
Ezio Melotti added the comment:
final test
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2771
___
___
Python-bugs-list mailing list
Serhiy Storchaka added the comment:
In the end, it's mostly a wash.
Yes, it's predictable. The gain is too small and undistinguished on a
background of random noise. May be more long-running benchmark will show more
reliable results, but in any case, the gain is small.
My long-running
New submission from Sam Thursfield:
Exceptions such as disk full during extraction cause tarfile to leak file
handles. Besides being messy, it causes real problems if, for example, the
target file is on a mount that should be unmounted before the program exits -
in this case, the unmount will
Sam Thursfield added the comment:
sorry, replace 'open' with 'bltn_open' in the above comment - no need to change
it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16477
___
Serhiy Storchaka added the comment:
Issue16408 is similar issue for zipfile.
--
keywords: +easy
nosy: +lars.gustaebel, serhiy.storchaka
stage: - needs patch
type: behavior - resource usage
versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 -Python 3.5
Vinay Sajip added the comment:
I've added the ability to set handler properties via configuration slightly
more easily, see the code in changeset a81ae412174a (the unit test shows how
the configuration looks in practice). This enhancement cannot be added to
earlier Python versions (no feature
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16144
Andrew Svetlov added the comment:
Fixed in a8ca14983ab1 and 9961a0dafcc7. Thanks, Manuel.
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16144
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16470
___
___
Andrew Svetlov added the comment:
I think much more important to mention registry key in
http://docs.python.org/3/library/importlib.html#importlib.machinery.WindowsRegistryFinder
``imp`` is private module to access implementation internals but ``importlib``
is public interface to import
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16391
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16392
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16404
___
___
New submission from Serhiy Storchaka:
Tabnanny should use floor division in calculation, the comment says about this.
But in the current Python 3 code / was not changed to //.
--
components: Demos and Tools, Library (Lib)
files: tabnanny_div.patch
keywords: easy, patch
messages: 175622
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16422
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16427
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16429
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16434
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16444
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16447
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16446
___
___
New submission from Stephen:
Machine is Redhat Linux 6.2. Tried to install Python3.3 build failed in the
make step.
---
[sliu@wtl-build-1 Python-3.3.0]$ uname -a
Linux wtl-build-1 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64
x86_64 x86_64 GNU/Linux
Stephen added the comment:
Sorry, missed the configure command in the previous message. It should have
been:
---
[sliu@wtl-build-1 Python-3.3.0]$ uname -a
Linux wtl-build-1 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64
x86_64 x86_64 GNU/Linux
Alexey Kachayev added the comment:
Patch is attached for {float, Decimal} - {int, Fraction} consistency (with
ValueError and OverflowError). Test cases are changed as well.
I can also change OverflowError to ValueError for all cases, but I'm not sure
should I open for this separated issue or
New submission from Marco Amadori:
The solution to work around the bug is there:
http://ipoveraviancarriers.blogspot.it/2012/11/python-33-and-pyvenv-hackish-solution.html
But probably pyvenv should be patched in order to create symlinks.
Thanks!
--
components: None
messages: 175626
Stefan Krah added the comment:
Should we go ahead with this? If so, then I think it only makes sense
to change *all* undocumented cases of None default args. Here's a
case that used rounding=None in quantize():
https://bitbucket.org/simplecodes/wtforms/issue/117/test-failure-with-python-33
Stefan Krah added the comment:
By all cases I mean the ones listed in msg169144, not the Number methods.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15783
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
versions: +Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16446
___
___
New submission from Richard Oudkerk:
On Windows the handle for a child process is not closed when the popen/process
object is garbage collected.
--
messages: 175629
nosy: sbt
priority: normal
severity: normal
stage: needs patch
status: open
title: process handle leak on windows in
New submission from A Kaptur:
pdb.set_trace() is overwriting the actual traceback when exiting with an error.
See minimal recreation here: https://gist.github.com/4079971
--
messages: 175630
nosy: akaptur
priority: normal
severity: normal
status: open
title: pdb.set_trace() clobbering
Changes by Mark Dickinson dicki...@gmail.com:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16469
___
___
Alexey Kachayev added the comment:
I also attached full_issue patch: change OverflowError to ValueError for all
cases.
--
Added file: http://bugs.python.org/file27991/full_issues16469.diff
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
marshal is only supposed to be used to serialize code objects, not arbitrary
user data. Why don't you use pickle?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16475
Changes by Alexey Kachayev kacha...@gmail.com:
Added file: http://bugs.python.org/file27992/full_issues16469_fixed.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16469
___
Brett Cannon added the comment:
Fixed in various commits.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12908
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16434
___
___
Brett Cannon added the comment:
Here is my current plan::
parse_bytecode_file(data, source_stats, source_path) - code
This will take in the bytes from the bytecode file and a stats dict from
SourceLoader.path_stats(). The method will parse the bytecode file, verify the
magic number,
Brett Cannon added the comment:
Might name this compile_source() instead.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15627
___
___
Brett Cannon added the comment:
Might name it compile_bytecode_file() instead.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15031
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
components: +Interpreter Core
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16281
___
Tim Golden added the comment:
Karthk, if you can run up an up-to-date patch and a test I'm willing to review
and commit it, otherwise this one will lie quiet.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16458
1 - 100 of 135 matches
Mail list logo