Re: UnpicklingError: NEWOBJ class argument isn't a type object

2013-07-08 Thread Chris Angelico
On Mon, Jul 8, 2013 at 3:27 PM, skunkwerk skunkw...@gmail.com wrote: I'm using a custom pickler that replaces any un-pickleable objects (such as sockets or files) with a string representation of them... If it pickles okay, why should it not be able to unpickle? Any ideas? Generally, the

Re: Important features for editors

2013-07-08 Thread jussij
On Thursday, July 4, 2013 5:32:59 PM UTC+10, cutems93 wrote: I am researching on editors for my own reference. On the Windows platform there is the Zeus editor: http://www.zeusedit.com/python.html It does the standard syntax highlighting, code folding and smarting indent etc etc. It's also

Re: Important features for editors

2013-07-08 Thread Steven D'Aprano
On Sun, 07 Jul 2013 23:16:39 -0700, jussij wrote: I couldn't live without the keyboard macro record and playback. I used to work with a programmer who couldn't live without his insulin injections. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: UnpicklingError: NEWOBJ class argument isn't a type object

2013-07-08 Thread dieter
skunkwerk skunkw...@gmail.com writes: Hi, I'm using a custom pickler that replaces any un-pickleable objects (such as sockets or files) with a string representation of them, based on the code from Shane Hathaway here:

Re: Editor Ergonomics [was: Important features for editors]

2013-07-08 Thread Giorgos Tzampanakis
On 2013-07-06, Skip Montanaro wrote: More likely, rms ignored the problem and had bad personal ergomonics: ignorance or lack of understanding of the problem, poor posture, wrists not in a neutral position, lack of breaks, etc. If you stop to think about it, all text editors probably present

Re: Editor Ergonomics [was: Important features for editors]

2013-07-08 Thread Steven D'Aprano
On Sun, 07 Jul 2013 22:34:46 -0700, jussij wrote: On Sunday, July 7, 2013 12:41:02 PM UTC+10, Steven D'Aprano wrote: I am not an ergonomic expert, but I understand that moving from mouse to keyboard actually helps prevent RSI, because it slows down the rate of keystrokes and uses different

Re: UnpicklingError: NEWOBJ class argument isn't a type object

2013-07-08 Thread Peter Otten
skunkwerk wrote: Hi, I'm using a custom pickler that replaces any un-pickleable objects (such as sockets or files) with a string representation of them, based on the code from Shane Hathaway here: http://stackoverflow.com/questions/4080688/python-pickling-a-dict-with-

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

2013-07-08 Thread Antoon Pardon
Op 06-07-13 00:40, ru...@yahoo.com schreef: On 07/04/2013 06:09 AM, Antoon Pardon wrote: Op 03-07-13 19:11, ru...@yahoo.com schreef: On 07/03/2013 03:21 AM, Antoon Pardon wrote: Op 03-07-13 02:30, ru...@yahoo.com schreef: If your going to point out something negative about someone then do so

Re: Tutorials on Jinja

2013-07-08 Thread dtbulmer2
On Wednesday, June 24, 2009 11:46:55 AM UTC-7, Saurabh wrote: Hi All, I am trying to move my application on a MVC architecture and plan to use Jinja for the same. Can anyone provide me with few quick links that might help me to get started with Jinja? Thanks, Saby this is a site that

Newbie. Need help

2013-07-08 Thread Sanza101
I just started using Python recently, and i need help with the following: Please assist. 1. Create another function that generates a random number (You will have to import the relevant library to do this) 2. Create a function that is called from the main function, that accepts a

Re: Illegal suggestions on python list

2013-07-08 Thread Joshua Landau
On 5 July 2013 08:34, Chris Angelico ros...@gmail.com wrote: On Fri, Jul 5, 2013 at 5:23 PM, Νίκος Gr33k ni...@superhost.gr wrote: Of course we all know that a serial/patch/keygen/crack can be found for this great edit very easily on warez or torrentz sites so it was like a common secret to

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Joel Goldstick
On Fri, Jul 5, 2013 at 3:08 PM, Νίκος Gr33k ni...@superhost.gr wrote: Is there a way to extract out of some environmental variable the Geo location of the user being the city the user visits out website from? Perhaps by utilizing his originated ip address? -- What is now proved was at

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Jerry Hill
On Fri, Jul 5, 2013 at 3:08 PM, Νίκος Gr33k ni...@superhost.gr wrote: Is there a way to extract out of some environmental variable the Geo location of the user being the city the user visits out website from? Perhaps by utilizing his originated ip address? No, you'd need to take the

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Robert Kern
On 2013-07-06 09:41, Νίκος Gr33k wrote: Στις 6/7/2013 11:30 πμ, ο/η Chris Angelico έγραψε: On Sat, Jul 6, 2013 at 6:01 PM, � Gr33k ni...@superhost.gr wrote: Is there any way to pinpoint the visitor's exact location? Yes. You ask them to fill in a shipping address. They may still lie, or

AMQP listening and user-facing daemon

2013-07-08 Thread Justin Chiu
Hi all, What is the best approach to writing a concurrent daemon that can execute callbacks for different types of events (AMQP messages, parsed output of a subprocess, HTTP requests)? I am considering [twisted][1], the built-in [threading][2] module, and [greenlet][3]. I must admit that I

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Support by Νίκος
Στις 5/7/2013 10:28 μμ, ο/η Jerry Hill έγραψε: On Fri, Jul 5, 2013 at 3:08 PM, Νίκος Gr33k ni...@superhost.gr wrote: Is there a way to extract out of some environmental variable the Geo location of the user being the city the user visits out website from? Perhaps by utilizing his originated ip

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Chris Angelico
On Sat, Jul 6, 2013 at 7:18 AM, Dave Angel da...@davea.name wrote: On 07/05/2013 04:44 PM, Tim Roberts wrote: ? Gr33k ni...@superhost.gr wrote: Is there a way to extract out of some environmental variable the Geo location of the user being the city the user visits out website from?

capture html screen with pexpect

2013-07-08 Thread inq1ltd
python help, I can log into a web site with pexpect but what I want to do is pipe the opening window to a file. Logging into the site opens the site window but I can't get the window to a file. I can't use screen capture I need to get pexpect to pipe it to a txt file. Any help will be

A small question about PEP 8

2013-07-08 Thread Xue Fuqiao
Hi all, (English is not my native language; please excuse typing errors.) I'm a Python newbie and just started reading PEP 8. PEP says: --- |The closing brace/bracket/parenthesis on multi-line constructs may |either line up

Re: Important features for editors

2013-07-08 Thread Skip Montanaro
I couldn't live without the keyboard macro record and playback. I used to work with a programmer who couldn't live without his insulin injections. Hyperbole aside, two of my most common crutches are Emacs macros and bash history. Given how useful macros are, I find it very odd that recent

Re: Newbie. Need help

2013-07-08 Thread Joshua Landau
On 8 July 2013 09:53, Sanza101 sandile.mnu...@gmail.com wrote: I just started using Python recently, and i need help with the following: Please assist. Rather than saying you want help with Please assist, why don't you ask a question? I find when people start their post with I need help,

Re: A small question about PEP 8

2013-07-08 Thread Joshua Landau
On 8 July 2013 00:32, Xue Fuqiao xfq.f...@gmail.com wrote: Hi all, (English is not my native language; please excuse typing errors.) I'm a Python newbie and just started reading PEP 8. PEP says: --- |The closing

Re: capture html screen with pexpect

2013-07-08 Thread Dave Angel
On 07/07/2013 01:06 PM, inq1ltd wrote: python help, I can log into a web site with pexpect but what I want to do is pipe the opening window to a file. Logging into the site opens the site window but I can't get the window to a file. I can't use screen capture I need to get pexpect to pipe

Re: A small question about PEP 8

2013-07-08 Thread Steven D'Aprano
On Mon, 08 Jul 2013 07:32:01 +0800, Xue Fuqiao wrote: Hi all, (English is not my native language; please excuse typing errors.) I'm a Python newbie and just started reading PEP 8. PEP says: --- |The closing

Re: Newbie. Need help

2013-07-08 Thread Alister
On Mon, 08 Jul 2013 01:53:06 -0700, Sanza101 wrote: I just started using Python recently, and i need help with the following: Please assist. 1.Create another function that generates a random number (You will have to import the relevant library to do this) 2.Create a function that

Re: Default scope of variables

2013-07-08 Thread Neil Cerutti
On 2013-07-07, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Fri, 05 Jul 2013 13:24:43 +, Neil Cerutti wrote: for x in range(4): print(x) print(x) # Vader NOoOO!!! That loops do *not* introduce a new scope is a feature, not a bug. It is *really* useful to

How do I write a script to generate 10 random EVEN numbers and write them to a .txt file?

2013-07-08 Thread Kenz09
Hi, I have been given a task to do. I am a new to programming and Python. My task is to : -Create a function that is called from the main function, that accepts a number as a parameter and determines if the number is even or odd. the next one is, -To create another function that generates a

Re: A small question about PEP 8

2013-07-08 Thread Steven D'Aprano
On Mon, 08 Jul 2013 11:39:21 +0100, Joshua Landau wrote: On 8 July 2013 00:32, Xue Fuqiao xfq.f...@gmail.com wrote: Hi all, (English is not my native language; please excuse typing errors.) I'm a Python newbie and just started reading PEP 8. PEP says:

Re: How do I write a script to generate 10 random EVEN numbers and write them to a .txt file?

2013-07-08 Thread Dave Angel
On 07/08/2013 08:01 AM, Kenz09 wrote: Hi, I have been given a task to do. I am a new to programming and Python. My task is to : -Create a function that is called from the main function, that accepts a number as a parameter and determines if the number is even or odd. the next one is, -To

Re: A small question about PEP 8

2013-07-08 Thread Dave Angel
On 07/08/2013 08:02 AM, Steven D'Aprano wrote: On Mon, 08 Jul 2013 11:39:21 +0100, Joshua Landau wrote: SNIP Or you can (be sane) and put it at no indentation: a_wonderful_set_of_things = { ..., not_missing_an_end_brace } I consider that the least aesthetically pleasing,

ssl handshake operation timed out on Python 3.3.2

2013-07-08 Thread Benedict Verheyen
Hi, for a project, I need to post data to some aspx pages. The aspx pages are hosted by another company. I develop on a virtual Debian Wheezy (Virtual box) running on Windows. I couldn't get the code to run either on Windows nor Linux. On my testserver (also a Debian Linux Wheezy) however, the

Re: Newbie. Need help

2013-07-08 Thread Joshua Landau
On 8 July 2013 13:05, Sandile Mnukwa sandile.mnu...@gmail.com wrote: Hi Joshua, Hello. You replied off-list (to me only, not to Python-list). I imagine this was a mistake, so I'm posting to Python-list again. If this wasn't a mistake, then I apologize and suggest telling people when you mean to

Re: A small question about PEP 8

2013-07-08 Thread Joshua Landau
On 8 July 2013 13:02, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 08 Jul 2013 11:39:21 +0100, Joshua Landau wrote: Imagine: a_wonderful_set_of_things = { bannanas_made_of_apples, chocolate_covered_horns, doors_that_slide, china_but_on_the_moon,

Re: How do I write a script to generate 10 random EVEN numbers and write them to a .txt file?

2013-07-08 Thread Joshua Landau
On 8 July 2013 13:27, Dave Angel da...@davea.name wrote: One of your classmates has already posted the question. However, you win the prize for a better subject line. Or are you the same student, changing your name and wasting our time by starting a new thread. Considering the body of the

Re: Default scope of variables

2013-07-08 Thread Joshua Landau
On 8 July 2013 12:54, Neil Cerutti ne...@norwich.edu wrote: On 2013-07-07, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Fri, 05 Jul 2013 13:24:43 +, Neil Cerutti wrote: for x in range(4): print(x) print(x) # Vader NOoOO!!! That loops do *not* introduce a

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Grant Edwards
On 2013-07-06, ?? Gr33k ni...@superhost.gr wrote: Yes i know iam only storing the ISP's city instead of visitor's homeland but this is the closest i can get: try: gi = pygeoip.GeoIP('/home/nikos/GeoLiteCity.dat') city = gi.time_zone_by_addr( os.environ['HTTP_CF_CONNECTING_IP']

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Grant Edwards
On 2013-07-06, ?? Gr33k ni...@superhost.gr wrote: 6/7/2013 4:41 , ??/?? ?? Gr33k : Yes i know iam only storing the ISP's city instead of visitor's homeland but this is the closest i can get: try: gi = pygeoip.GeoIP('/home/nikos/GeoLiteCity.dat')

ipython

2013-07-08 Thread davide . dalmasso
Hi, I work with Python 3.3. I downloaded an IPython executable version from http://www.lfd.uci.edu/~gohlke/pythonlibs/ I installed it but no shortcut appears in my start menu. How can I launch it or alternatively is there some other free source of executable file for Windows 7? Many Thanks --

Re: ipython

2013-07-08 Thread Steven D'Aprano
On Mon, 08 Jul 2013 07:44:11 -0700, davide.dalmasso wrote: Hi, I work with Python 3.3. I downloaded an IPython executable version from http://www.lfd.uci.edu/~gohlke/pythonlibs/ I installed it but no shortcut appears in my start menu. How can I launch it or alternatively is there some other

Re: ipython

2013-07-08 Thread Wanderer
On Monday, July 8, 2013 10:44:11 AM UTC-4, davide@gmail.com wrote: Hi, I work with Python 3.3. I downloaded an IPython executable version from http://www.lfd.uci.edu/~gohlke/pythonlibs/ I installed it but no shortcut appears in my start menu. How can I launch it or alternatively is

Re: Default scope of variables

2013-07-08 Thread Joshua Landau
On 4 July 2013 05:36, Chris Angelico ros...@gmail.com wrote: On Thu, Jul 4, 2013 at 2:30 PM, Joshua Landau joshua.landau...@gmail.com wrote: That said, I'm not too convinced. Personally, the proper way to do what you are talking about is creating a new closure. Like: for i in range(100):

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread ferdy . blatsco
Hi Chris, glad to have received your contribution, but I was expecting much more critics... Starting from the little nitpick about the comment dispositon in my script... you are correct... It is a bad habit on my part to place variables subjected to change at the beginning of the script... and

Re: Important features for editors

2013-07-08 Thread Sivaram Neelakantan
On Mon, Jul 08 2013,Skip Montanaro wrote: I couldn't live without the keyboard macro record and playback. I used to work with a programmer who couldn't live without his insulin injections. Hyperbole aside, two of my most common crutches are Emacs macros and bash history. Given how useful

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 3:31 AM, ferdy.blat...@gmail.com wrote: Unfortunately (as probably I told you before) I will never pass to Python 3... Guido should not always listen only to gurus like him... I don't like Python as before...starting from OOP and ending with codecs like utf-8.

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread ferdy . blatsco
Hi Steven, thank you for your reply... I really needed another python guru which is also an English teacher! Sorry if English is not my mother tongue... uncorrect instead of incorrect (I misapplied the similarity principle like unpleasant..uncorrect). Apart from these trifles, you said: All

Re: Important features for editors

2013-07-08 Thread Skip Montanaro
Wasn't it C-x ( ? From the manual In addition to the F3 and F4 commands described above, Emacs also supports an older set of key bindings for defining and executing keyboard macros. To begin a macro definition, type `C-x (' (`kmacro-start-macro'); as with F3, a prefix argument appends

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 3:53 AM, ferdy.blat...@gmail.com wrote: All characters are UTF-8, characters. a is a UTF-8 character. So is ă. Not using python 3, for me (a programmer which was present at the beginning of computer science, badly interacting with many languages from assembler to

Re: How do I write a script to generate 10 random EVEN numbers and write them to a .txt file?

2013-07-08 Thread Dave Angel
On 07/08/2013 09:10 AM, Joshua Landau wrote: On 8 July 2013 13:27, Dave Angel da...@davea.name wrote: One of your classmates has already posted the question. However, you win the prize for a better subject line. Or are you the same student, changing your name and wasting our time by starting

homework + obfuscation ... this might work ...

2013-07-08 Thread Skip Montanaro
I have an idea. Take the threads where students ask the list to do their homework for them (but don't have the cojones to admit that's what they are doing), and merge them with the obfuscated Python idea. A group of people could come up with the solution off-list, then answer the poster's

make sublists of a list broken at nth certain list items

2013-07-08 Thread CM
I'm looking for a Pythonic way to do the following: I have data in the form of a long list of tuples. I would like to break that list into four sub-lists. The break points would be based on the nth occasion of a particular tuple. (The list represents behavioral data trials; the particular

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Dave Angel
On 07/08/2013 01:53 PM, ferdy.blat...@gmail.com wrote: Hi Steven, thank you for your reply... I really needed another python guru which is also an English teacher! Sorry if English is not my mother tongue... uncorrect instead of incorrect (I misapplied the similarity principle like

Re: homework + obfuscation ... this might work ...

2013-07-08 Thread Ian Kelly
On Mon, Jul 8, 2013 at 2:43 PM, Skip Montanaro s...@pobox.com wrote: I have an idea. Take the threads where students ask the list to do their homework for them (but don't have the cojones to admit that's what they are doing), and merge them with the obfuscated Python idea. A group of people

Re: homework + obfuscation ... this might work ...

2013-07-08 Thread Skip Montanaro
You assume that the professor (or more likely, TA) will take the time to ask them to explain the program and not just grade them down for the extra work they had to do. Well, that would be fine too. :-) Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: make sublists of a list broken at nth certain list items

2013-07-08 Thread Fábio Santos
You don't want to use index() to figure out the index of the tuples. It is slower, and will not find the item you want if there is more than one of the same. For example, [1, 4, 4, 4].index(4) will always be 1, no matter how many times you loop through it. Instead, use enumerate() to keep track

Re: make sublists of a list broken at nth certain list items

2013-07-08 Thread Joshua Landau
On 8 July 2013 21:52, CM cmpyt...@gmail.com wrote: I'm looking for a Pythonic way to do the following: I have data in the form of a long list of tuples. I would like to break that list into four sub-lists. The break points would be based on the nth occasion of a particular tuple. (The

Re: make sublists of a list broken at nth certain list items

2013-07-08 Thread Joshua Landau
On 8 July 2013 22:24, Joshua Landau joshua.landau...@gmail.com wrote: if count == 60: Obviously this should be: if count == length: -- http://mail.python.org/mailman/listinfo/python-list

Re: homework + obfuscation ... this might work ...

2013-07-08 Thread Joshua Landau
On 8 July 2013 21:43, Skip Montanaro s...@pobox.com wrote: I have an idea. Take the threads where students ask the list to do their homework for them (but don't have the cojones to admit that's what they are doing), and merge them with the obfuscated Python idea. A group of people could come

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread MRAB
On 08/07/2013 21:56, Dave Angel wrote: On 07/08/2013 01:53 PM, ferdy.blat...@gmail.com wrote: Hi Steven, thank you for your reply... I really needed another python guru which is also an English teacher! Sorry if English is not my mother tongue... uncorrect instead of incorrect (I misapplied

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 6:56 AM, Dave Angel da...@davea.name wrote: But Unicode has nothing to do with Guido, and it has existed for about 25 years (if I recall correctly). Depends how you measure. According to [1], the work kinda began back then (25 years ago being 1988), but it wasn't till

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Joshua Landau
On 8 July 2013 22:38, MRAB pyt...@mrabarnett.plus.com wrote: On 08/07/2013 21:56, Dave Angel wrote: Characters do not have a width. [snip] It depends what you mean by width! :-) Try this (Python 3): print(A\N{FULLWIDTH LATIN CAPITAL LETTER A}) AA Serious question: How would one find

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Dave Angel
On 07/08/2013 05:49 PM, Chris Angelico wrote: On Tue, Jul 9, 2013 at 6:56 AM, Dave Angel da...@davea.name wrote: But Unicode has nothing to do with Guido, and it has existed for about 25 years (if I recall correctly). Depends how you measure. According to [1], the work kinda began back then

Re: Editor Ergonomics [was: Important features for editors]

2013-07-08 Thread Rhodri James
On Sat, 06 Jul 2013 16:04:00 +0100, rusi rustompm...@gmail.com wrote: On Saturday, July 6, 2013 7:40:39 PM UTC+5:30, Skip Montanaro wrote: * a lot of typing, * use of modifier keys (ctrl, alt, command, etc) * movement between the mouse and the keyboard My own experience: The second 2 are the

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 8:45 AM, Dave Angel da...@davea.name wrote: On 07/08/2013 05:49 PM, Chris Angelico wrote: On Tue, Jul 9, 2013 at 6:56 AM, Dave Angel da...@davea.name wrote: But Unicode has nothing to do with Guido, and it has existed for about 25 years (if I recall correctly).

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread MRAB
On 08/07/2013 23:02, Joshua Landau wrote: On 8 July 2013 22:38, MRAB pyt...@mrabarnett.plus.com wrote: On 08/07/2013 21:56, Dave Angel wrote: Characters do not have a width. [snip] It depends what you mean by width! :-) Try this (Python 3): print(A\N{FULLWIDTH LATIN CAPITAL LETTER A})

Re: UnpicklingError: NEWOBJ class argument isn't a type object

2013-07-08 Thread skunkwerk
On Monday, July 8, 2013 12:45:55 AM UTC-7, Peter Otten wrote: skunkwerk wrote: Hi, I'm using a custom pickler that replaces any un-pickleable objects (such as sockets or files) with a string representation of them, based on the code from Shane Hathaway here:

Re: A small question about PEP 8

2013-07-08 Thread Ethan Furman
On 07/08/2013 03:39 AM, Joshua Landau wrote: On 8 July 2013 00:32, Xue Fuqiao xfq.f...@gmail.com wrote: Hi all, (English is not my native language; please excuse typing errors.) I'm a Python newbie and just started reading PEP 8. PEP says:

the general development using Python

2013-07-08 Thread ajetrumpet
all, I am unhappy with the general Python documentation and tutorials. I have worked with Python very little and I'm well aware of the fact that it is a lower-level language that integrates with the shell. I came from a VB legacy background and I've already un-learned everything that I need

Re: the general development using Python

2013-07-08 Thread Joshua Landau
On 9 July 2013 02:45, ajetrum...@gmail.com wrote: all, I am unhappy with the general Python documentation and tutorials. I have worked with Python very little and I'm well aware of the fact that it is a lower-level language that integrates with the shell. I came from a VB legacy

Re: the general development using Python

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 11:45 AM, ajetrum...@gmail.com wrote: I have to get back into writing Python but I'm lacking one thing ... a general understanding of how to write applications that can be deployed (either in .exe format or in other formats). That's one last thing you need to

Re: the general development using Python

2013-07-08 Thread Joel Goldstick
On Mon, Jul 8, 2013 at 9:45 PM, ajetrum...@gmail.com wrote: all, I am unhappy with the general Python documentation and tutorials. I have worked with Python very little and I'm well aware of the fact that it is a lower-level language that integrates with the shell. I came from a VB legacy

Re: Editor Ergonomics [was: Important features for editors]

2013-07-08 Thread Jason Friedman
I am right-handed and use a lefty-mouse about 50% of the time. It was difficult at first, now I'm almost as fast lefty as righty. As has been stated by others, changing the muscles being used reduces the impact on any one of them. -- http://mail.python.org/mailman/listinfo/python-list

Re: the general development using Python

2013-07-08 Thread CM
On Monday, July 8, 2013 9:45:16 PM UTC-4, ajetr...@gmail.com wrote: all, I am unhappy with the general Python documentation and tutorials. OK. Do you mean the official Python.org docs? Which tutorials? There's a ton out there. I have worked with Python very little and I'm well

looking for a new router

2013-07-08 Thread saadharana
Hey i'm looking for a new router. I have no set budget. Only US stores. I have cable internet and few laptops connected to it so it needs to have a strong wireless internet signal. Also i do gaming as well on wireless internet and download many large files. Thank you for the help. - used

Networked Printer Issues

2013-07-08 Thread saadharana
Hey All, I just built a new PC and networked the printer (just like w/the old setup) but it doesn't seem to work.. I remember when I did it last time it took all of 1 minute to setup but this time the troubleshooting is going on days of my spare time. I'd really like to just get this working.

Strange networking problems

2013-07-08 Thread saadharana
I have two computers connected through a router, one via cable and running XP, the other via wireless running win 7. This network was set up a while back and then not used for a long time, but at one point it was working, now there seem to be some sort of problems. - used computers in

Re: Default scope of variables

2013-07-08 Thread alex23
On 7/07/2013 11:43 PM, Chris Angelico wrote: Yep. There's a problem, though, when you bring in subtransactions. The logic wants to be like this: with new_transaction(conn) as tran: tran.query(blah) with tran.subtransaction() as tran: tran.query(blah) with

crack a router passcode

2013-07-08 Thread saadharana
I need to crack my router passcode to see what firmware it's running. There's a passcode set but I don't remember it and it's not written down anywhere. - used computers in chennai -- View this message in context: http://python.6.x6.nabble.com/crack-a-router-passcode-tp5024180.html Sent

Re: looking for a new router

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 2:52 PM, saadharana saadhar...@gmail.com wrote: Hey i'm looking for a new router. I have no set budget. Only US stores. I have cable internet and few laptops connected to it so it needs to have a strong wireless internet signal. Also i do gaming as well on wireless

RAM slots problem

2013-07-08 Thread saadharana
I've got some annoying problem with RAM. I was depth cleaning my case, everything regular, it wasn't my first time. And when I put it all together and powered it on, it wasn't working, just beeps fast. But how that happend when I put all back in like it was before?? Later I realised that problem

Need to build a server computer

2013-07-08 Thread saadharana
Hey, I'm in a bit of a dilemma and I need help. I need to host 2 or 3 Minecraft servers for a fellow gamer and I. However, I am not sure how much memory or what general kind of processor to get. Obviously, I won't need a lot of graphics power or hard drive space for a basic server, but I'm still

Re: Default scope of variables

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 2:52 PM, alex23 wuwe...@gmail.com wrote: with new_transaction(conn) as folder_tran: folder_tran.query(blah) with folder_tran.subtransaction() as file_tran: file_tran.query(blah) with file_tran.subtransaction() as type_tran:

Re: the general development using Python

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 2:46 PM, CM cmpyt...@gmail.com wrote: Target the three most popular desktop platforms all at once, no Linux/Windows/Mac OS versioning. Ehhh... There are differences, in, e.g., wxPython between the three platforms, and you can either do different versions or, more

USB wont format?

2013-07-08 Thread saadharana
Hi guys; i have here a Scandisk Usb that i formatted it to f32 and tried to use on Linux did not work now i'm trying to use it on windows and it says i have to format and i go format it and it wont format . - used computers in chennai -- View this message in context:

Re-using my SSD drive?

2013-07-08 Thread saadharana
Hi guys, So I heard that once your SSD is installed with windows with a new motherboard, it will be stuck with it forever? So does that mean SSDs and HDDs are pretty much not-recyclable? Thanks in advance - used computers in chennai -- View this message in context:

How to Clone a Hard Drive

2013-07-08 Thread saadharana
I just recently realized that my laptop's hard drive was going down the road to failure, so I had to clone all the data from the old drive onto a new drive from Newegg. Since I have all the steps fresh in my mind, I figured I'd write a guide on how to clone a hard drive. - used computers in

Re: looking for a new router

2013-07-08 Thread Dotan Cohen
On Tue, Jul 9, 2013 at 7:57 AM, Chris Angelico ros...@gmail.com wrote: I recommend you go to a small local store that has friendly people and real service, tell them what you're needing, and support local business with your custom. That'll be more helpful to you than asking on a mailing list

Re: looking for a new router

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 3:27 PM, Dotan Cohen dotanco...@gmail.com wrote: On Tue, Jul 9, 2013 at 7:57 AM, Chris Angelico ros...@gmail.com wrote: I recommend you go to a small local store that has friendly people and real service, tell them what you're needing, and support local business with

Re: ipython

2013-07-08 Thread alex23
On 9/07/2013 12:44 AM, davide.dalma...@gmail.com wrote: Hi, I work with Python 3.3. I downloaded an IPython executable version from http://www.lfd.uci.edu/~gohlke/pythonlibs/ I installed it but no shortcut appears in my start menu. How can I launch it or alternatively is there some other free

[issue18401] Tests for pdb import ~/.pdbrc

2013-07-08 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- assignee: ronaldoussoren - components: -Macintosh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18401 ___

[issue17128] OS X system openssl deprecated - installer should build local libssl

2013-07-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: The file not even empty, it doesn't even exist in default installations. As Ned mentioned the CA roots on OSX are stored in a system database (the keychain). The situation is more or less the same as on Windows: their either needs to be code that queries the

[issue18396] test_signal.test_issue9324() fails on buildbot AMD64 Windows7 SP1 3.x

2013-07-08 Thread Jeremy Kloth
Jeremy Kloth added the comment: This error is reproducible by simply passing '-j' to regrtest on any Windows build so it is not Win64-specific. It seems that when run in a subprocess, certain signals have C handlers that cause the return value of getsignal() to return None which, of course,

[issue10042] functools.total_ordering fails to handle NotImplemented correctly

2013-07-08 Thread Nick Coghlan
Nick Coghlan added the comment: Raymond, one of the devs here at the PyCon AU sprints has been looking into providing an updated patch for this. Do you mind if I reassign the issue to myself to review their patch (once it is uploaded)? -- ___

[issue12645] test.support. import_fresh_module - incorrect doc

2013-07-08 Thread Ben Finney
Ben Finney added the comment: I'm reading the existing `test.support.import_fresh_module` docstring, and have re-formatted it for PEP 257 compliance and for reading clarity. -- keywords: +patch nosy: +bignose Added file:

[issue12645] test.support. import_fresh_module - incorrect doc

2013-07-08 Thread Ben Finney
Ben Finney added the comment: import_fresh_module raises an ImportError if *name* can't be imported, or returns None if the fresh module is not found. The implementation doesn't seem to raise ImportError when a module import fails. Instead, from what I can tell, it captures any ImportError

[issue15415] Add temp_dir() and change_cwd() to test.support

2013-07-08 Thread Indra Talip
Indra Talip added the comment: cleaning up patch so that it will apply cleanly after applying patch from issue15494 -- nosy: +italip Added file: http://bugs.python.org/file30858/issue-15415-4.patch ___ Python tracker rep...@bugs.python.org

[issue15494] Move test/support.py into a test.support subpackage

2013-07-08 Thread Stephen Tonkin
Stephen Tonkin added the comment: Likewise, move_test_support.patch did not break things under OS X 10.8. -- nosy: +sptonkin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15494 ___

[issue10042] functools.total_ordering fails to handle NotImplemented correctly

2013-07-08 Thread Katie Miller
Katie Miller added the comment: Attaching patch with Nick Coghlan's suggested code from msg140493 and associated tests. The tests extend the single test case that had already been added for earlier changes based on this bug. The tests check that a TypeError is raised, rather than a stack

[issue17827] Document codecs.encode and codecs.decode

2013-07-08 Thread Grant
Grant added the comment: codecs module and 'whats new' doc patch for 3.4 -- keywords: +patch nosy: +Grant versions: -Python 2.7, Python 3.3 Added file: http://bugs.python.org/file30860/17827.diff ___ Python tracker rep...@bugs.python.org

[issue10042] functools.total_ordering fails to handle NotImplemented correctly

2013-07-08 Thread Nick Coghlan
Nick Coghlan added the comment: As part of this, I finally reviewed Jim's proposed alternate implementations for the helper functions. Katie's patch used my version while I figured out the differences in behaviour :) The key difference between them relates to the following different

[issue18393] Gestalt() is deprecated on OSX 10.8, remove support?

2013-07-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch removes the use of the Gestalt API. The removed code is effectively dead, I yet have to find a machine were platform._mac_ver_xml does not work and the gestalt based code only gets used when the XML variant does not work. --

  1   2   3   >