On Monday, October 28, 2013 11:26:21 AM UTC+5:30, rusi wrote:
> On Monday, October 28, 2013 11:10:21 AM UTC+5:30, ru...@yahoo.com wrote:
> > I updated the page, hopefully it's an improvement?
>
>
> Otherwise ok I think
Just looked at the general netiquette link -- its long and not much use for a
On Mon, Oct 28, 2013 at 11:34 AM, Mark Lawrence wrote:
> "What is the difference between "script" code (like Javascript and visual)
> made for the screen (where such magic values are utilized) and compiled
> source (made for the machine)?"
>
> This obviously impacts on the discussion above, so how
On Mon, Oct 28, 2013 at 2:43 PM, Victor Hooi wrote:
> Is it acceptable to use try-except in order to achieve this? E.g.:
>
> try:
> # Try to open up the SQLite file, and lookup the required entries
> except OSError:
> # Open an empty SQLite file, and create the schema
>
>
>
On Sun, 27 Oct 2013 20:43:07 -0700, Victor Hooi wrote:
> Hi,
>
> I'd like to double-check something regarding using try-except for
> controlling flow.
>
> I have a script that needs to lookup things in a SQLite database.
>
> If the SQLite database file doesn't exist, I'd like to create an empty
On Monday, October 28, 2013 11:10:21 AM UTC+5:30, ru...@yahoo.com wrote:
> I updated the page, hopefully it's an improvement?
Most people who top-post have no idea that they are top-posting and that there
are alternatives and they are preferred (out here)
http://en.wikipedia.org/wiki/Posting_styl
On Sunday, October 27, 2013 1:59:05 AM UTC-6, rusi wrote:
> On Sunday, October 27, 2013 10:34:11 AM UTC+5:30, ru...@yahoo.com wrote:
> > On 10/26/2013 07:45 PM, rusi wrote:
> > > On Sunday, October 27, 2013 2:07:53 AM UTC+5:30, Peter Cacioppi wrote:
> > First, thanks (both of you) very much for the
On 10/26/2013 07:56 PM, Chris Angelico wrote:
> On Sun, Oct 27, 2013 at 12:45 PM, rusi wrote:
>> Yes... that page is longer and more confusing than necessary.
>> 1. The double-posting bit is unnecessary -- not been happening after the
>> 'new' GG.
>> 2. The missing attributions problem is new and
On 10/27/2013 01:31 AM, Nick the Gr33k wrote:
> Στις 27/10/2013 6:00 πμ, ο/η ru...@yahoo.com έγραψε:
>[...]
[following quote lightly edited for clarity]
> I almost understand your code, but this part is not so clear to me:
>
key = host, city, useros, browser
> if key not in seen:
newdata
On 26Oct2013 12:07, John Ladasky wrote:
> My side job as a Python tutor continues to grow. In two weeks, I will start
> working with a high-school student who owns a MacBook Pro.
>
> I have had students with Linux systems (my preference) and Windows systems
> before, but not Macs. On my fir
Hi,
I'd like to double-check something regarding using try-except for controlling
flow.
I have a script that needs to lookup things in a SQLite database.
If the SQLite database file doesn't exist, I'd like to create an empty
database, and then setup the schema.
Is it acceptable to use try-exc
On Monday, October 28, 2013 4:56:38 AM UTC+5:30, Ben Finney wrote:
> I'm not in any special position of power here; I'm not beholden to
> address every instance of bad behaviour or none at all. Any member of
> this community can apply the same social pressure, and together we can
> cover as many of
Hi,
I have a collection of Python scripts I'm using to load various bits of data
into a database.
I'd like to move some of the common functions (e.g. to setup loggers, reading
in configuration etc.) into a common file, and import them from there.
I've created empty __init__.py files, and my cu
On Monday, October 28, 2013 3:44:14 AM UTC+5:30, zipher wrote:
> Otherwise, most of this, while sloppy, still stands.
Yes
All your quotes are unattributed
So your discussion is both sloppy and meaningless
--
https://mail.python.org/mailman/listinfo/python-list
On 28/10/2013 00:35, Marc wrote:
What was wrong with the answer Peter Otten gave you earlier today on the
tutor mailing list?
--
Python is the second best programming language in the world.
But the best has yet to be invented. Christian Tismer
Mark Lawrence
I did not receive any answers fr
>What was wrong with the answer Peter Otten gave you earlier today on the
>tutor mailing list?
>
>--
>Python is the second best programming language in the world.
>But the best has yet to be invented. Christian Tismer
>
>Mark Lawrence
>
I did not receive any answers from the Tutor list, so I tho
On 27/10/2013 23:58, Chris Angelico wrote:
On Mon, Oct 28, 2013 at 10:31 AM, Ben Finney wrote:
It is an unfortunate artefact of Unix history that “binary” has an
established connotation of “executable”, encompassing even executable
text files.
That's a lot broader than Unix - people talk abou
On Mon, Oct 28, 2013 at 10:31 AM, Ben Finney wrote:
> It is an unfortunate artefact of Unix history that “binary” has an
> established connotation of “executable”, encompassing even executable
> text files.
That's a lot broader than Unix - people talk about "binaries" meaning
executables in Windo
Roy Smith writes:
> In article ,
> "Rhodri James" wrote:
>
> > I really, really wouldn't do this with a single regexp. You'll get a much
> > easier to understand program if you implement a small state machine
> > instead.
>
> And what is a regex if not a small state machine?
Regex is not
Ian Kelly writes:
> I don't see why Python files should be treated any differently than
> other non-binary executables, e.g. shell scripts.
It is an unfortunate artefact of Unix history that “binary” has an
established connotation of “executable”, encompassing even executable
text files.
So the
Antoon Pardon writes:
> Op 26-10-13 23:43, Ben Finney schreef:
> > Feel free to occupy your time with baiting Nikos. But *do not* do it
> > in this forum.
>
> Would you mind telling this to others too.
I'm not in any special position of power here; I'm not beholden to
address every instance of b
Gregory Ewing writes:
> Ben Finney wrote:
> > On systems conforming to the Filesystem Hierarchy Standard, it's
> > forbidden: programs go in a platform-specific location
> > http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html#USRLIBLIBRARIESFORPROGRAMMINGANDPA>,
> > while platform-independen
In article ,
"Rhodri James" wrote:
> I really, really wouldn't do this with a single regexp. You'll get a much
> easier to understand program if you implement a small state machine
> instead.
And what is a regex if not a small state machine?
--
https://mail.python.org/mailman/listinfo/pyt
On 27/10/2013 21:09, Marc wrote:
Hi,
I am having an issue with something that would seemtohave an easy
solution,butwhich escapes me. I have configuration files that I would
like to parse. The data I am having issue with is a multi-line
attribute that has the following structure:
banner
Banne
On Sun, 27 Oct 2013 21:09:46 -, Marc wrote:
Hi,
I am having an issue with something that would seem to have an easy
solution, but which escapes me. I have configuration files that I would
like to parse. The data I am having issue with is a multi-line attribute
that has the following struc
> I see the big man stepping in to answer for his homies
After re-reading the discussion, I wish to retract what I'm saying
here and apologize to John who seems like a decent guy.
>, but while his
> explanation satisfies their question of "well why do these magic
> values get used then, if what M
Hi,
I am having an issue with something that would seem to have an easy
solution, but which escapes me. I have configuration files that I would
like to parse. The data I am having issue with is a multi-line attribute
that has the following structure:
banner
Banner text
Banner text
Banner text
On 27 October 2013 23:20, rusi wrote:
> On Saturday, October 26, 2013 11:50:33 PM UTC+5:30, MRAB wrote:
> > On 26/10/2013 18:36, HC wrote:
> > > I'm doing my first year in university and I need help with this basic
> assignment.
> > >
> > > Assignment: Write Python script that prints sum of cubes
On 10/27/2013 2:13 PM, Aseem Bansal wrote:
Python 2.7.6 release candidate 1 and 3.3.3 release candidate 1 was
released yesterday. Also Python 3.4.0 alpha 4 was released a week
ago.
I thought as Python 3.4.0 alpha was released 3.3 branch was done.
Normal 3.3 bugfixes are not done until 3.4.0 (f
Στις 27/10/2013 8:01 μμ, ο/η Denis McMahon έγραψε:
On Sat, 26 Oct 2013 15:29:52 +0300, Nick the Gr33k wrote:
Hello i having the following code to try and retrieve the visitor's
saved cookie form the browser.
[CODE]
# initialize cookie and retrieve cookie from clients browser try:
cookie
Στις 27/10/2013 9:25 μμ, ο/η Benjamin Schollnick έγραψε:
Nikos,
Hello i having the following code to try and retrieve the visitor's
saved cookie form the browser.
[CODE]
# initialize cookie and retrieve cookie from clients browser try:
cookie = cookies.SimpleCookie( os.environ['HTTP_COOKIE
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On behalf of the Python development team, I'm quite happy to announce the
Python 3.3.3 release candidate 1.
Python 3.3.3 includes several security fixes and over 150 bug fixes compared to
the Python 3.3.2 release.
This release fully supports OS X 10.
I'm happy to announce the availability of Python 2.7.6 release candidate 1.
Most importantly, this release candidate resolves crashes of the interactive
interpreter on OS X 10.9. It also includes the usual collection of bugfixes over
2.7.5. These are described in excruciating detail in the Misc/NE
Nikos,
Hello i having the following code to try and retrieve the visitor's
>> saved cookie form the browser.
>>
>> [CODE]
>> # initialize cookie and retrieve cookie from clients browser try:
>> cookie = cookies.SimpleCookie( os.environ['HTTP_COOKIE'] )
>> cookieID = cookie['name'].value
>
On 10/26/13 9:14 PM, Gary Roach wrote:
Hi
In the process of trying to learn python, django, mysql and
virtualenvwrapper, I have created two projects and a mess. How can I
strip everything from a Debian, Wheezy, linux system. The files are
all over the place. Much of the information in this ar
On 10/27/13 2:13 PM, Aseem Bansal wrote:
Python 2.7.6 release candidate 1 and 3.3.3 release candidate 1 was released
yesterday. Also Python 3.4.0 alpha 4 was released a week ago.
I thought as Python 3.4.0 alpha was released 3.3 branch was done. The 3.3.3
release candidate fixes many bugs as pe
On 27/10/2013 18:13, Aseem Bansal wrote:
Python 2.7.6 release candidate 1 and 3.3.3 release candidate 1 was released
yesterday. Also Python 3.4.0 alpha 4 was released a week ago.
I thought as Python 3.4.0 alpha was released 3.3 branch was done. The 3.3.3
release candidate fixes many bugs as pe
Python 2.7.6 release candidate 1 and 3.3.3 release candidate 1 was released
yesterday. Also Python 3.4.0 alpha 4 was released a week ago.
I thought as Python 3.4.0 alpha was released 3.3 branch was done. The 3.3.3
release candidate fixes many bugs as per the changelog so would they be
included
On Sat, 26 Oct 2013 15:29:52 +0300, Nick the Gr33k wrote:
> Hello i having the following code to try and retrieve the visitor's
> saved cookie form the browser.
>
> [CODE]
> # initialize cookie and retrieve cookie from clients browser try:
> cookie = cookies.SimpleCookie( os.environ['HTTP_CO
On 10/25/2013 7:55 PM, Yaşar Arabacı wrote:
Hi people,
I wrote this decorator: https://gist.github.com/yasar11732/7163528
wow, this looks really powerful. I would like to add the ability to
associate a tag or set of tags with the decorator so that the debug
output only happens when there is
On 10/27/2013 04:38 AM, rusi wrote:
On Sunday, October 27, 2013 6:44:35 AM UTC+5:30, Gary Roach wrote:
Hi
In the process of trying to learn python, django, mysql and
virtualenvwrapper, I have created two projects and a mess. How can I
strip everything from a Debian, Wheezy, linux system. The fi
On Sun, Oct 27, 2013 at 1:58 AM, Gregory Ewing
wrote:
> Ben Finney wrote:
>>
>> On systems conforming to the Filesystem Hierarchy Standard, it's
>> forbidden: programs go in a platform-specific location
>>
>> http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html#USRLIBLIBRARIESFORPROGRAMMINGAND
On Sun, Oct 27, 2013 at 4:31 PM, wrote:
> hello all,
>
> This has got me a tad bit confused I think. I am running 3.3.0 and I know
> that Python looks to group code together that is supposed to be in the same
> block. But the question is, where are the rules for this? For instance, if
> I t
On Sunday, October 27, 2013 1:02:38 AM UTC+5:30, Stephan Vladimir Bugaj wrote:
> I rarely ever post here.
>
> But I wanted to say that people responding to this Nikos troll makes reading
> this list a nuisance.
> You've never ever been successful in convincing him to behave, and it's been
> goin
On 27/10/2013 15:31, ajetrum...@gmail.com wrote:
hello all,
This has got me a tad bit confused I think. I am running 3.3.0 and I know that
Python looks to group code together that is supposed to be in the same block.
But the question is, where are the rules for this? For instance, if I type
On 27/10/2013 11:31 AM, ajetrum...@gmail.com wrote:
a=1;
if a==1: print(1)
else: print(0)
wait = input("press key")
You indent only subordinate statements.
You don't need a semi-colon unless it separates two statements on the
same line.
Your code:
a=1
if a==1:
print(1)
else:
print(0
hello all,
This has got me a tad bit confused I think. I am running 3.3.0 and I know that
Python looks to group code together that is supposed to be in the same block.
But the question is, where are the rules for this? For instance, if I type the
following in a PY file, it errors out and I d
On 27/10/2013 10:32 AM, David wrote:
I am an absolute beginner and am working through the book Python Programming for the
Absolute Beginner by Michael Dawson. Everything is fine except if I run a scripted
programme, or one I have downloaded, and then run another one, the second one will not
r
On Sun, 27 Oct 2013 11:09:08 +0100
Peter Otten wrote:
> Johannes Findeisen wrote:
>
> > Hi all,
> >
> > I am going crazy with logging. I have an application which sets up
> > logging after parsing the args in the main() funktion. It needs to be
> > setup after parsing the args because I can set
On Sun, 27 Oct 2013 11:09:08 +0100
Peter Otten wrote:
> Johannes Findeisen wrote:
>
> > Hi all,
> >
> > I am going crazy with logging. I have an application which sets up
> > logging after parsing the args in the main() funktion. It needs to be
> > setup after parsing the args because I can set
Op 26-10-13 23:43, Ben Finney schreef:
Mark Lawrence writes:
I could almost feel sorry for you. But the more of your time I waste
the longer it'll take you to get your website working.
Feel free to occupy your time with baiting Nikos. But *do not* do it in
this forum.
Would you mind telli
I am an absolute beginner and am working through the book Python Programming
for the Absolute Beginner by Michael Dawson. Everything is fine except if I
run a scripted programme, or one I have downloaded, and then run another one,
the second one will not run, I just get the >>> in the interacti
In article ,
Ben Finney wrote:
> Peter Cacioppi writes:
>
> > Am I the only one who finds this function super useful?
> >
> > def _code_file() :
> > return os.path.abspath(inspect.getsourcefile(_code_file))
>
> I've used âos.path.dirname(os.path.abspath(__file__))â to find the
> direc
On Saturday, October 26, 2013 11:50:33 PM UTC+5:30, MRAB wrote:
> On 26/10/2013 18:36, HC wrote:
> > I'm doing my first year in university and I need help with this basic
> > assignment.
> >
> > Assignment: Write Python script that prints sum of cubes of numbers between
> > 0-200 that are multipl
On 27/10/2013 03:31, Nick the Gr33k wrote:
> Στις 27/10/2013 6:00 πμ, ο/η ru...@yahoo.com έγραψε:
>
> I read it thoroughly and tested it and it works as it should.
>
> I just wanted to mention that the definition of the function coalesce()
> must come prior of:
>
>> newdata = coal
On Sunday, October 27, 2013 6:44:35 AM UTC+5:30, Gary Roach wrote:
> Hi
>
> In the process of trying to learn python, django, mysql and
> virtualenvwrapper, I have created two projects and a mess. How can I
> strip everything from a Debian, Wheezy, linux system. The files are all
> over the pla
Peter Otten wrote:
> def levelnames():
> try:
> names = logging._nameToLevel
> except AttributeError:
> names = (name for name in logging._levelNames if isinstance(name,
> str))
Trainwreck alert :(
I recommend that you use the following list
"DEBUG INFO WARN ERROR CRITIC
On Sunday, October 27, 2013 2:07:53 AM UTC+5:30, Peter Cacioppi wrote:
> Rusi said:
>
> > Users of GG are requested to read and follow these instructions
> > https://wiki.python.org/moin/GoogleGroupsPython
>
> Yes, I read those instructions and found them fairly opaque. If you want to
> instruct
Johannes Findeisen wrote:
> Hi all,
>
> I am going crazy with logging. I have an application which sets up
> logging after parsing the args in the main() funktion. It needs to be
> setup after parsing the args because I can set the loglevel via
> commandline flags.
>
> I have tried many variants
On Sunday, October 27, 2013 4:47:16 AM UTC+5:30, theel...@gmail.com wrote:
> I apologize but I do not understand what you mean by "lack of context." I
> have
> taken Chris' words into consideration, for my previous post was supposed to
> be
> my last (I just had to say thank you). This is my fi
On 27/10/2013 01:11, Roy Smith wrote:
In article ,
Dennis Lee Bieber wrote:
Compared to Baudot, both ASCII and EBCDIC were probably considered
wondrous.
Wonderous, indeed. Why would anybody ever need more than one case of
the alphabet? It's almost as absurd as somebody wanting to put fun
On Sunday, October 27, 2013 12:07:29 PM UTC+5:30, Zero Piraeus wrote:
> The results:
>
>
> Senders: 1701
> GG users: 879
>
> ... so just over 50%.
>
>
> If anyone wants the complete output, just let me know and I'll email it
> privately.
If you have a GG account just go to the 'aboutgroup' in
Ben Finney wrote:
On systems conforming to the Filesystem Hierarchy Standard, it's
forbidden: programs go in a platform-specific location
http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html#USRLIBLIBRARIESFORPROGRAMMINGANDPA>,
while platform-independent data files go in a separate location
h
On Sunday, October 27, 2013 10:34:11 AM UTC+5:30, ru...@yahoo.com wrote:
> On 10/26/2013 07:45 PM, rusi wrote:
>
> > On Sunday, October 27, 2013 2:07:53 AM UTC+5:30, Peter Cacioppi wrote:
> >> Rusi said:
> >>
> >> "Users of GG are requested to read and follow these instructions
> >> https://wiki.
Στις 27/10/2013 6:00 πμ, ο/η ru...@yahoo.com έγραψε:
On 10/26/2013 06:11 PM, Nick the Gr33k wrote:
Στις 27/10/2013 2:52 πμ, ο/η Nick the Gr33k έγραψε:
Ah foun it had to change in you code this line:
key = host, city, useros, browser, ref
to this line:
key = host, c
Hi all,
I am going crazy with logging. I have an application which sets up
logging after parsing the args in the main() funktion. It needs to be
setup after parsing the args because I can set the loglevel via
commandline flags.
I have tried many variants on how to do that but every time with an
w
Joshua Landau wrote:
> Python already supports the factorial operator, -ⵘ.
why use ⵘ (TIFINAGH LETTER AYER YAGH) when you can have the BANG? 방 (HANGUL
SYLLABLE BANG)
> You just have to
> import it.
>
> # Import statement
> ⵘ = type("",(),{"__rsub__":lambda s,n:(lambda f,n:f(f,n))(lambda
> f,z
66 matches
Mail list logo